Add clang-format config to contrib folder
[official-gcc.git] / libvtv / configure
blobc38118cf84368fcdf4890044d6a9a5bec4b402a4
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for GNU Vtable Verification Runtime Library 1.0.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # 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 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
242 exit 1
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
260 { eval $1=; unset $1;}
262 as_unset=as_fn_unset
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
269 return $1
270 } # as_fn_set_status
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
313 /^X\(\/\/\)$/{
314 s//\1/
317 /^X\(\/\).*/{
318 s//\1/
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
338 eval $1+=\$2
340 else
341 as_fn_append ()
343 eval $1=\$$1\$2
345 fi # as_fn_append
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
355 as_val=$(( $* ))
357 else
358 as_fn_arith ()
360 as_val=`expr "$@" || test $? -eq 1`
362 fi # as_fn_arith
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
409 /^X\/\(\/\/\)$/{
410 s//\1/
413 /^X\/\(\/\).*/{
414 s//\1/
417 s/.*/./; q'`
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
440 :lineno
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
468 ECHO_N='-n';;
469 esac
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
492 else
493 as_ln_s='cp -p'
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
526 as_executable_p=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev/null 6>&1
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545 # Initializations.
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
556 # Identity of this package.
557 PACKAGE_NAME='GNU Vtable Verification Runtime Library'
558 PACKAGE_TARNAME='libvtv'
559 PACKAGE_VERSION='1.0'
560 PACKAGE_STRING='GNU Vtable Verification Runtime Library 1.0'
561 PACKAGE_BUGREPORT=''
562 PACKAGE_URL='http://www.gnu.org/software/libvtv/'
564 ac_unique_file="vtv_rts.h"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
601 ac_subst_vars='am__EXEEXT_FALSE
602 am__EXEEXT_TRUE
603 LTLIBOBJS
604 LIBOBJS
605 VTV_CYGMIN_FALSE
606 VTV_CYGMIN_TRUE
607 XCFLAGS
608 libtool_VERSION
609 enable_static
610 enable_shared
611 lt_host_flags
612 CXXCPP
613 OTOOL64
614 OTOOL
615 LIPO
616 NMEDIT
617 DSYMUTIL
618 OBJDUMP
619 LN_S
621 ac_ct_DUMPBIN
622 DUMPBIN
624 FGREP
626 LIBTOOL
627 RANLIB
630 CCASFLAGS
631 CCAS
632 am__fastdepCXX_FALSE
633 am__fastdepCXX_TRUE
634 CXXDEPMODE
635 ac_ct_CXX
636 CXXFLAGS
638 EGREP
639 GREP
641 am__fastdepCC_FALSE
642 am__fastdepCC_TRUE
643 CCDEPMODE
644 am__nodep
645 AMDEPBACKSLASH
646 AMDEP_FALSE
647 AMDEP_TRUE
648 am__quote
649 am__include
650 DEPDIR
651 OBJEXT
652 EXEEXT
653 ac_ct_CC
654 CPPFLAGS
655 LDFLAGS
656 CFLAGS
658 toolexeclibdir
659 toolexecdir
660 toplevel_srcdir
661 toplevel_builddir
662 libvtv_srcdir
663 libvtv_builddir
664 MAINT
665 MAINTAINER_MODE_FALSE
666 MAINTAINER_MODE_TRUE
667 multi_basedir
668 am__untar
669 am__tar
670 AMTAR
671 am__leading_dot
672 SET_MAKE
674 mkdir_p
675 MKDIR_P
676 INSTALL_STRIP_PROGRAM
677 STRIP
678 install_sh
679 MAKEINFO
680 AUTOHEADER
681 AUTOMAKE
682 AUTOCONF
683 ACLOCAL
684 VERSION
685 PACKAGE
686 CYGPATH_W
687 am__isrc
688 INSTALL_DATA
689 INSTALL_SCRIPT
690 INSTALL_PROGRAM
691 ENABLE_VTABLE_VERIFY_FALSE
692 ENABLE_VTABLE_VERIFY_TRUE
693 LIBSTDCXX_RAW_CXX_LDFLAGS
694 LIBSTDCXX_RAW_CXX_CXXFLAGS
695 target_noncanonical
696 target_os
697 target_vendor
698 target_cpu
699 target
700 host_os
701 host_vendor
702 host_cpu
703 host
704 build_os
705 build_vendor
706 build_cpu
707 build
708 target_alias
709 host_alias
710 build_alias
711 LIBS
712 ECHO_T
713 ECHO_N
714 ECHO_C
715 DEFS
716 mandir
717 localedir
718 libdir
719 psdir
720 pdfdir
721 dvidir
722 htmldir
723 infodir
724 docdir
725 oldincludedir
726 includedir
727 localstatedir
728 sharedstatedir
729 sysconfdir
730 datadir
731 datarootdir
732 libexecdir
733 sbindir
734 bindir
735 program_transform_name
736 prefix
737 exec_prefix
738 PACKAGE_URL
739 PACKAGE_BUGREPORT
740 PACKAGE_STRING
741 PACKAGE_VERSION
742 PACKAGE_TARNAME
743 PACKAGE_NAME
744 PATH_SEPARATOR
745 SHELL'
746 ac_subst_files=''
747 ac_user_opts='
748 enable_option_checking
749 enable_version_specific_runtime_libs
750 enable_vtable_verify
751 enable_multilib
752 enable_maintainer_mode
753 enable_dependency_tracking
754 enable_shared
755 enable_static
756 with_pic
757 enable_fast_install
758 with_gnu_ld
759 enable_libtool_lock
761 ac_precious_vars='build_alias
762 host_alias
763 target_alias
765 CFLAGS
766 LDFLAGS
767 LIBS
768 CPPFLAGS
770 CXXCPP'
773 # Initialize some variables set by options.
774 ac_init_help=
775 ac_init_version=false
776 ac_unrecognized_opts=
777 ac_unrecognized_sep=
778 # The variables have the same names as the options, with
779 # dashes changed to underlines.
780 cache_file=/dev/null
781 exec_prefix=NONE
782 no_create=
783 no_recursion=
784 prefix=NONE
785 program_prefix=NONE
786 program_suffix=NONE
787 program_transform_name=s,x,x,
788 silent=
789 site=
790 srcdir=
791 verbose=
792 x_includes=NONE
793 x_libraries=NONE
795 # Installation directory options.
796 # These are left unexpanded so users can "make install exec_prefix=/foo"
797 # and all the variables that are supposed to be based on exec_prefix
798 # by default will actually change.
799 # Use braces instead of parens because sh, perl, etc. also accept them.
800 # (The list follows the same order as the GNU Coding Standards.)
801 bindir='${exec_prefix}/bin'
802 sbindir='${exec_prefix}/sbin'
803 libexecdir='${exec_prefix}/libexec'
804 datarootdir='${prefix}/share'
805 datadir='${datarootdir}'
806 sysconfdir='${prefix}/etc'
807 sharedstatedir='${prefix}/com'
808 localstatedir='${prefix}/var'
809 includedir='${prefix}/include'
810 oldincludedir='/usr/include'
811 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
812 infodir='${datarootdir}/info'
813 htmldir='${docdir}'
814 dvidir='${docdir}'
815 pdfdir='${docdir}'
816 psdir='${docdir}'
817 libdir='${exec_prefix}/lib'
818 localedir='${datarootdir}/locale'
819 mandir='${datarootdir}/man'
821 ac_prev=
822 ac_dashdash=
823 for ac_option
825 # If the previous option needs an argument, assign it.
826 if test -n "$ac_prev"; then
827 eval $ac_prev=\$ac_option
828 ac_prev=
829 continue
832 case $ac_option in
833 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
834 *) ac_optarg=yes ;;
835 esac
837 # Accept the important Cygnus configure options, so we can diagnose typos.
839 case $ac_dashdash$ac_option in
841 ac_dashdash=yes ;;
843 -bindir | --bindir | --bindi | --bind | --bin | --bi)
844 ac_prev=bindir ;;
845 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
846 bindir=$ac_optarg ;;
848 -build | --build | --buil | --bui | --bu)
849 ac_prev=build_alias ;;
850 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
851 build_alias=$ac_optarg ;;
853 -cache-file | --cache-file | --cache-fil | --cache-fi \
854 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
855 ac_prev=cache_file ;;
856 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
857 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
858 cache_file=$ac_optarg ;;
860 --config-cache | -C)
861 cache_file=config.cache ;;
863 -datadir | --datadir | --datadi | --datad)
864 ac_prev=datadir ;;
865 -datadir=* | --datadir=* | --datadi=* | --datad=*)
866 datadir=$ac_optarg ;;
868 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
869 | --dataroo | --dataro | --datar)
870 ac_prev=datarootdir ;;
871 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
872 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
873 datarootdir=$ac_optarg ;;
875 -disable-* | --disable-*)
876 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
877 # Reject names that are not valid shell variable names.
878 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
879 as_fn_error "invalid feature name: $ac_useropt"
880 ac_useropt_orig=$ac_useropt
881 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
882 case $ac_user_opts in
884 "enable_$ac_useropt"
885 "*) ;;
886 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
887 ac_unrecognized_sep=', ';;
888 esac
889 eval enable_$ac_useropt=no ;;
891 -docdir | --docdir | --docdi | --doc | --do)
892 ac_prev=docdir ;;
893 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
894 docdir=$ac_optarg ;;
896 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
897 ac_prev=dvidir ;;
898 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
899 dvidir=$ac_optarg ;;
901 -enable-* | --enable-*)
902 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
903 # Reject names that are not valid shell variable names.
904 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
905 as_fn_error "invalid feature name: $ac_useropt"
906 ac_useropt_orig=$ac_useropt
907 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
908 case $ac_user_opts in
910 "enable_$ac_useropt"
911 "*) ;;
912 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
913 ac_unrecognized_sep=', ';;
914 esac
915 eval enable_$ac_useropt=\$ac_optarg ;;
917 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
918 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
919 | --exec | --exe | --ex)
920 ac_prev=exec_prefix ;;
921 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
922 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
923 | --exec=* | --exe=* | --ex=*)
924 exec_prefix=$ac_optarg ;;
926 -gas | --gas | --ga | --g)
927 # Obsolete; use --with-gas.
928 with_gas=yes ;;
930 -help | --help | --hel | --he | -h)
931 ac_init_help=long ;;
932 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
933 ac_init_help=recursive ;;
934 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
935 ac_init_help=short ;;
937 -host | --host | --hos | --ho)
938 ac_prev=host_alias ;;
939 -host=* | --host=* | --hos=* | --ho=*)
940 host_alias=$ac_optarg ;;
942 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
943 ac_prev=htmldir ;;
944 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
945 | --ht=*)
946 htmldir=$ac_optarg ;;
948 -includedir | --includedir | --includedi | --included | --include \
949 | --includ | --inclu | --incl | --inc)
950 ac_prev=includedir ;;
951 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
952 | --includ=* | --inclu=* | --incl=* | --inc=*)
953 includedir=$ac_optarg ;;
955 -infodir | --infodir | --infodi | --infod | --info | --inf)
956 ac_prev=infodir ;;
957 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
958 infodir=$ac_optarg ;;
960 -libdir | --libdir | --libdi | --libd)
961 ac_prev=libdir ;;
962 -libdir=* | --libdir=* | --libdi=* | --libd=*)
963 libdir=$ac_optarg ;;
965 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
966 | --libexe | --libex | --libe)
967 ac_prev=libexecdir ;;
968 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
969 | --libexe=* | --libex=* | --libe=*)
970 libexecdir=$ac_optarg ;;
972 -localedir | --localedir | --localedi | --localed | --locale)
973 ac_prev=localedir ;;
974 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
975 localedir=$ac_optarg ;;
977 -localstatedir | --localstatedir | --localstatedi | --localstated \
978 | --localstate | --localstat | --localsta | --localst | --locals)
979 ac_prev=localstatedir ;;
980 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
981 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
982 localstatedir=$ac_optarg ;;
984 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
985 ac_prev=mandir ;;
986 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
987 mandir=$ac_optarg ;;
989 -nfp | --nfp | --nf)
990 # Obsolete; use --without-fp.
991 with_fp=no ;;
993 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
994 | --no-cr | --no-c | -n)
995 no_create=yes ;;
997 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
998 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
999 no_recursion=yes ;;
1001 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1002 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1003 | --oldin | --oldi | --old | --ol | --o)
1004 ac_prev=oldincludedir ;;
1005 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1006 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1007 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1008 oldincludedir=$ac_optarg ;;
1010 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1011 ac_prev=prefix ;;
1012 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1013 prefix=$ac_optarg ;;
1015 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1016 | --program-pre | --program-pr | --program-p)
1017 ac_prev=program_prefix ;;
1018 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1019 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1020 program_prefix=$ac_optarg ;;
1022 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1023 | --program-suf | --program-su | --program-s)
1024 ac_prev=program_suffix ;;
1025 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1026 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1027 program_suffix=$ac_optarg ;;
1029 -program-transform-name | --program-transform-name \
1030 | --program-transform-nam | --program-transform-na \
1031 | --program-transform-n | --program-transform- \
1032 | --program-transform | --program-transfor \
1033 | --program-transfo | --program-transf \
1034 | --program-trans | --program-tran \
1035 | --progr-tra | --program-tr | --program-t)
1036 ac_prev=program_transform_name ;;
1037 -program-transform-name=* | --program-transform-name=* \
1038 | --program-transform-nam=* | --program-transform-na=* \
1039 | --program-transform-n=* | --program-transform-=* \
1040 | --program-transform=* | --program-transfor=* \
1041 | --program-transfo=* | --program-transf=* \
1042 | --program-trans=* | --program-tran=* \
1043 | --progr-tra=* | --program-tr=* | --program-t=*)
1044 program_transform_name=$ac_optarg ;;
1046 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1047 ac_prev=pdfdir ;;
1048 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1049 pdfdir=$ac_optarg ;;
1051 -psdir | --psdir | --psdi | --psd | --ps)
1052 ac_prev=psdir ;;
1053 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1054 psdir=$ac_optarg ;;
1056 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1057 | -silent | --silent | --silen | --sile | --sil)
1058 silent=yes ;;
1060 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1061 ac_prev=sbindir ;;
1062 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1063 | --sbi=* | --sb=*)
1064 sbindir=$ac_optarg ;;
1066 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1067 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1068 | --sharedst | --shareds | --shared | --share | --shar \
1069 | --sha | --sh)
1070 ac_prev=sharedstatedir ;;
1071 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1072 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1073 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1074 | --sha=* | --sh=*)
1075 sharedstatedir=$ac_optarg ;;
1077 -site | --site | --sit)
1078 ac_prev=site ;;
1079 -site=* | --site=* | --sit=*)
1080 site=$ac_optarg ;;
1082 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1083 ac_prev=srcdir ;;
1084 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1085 srcdir=$ac_optarg ;;
1087 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1088 | --syscon | --sysco | --sysc | --sys | --sy)
1089 ac_prev=sysconfdir ;;
1090 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1091 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1092 sysconfdir=$ac_optarg ;;
1094 -target | --target | --targe | --targ | --tar | --ta | --t)
1095 ac_prev=target_alias ;;
1096 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1097 target_alias=$ac_optarg ;;
1099 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1100 verbose=yes ;;
1102 -version | --version | --versio | --versi | --vers | -V)
1103 ac_init_version=: ;;
1105 -with-* | --with-*)
1106 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1107 # Reject names that are not valid shell variable names.
1108 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1109 as_fn_error "invalid package name: $ac_useropt"
1110 ac_useropt_orig=$ac_useropt
1111 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1112 case $ac_user_opts in
1114 "with_$ac_useropt"
1115 "*) ;;
1116 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1117 ac_unrecognized_sep=', ';;
1118 esac
1119 eval with_$ac_useropt=\$ac_optarg ;;
1121 -without-* | --without-*)
1122 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1123 # Reject names that are not valid shell variable names.
1124 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1125 as_fn_error "invalid package name: $ac_useropt"
1126 ac_useropt_orig=$ac_useropt
1127 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1128 case $ac_user_opts in
1130 "with_$ac_useropt"
1131 "*) ;;
1132 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1133 ac_unrecognized_sep=', ';;
1134 esac
1135 eval with_$ac_useropt=no ;;
1137 --x)
1138 # Obsolete; use --with-x.
1139 with_x=yes ;;
1141 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1142 | --x-incl | --x-inc | --x-in | --x-i)
1143 ac_prev=x_includes ;;
1144 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1145 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1146 x_includes=$ac_optarg ;;
1148 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1149 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1150 ac_prev=x_libraries ;;
1151 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1152 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1153 x_libraries=$ac_optarg ;;
1155 -*) as_fn_error "unrecognized option: \`$ac_option'
1156 Try \`$0 --help' for more information."
1159 *=*)
1160 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1161 # Reject names that are not valid shell variable names.
1162 case $ac_envvar in #(
1163 '' | [0-9]* | *[!_$as_cr_alnum]* )
1164 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1165 esac
1166 eval $ac_envvar=\$ac_optarg
1167 export $ac_envvar ;;
1170 # FIXME: should be removed in autoconf 3.0.
1171 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1172 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1173 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1174 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1177 esac
1178 done
1180 if test -n "$ac_prev"; then
1181 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1182 as_fn_error "missing argument to $ac_option"
1185 if test -n "$ac_unrecognized_opts"; then
1186 case $enable_option_checking in
1187 no) ;;
1188 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1189 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1190 esac
1193 # Check all directory arguments for consistency.
1194 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1195 datadir sysconfdir sharedstatedir localstatedir includedir \
1196 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1197 libdir localedir mandir
1199 eval ac_val=\$$ac_var
1200 # Remove trailing slashes.
1201 case $ac_val in
1202 */ )
1203 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1204 eval $ac_var=\$ac_val;;
1205 esac
1206 # Be sure to have absolute directory names.
1207 case $ac_val in
1208 [\\/$]* | ?:[\\/]* ) continue;;
1209 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1210 esac
1211 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1212 done
1214 # There might be people who depend on the old broken behavior: `$host'
1215 # used to hold the argument of --host etc.
1216 # FIXME: To remove some day.
1217 build=$build_alias
1218 host=$host_alias
1219 target=$target_alias
1221 # FIXME: To remove some day.
1222 if test "x$host_alias" != x; then
1223 if test "x$build_alias" = x; then
1224 cross_compiling=maybe
1225 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1226 If a cross compiler is detected then cross compile mode will be used." >&2
1227 elif test "x$build_alias" != "x$host_alias"; then
1228 cross_compiling=yes
1232 ac_tool_prefix=
1233 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1235 test "$silent" = yes && exec 6>/dev/null
1238 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1239 ac_ls_di=`ls -di .` &&
1240 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1241 as_fn_error "working directory cannot be determined"
1242 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1243 as_fn_error "pwd does not report name of working directory"
1246 # Find the source files, if location was not specified.
1247 if test -z "$srcdir"; then
1248 ac_srcdir_defaulted=yes
1249 # Try the directory containing this script, then the parent directory.
1250 ac_confdir=`$as_dirname -- "$as_myself" ||
1251 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1252 X"$as_myself" : 'X\(//\)[^/]' \| \
1253 X"$as_myself" : 'X\(//\)$' \| \
1254 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1255 $as_echo X"$as_myself" |
1256 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1257 s//\1/
1260 /^X\(\/\/\)[^/].*/{
1261 s//\1/
1264 /^X\(\/\/\)$/{
1265 s//\1/
1268 /^X\(\/\).*/{
1269 s//\1/
1272 s/.*/./; q'`
1273 srcdir=$ac_confdir
1274 if test ! -r "$srcdir/$ac_unique_file"; then
1275 srcdir=..
1277 else
1278 ac_srcdir_defaulted=no
1280 if test ! -r "$srcdir/$ac_unique_file"; then
1281 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1282 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1284 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1285 ac_abs_confdir=`(
1286 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1287 pwd)`
1288 # When building in place, set srcdir=.
1289 if test "$ac_abs_confdir" = "$ac_pwd"; then
1290 srcdir=.
1292 # Remove unnecessary trailing slashes from srcdir.
1293 # Double slashes in file names in object file debugging info
1294 # mess up M-x gdb in Emacs.
1295 case $srcdir in
1296 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1297 esac
1298 for ac_var in $ac_precious_vars; do
1299 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1300 eval ac_env_${ac_var}_value=\$${ac_var}
1301 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1302 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1303 done
1306 # Report the --help message.
1308 if test "$ac_init_help" = "long"; then
1309 # Omit some internal or obsolete options to make the list less imposing.
1310 # This message is too long to be a string in the A/UX 3.1 sh.
1311 cat <<_ACEOF
1312 \`configure' configures GNU Vtable Verification Runtime Library 1.0 to adapt to many kinds of systems.
1314 Usage: $0 [OPTION]... [VAR=VALUE]...
1316 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1317 VAR=VALUE. See below for descriptions of some of the useful variables.
1319 Defaults for the options are specified in brackets.
1321 Configuration:
1322 -h, --help display this help and exit
1323 --help=short display options specific to this package
1324 --help=recursive display the short help of all the included packages
1325 -V, --version display version information and exit
1326 -q, --quiet, --silent do not print \`checking...' messages
1327 --cache-file=FILE cache test results in FILE [disabled]
1328 -C, --config-cache alias for \`--cache-file=config.cache'
1329 -n, --no-create do not create output files
1330 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1332 Installation directories:
1333 --prefix=PREFIX install architecture-independent files in PREFIX
1334 [$ac_default_prefix]
1335 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1336 [PREFIX]
1338 By default, \`make install' will install all the files in
1339 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1340 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1341 for instance \`--prefix=\$HOME'.
1343 For better control, use the options below.
1345 Fine tuning of the installation directories:
1346 --bindir=DIR user executables [EPREFIX/bin]
1347 --sbindir=DIR system admin executables [EPREFIX/sbin]
1348 --libexecdir=DIR program executables [EPREFIX/libexec]
1349 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1350 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1351 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1352 --libdir=DIR object code libraries [EPREFIX/lib]
1353 --includedir=DIR C header files [PREFIX/include]
1354 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1355 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1356 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1357 --infodir=DIR info documentation [DATAROOTDIR/info]
1358 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1359 --mandir=DIR man documentation [DATAROOTDIR/man]
1360 --docdir=DIR documentation root [DATAROOTDIR/doc/libvtv]
1361 --htmldir=DIR html documentation [DOCDIR]
1362 --dvidir=DIR dvi documentation [DOCDIR]
1363 --pdfdir=DIR pdf documentation [DOCDIR]
1364 --psdir=DIR ps documentation [DOCDIR]
1365 _ACEOF
1367 cat <<\_ACEOF
1369 Program names:
1370 --program-prefix=PREFIX prepend PREFIX to installed program names
1371 --program-suffix=SUFFIX append SUFFIX to installed program names
1372 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1374 System types:
1375 --build=BUILD configure for building on BUILD [guessed]
1376 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1377 --target=TARGET configure for building compilers for TARGET [HOST]
1378 _ACEOF
1381 if test -n "$ac_init_help"; then
1382 case $ac_init_help in
1383 short | recursive ) echo "Configuration of GNU Vtable Verification Runtime Library 1.0:";;
1384 esac
1385 cat <<\_ACEOF
1387 Optional Features:
1388 --disable-option-checking ignore unrecognized --enable/--with options
1389 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1390 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1391 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
1392 --enable-vtable-verify Enable vtable verification feature
1393 --enable-multilib build many library versions (default)
1394 --enable-maintainer-mode enable make rules and dependencies not useful
1395 (and sometimes confusing) to the casual installer
1396 --disable-dependency-tracking speeds up one-time build
1397 --enable-dependency-tracking do not reject slow dependency extractors
1398 --enable-shared[=PKGS] build shared libraries [default=yes]
1399 --enable-static[=PKGS] build static libraries [default=yes]
1400 --enable-fast-install[=PKGS]
1401 optimize for fast installation [default=yes]
1402 --disable-libtool-lock avoid locking (might break parallel builds)
1404 Optional Packages:
1405 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1406 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1407 --with-pic try to use only PIC/non-PIC objects [default=use
1408 both]
1409 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1411 Some influential environment variables:
1412 CC C compiler command
1413 CFLAGS C compiler flags
1414 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1415 nonstandard directory <lib dir>
1416 LIBS libraries to pass to the linker, e.g. -l<library>
1417 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1418 you have headers in a nonstandard directory <include dir>
1419 CPP C preprocessor
1420 CXX C++ compiler command
1421 CXXFLAGS C++ compiler flags
1422 CXXCPP C++ preprocessor
1424 Use these variables to override the choices made by `configure' or to help
1425 it to find libraries and programs with nonstandard names/locations.
1427 Report bugs to the package provider.
1428 GNU Vtable Verification Runtime Library home page: <http://www.gnu.org/software/libvtv/>.
1429 General help using GNU software: <http://www.gnu.org/gethelp/>.
1430 _ACEOF
1431 ac_status=$?
1434 if test "$ac_init_help" = "recursive"; then
1435 # If there are subdirs, report their specific --help.
1436 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1437 test -d "$ac_dir" ||
1438 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1439 continue
1440 ac_builddir=.
1442 case "$ac_dir" in
1443 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1445 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1446 # A ".." for each directory in $ac_dir_suffix.
1447 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1448 case $ac_top_builddir_sub in
1449 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1450 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1451 esac ;;
1452 esac
1453 ac_abs_top_builddir=$ac_pwd
1454 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1455 # for backward compatibility:
1456 ac_top_builddir=$ac_top_build_prefix
1458 case $srcdir in
1459 .) # We are building in place.
1460 ac_srcdir=.
1461 ac_top_srcdir=$ac_top_builddir_sub
1462 ac_abs_top_srcdir=$ac_pwd ;;
1463 [\\/]* | ?:[\\/]* ) # Absolute name.
1464 ac_srcdir=$srcdir$ac_dir_suffix;
1465 ac_top_srcdir=$srcdir
1466 ac_abs_top_srcdir=$srcdir ;;
1467 *) # Relative name.
1468 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1469 ac_top_srcdir=$ac_top_build_prefix$srcdir
1470 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1471 esac
1472 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1474 cd "$ac_dir" || { ac_status=$?; continue; }
1475 # Check for guested configure.
1476 if test -f "$ac_srcdir/configure.gnu"; then
1477 echo &&
1478 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1479 elif test -f "$ac_srcdir/configure"; then
1480 echo &&
1481 $SHELL "$ac_srcdir/configure" --help=recursive
1482 else
1483 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1484 fi || ac_status=$?
1485 cd "$ac_pwd" || { ac_status=$?; break; }
1486 done
1489 test -n "$ac_init_help" && exit $ac_status
1490 if $ac_init_version; then
1491 cat <<\_ACEOF
1492 GNU Vtable Verification Runtime Library configure 1.0
1493 generated by GNU Autoconf 2.64
1495 Copyright (C) 2009 Free Software Foundation, Inc.
1496 This configure script is free software; the Free Software Foundation
1497 gives unlimited permission to copy, distribute and modify it.
1498 _ACEOF
1499 exit
1502 ## ------------------------ ##
1503 ## Autoconf initialization. ##
1504 ## ------------------------ ##
1506 # ac_fn_c_try_compile LINENO
1507 # --------------------------
1508 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1509 ac_fn_c_try_compile ()
1511 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1512 rm -f conftest.$ac_objext
1513 if { { ac_try="$ac_compile"
1514 case "(($ac_try" in
1515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1516 *) ac_try_echo=$ac_try;;
1517 esac
1518 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1519 $as_echo "$ac_try_echo"; } >&5
1520 (eval "$ac_compile") 2>conftest.err
1521 ac_status=$?
1522 if test -s conftest.err; then
1523 grep -v '^ *+' conftest.err >conftest.er1
1524 cat conftest.er1 >&5
1525 mv -f conftest.er1 conftest.err
1527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1528 test $ac_status = 0; } && {
1529 test -z "$ac_c_werror_flag" ||
1530 test ! -s conftest.err
1531 } && test -s conftest.$ac_objext; then :
1532 ac_retval=0
1533 else
1534 $as_echo "$as_me: failed program was:" >&5
1535 sed 's/^/| /' conftest.$ac_ext >&5
1537 ac_retval=1
1539 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1540 return $ac_retval
1542 } # ac_fn_c_try_compile
1544 # ac_fn_c_try_cpp LINENO
1545 # ----------------------
1546 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1547 ac_fn_c_try_cpp ()
1549 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1550 if { { ac_try="$ac_cpp conftest.$ac_ext"
1551 case "(($ac_try" in
1552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1553 *) ac_try_echo=$ac_try;;
1554 esac
1555 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1556 $as_echo "$ac_try_echo"; } >&5
1557 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1558 ac_status=$?
1559 if test -s conftest.err; then
1560 grep -v '^ *+' conftest.err >conftest.er1
1561 cat conftest.er1 >&5
1562 mv -f conftest.er1 conftest.err
1564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1565 test $ac_status = 0; } >/dev/null && {
1566 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1567 test ! -s conftest.err
1568 }; then :
1569 ac_retval=0
1570 else
1571 $as_echo "$as_me: failed program was:" >&5
1572 sed 's/^/| /' conftest.$ac_ext >&5
1574 ac_retval=1
1576 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1577 return $ac_retval
1579 } # ac_fn_c_try_cpp
1581 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1582 # -------------------------------------------------------
1583 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1584 # the include files in INCLUDES and setting the cache variable VAR
1585 # accordingly.
1586 ac_fn_c_check_header_mongrel ()
1588 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1589 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1591 $as_echo_n "checking for $2... " >&6; }
1592 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1593 $as_echo_n "(cached) " >&6
1595 eval ac_res=\$$3
1596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1597 $as_echo "$ac_res" >&6; }
1598 else
1599 # Is the header compilable?
1600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1601 $as_echo_n "checking $2 usability... " >&6; }
1602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1603 /* end confdefs.h. */
1605 #include <$2>
1606 _ACEOF
1607 if ac_fn_c_try_compile "$LINENO"; then :
1608 ac_header_compiler=yes
1609 else
1610 ac_header_compiler=no
1612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1614 $as_echo "$ac_header_compiler" >&6; }
1616 # Is the header present?
1617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1618 $as_echo_n "checking $2 presence... " >&6; }
1619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1620 /* end confdefs.h. */
1621 #include <$2>
1622 _ACEOF
1623 if ac_fn_c_try_cpp "$LINENO"; then :
1624 ac_header_preproc=yes
1625 else
1626 ac_header_preproc=no
1628 rm -f conftest.err conftest.$ac_ext
1629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1630 $as_echo "$ac_header_preproc" >&6; }
1632 # So? What about this header?
1633 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1634 yes:no: )
1635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1636 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1638 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1640 no:yes:* )
1641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1642 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1644 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1646 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1648 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1650 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1652 esac
1653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1654 $as_echo_n "checking for $2... " >&6; }
1655 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1656 $as_echo_n "(cached) " >&6
1657 else
1658 eval "$3=\$ac_header_compiler"
1660 eval ac_res=\$$3
1661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1662 $as_echo "$ac_res" >&6; }
1664 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1666 } # ac_fn_c_check_header_mongrel
1668 # ac_fn_c_try_run LINENO
1669 # ----------------------
1670 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1671 # that executables *can* be run.
1672 ac_fn_c_try_run ()
1674 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1675 if { { ac_try="$ac_link"
1676 case "(($ac_try" in
1677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1678 *) ac_try_echo=$ac_try;;
1679 esac
1680 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1681 $as_echo "$ac_try_echo"; } >&5
1682 (eval "$ac_link") 2>&5
1683 ac_status=$?
1684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1685 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1686 { { case "(($ac_try" in
1687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1688 *) ac_try_echo=$ac_try;;
1689 esac
1690 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1691 $as_echo "$ac_try_echo"; } >&5
1692 (eval "$ac_try") 2>&5
1693 ac_status=$?
1694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1695 test $ac_status = 0; }; }; then :
1696 ac_retval=0
1697 else
1698 $as_echo "$as_me: program exited with status $ac_status" >&5
1699 $as_echo "$as_me: failed program was:" >&5
1700 sed 's/^/| /' conftest.$ac_ext >&5
1702 ac_retval=$ac_status
1704 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1705 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1706 return $ac_retval
1708 } # ac_fn_c_try_run
1710 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1711 # -------------------------------------------------------
1712 # Tests whether HEADER exists and can be compiled using the include files in
1713 # INCLUDES, setting the cache variable VAR accordingly.
1714 ac_fn_c_check_header_compile ()
1716 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1718 $as_echo_n "checking for $2... " >&6; }
1719 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1720 $as_echo_n "(cached) " >&6
1721 else
1722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1723 /* end confdefs.h. */
1725 #include <$2>
1726 _ACEOF
1727 if ac_fn_c_try_compile "$LINENO"; then :
1728 eval "$3=yes"
1729 else
1730 eval "$3=no"
1732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1734 eval ac_res=\$$3
1735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1736 $as_echo "$ac_res" >&6; }
1737 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1739 } # ac_fn_c_check_header_compile
1741 # ac_fn_c_try_link LINENO
1742 # -----------------------
1743 # Try to link conftest.$ac_ext, and return whether this succeeded.
1744 ac_fn_c_try_link ()
1746 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1747 rm -f conftest.$ac_objext conftest$ac_exeext
1748 if { { ac_try="$ac_link"
1749 case "(($ac_try" in
1750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1751 *) ac_try_echo=$ac_try;;
1752 esac
1753 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1754 $as_echo "$ac_try_echo"; } >&5
1755 (eval "$ac_link") 2>conftest.err
1756 ac_status=$?
1757 if test -s conftest.err; then
1758 grep -v '^ *+' conftest.err >conftest.er1
1759 cat conftest.er1 >&5
1760 mv -f conftest.er1 conftest.err
1762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1763 test $ac_status = 0; } && {
1764 test -z "$ac_c_werror_flag" ||
1765 test ! -s conftest.err
1766 } && test -s conftest$ac_exeext && {
1767 test "$cross_compiling" = yes ||
1768 $as_test_x conftest$ac_exeext
1769 }; then :
1770 ac_retval=0
1771 else
1772 $as_echo "$as_me: failed program was:" >&5
1773 sed 's/^/| /' conftest.$ac_ext >&5
1775 ac_retval=1
1777 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1778 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1779 # interfere with the next link command; also delete a directory that is
1780 # left behind by Apple's compiler. We do this before executing the actions.
1781 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1782 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1783 return $ac_retval
1785 } # ac_fn_c_try_link
1787 # ac_fn_c_check_func LINENO FUNC VAR
1788 # ----------------------------------
1789 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1790 ac_fn_c_check_func ()
1792 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1794 $as_echo_n "checking for $2... " >&6; }
1795 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1796 $as_echo_n "(cached) " >&6
1797 else
1798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1799 /* end confdefs.h. */
1800 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1801 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1802 #define $2 innocuous_$2
1804 /* System header to define __stub macros and hopefully few prototypes,
1805 which can conflict with char $2 (); below.
1806 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1807 <limits.h> exists even on freestanding compilers. */
1809 #ifdef __STDC__
1810 # include <limits.h>
1811 #else
1812 # include <assert.h>
1813 #endif
1815 #undef $2
1817 /* Override any GCC internal prototype to avoid an error.
1818 Use char because int might match the return type of a GCC
1819 builtin and then its argument prototype would still apply. */
1820 #ifdef __cplusplus
1821 extern "C"
1822 #endif
1823 char $2 ();
1824 /* The GNU C library defines this for functions which it implements
1825 to always fail with ENOSYS. Some functions are actually named
1826 something starting with __ and the normal name is an alias. */
1827 #if defined __stub_$2 || defined __stub___$2
1828 choke me
1829 #endif
1832 main ()
1834 return $2 ();
1836 return 0;
1838 _ACEOF
1839 if ac_fn_c_try_link "$LINENO"; then :
1840 eval "$3=yes"
1841 else
1842 eval "$3=no"
1844 rm -f core conftest.err conftest.$ac_objext \
1845 conftest$ac_exeext conftest.$ac_ext
1847 eval ac_res=\$$3
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1849 $as_echo "$ac_res" >&6; }
1850 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1852 } # ac_fn_c_check_func
1854 # ac_fn_cxx_try_compile LINENO
1855 # ----------------------------
1856 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1857 ac_fn_cxx_try_compile ()
1859 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1860 rm -f conftest.$ac_objext
1861 if { { ac_try="$ac_compile"
1862 case "(($ac_try" in
1863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1864 *) ac_try_echo=$ac_try;;
1865 esac
1866 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1867 $as_echo "$ac_try_echo"; } >&5
1868 (eval "$ac_compile") 2>conftest.err
1869 ac_status=$?
1870 if test -s conftest.err; then
1871 grep -v '^ *+' conftest.err >conftest.er1
1872 cat conftest.er1 >&5
1873 mv -f conftest.er1 conftest.err
1875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1876 test $ac_status = 0; } && {
1877 test -z "$ac_cxx_werror_flag" ||
1878 test ! -s conftest.err
1879 } && test -s conftest.$ac_objext; then :
1880 ac_retval=0
1881 else
1882 $as_echo "$as_me: failed program was:" >&5
1883 sed 's/^/| /' conftest.$ac_ext >&5
1885 ac_retval=1
1887 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1888 return $ac_retval
1890 } # ac_fn_cxx_try_compile
1892 # ac_fn_cxx_try_cpp LINENO
1893 # ------------------------
1894 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1895 ac_fn_cxx_try_cpp ()
1897 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1898 if { { ac_try="$ac_cpp conftest.$ac_ext"
1899 case "(($ac_try" in
1900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1901 *) ac_try_echo=$ac_try;;
1902 esac
1903 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1904 $as_echo "$ac_try_echo"; } >&5
1905 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1906 ac_status=$?
1907 if test -s conftest.err; then
1908 grep -v '^ *+' conftest.err >conftest.er1
1909 cat conftest.er1 >&5
1910 mv -f conftest.er1 conftest.err
1912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1913 test $ac_status = 0; } >/dev/null && {
1914 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1915 test ! -s conftest.err
1916 }; then :
1917 ac_retval=0
1918 else
1919 $as_echo "$as_me: failed program was:" >&5
1920 sed 's/^/| /' conftest.$ac_ext >&5
1922 ac_retval=1
1924 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1925 return $ac_retval
1927 } # ac_fn_cxx_try_cpp
1929 # ac_fn_cxx_try_link LINENO
1930 # -------------------------
1931 # Try to link conftest.$ac_ext, and return whether this succeeded.
1932 ac_fn_cxx_try_link ()
1934 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1935 rm -f conftest.$ac_objext conftest$ac_exeext
1936 if { { ac_try="$ac_link"
1937 case "(($ac_try" in
1938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1939 *) ac_try_echo=$ac_try;;
1940 esac
1941 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1942 $as_echo "$ac_try_echo"; } >&5
1943 (eval "$ac_link") 2>conftest.err
1944 ac_status=$?
1945 if test -s conftest.err; then
1946 grep -v '^ *+' conftest.err >conftest.er1
1947 cat conftest.er1 >&5
1948 mv -f conftest.er1 conftest.err
1950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1951 test $ac_status = 0; } && {
1952 test -z "$ac_cxx_werror_flag" ||
1953 test ! -s conftest.err
1954 } && test -s conftest$ac_exeext && {
1955 test "$cross_compiling" = yes ||
1956 $as_test_x conftest$ac_exeext
1957 }; then :
1958 ac_retval=0
1959 else
1960 $as_echo "$as_me: failed program was:" >&5
1961 sed 's/^/| /' conftest.$ac_ext >&5
1963 ac_retval=1
1965 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1966 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1967 # interfere with the next link command; also delete a directory that is
1968 # left behind by Apple's compiler. We do this before executing the actions.
1969 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1970 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1971 return $ac_retval
1973 } # ac_fn_cxx_try_link
1974 cat >config.log <<_ACEOF
1975 This file contains any messages produced by compilers while
1976 running configure, to aid debugging if configure makes a mistake.
1978 It was created by GNU Vtable Verification Runtime Library $as_me 1.0, which was
1979 generated by GNU Autoconf 2.64. Invocation command line was
1981 $ $0 $@
1983 _ACEOF
1984 exec 5>>config.log
1986 cat <<_ASUNAME
1987 ## --------- ##
1988 ## Platform. ##
1989 ## --------- ##
1991 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1992 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1993 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1994 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1995 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1997 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1998 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2000 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2001 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2002 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2003 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2004 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2005 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2006 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2008 _ASUNAME
2010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2011 for as_dir in $PATH
2013 IFS=$as_save_IFS
2014 test -z "$as_dir" && as_dir=.
2015 $as_echo "PATH: $as_dir"
2016 done
2017 IFS=$as_save_IFS
2019 } >&5
2021 cat >&5 <<_ACEOF
2024 ## ----------- ##
2025 ## Core tests. ##
2026 ## ----------- ##
2028 _ACEOF
2031 # Keep a trace of the command line.
2032 # Strip out --no-create and --no-recursion so they do not pile up.
2033 # Strip out --silent because we don't want to record it for future runs.
2034 # Also quote any args containing shell meta-characters.
2035 # Make two passes to allow for proper duplicate-argument suppression.
2036 ac_configure_args=
2037 ac_configure_args0=
2038 ac_configure_args1=
2039 ac_must_keep_next=false
2040 for ac_pass in 1 2
2042 for ac_arg
2044 case $ac_arg in
2045 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2046 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2047 | -silent | --silent | --silen | --sile | --sil)
2048 continue ;;
2049 *\'*)
2050 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2051 esac
2052 case $ac_pass in
2053 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2055 as_fn_append ac_configure_args1 " '$ac_arg'"
2056 if test $ac_must_keep_next = true; then
2057 ac_must_keep_next=false # Got value, back to normal.
2058 else
2059 case $ac_arg in
2060 *=* | --config-cache | -C | -disable-* | --disable-* \
2061 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2062 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2063 | -with-* | --with-* | -without-* | --without-* | --x)
2064 case "$ac_configure_args0 " in
2065 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2066 esac
2068 -* ) ac_must_keep_next=true ;;
2069 esac
2071 as_fn_append ac_configure_args " '$ac_arg'"
2073 esac
2074 done
2075 done
2076 { ac_configure_args0=; unset ac_configure_args0;}
2077 { ac_configure_args1=; unset ac_configure_args1;}
2079 # When interrupted or exit'd, cleanup temporary files, and complete
2080 # config.log. We remove comments because anyway the quotes in there
2081 # would cause problems or look ugly.
2082 # WARNING: Use '\'' to represent an apostrophe within the trap.
2083 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2084 trap 'exit_status=$?
2085 # Save into config.log some information that might help in debugging.
2087 echo
2089 cat <<\_ASBOX
2090 ## ---------------- ##
2091 ## Cache variables. ##
2092 ## ---------------- ##
2093 _ASBOX
2094 echo
2095 # The following way of writing the cache mishandles newlines in values,
2097 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2098 eval ac_val=\$$ac_var
2099 case $ac_val in #(
2100 *${as_nl}*)
2101 case $ac_var in #(
2102 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2103 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2104 esac
2105 case $ac_var in #(
2106 _ | IFS | as_nl) ;; #(
2107 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2108 *) { eval $ac_var=; unset $ac_var;} ;;
2109 esac ;;
2110 esac
2111 done
2112 (set) 2>&1 |
2113 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2114 *${as_nl}ac_space=\ *)
2115 sed -n \
2116 "s/'\''/'\''\\\\'\'''\''/g;
2117 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2118 ;; #(
2120 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2122 esac |
2123 sort
2125 echo
2127 cat <<\_ASBOX
2128 ## ----------------- ##
2129 ## Output variables. ##
2130 ## ----------------- ##
2131 _ASBOX
2132 echo
2133 for ac_var in $ac_subst_vars
2135 eval ac_val=\$$ac_var
2136 case $ac_val in
2137 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2138 esac
2139 $as_echo "$ac_var='\''$ac_val'\''"
2140 done | sort
2141 echo
2143 if test -n "$ac_subst_files"; then
2144 cat <<\_ASBOX
2145 ## ------------------- ##
2146 ## File substitutions. ##
2147 ## ------------------- ##
2148 _ASBOX
2149 echo
2150 for ac_var in $ac_subst_files
2152 eval ac_val=\$$ac_var
2153 case $ac_val in
2154 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2155 esac
2156 $as_echo "$ac_var='\''$ac_val'\''"
2157 done | sort
2158 echo
2161 if test -s confdefs.h; then
2162 cat <<\_ASBOX
2163 ## ----------- ##
2164 ## confdefs.h. ##
2165 ## ----------- ##
2166 _ASBOX
2167 echo
2168 cat confdefs.h
2169 echo
2171 test "$ac_signal" != 0 &&
2172 $as_echo "$as_me: caught signal $ac_signal"
2173 $as_echo "$as_me: exit $exit_status"
2174 } >&5
2175 rm -f core *.core core.conftest.* &&
2176 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2177 exit $exit_status
2179 for ac_signal in 1 2 13 15; do
2180 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2181 done
2182 ac_signal=0
2184 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2185 rm -f -r conftest* confdefs.h
2187 $as_echo "/* confdefs.h */" > confdefs.h
2189 # Predefined preprocessor variables.
2191 cat >>confdefs.h <<_ACEOF
2192 #define PACKAGE_NAME "$PACKAGE_NAME"
2193 _ACEOF
2195 cat >>confdefs.h <<_ACEOF
2196 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2197 _ACEOF
2199 cat >>confdefs.h <<_ACEOF
2200 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2201 _ACEOF
2203 cat >>confdefs.h <<_ACEOF
2204 #define PACKAGE_STRING "$PACKAGE_STRING"
2205 _ACEOF
2207 cat >>confdefs.h <<_ACEOF
2208 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2209 _ACEOF
2211 cat >>confdefs.h <<_ACEOF
2212 #define PACKAGE_URL "$PACKAGE_URL"
2213 _ACEOF
2216 # Let the site file select an alternate cache file if it wants to.
2217 # Prefer an explicitly selected file to automatically selected ones.
2218 ac_site_file1=NONE
2219 ac_site_file2=NONE
2220 if test -n "$CONFIG_SITE"; then
2221 ac_site_file1=$CONFIG_SITE
2222 elif test "x$prefix" != xNONE; then
2223 ac_site_file1=$prefix/share/config.site
2224 ac_site_file2=$prefix/etc/config.site
2225 else
2226 ac_site_file1=$ac_default_prefix/share/config.site
2227 ac_site_file2=$ac_default_prefix/etc/config.site
2229 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2231 test "x$ac_site_file" = xNONE && continue
2232 if test -r "$ac_site_file"; then
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2234 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2235 sed 's/^/| /' "$ac_site_file" >&5
2236 . "$ac_site_file"
2238 done
2240 if test -r "$cache_file"; then
2241 # Some versions of bash will fail to source /dev/null (special
2242 # files actually), so we avoid doing that.
2243 if test -f "$cache_file"; then
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2245 $as_echo "$as_me: loading cache $cache_file" >&6;}
2246 case $cache_file in
2247 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2248 *) . "./$cache_file";;
2249 esac
2251 else
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2253 $as_echo "$as_me: creating cache $cache_file" >&6;}
2254 >$cache_file
2257 # Check that the precious variables saved in the cache have kept the same
2258 # value.
2259 ac_cache_corrupted=false
2260 for ac_var in $ac_precious_vars; do
2261 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2262 eval ac_new_set=\$ac_env_${ac_var}_set
2263 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2264 eval ac_new_val=\$ac_env_${ac_var}_value
2265 case $ac_old_set,$ac_new_set in
2266 set,)
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2268 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2269 ac_cache_corrupted=: ;;
2270 ,set)
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2272 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2273 ac_cache_corrupted=: ;;
2274 ,);;
2276 if test "x$ac_old_val" != "x$ac_new_val"; then
2277 # differences in whitespace do not lead to failure.
2278 ac_old_val_w=`echo x $ac_old_val`
2279 ac_new_val_w=`echo x $ac_new_val`
2280 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2282 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2283 ac_cache_corrupted=:
2284 else
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2286 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2287 eval $ac_var=\$ac_old_val
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2290 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2292 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2293 fi;;
2294 esac
2295 # Pass precious variables to config.status.
2296 if test "$ac_new_set" = set; then
2297 case $ac_new_val in
2298 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2299 *) ac_arg=$ac_var=$ac_new_val ;;
2300 esac
2301 case " $ac_configure_args " in
2302 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2303 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2304 esac
2306 done
2307 if $ac_cache_corrupted; then
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2309 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2311 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2312 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2314 ## -------------------- ##
2315 ## Main body of script. ##
2316 ## -------------------- ##
2318 ac_ext=c
2319 ac_cpp='$CPP $CPPFLAGS'
2320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2328 #AC_INIT(package-unused, version-unused, libvtv)
2331 # -------
2332 # Options
2333 # -------
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2335 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2336 # Check whether --enable-version-specific-runtime-libs was given.
2337 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2338 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2339 yes) version_specific_libs=yes ;;
2340 no) version_specific_libs=no ;;
2341 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2342 esac
2343 else
2344 version_specific_libs=no
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2348 $as_echo "$version_specific_libs" >&6; }
2350 # Do not delete or change the following two lines. For why, see
2351 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2352 ac_aux_dir=
2353 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2354 for ac_t in install-sh install.sh shtool; do
2355 if test -f "$ac_dir/$ac_t"; then
2356 ac_aux_dir=$ac_dir
2357 ac_install_sh="$ac_aux_dir/$ac_t -c"
2358 break 2
2360 done
2361 done
2362 if test -z "$ac_aux_dir"; then
2363 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2366 # These three variables are undocumented and unsupported,
2367 # and are intended to be withdrawn in a future Autoconf release.
2368 # They can cause serious problems if a builder's source tree is in a directory
2369 # whose full name contains unusual characters.
2370 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2371 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2372 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2375 # Make sure we can run config.sub.
2376 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2377 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2380 $as_echo_n "checking build system type... " >&6; }
2381 if test "${ac_cv_build+set}" = set; then :
2382 $as_echo_n "(cached) " >&6
2383 else
2384 ac_build_alias=$build_alias
2385 test "x$ac_build_alias" = x &&
2386 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2387 test "x$ac_build_alias" = x &&
2388 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2389 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2390 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2394 $as_echo "$ac_cv_build" >&6; }
2395 case $ac_cv_build in
2396 *-*-*) ;;
2397 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2398 esac
2399 build=$ac_cv_build
2400 ac_save_IFS=$IFS; IFS='-'
2401 set x $ac_cv_build
2402 shift
2403 build_cpu=$1
2404 build_vendor=$2
2405 shift; shift
2406 # Remember, the first character of IFS is used to create $*,
2407 # except with old shells:
2408 build_os=$*
2409 IFS=$ac_save_IFS
2410 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2414 $as_echo_n "checking host system type... " >&6; }
2415 if test "${ac_cv_host+set}" = set; then :
2416 $as_echo_n "(cached) " >&6
2417 else
2418 if test "x$host_alias" = x; then
2419 ac_cv_host=$ac_cv_build
2420 else
2421 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2422 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2427 $as_echo "$ac_cv_host" >&6; }
2428 case $ac_cv_host in
2429 *-*-*) ;;
2430 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2431 esac
2432 host=$ac_cv_host
2433 ac_save_IFS=$IFS; IFS='-'
2434 set x $ac_cv_host
2435 shift
2436 host_cpu=$1
2437 host_vendor=$2
2438 shift; shift
2439 # Remember, the first character of IFS is used to create $*,
2440 # except with old shells:
2441 host_os=$*
2442 IFS=$ac_save_IFS
2443 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2447 $as_echo_n "checking target system type... " >&6; }
2448 if test "${ac_cv_target+set}" = set; then :
2449 $as_echo_n "(cached) " >&6
2450 else
2451 if test "x$target_alias" = x; then
2452 ac_cv_target=$ac_cv_host
2453 else
2454 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2455 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2460 $as_echo "$ac_cv_target" >&6; }
2461 case $ac_cv_target in
2462 *-*-*) ;;
2463 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2464 esac
2465 target=$ac_cv_target
2466 ac_save_IFS=$IFS; IFS='-'
2467 set x $ac_cv_target
2468 shift
2469 target_cpu=$1
2470 target_vendor=$2
2471 shift; shift
2472 # Remember, the first character of IFS is used to create $*,
2473 # except with old shells:
2474 target_os=$*
2475 IFS=$ac_save_IFS
2476 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2479 # The aliases save the names the user supplied, while $host etc.
2480 # will get canonicalized.
2481 test -n "$target_alias" &&
2482 test "$program_prefix$program_suffix$program_transform_name" = \
2483 NONENONEs,x,x, &&
2484 program_prefix=${target_alias}-
2486 target_alias=${target_alias-$host_alias}
2488 case ${build_alias} in
2489 "") build_noncanonical=${build} ;;
2490 *) build_noncanonical=${build_alias} ;;
2491 esac
2493 case ${host_alias} in
2494 "") host_noncanonical=${build_noncanonical} ;;
2495 *) host_noncanonical=${host_alias} ;;
2496 esac
2498 case ${target_alias} in
2499 "") target_noncanonical=${host_noncanonical} ;;
2500 *) target_noncanonical=${target_alias} ;;
2501 esac
2507 LIBSTDCXX_RAW_CXX_CXXFLAGS="\
2508 -I\$(top_builddir)/../libstdc++-v3/include \
2509 -I\$(top_builddir)/../libstdc++-v3/include/\$(target_noncanonical) \
2510 -I\$(top_srcdir)/../libstdc++-v3/libsupc++"
2511 LIBSTDCXX_RAW_CXX_LDFLAGS="\
2512 \$(top_builddir)/../libstdc++-v3/src/libstdc++.la"
2517 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
2519 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
2520 # Check whether --enable-vtable-verify was given.
2521 if test "${enable_vtable_verify+set}" = set; then :
2522 enableval=$enable_vtable_verify; case "$enableval" in
2523 yes) enable_vtable_verify=yes ;;
2524 no) enable_vtable_verify=no ;;
2525 *) enable_vtable_verify=no;;
2526 esac
2527 else
2528 enable_vtable_verify=no
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
2532 $as_echo "$enable_vtable_verify" >&6; }
2534 # See if supported.
2535 unset VTV_SUPPORTED
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for host support for vtable verification" >&5
2537 $as_echo_n "checking for host support for vtable verification... " >&6; }
2538 . ${srcdir}/configure.tgt
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VTV_SUPPORTED" >&5
2540 $as_echo "$VTV_SUPPORTED" >&6; }
2542 # Decide if it's usable.
2543 use_vtable_verify=no
2544 if test "x$VTV_SUPPORTED" = "xyes"; then
2545 if test "x$enable_vtable_verify" = "xyes"; then
2546 use_vtable_verify=yes
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: using vtable verification" >&5
2548 $as_echo "$as_me: using vtable verification" >&6;}
2551 if test $use_vtable_verify = yes; then
2552 ENABLE_VTABLE_VERIFY_TRUE=
2553 ENABLE_VTABLE_VERIFY_FALSE='#'
2554 else
2555 ENABLE_VTABLE_VERIFY_TRUE='#'
2556 ENABLE_VTABLE_VERIFY_FALSE=
2560 am__api_version='1.11'
2562 # Find a good install program. We prefer a C program (faster),
2563 # so one script is as good as another. But avoid the broken or
2564 # incompatible versions:
2565 # SysV /etc/install, /usr/sbin/install
2566 # SunOS /usr/etc/install
2567 # IRIX /sbin/install
2568 # AIX /bin/install
2569 # AmigaOS /C/install, which installs bootblocks on floppy discs
2570 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2571 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2572 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2573 # OS/2's system install, which has a completely different semantic
2574 # ./install, which can be erroneously created by make from ./install.sh.
2575 # Reject install programs that cannot install multiple files.
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2577 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2578 if test -z "$INSTALL"; then
2579 if test "${ac_cv_path_install+set}" = set; then :
2580 $as_echo_n "(cached) " >&6
2581 else
2582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2583 for as_dir in $PATH
2585 IFS=$as_save_IFS
2586 test -z "$as_dir" && as_dir=.
2587 # Account for people who put trailing slashes in PATH elements.
2588 case $as_dir/ in #((
2589 ./ | .// | /[cC]/* | \
2590 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2591 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2592 /usr/ucb/* ) ;;
2594 # OSF1 and SCO ODT 3.0 have their own names for install.
2595 # Don't use installbsd from OSF since it installs stuff as root
2596 # by default.
2597 for ac_prog in ginstall scoinst install; do
2598 for ac_exec_ext in '' $ac_executable_extensions; do
2599 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2600 if test $ac_prog = install &&
2601 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2602 # AIX install. It has an incompatible calling convention.
2604 elif test $ac_prog = install &&
2605 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2606 # program-specific install script used by HP pwplus--don't use.
2608 else
2609 rm -rf conftest.one conftest.two conftest.dir
2610 echo one > conftest.one
2611 echo two > conftest.two
2612 mkdir conftest.dir
2613 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2614 test -s conftest.one && test -s conftest.two &&
2615 test -s conftest.dir/conftest.one &&
2616 test -s conftest.dir/conftest.two
2617 then
2618 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2619 break 3
2623 done
2624 done
2626 esac
2628 done
2629 IFS=$as_save_IFS
2631 rm -rf conftest.one conftest.two conftest.dir
2634 if test "${ac_cv_path_install+set}" = set; then
2635 INSTALL=$ac_cv_path_install
2636 else
2637 # As a last resort, use the slow shell script. Don't cache a
2638 # value for INSTALL within a source directory, because that will
2639 # break other packages using the cache if that directory is
2640 # removed, or if the value is a relative name.
2641 INSTALL=$ac_install_sh
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2645 $as_echo "$INSTALL" >&6; }
2647 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2648 # It thinks the first close brace ends the variable substitution.
2649 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2651 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2653 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2656 $as_echo_n "checking whether build environment is sane... " >&6; }
2657 # Just in case
2658 sleep 1
2659 echo timestamp > conftest.file
2660 # Reject unsafe characters in $srcdir or the absolute working directory
2661 # name. Accept space and tab only in the latter.
2662 am_lf='
2664 case `pwd` in
2665 *[\\\"\#\$\&\'\`$am_lf]*)
2666 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2667 esac
2668 case $srcdir in
2669 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2670 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2671 esac
2673 # Do `set' in a subshell so we don't clobber the current shell's
2674 # arguments. Must try -L first in case configure is actually a
2675 # symlink; some systems play weird games with the mod time of symlinks
2676 # (eg FreeBSD returns the mod time of the symlink's containing
2677 # directory).
2678 if (
2679 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2680 if test "$*" = "X"; then
2681 # -L didn't work.
2682 set X `ls -t "$srcdir/configure" conftest.file`
2684 rm -f conftest.file
2685 if test "$*" != "X $srcdir/configure conftest.file" \
2686 && test "$*" != "X conftest.file $srcdir/configure"; then
2688 # If neither matched, then we have a broken ls. This can happen
2689 # if, for instance, CONFIG_SHELL is bash and it inherits a
2690 # broken ls alias from the environment. This has actually
2691 # happened. Such a system could not be considered "sane".
2692 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2693 alias in your environment" "$LINENO" 5
2696 test "$2" = conftest.file
2698 then
2699 # Ok.
2701 else
2702 as_fn_error "newly created file is older than distributed files!
2703 Check your system clock" "$LINENO" 5
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2706 $as_echo "yes" >&6; }
2707 test "$program_prefix" != NONE &&
2708 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2709 # Use a double $ so make ignores it.
2710 test "$program_suffix" != NONE &&
2711 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2712 # Double any \ or $.
2713 # By default was `s,x,x', remove it if useless.
2714 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2715 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2717 # expand $ac_aux_dir to an absolute path
2718 am_aux_dir=`cd $ac_aux_dir && pwd`
2720 if test x"${MISSING+set}" != xset; then
2721 case $am_aux_dir in
2722 *\ * | *\ *)
2723 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2725 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2726 esac
2728 # Use eval to expand $SHELL
2729 if eval "$MISSING --run true"; then
2730 am_missing_run="$MISSING --run "
2731 else
2732 am_missing_run=
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2734 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2737 if test x"${install_sh}" != xset; then
2738 case $am_aux_dir in
2739 *\ * | *\ *)
2740 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2742 install_sh="\${SHELL} $am_aux_dir/install-sh"
2743 esac
2746 # Installed binaries are usually stripped using `strip' when the user
2747 # run `make install-strip'. However `strip' might not be the right
2748 # tool to use in cross-compilation environments, therefore Automake
2749 # will honor the `STRIP' environment variable to overrule this program.
2750 if test "$cross_compiling" != no; then
2751 if test -n "$ac_tool_prefix"; then
2752 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2753 set dummy ${ac_tool_prefix}strip; 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 test "${ac_cv_prog_STRIP+set}" = set; then :
2757 $as_echo_n "(cached) " >&6
2758 else
2759 if test -n "$STRIP"; then
2760 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2761 else
2762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2763 for as_dir in $PATH
2765 IFS=$as_save_IFS
2766 test -z "$as_dir" && as_dir=.
2767 for ac_exec_ext in '' $ac_executable_extensions; do
2768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2769 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2771 break 2
2773 done
2774 done
2775 IFS=$as_save_IFS
2779 STRIP=$ac_cv_prog_STRIP
2780 if test -n "$STRIP"; then
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2782 $as_echo "$STRIP" >&6; }
2783 else
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2785 $as_echo "no" >&6; }
2790 if test -z "$ac_cv_prog_STRIP"; then
2791 ac_ct_STRIP=$STRIP
2792 # Extract the first word of "strip", so it can be a program name with args.
2793 set dummy strip; ac_word=$2
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2795 $as_echo_n "checking for $ac_word... " >&6; }
2796 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2797 $as_echo_n "(cached) " >&6
2798 else
2799 if test -n "$ac_ct_STRIP"; then
2800 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2801 else
2802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2803 for as_dir in $PATH
2805 IFS=$as_save_IFS
2806 test -z "$as_dir" && as_dir=.
2807 for ac_exec_ext in '' $ac_executable_extensions; do
2808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2809 ac_cv_prog_ac_ct_STRIP="strip"
2810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2811 break 2
2813 done
2814 done
2815 IFS=$as_save_IFS
2819 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2820 if test -n "$ac_ct_STRIP"; then
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2822 $as_echo "$ac_ct_STRIP" >&6; }
2823 else
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2825 $as_echo "no" >&6; }
2828 if test "x$ac_ct_STRIP" = x; then
2829 STRIP=":"
2830 else
2831 case $cross_compiling:$ac_tool_warned in
2832 yes:)
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2834 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2835 ac_tool_warned=yes ;;
2836 esac
2837 STRIP=$ac_ct_STRIP
2839 else
2840 STRIP="$ac_cv_prog_STRIP"
2844 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2847 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2848 if test -z "$MKDIR_P"; then
2849 if test "${ac_cv_path_mkdir+set}" = set; then :
2850 $as_echo_n "(cached) " >&6
2851 else
2852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2853 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2855 IFS=$as_save_IFS
2856 test -z "$as_dir" && as_dir=.
2857 for ac_prog in mkdir gmkdir; do
2858 for ac_exec_ext in '' $ac_executable_extensions; do
2859 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2860 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2861 'mkdir (GNU coreutils) '* | \
2862 'mkdir (coreutils) '* | \
2863 'mkdir (fileutils) '4.1*)
2864 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2865 break 3;;
2866 esac
2867 done
2868 done
2869 done
2870 IFS=$as_save_IFS
2874 if test "${ac_cv_path_mkdir+set}" = set; then
2875 MKDIR_P="$ac_cv_path_mkdir -p"
2876 else
2877 # As a last resort, use the slow shell script. Don't cache a
2878 # value for MKDIR_P within a source directory, because that will
2879 # break other packages using the cache if that directory is
2880 # removed, or if the value is a relative name.
2881 test -d ./--version && rmdir ./--version
2882 MKDIR_P="$ac_install_sh -d"
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2886 $as_echo "$MKDIR_P" >&6; }
2888 mkdir_p="$MKDIR_P"
2889 case $mkdir_p in
2890 [\\/$]* | ?:[\\/]*) ;;
2891 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2892 esac
2894 for ac_prog in gawk mawk nawk awk
2896 # Extract the first word of "$ac_prog", so it can be a program name with args.
2897 set dummy $ac_prog; ac_word=$2
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2899 $as_echo_n "checking for $ac_word... " >&6; }
2900 if test "${ac_cv_prog_AWK+set}" = set; then :
2901 $as_echo_n "(cached) " >&6
2902 else
2903 if test -n "$AWK"; then
2904 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2905 else
2906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2907 for as_dir in $PATH
2909 IFS=$as_save_IFS
2910 test -z "$as_dir" && as_dir=.
2911 for ac_exec_ext in '' $ac_executable_extensions; do
2912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2913 ac_cv_prog_AWK="$ac_prog"
2914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2915 break 2
2917 done
2918 done
2919 IFS=$as_save_IFS
2923 AWK=$ac_cv_prog_AWK
2924 if test -n "$AWK"; then
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2926 $as_echo "$AWK" >&6; }
2927 else
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2929 $as_echo "no" >&6; }
2933 test -n "$AWK" && break
2934 done
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2937 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2938 set x ${MAKE-make}
2939 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2940 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2941 $as_echo_n "(cached) " >&6
2942 else
2943 cat >conftest.make <<\_ACEOF
2944 SHELL = /bin/sh
2945 all:
2946 @echo '@@@%%%=$(MAKE)=@@@%%%'
2947 _ACEOF
2948 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2949 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2950 *@@@%%%=?*=@@@%%%*)
2951 eval ac_cv_prog_make_${ac_make}_set=yes;;
2953 eval ac_cv_prog_make_${ac_make}_set=no;;
2954 esac
2955 rm -f conftest.make
2957 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2959 $as_echo "yes" >&6; }
2960 SET_MAKE=
2961 else
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2963 $as_echo "no" >&6; }
2964 SET_MAKE="MAKE=${MAKE-make}"
2967 rm -rf .tst 2>/dev/null
2968 mkdir .tst 2>/dev/null
2969 if test -d .tst; then
2970 am__leading_dot=.
2971 else
2972 am__leading_dot=_
2974 rmdir .tst 2>/dev/null
2976 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2977 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2978 # is not polluted with repeated "-I."
2979 am__isrc=' -I$(srcdir)'
2980 # test to see if srcdir already configured
2981 if test -f $srcdir/config.status; then
2982 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2986 # test whether we have cygpath
2987 if test -z "$CYGPATH_W"; then
2988 if (cygpath --version) >/dev/null 2>/dev/null; then
2989 CYGPATH_W='cygpath -w'
2990 else
2991 CYGPATH_W=echo
2996 # Define the identity of the package.
2997 PACKAGE='libvtv'
2998 VERSION='1.0'
3001 cat >>confdefs.h <<_ACEOF
3002 #define PACKAGE "$PACKAGE"
3003 _ACEOF
3006 cat >>confdefs.h <<_ACEOF
3007 #define VERSION "$VERSION"
3008 _ACEOF
3010 # Some tools Automake needs.
3012 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3015 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3018 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3021 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3024 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3026 # We need awk for the "check" target. The system "awk" is bad on
3027 # some platforms.
3028 # Always define AMTAR for backward compatibility. Yes, it's still used
3029 # in the wild :-( We should find a proper way to deprecate it ...
3030 AMTAR='$${TAR-tar}'
3032 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3038 # Default to --enable-multilib
3039 # Check whether --enable-multilib was given.
3040 if test "${enable_multilib+set}" = set; then :
3041 enableval=$enable_multilib; case "$enableval" in
3042 yes) multilib=yes ;;
3043 no) multilib=no ;;
3044 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3045 esac
3046 else
3047 multilib=yes
3051 # We may get other options which we leave undocumented:
3052 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3053 # See config-ml.in if you want the gory details.
3055 if test "$srcdir" = "."; then
3056 if test "$with_target_subdir" != "."; then
3057 multi_basedir="$srcdir/$with_multisrctop../.."
3058 else
3059 multi_basedir="$srcdir/$with_multisrctop.."
3061 else
3062 multi_basedir="$srcdir/.."
3066 # Even if the default multilib is not a cross compilation,
3067 # it may be that some of the other multilibs are.
3068 if test $cross_compiling = no && test $multilib = yes \
3069 && test "x${with_multisubdir}" != x ; then
3070 cross_compiling=maybe
3073 ac_config_commands="$ac_config_commands default-1"
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3077 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3078 # Check whether --enable-maintainer-mode was given.
3079 if test "${enable_maintainer_mode+set}" = set; then :
3080 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3081 else
3082 USE_MAINTAINER_MODE=no
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3086 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3087 if test $USE_MAINTAINER_MODE = yes; then
3088 MAINTAINER_MODE_TRUE=
3089 MAINTAINER_MODE_FALSE='#'
3090 else
3091 MAINTAINER_MODE_TRUE='#'
3092 MAINTAINER_MODE_FALSE=
3095 MAINT=$MAINTAINER_MODE_TRUE
3101 # These need to be absolute paths, yet at the same time need to
3102 # canonicalize only relative paths, because then amd will not unmount
3103 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
3104 libvtv_builddir=`${PWDCMD-pwd}`
3105 case $srcdir in
3106 \\/$* | ?:\\/*) libvtv_srcdir=${srcdir} ;;
3107 *) libvtv_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
3108 esac
3109 toplevel_builddir=${libvtv_builddir}/..
3110 toplevel_srcdir=${libvtv_srcdir}/..
3117 # Calculate toolexeclibdir
3118 # Also toolexecdir, though it's only used in toolexeclibdir
3119 case ${version_specific_libs} in
3120 yes)
3121 # Need the gcc compiler version to know where to install libraries
3122 # and header files if --enable-version-specific-runtime-libs option
3123 # is selected.
3124 toolexecdir='$(libdir)/gcc/$(target_alias)'
3125 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
3128 if test -n "$with_cross_host" &&
3129 test x"$with_cross_host" != x"no"; then
3130 # Install a library built with a cross compiler in tooldir, not libdir.
3131 toolexecdir='$(exec_prefix)/$(target_alias)'
3132 toolexeclibdir='$(toolexecdir)/lib'
3133 else
3134 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
3135 toolexeclibdir='$(libdir)'
3137 multi_os_directory=`$CC -print-multi-os-directory`
3138 case $multi_os_directory in
3139 .) ;; # Avoid trailing /.
3140 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
3141 esac
3143 esac
3147 DEPDIR="${am__leading_dot}deps"
3149 ac_config_commands="$ac_config_commands depfiles"
3152 am_make=${MAKE-make}
3153 cat > confinc << 'END'
3154 am__doit:
3155 @echo this is the am__doit target
3156 .PHONY: am__doit
3158 # If we don't find an include directive, just comment out the code.
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3160 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3161 am__include="#"
3162 am__quote=
3163 _am_result=none
3164 # First try GNU make style include.
3165 echo "include confinc" > confmf
3166 # Ignore all kinds of additional output from `make'.
3167 case `$am_make -s -f confmf 2> /dev/null` in #(
3168 *the\ am__doit\ target*)
3169 am__include=include
3170 am__quote=
3171 _am_result=GNU
3173 esac
3174 # Now try BSD make style include.
3175 if test "$am__include" = "#"; then
3176 echo '.include "confinc"' > confmf
3177 case `$am_make -s -f confmf 2> /dev/null` in #(
3178 *the\ am__doit\ target*)
3179 am__include=.include
3180 am__quote="\""
3181 _am_result=BSD
3183 esac
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3188 $as_echo "$_am_result" >&6; }
3189 rm -f confinc confmf
3191 # Check whether --enable-dependency-tracking was given.
3192 if test "${enable_dependency_tracking+set}" = set; then :
3193 enableval=$enable_dependency_tracking;
3196 if test "x$enable_dependency_tracking" != xno; then
3197 am_depcomp="$ac_aux_dir/depcomp"
3198 AMDEPBACKSLASH='\'
3199 am__nodep='_no'
3201 if test "x$enable_dependency_tracking" != xno; then
3202 AMDEP_TRUE=
3203 AMDEP_FALSE='#'
3204 else
3205 AMDEP_TRUE='#'
3206 AMDEP_FALSE=
3210 ac_ext=c
3211 ac_cpp='$CPP $CPPFLAGS'
3212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3215 if test -n "$ac_tool_prefix"; then
3216 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3217 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3219 $as_echo_n "checking for $ac_word... " >&6; }
3220 if test "${ac_cv_prog_CC+set}" = set; then :
3221 $as_echo_n "(cached) " >&6
3222 else
3223 if test -n "$CC"; then
3224 ac_cv_prog_CC="$CC" # Let the user override the test.
3225 else
3226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3227 for as_dir in $PATH
3229 IFS=$as_save_IFS
3230 test -z "$as_dir" && as_dir=.
3231 for ac_exec_ext in '' $ac_executable_extensions; do
3232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3233 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3235 break 2
3237 done
3238 done
3239 IFS=$as_save_IFS
3243 CC=$ac_cv_prog_CC
3244 if test -n "$CC"; then
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3246 $as_echo "$CC" >&6; }
3247 else
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3249 $as_echo "no" >&6; }
3254 if test -z "$ac_cv_prog_CC"; then
3255 ac_ct_CC=$CC
3256 # Extract the first word of "gcc", so it can be a program name with args.
3257 set dummy gcc; ac_word=$2
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3259 $as_echo_n "checking for $ac_word... " >&6; }
3260 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3261 $as_echo_n "(cached) " >&6
3262 else
3263 if test -n "$ac_ct_CC"; then
3264 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3265 else
3266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3267 for as_dir in $PATH
3269 IFS=$as_save_IFS
3270 test -z "$as_dir" && as_dir=.
3271 for ac_exec_ext in '' $ac_executable_extensions; do
3272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3273 ac_cv_prog_ac_ct_CC="gcc"
3274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3275 break 2
3277 done
3278 done
3279 IFS=$as_save_IFS
3283 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3284 if test -n "$ac_ct_CC"; then
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3286 $as_echo "$ac_ct_CC" >&6; }
3287 else
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3289 $as_echo "no" >&6; }
3292 if test "x$ac_ct_CC" = x; then
3293 CC=""
3294 else
3295 case $cross_compiling:$ac_tool_warned in
3296 yes:)
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3298 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3299 ac_tool_warned=yes ;;
3300 esac
3301 CC=$ac_ct_CC
3303 else
3304 CC="$ac_cv_prog_CC"
3307 if test -z "$CC"; then
3308 if test -n "$ac_tool_prefix"; then
3309 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3310 set dummy ${ac_tool_prefix}cc; ac_word=$2
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3312 $as_echo_n "checking for $ac_word... " >&6; }
3313 if test "${ac_cv_prog_CC+set}" = set; then :
3314 $as_echo_n "(cached) " >&6
3315 else
3316 if test -n "$CC"; then
3317 ac_cv_prog_CC="$CC" # Let the user override the test.
3318 else
3319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3320 for as_dir in $PATH
3322 IFS=$as_save_IFS
3323 test -z "$as_dir" && as_dir=.
3324 for ac_exec_ext in '' $ac_executable_extensions; do
3325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3326 ac_cv_prog_CC="${ac_tool_prefix}cc"
3327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3328 break 2
3330 done
3331 done
3332 IFS=$as_save_IFS
3336 CC=$ac_cv_prog_CC
3337 if test -n "$CC"; then
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3339 $as_echo "$CC" >&6; }
3340 else
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3342 $as_echo "no" >&6; }
3348 if test -z "$CC"; then
3349 # Extract the first word of "cc", so it can be a program name with args.
3350 set dummy cc; ac_word=$2
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3352 $as_echo_n "checking for $ac_word... " >&6; }
3353 if test "${ac_cv_prog_CC+set}" = set; then :
3354 $as_echo_n "(cached) " >&6
3355 else
3356 if test -n "$CC"; then
3357 ac_cv_prog_CC="$CC" # Let the user override the test.
3358 else
3359 ac_prog_rejected=no
3360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3361 for as_dir in $PATH
3363 IFS=$as_save_IFS
3364 test -z "$as_dir" && as_dir=.
3365 for ac_exec_ext in '' $ac_executable_extensions; do
3366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3367 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3368 ac_prog_rejected=yes
3369 continue
3371 ac_cv_prog_CC="cc"
3372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3373 break 2
3375 done
3376 done
3377 IFS=$as_save_IFS
3379 if test $ac_prog_rejected = yes; then
3380 # We found a bogon in the path, so make sure we never use it.
3381 set dummy $ac_cv_prog_CC
3382 shift
3383 if test $# != 0; then
3384 # We chose a different compiler from the bogus one.
3385 # However, it has the same basename, so the bogon will be chosen
3386 # first if we set CC to just the basename; use the full file name.
3387 shift
3388 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3393 CC=$ac_cv_prog_CC
3394 if test -n "$CC"; then
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3396 $as_echo "$CC" >&6; }
3397 else
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3399 $as_echo "no" >&6; }
3404 if test -z "$CC"; then
3405 if test -n "$ac_tool_prefix"; then
3406 for ac_prog in cl.exe
3408 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3409 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3411 $as_echo_n "checking for $ac_word... " >&6; }
3412 if test "${ac_cv_prog_CC+set}" = set; then :
3413 $as_echo_n "(cached) " >&6
3414 else
3415 if test -n "$CC"; then
3416 ac_cv_prog_CC="$CC" # Let the user override the test.
3417 else
3418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3419 for as_dir in $PATH
3421 IFS=$as_save_IFS
3422 test -z "$as_dir" && as_dir=.
3423 for ac_exec_ext in '' $ac_executable_extensions; do
3424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3425 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3427 break 2
3429 done
3430 done
3431 IFS=$as_save_IFS
3435 CC=$ac_cv_prog_CC
3436 if test -n "$CC"; then
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3438 $as_echo "$CC" >&6; }
3439 else
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3441 $as_echo "no" >&6; }
3445 test -n "$CC" && break
3446 done
3448 if test -z "$CC"; then
3449 ac_ct_CC=$CC
3450 for ac_prog in cl.exe
3452 # Extract the first word of "$ac_prog", so it can be a program name with args.
3453 set dummy $ac_prog; ac_word=$2
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3455 $as_echo_n "checking for $ac_word... " >&6; }
3456 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3457 $as_echo_n "(cached) " >&6
3458 else
3459 if test -n "$ac_ct_CC"; then
3460 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3461 else
3462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3463 for as_dir in $PATH
3465 IFS=$as_save_IFS
3466 test -z "$as_dir" && as_dir=.
3467 for ac_exec_ext in '' $ac_executable_extensions; do
3468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3469 ac_cv_prog_ac_ct_CC="$ac_prog"
3470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3471 break 2
3473 done
3474 done
3475 IFS=$as_save_IFS
3479 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3480 if test -n "$ac_ct_CC"; then
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3482 $as_echo "$ac_ct_CC" >&6; }
3483 else
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3485 $as_echo "no" >&6; }
3489 test -n "$ac_ct_CC" && break
3490 done
3492 if test "x$ac_ct_CC" = x; then
3493 CC=""
3494 else
3495 case $cross_compiling:$ac_tool_warned in
3496 yes:)
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3498 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3499 ac_tool_warned=yes ;;
3500 esac
3501 CC=$ac_ct_CC
3508 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3509 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3510 as_fn_error "no acceptable C compiler found in \$PATH
3511 See \`config.log' for more details." "$LINENO" 5; }
3513 # Provide some information about the compiler.
3514 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3515 set X $ac_compile
3516 ac_compiler=$2
3517 for ac_option in --version -v -V -qversion; do
3518 { { ac_try="$ac_compiler $ac_option >&5"
3519 case "(($ac_try" in
3520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3521 *) ac_try_echo=$ac_try;;
3522 esac
3523 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3524 $as_echo "$ac_try_echo"; } >&5
3525 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3526 ac_status=$?
3527 if test -s conftest.err; then
3528 sed '10a\
3529 ... rest of stderr output deleted ...
3530 10q' conftest.err >conftest.er1
3531 cat conftest.er1 >&5
3532 rm -f conftest.er1 conftest.err
3534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3535 test $ac_status = 0; }
3536 done
3538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3539 /* end confdefs.h. */
3542 main ()
3546 return 0;
3548 _ACEOF
3549 ac_clean_files_save=$ac_clean_files
3550 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3551 # Try to create an executable without -o first, disregard a.out.
3552 # It will help us diagnose broken compilers, and finding out an intuition
3553 # of exeext.
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3555 $as_echo_n "checking for C compiler default output file name... " >&6; }
3556 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3558 # The possible output files:
3559 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3561 ac_rmfiles=
3562 for ac_file in $ac_files
3564 case $ac_file in
3565 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3566 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3567 esac
3568 done
3569 rm -f $ac_rmfiles
3571 if { { ac_try="$ac_link_default"
3572 case "(($ac_try" in
3573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3574 *) ac_try_echo=$ac_try;;
3575 esac
3576 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3577 $as_echo "$ac_try_echo"; } >&5
3578 (eval "$ac_link_default") 2>&5
3579 ac_status=$?
3580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3581 test $ac_status = 0; }; then :
3582 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3583 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3584 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3585 # so that the user can short-circuit this test for compilers unknown to
3586 # Autoconf.
3587 for ac_file in $ac_files ''
3589 test -f "$ac_file" || continue
3590 case $ac_file in
3591 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3593 [ab].out )
3594 # We found the default executable, but exeext='' is most
3595 # certainly right.
3596 break;;
3597 *.* )
3598 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3599 then :; else
3600 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3602 # We set ac_cv_exeext here because the later test for it is not
3603 # safe: cross compilers may not add the suffix if given an `-o'
3604 # argument, so we may need to know it at that point already.
3605 # Even if this section looks crufty: it has the advantage of
3606 # actually working.
3607 break;;
3609 break;;
3610 esac
3611 done
3612 test "$ac_cv_exeext" = no && ac_cv_exeext=
3614 else
3615 ac_file=''
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3618 $as_echo "$ac_file" >&6; }
3619 if test -z "$ac_file"; then :
3620 $as_echo "$as_me: failed program was:" >&5
3621 sed 's/^/| /' conftest.$ac_ext >&5
3623 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3624 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3625 { as_fn_set_status 77
3626 as_fn_error "C compiler cannot create executables
3627 See \`config.log' for more details." "$LINENO" 5; }; }
3629 ac_exeext=$ac_cv_exeext
3631 # Check that the compiler produces executables we can run. If not, either
3632 # the compiler is broken, or we cross compile.
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3634 $as_echo_n "checking whether the C compiler works... " >&6; }
3635 # If not cross compiling, check that we can run a simple program.
3636 if test "$cross_compiling" != yes; then
3637 if { ac_try='./$ac_file'
3638 { { case "(($ac_try" in
3639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3640 *) ac_try_echo=$ac_try;;
3641 esac
3642 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3643 $as_echo "$ac_try_echo"; } >&5
3644 (eval "$ac_try") 2>&5
3645 ac_status=$?
3646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3647 test $ac_status = 0; }; }; then
3648 cross_compiling=no
3649 else
3650 if test "$cross_compiling" = maybe; then
3651 cross_compiling=yes
3652 else
3653 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3654 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3655 as_fn_error "cannot run C compiled programs.
3656 If you meant to cross compile, use \`--host'.
3657 See \`config.log' for more details." "$LINENO" 5; }
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3662 $as_echo "yes" >&6; }
3664 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3665 ac_clean_files=$ac_clean_files_save
3666 # Check that the compiler produces executables we can run. If not, either
3667 # the compiler is broken, or we cross compile.
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3669 $as_echo_n "checking whether we are cross compiling... " >&6; }
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3671 $as_echo "$cross_compiling" >&6; }
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3674 $as_echo_n "checking for suffix of executables... " >&6; }
3675 if { { ac_try="$ac_link"
3676 case "(($ac_try" in
3677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3678 *) ac_try_echo=$ac_try;;
3679 esac
3680 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3681 $as_echo "$ac_try_echo"; } >&5
3682 (eval "$ac_link") 2>&5
3683 ac_status=$?
3684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3685 test $ac_status = 0; }; then :
3686 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3687 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3688 # work properly (i.e., refer to `conftest.exe'), while it won't with
3689 # `rm'.
3690 for ac_file in conftest.exe conftest conftest.*; do
3691 test -f "$ac_file" || continue
3692 case $ac_file in
3693 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3694 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3695 break;;
3696 * ) break;;
3697 esac
3698 done
3699 else
3700 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3701 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3702 as_fn_error "cannot compute suffix of executables: cannot compile and link
3703 See \`config.log' for more details." "$LINENO" 5; }
3705 rm -f conftest$ac_cv_exeext
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3707 $as_echo "$ac_cv_exeext" >&6; }
3709 rm -f conftest.$ac_ext
3710 EXEEXT=$ac_cv_exeext
3711 ac_exeext=$EXEEXT
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3713 $as_echo_n "checking for suffix of object files... " >&6; }
3714 if test "${ac_cv_objext+set}" = set; then :
3715 $as_echo_n "(cached) " >&6
3716 else
3717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3718 /* end confdefs.h. */
3721 main ()
3725 return 0;
3727 _ACEOF
3728 rm -f conftest.o conftest.obj
3729 if { { ac_try="$ac_compile"
3730 case "(($ac_try" in
3731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3732 *) ac_try_echo=$ac_try;;
3733 esac
3734 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3735 $as_echo "$ac_try_echo"; } >&5
3736 (eval "$ac_compile") 2>&5
3737 ac_status=$?
3738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3739 test $ac_status = 0; }; then :
3740 for ac_file in conftest.o conftest.obj conftest.*; do
3741 test -f "$ac_file" || continue;
3742 case $ac_file in
3743 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3744 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3745 break;;
3746 esac
3747 done
3748 else
3749 $as_echo "$as_me: failed program was:" >&5
3750 sed 's/^/| /' conftest.$ac_ext >&5
3752 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3753 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3754 as_fn_error "cannot compute suffix of object files: cannot compile
3755 See \`config.log' for more details." "$LINENO" 5; }
3757 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3760 $as_echo "$ac_cv_objext" >&6; }
3761 OBJEXT=$ac_cv_objext
3762 ac_objext=$OBJEXT
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3764 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3765 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3766 $as_echo_n "(cached) " >&6
3767 else
3768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3769 /* end confdefs.h. */
3772 main ()
3774 #ifndef __GNUC__
3775 choke me
3776 #endif
3779 return 0;
3781 _ACEOF
3782 if ac_fn_c_try_compile "$LINENO"; then :
3783 ac_compiler_gnu=yes
3784 else
3785 ac_compiler_gnu=no
3787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3788 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3792 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3793 if test $ac_compiler_gnu = yes; then
3794 GCC=yes
3795 else
3796 GCC=
3798 ac_test_CFLAGS=${CFLAGS+set}
3799 ac_save_CFLAGS=$CFLAGS
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3801 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3802 if test "${ac_cv_prog_cc_g+set}" = set; then :
3803 $as_echo_n "(cached) " >&6
3804 else
3805 ac_save_c_werror_flag=$ac_c_werror_flag
3806 ac_c_werror_flag=yes
3807 ac_cv_prog_cc_g=no
3808 CFLAGS="-g"
3809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3810 /* end confdefs.h. */
3813 main ()
3817 return 0;
3819 _ACEOF
3820 if ac_fn_c_try_compile "$LINENO"; then :
3821 ac_cv_prog_cc_g=yes
3822 else
3823 CFLAGS=""
3824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3825 /* end confdefs.h. */
3828 main ()
3832 return 0;
3834 _ACEOF
3835 if ac_fn_c_try_compile "$LINENO"; then :
3837 else
3838 ac_c_werror_flag=$ac_save_c_werror_flag
3839 CFLAGS="-g"
3840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3841 /* end confdefs.h. */
3844 main ()
3848 return 0;
3850 _ACEOF
3851 if ac_fn_c_try_compile "$LINENO"; then :
3852 ac_cv_prog_cc_g=yes
3854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3859 ac_c_werror_flag=$ac_save_c_werror_flag
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3862 $as_echo "$ac_cv_prog_cc_g" >&6; }
3863 if test "$ac_test_CFLAGS" = set; then
3864 CFLAGS=$ac_save_CFLAGS
3865 elif test $ac_cv_prog_cc_g = yes; then
3866 if test "$GCC" = yes; then
3867 CFLAGS="-g -O2"
3868 else
3869 CFLAGS="-g"
3871 else
3872 if test "$GCC" = yes; then
3873 CFLAGS="-O2"
3874 else
3875 CFLAGS=
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3879 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3880 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3881 $as_echo_n "(cached) " >&6
3882 else
3883 ac_cv_prog_cc_c89=no
3884 ac_save_CC=$CC
3885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3886 /* end confdefs.h. */
3887 #include <stdarg.h>
3888 #include <stdio.h>
3889 #include <sys/types.h>
3890 #include <sys/stat.h>
3891 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3892 struct buf { int x; };
3893 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3894 static char *e (p, i)
3895 char **p;
3896 int i;
3898 return p[i];
3900 static char *f (char * (*g) (char **, int), char **p, ...)
3902 char *s;
3903 va_list v;
3904 va_start (v,p);
3905 s = g (p, va_arg (v,int));
3906 va_end (v);
3907 return s;
3910 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3911 function prototypes and stuff, but not '\xHH' hex character constants.
3912 These don't provoke an error unfortunately, instead are silently treated
3913 as 'x'. The following induces an error, until -std is added to get
3914 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3915 array size at least. It's necessary to write '\x00'==0 to get something
3916 that's true only with -std. */
3917 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3919 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3920 inside strings and character constants. */
3921 #define FOO(x) 'x'
3922 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3924 int test (int i, double x);
3925 struct s1 {int (*f) (int a);};
3926 struct s2 {int (*f) (double a);};
3927 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3928 int argc;
3929 char **argv;
3931 main ()
3933 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3935 return 0;
3937 _ACEOF
3938 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3939 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3941 CC="$ac_save_CC $ac_arg"
3942 if ac_fn_c_try_compile "$LINENO"; then :
3943 ac_cv_prog_cc_c89=$ac_arg
3945 rm -f core conftest.err conftest.$ac_objext
3946 test "x$ac_cv_prog_cc_c89" != "xno" && break
3947 done
3948 rm -f conftest.$ac_ext
3949 CC=$ac_save_CC
3952 # AC_CACHE_VAL
3953 case "x$ac_cv_prog_cc_c89" in
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3956 $as_echo "none needed" >&6; } ;;
3957 xno)
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3959 $as_echo "unsupported" >&6; } ;;
3961 CC="$CC $ac_cv_prog_cc_c89"
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3963 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3964 esac
3965 if test "x$ac_cv_prog_cc_c89" != xno; then :
3969 ac_ext=c
3970 ac_cpp='$CPP $CPPFLAGS'
3971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3975 depcc="$CC" am_compiler_list=
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3978 $as_echo_n "checking dependency style of $depcc... " >&6; }
3979 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3980 $as_echo_n "(cached) " >&6
3981 else
3982 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3983 # We make a subdir and do the tests there. Otherwise we can end up
3984 # making bogus files that we don't know about and never remove. For
3985 # instance it was reported that on HP-UX the gcc test will end up
3986 # making a dummy file named `D' -- because `-MD' means `put the output
3987 # in D'.
3988 rm -rf conftest.dir
3989 mkdir conftest.dir
3990 # Copy depcomp to subdir because otherwise we won't find it if we're
3991 # using a relative directory.
3992 cp "$am_depcomp" conftest.dir
3993 cd conftest.dir
3994 # We will build objects and dependencies in a subdirectory because
3995 # it helps to detect inapplicable dependency modes. For instance
3996 # both Tru64's cc and ICC support -MD to output dependencies as a
3997 # side effect of compilation, but ICC will put the dependencies in
3998 # the current directory while Tru64 will put them in the object
3999 # directory.
4000 mkdir sub
4002 am_cv_CC_dependencies_compiler_type=none
4003 if test "$am_compiler_list" = ""; then
4004 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4006 am__universal=false
4007 case " $depcc " in #(
4008 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4009 esac
4011 for depmode in $am_compiler_list; do
4012 # Setup a source with many dependencies, because some compilers
4013 # like to wrap large dependency lists on column 80 (with \), and
4014 # we should not choose a depcomp mode which is confused by this.
4016 # We need to recreate these files for each test, as the compiler may
4017 # overwrite some of them when testing with obscure command lines.
4018 # This happens at least with the AIX C compiler.
4019 : > sub/conftest.c
4020 for i in 1 2 3 4 5 6; do
4021 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4022 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4023 # Solaris 8's {/usr,}/bin/sh.
4024 touch sub/conftst$i.h
4025 done
4026 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4028 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4029 # mode. It turns out that the SunPro C++ compiler does not properly
4030 # handle `-M -o', and we need to detect this. Also, some Intel
4031 # versions had trouble with output in subdirs
4032 am__obj=sub/conftest.${OBJEXT-o}
4033 am__minus_obj="-o $am__obj"
4034 case $depmode in
4035 gcc)
4036 # This depmode causes a compiler race in universal mode.
4037 test "$am__universal" = false || continue
4039 nosideeffect)
4040 # after this tag, mechanisms are not by side-effect, so they'll
4041 # only be used when explicitly requested
4042 if test "x$enable_dependency_tracking" = xyes; then
4043 continue
4044 else
4045 break
4048 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4049 # This compiler won't grok `-c -o', but also, the minuso test has
4050 # not run yet. These depmodes are late enough in the game, and
4051 # so weak that their functioning should not be impacted.
4052 am__obj=conftest.${OBJEXT-o}
4053 am__minus_obj=
4055 none) break ;;
4056 esac
4057 if depmode=$depmode \
4058 source=sub/conftest.c object=$am__obj \
4059 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4060 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4061 >/dev/null 2>conftest.err &&
4062 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4063 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4064 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4065 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4066 # icc doesn't choke on unknown options, it will just issue warnings
4067 # or remarks (even with -Werror). So we grep stderr for any message
4068 # that says an option was ignored or not supported.
4069 # When given -MP, icc 7.0 and 7.1 complain thusly:
4070 # icc: Command line warning: ignoring option '-M'; no argument required
4071 # The diagnosis changed in icc 8.0:
4072 # icc: Command line remark: option '-MP' not supported
4073 if (grep 'ignoring option' conftest.err ||
4074 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4075 am_cv_CC_dependencies_compiler_type=$depmode
4076 break
4079 done
4081 cd ..
4082 rm -rf conftest.dir
4083 else
4084 am_cv_CC_dependencies_compiler_type=none
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4089 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4090 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4093 test "x$enable_dependency_tracking" != xno \
4094 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4095 am__fastdepCC_TRUE=
4096 am__fastdepCC_FALSE='#'
4097 else
4098 am__fastdepCC_TRUE='#'
4099 am__fastdepCC_FALSE=
4104 ac_ext=c
4105 ac_cpp='$CPP $CPPFLAGS'
4106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4110 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4111 # On Suns, sometimes $CPP names a directory.
4112 if test -n "$CPP" && test -d "$CPP"; then
4113 CPP=
4115 if test -z "$CPP"; then
4116 if test "${ac_cv_prog_CPP+set}" = set; then :
4117 $as_echo_n "(cached) " >&6
4118 else
4119 # Double quotes because CPP needs to be expanded
4120 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4122 ac_preproc_ok=false
4123 for ac_c_preproc_warn_flag in '' yes
4125 # Use a header file that comes with gcc, so configuring glibc
4126 # with a fresh cross-compiler works.
4127 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4128 # <limits.h> exists even on freestanding compilers.
4129 # On the NeXT, cc -E runs the code through the compiler's parser,
4130 # not just through cpp. "Syntax error" is here to catch this case.
4131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4132 /* end confdefs.h. */
4133 #ifdef __STDC__
4134 # include <limits.h>
4135 #else
4136 # include <assert.h>
4137 #endif
4138 Syntax error
4139 _ACEOF
4140 if ac_fn_c_try_cpp "$LINENO"; then :
4142 else
4143 # Broken: fails on valid input.
4144 continue
4146 rm -f conftest.err conftest.$ac_ext
4148 # OK, works on sane cases. Now check whether nonexistent headers
4149 # can be detected and how.
4150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4151 /* end confdefs.h. */
4152 #include <ac_nonexistent.h>
4153 _ACEOF
4154 if ac_fn_c_try_cpp "$LINENO"; then :
4155 # Broken: success on invalid input.
4156 continue
4157 else
4158 # Passes both tests.
4159 ac_preproc_ok=:
4160 break
4162 rm -f conftest.err conftest.$ac_ext
4164 done
4165 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4166 rm -f conftest.err conftest.$ac_ext
4167 if $ac_preproc_ok; then :
4168 break
4171 done
4172 ac_cv_prog_CPP=$CPP
4175 CPP=$ac_cv_prog_CPP
4176 else
4177 ac_cv_prog_CPP=$CPP
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4180 $as_echo "$CPP" >&6; }
4181 ac_preproc_ok=false
4182 for ac_c_preproc_warn_flag in '' yes
4184 # Use a header file that comes with gcc, so configuring glibc
4185 # with a fresh cross-compiler works.
4186 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4187 # <limits.h> exists even on freestanding compilers.
4188 # On the NeXT, cc -E runs the code through the compiler's parser,
4189 # not just through cpp. "Syntax error" is here to catch this case.
4190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4191 /* end confdefs.h. */
4192 #ifdef __STDC__
4193 # include <limits.h>
4194 #else
4195 # include <assert.h>
4196 #endif
4197 Syntax error
4198 _ACEOF
4199 if ac_fn_c_try_cpp "$LINENO"; then :
4201 else
4202 # Broken: fails on valid input.
4203 continue
4205 rm -f conftest.err conftest.$ac_ext
4207 # OK, works on sane cases. Now check whether nonexistent headers
4208 # can be detected and how.
4209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4210 /* end confdefs.h. */
4211 #include <ac_nonexistent.h>
4212 _ACEOF
4213 if ac_fn_c_try_cpp "$LINENO"; then :
4214 # Broken: success on invalid input.
4215 continue
4216 else
4217 # Passes both tests.
4218 ac_preproc_ok=:
4219 break
4221 rm -f conftest.err conftest.$ac_ext
4223 done
4224 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4225 rm -f conftest.err conftest.$ac_ext
4226 if $ac_preproc_ok; then :
4228 else
4229 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4230 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4231 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4232 See \`config.log' for more details." "$LINENO" 5; }
4235 ac_ext=c
4236 ac_cpp='$CPP $CPPFLAGS'
4237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4239 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4243 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4244 if test "${ac_cv_path_GREP+set}" = set; then :
4245 $as_echo_n "(cached) " >&6
4246 else
4247 if test -z "$GREP"; then
4248 ac_path_GREP_found=false
4249 # Loop through the user's path and test for each of PROGNAME-LIST
4250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4251 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4253 IFS=$as_save_IFS
4254 test -z "$as_dir" && as_dir=.
4255 for ac_prog in grep ggrep; do
4256 for ac_exec_ext in '' $ac_executable_extensions; do
4257 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4258 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4259 # Check for GNU ac_path_GREP and select it if it is found.
4260 # Check for GNU $ac_path_GREP
4261 case `"$ac_path_GREP" --version 2>&1` in
4262 *GNU*)
4263 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4265 ac_count=0
4266 $as_echo_n 0123456789 >"conftest.in"
4267 while :
4269 cat "conftest.in" "conftest.in" >"conftest.tmp"
4270 mv "conftest.tmp" "conftest.in"
4271 cp "conftest.in" "conftest.nl"
4272 $as_echo 'GREP' >> "conftest.nl"
4273 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4274 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4275 as_fn_arith $ac_count + 1 && ac_count=$as_val
4276 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4277 # Best one so far, save it but keep looking for a better one
4278 ac_cv_path_GREP="$ac_path_GREP"
4279 ac_path_GREP_max=$ac_count
4281 # 10*(2^10) chars as input seems more than enough
4282 test $ac_count -gt 10 && break
4283 done
4284 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4285 esac
4287 $ac_path_GREP_found && break 3
4288 done
4289 done
4290 done
4291 IFS=$as_save_IFS
4292 if test -z "$ac_cv_path_GREP"; then
4293 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4295 else
4296 ac_cv_path_GREP=$GREP
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4301 $as_echo "$ac_cv_path_GREP" >&6; }
4302 GREP="$ac_cv_path_GREP"
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4306 $as_echo_n "checking for egrep... " >&6; }
4307 if test "${ac_cv_path_EGREP+set}" = set; then :
4308 $as_echo_n "(cached) " >&6
4309 else
4310 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4311 then ac_cv_path_EGREP="$GREP -E"
4312 else
4313 if test -z "$EGREP"; then
4314 ac_path_EGREP_found=false
4315 # Loop through the user's path and test for each of PROGNAME-LIST
4316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4317 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4319 IFS=$as_save_IFS
4320 test -z "$as_dir" && as_dir=.
4321 for ac_prog in egrep; do
4322 for ac_exec_ext in '' $ac_executable_extensions; do
4323 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4324 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4325 # Check for GNU ac_path_EGREP and select it if it is found.
4326 # Check for GNU $ac_path_EGREP
4327 case `"$ac_path_EGREP" --version 2>&1` in
4328 *GNU*)
4329 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4331 ac_count=0
4332 $as_echo_n 0123456789 >"conftest.in"
4333 while :
4335 cat "conftest.in" "conftest.in" >"conftest.tmp"
4336 mv "conftest.tmp" "conftest.in"
4337 cp "conftest.in" "conftest.nl"
4338 $as_echo 'EGREP' >> "conftest.nl"
4339 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4340 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4341 as_fn_arith $ac_count + 1 && ac_count=$as_val
4342 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4343 # Best one so far, save it but keep looking for a better one
4344 ac_cv_path_EGREP="$ac_path_EGREP"
4345 ac_path_EGREP_max=$ac_count
4347 # 10*(2^10) chars as input seems more than enough
4348 test $ac_count -gt 10 && break
4349 done
4350 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4351 esac
4353 $ac_path_EGREP_found && break 3
4354 done
4355 done
4356 done
4357 IFS=$as_save_IFS
4358 if test -z "$ac_cv_path_EGREP"; then
4359 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4361 else
4362 ac_cv_path_EGREP=$EGREP
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4368 $as_echo "$ac_cv_path_EGREP" >&6; }
4369 EGREP="$ac_cv_path_EGREP"
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4373 $as_echo_n "checking for ANSI C header files... " >&6; }
4374 if test "${ac_cv_header_stdc+set}" = set; then :
4375 $as_echo_n "(cached) " >&6
4376 else
4377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4378 /* end confdefs.h. */
4379 #include <stdlib.h>
4380 #include <stdarg.h>
4381 #include <string.h>
4382 #include <float.h>
4385 main ()
4389 return 0;
4391 _ACEOF
4392 if ac_fn_c_try_compile "$LINENO"; then :
4393 ac_cv_header_stdc=yes
4394 else
4395 ac_cv_header_stdc=no
4397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4399 if test $ac_cv_header_stdc = yes; then
4400 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4402 /* end confdefs.h. */
4403 #include <string.h>
4405 _ACEOF
4406 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4407 $EGREP "memchr" >/dev/null 2>&1; then :
4409 else
4410 ac_cv_header_stdc=no
4412 rm -f conftest*
4416 if test $ac_cv_header_stdc = yes; then
4417 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4419 /* end confdefs.h. */
4420 #include <stdlib.h>
4422 _ACEOF
4423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4424 $EGREP "free" >/dev/null 2>&1; then :
4426 else
4427 ac_cv_header_stdc=no
4429 rm -f conftest*
4433 if test $ac_cv_header_stdc = yes; then
4434 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4435 if test "$cross_compiling" = yes; then :
4437 else
4438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4439 /* end confdefs.h. */
4440 #include <ctype.h>
4441 #include <stdlib.h>
4442 #if ((' ' & 0x0FF) == 0x020)
4443 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4444 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4445 #else
4446 # define ISLOWER(c) \
4447 (('a' <= (c) && (c) <= 'i') \
4448 || ('j' <= (c) && (c) <= 'r') \
4449 || ('s' <= (c) && (c) <= 'z'))
4450 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4451 #endif
4453 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4455 main ()
4457 int i;
4458 for (i = 0; i < 256; i++)
4459 if (XOR (islower (i), ISLOWER (i))
4460 || toupper (i) != TOUPPER (i))
4461 return 2;
4462 return 0;
4464 _ACEOF
4465 if ac_fn_c_try_run "$LINENO"; then :
4467 else
4468 ac_cv_header_stdc=no
4470 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4471 conftest.$ac_objext conftest.beam conftest.$ac_ext
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4477 $as_echo "$ac_cv_header_stdc" >&6; }
4478 if test $ac_cv_header_stdc = yes; then
4480 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4484 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4485 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4486 inttypes.h stdint.h unistd.h
4487 do :
4488 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4489 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4491 eval as_val=\$$as_ac_Header
4492 if test "x$as_val" = x""yes; then :
4493 cat >>confdefs.h <<_ACEOF
4494 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4495 _ACEOF
4499 done
4503 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4504 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4505 MINIX=yes
4506 else
4507 MINIX=
4511 if test "$MINIX" = yes; then
4513 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4516 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4519 $as_echo "#define _MINIX 1" >>confdefs.h
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4525 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4526 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4527 $as_echo_n "(cached) " >&6
4528 else
4529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4530 /* end confdefs.h. */
4532 # define __EXTENSIONS__ 1
4533 $ac_includes_default
4535 main ()
4539 return 0;
4541 _ACEOF
4542 if ac_fn_c_try_compile "$LINENO"; then :
4543 ac_cv_safe_to_define___extensions__=yes
4544 else
4545 ac_cv_safe_to_define___extensions__=no
4547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4550 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4551 test $ac_cv_safe_to_define___extensions__ = yes &&
4552 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4554 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4556 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4558 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4560 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4564 for ac_func in __secure_getenv
4565 do :
4566 ac_fn_c_check_func "$LINENO" "__secure_getenv" "ac_cv_func___secure_getenv"
4567 if test "x$ac_cv_func___secure_getenv" = x""yes; then :
4568 cat >>confdefs.h <<_ACEOF
4569 #define HAVE___SECURE_GETENV 1
4570 _ACEOF
4573 done
4577 for ac_func in secure_getenv
4578 do :
4579 ac_fn_c_check_func "$LINENO" "secure_getenv" "ac_cv_func_secure_getenv"
4580 if test "x$ac_cv_func_secure_getenv" = x""yes; then :
4581 cat >>confdefs.h <<_ACEOF
4582 #define HAVE_SECURE_GETENV 1
4583 _ACEOF
4586 done
4589 # Check for programs.
4592 ac_ext=c
4593 ac_cpp='$CPP $CPPFLAGS'
4594 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4595 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4596 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4597 if test -n "$ac_tool_prefix"; then
4598 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4599 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4601 $as_echo_n "checking for $ac_word... " >&6; }
4602 if test "${ac_cv_prog_CC+set}" = set; then :
4603 $as_echo_n "(cached) " >&6
4604 else
4605 if test -n "$CC"; then
4606 ac_cv_prog_CC="$CC" # Let the user override the test.
4607 else
4608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4609 for as_dir in $PATH
4611 IFS=$as_save_IFS
4612 test -z "$as_dir" && as_dir=.
4613 for ac_exec_ext in '' $ac_executable_extensions; do
4614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4615 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4617 break 2
4619 done
4620 done
4621 IFS=$as_save_IFS
4625 CC=$ac_cv_prog_CC
4626 if test -n "$CC"; then
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4628 $as_echo "$CC" >&6; }
4629 else
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4631 $as_echo "no" >&6; }
4636 if test -z "$ac_cv_prog_CC"; then
4637 ac_ct_CC=$CC
4638 # Extract the first word of "gcc", so it can be a program name with args.
4639 set dummy gcc; ac_word=$2
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4641 $as_echo_n "checking for $ac_word... " >&6; }
4642 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4643 $as_echo_n "(cached) " >&6
4644 else
4645 if test -n "$ac_ct_CC"; then
4646 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4647 else
4648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4649 for as_dir in $PATH
4651 IFS=$as_save_IFS
4652 test -z "$as_dir" && as_dir=.
4653 for ac_exec_ext in '' $ac_executable_extensions; do
4654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4655 ac_cv_prog_ac_ct_CC="gcc"
4656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4657 break 2
4659 done
4660 done
4661 IFS=$as_save_IFS
4665 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4666 if test -n "$ac_ct_CC"; then
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4668 $as_echo "$ac_ct_CC" >&6; }
4669 else
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4671 $as_echo "no" >&6; }
4674 if test "x$ac_ct_CC" = x; then
4675 CC=""
4676 else
4677 case $cross_compiling:$ac_tool_warned in
4678 yes:)
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4680 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4681 ac_tool_warned=yes ;;
4682 esac
4683 CC=$ac_ct_CC
4685 else
4686 CC="$ac_cv_prog_CC"
4689 if test -z "$CC"; then
4690 if test -n "$ac_tool_prefix"; then
4691 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4692 set dummy ${ac_tool_prefix}cc; ac_word=$2
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4694 $as_echo_n "checking for $ac_word... " >&6; }
4695 if test "${ac_cv_prog_CC+set}" = set; then :
4696 $as_echo_n "(cached) " >&6
4697 else
4698 if test -n "$CC"; then
4699 ac_cv_prog_CC="$CC" # Let the user override the test.
4700 else
4701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4702 for as_dir in $PATH
4704 IFS=$as_save_IFS
4705 test -z "$as_dir" && as_dir=.
4706 for ac_exec_ext in '' $ac_executable_extensions; do
4707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4708 ac_cv_prog_CC="${ac_tool_prefix}cc"
4709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4710 break 2
4712 done
4713 done
4714 IFS=$as_save_IFS
4718 CC=$ac_cv_prog_CC
4719 if test -n "$CC"; then
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4721 $as_echo "$CC" >&6; }
4722 else
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4724 $as_echo "no" >&6; }
4730 if test -z "$CC"; then
4731 # Extract the first word of "cc", so it can be a program name with args.
4732 set dummy cc; ac_word=$2
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4734 $as_echo_n "checking for $ac_word... " >&6; }
4735 if test "${ac_cv_prog_CC+set}" = set; then :
4736 $as_echo_n "(cached) " >&6
4737 else
4738 if test -n "$CC"; then
4739 ac_cv_prog_CC="$CC" # Let the user override the test.
4740 else
4741 ac_prog_rejected=no
4742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4743 for as_dir in $PATH
4745 IFS=$as_save_IFS
4746 test -z "$as_dir" && as_dir=.
4747 for ac_exec_ext in '' $ac_executable_extensions; do
4748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4749 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4750 ac_prog_rejected=yes
4751 continue
4753 ac_cv_prog_CC="cc"
4754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4755 break 2
4757 done
4758 done
4759 IFS=$as_save_IFS
4761 if test $ac_prog_rejected = yes; then
4762 # We found a bogon in the path, so make sure we never use it.
4763 set dummy $ac_cv_prog_CC
4764 shift
4765 if test $# != 0; then
4766 # We chose a different compiler from the bogus one.
4767 # However, it has the same basename, so the bogon will be chosen
4768 # first if we set CC to just the basename; use the full file name.
4769 shift
4770 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4775 CC=$ac_cv_prog_CC
4776 if test -n "$CC"; then
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4778 $as_echo "$CC" >&6; }
4779 else
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4781 $as_echo "no" >&6; }
4786 if test -z "$CC"; then
4787 if test -n "$ac_tool_prefix"; then
4788 for ac_prog in cl.exe
4790 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4791 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4793 $as_echo_n "checking for $ac_word... " >&6; }
4794 if test "${ac_cv_prog_CC+set}" = set; then :
4795 $as_echo_n "(cached) " >&6
4796 else
4797 if test -n "$CC"; then
4798 ac_cv_prog_CC="$CC" # Let the user override the test.
4799 else
4800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4801 for as_dir in $PATH
4803 IFS=$as_save_IFS
4804 test -z "$as_dir" && as_dir=.
4805 for ac_exec_ext in '' $ac_executable_extensions; do
4806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4807 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4809 break 2
4811 done
4812 done
4813 IFS=$as_save_IFS
4817 CC=$ac_cv_prog_CC
4818 if test -n "$CC"; then
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4820 $as_echo "$CC" >&6; }
4821 else
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4823 $as_echo "no" >&6; }
4827 test -n "$CC" && break
4828 done
4830 if test -z "$CC"; then
4831 ac_ct_CC=$CC
4832 for ac_prog in cl.exe
4834 # Extract the first word of "$ac_prog", so it can be a program name with args.
4835 set dummy $ac_prog; ac_word=$2
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4837 $as_echo_n "checking for $ac_word... " >&6; }
4838 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4839 $as_echo_n "(cached) " >&6
4840 else
4841 if test -n "$ac_ct_CC"; then
4842 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4843 else
4844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4845 for as_dir in $PATH
4847 IFS=$as_save_IFS
4848 test -z "$as_dir" && as_dir=.
4849 for ac_exec_ext in '' $ac_executable_extensions; do
4850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4851 ac_cv_prog_ac_ct_CC="$ac_prog"
4852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4853 break 2
4855 done
4856 done
4857 IFS=$as_save_IFS
4861 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4862 if test -n "$ac_ct_CC"; then
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4864 $as_echo "$ac_ct_CC" >&6; }
4865 else
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4867 $as_echo "no" >&6; }
4871 test -n "$ac_ct_CC" && break
4872 done
4874 if test "x$ac_ct_CC" = x; then
4875 CC=""
4876 else
4877 case $cross_compiling:$ac_tool_warned in
4878 yes:)
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4880 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4881 ac_tool_warned=yes ;;
4882 esac
4883 CC=$ac_ct_CC
4890 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4891 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4892 as_fn_error "no acceptable C compiler found in \$PATH
4893 See \`config.log' for more details." "$LINENO" 5; }
4895 # Provide some information about the compiler.
4896 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4897 set X $ac_compile
4898 ac_compiler=$2
4899 for ac_option in --version -v -V -qversion; do
4900 { { ac_try="$ac_compiler $ac_option >&5"
4901 case "(($ac_try" in
4902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4903 *) ac_try_echo=$ac_try;;
4904 esac
4905 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4906 $as_echo "$ac_try_echo"; } >&5
4907 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4908 ac_status=$?
4909 if test -s conftest.err; then
4910 sed '10a\
4911 ... rest of stderr output deleted ...
4912 10q' conftest.err >conftest.er1
4913 cat conftest.er1 >&5
4914 rm -f conftest.er1 conftest.err
4916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4917 test $ac_status = 0; }
4918 done
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4921 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4922 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4923 $as_echo_n "(cached) " >&6
4924 else
4925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4926 /* end confdefs.h. */
4929 main ()
4931 #ifndef __GNUC__
4932 choke me
4933 #endif
4936 return 0;
4938 _ACEOF
4939 if ac_fn_c_try_compile "$LINENO"; then :
4940 ac_compiler_gnu=yes
4941 else
4942 ac_compiler_gnu=no
4944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4945 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4949 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4950 if test $ac_compiler_gnu = yes; then
4951 GCC=yes
4952 else
4953 GCC=
4955 ac_test_CFLAGS=${CFLAGS+set}
4956 ac_save_CFLAGS=$CFLAGS
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4958 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4959 if test "${ac_cv_prog_cc_g+set}" = set; then :
4960 $as_echo_n "(cached) " >&6
4961 else
4962 ac_save_c_werror_flag=$ac_c_werror_flag
4963 ac_c_werror_flag=yes
4964 ac_cv_prog_cc_g=no
4965 CFLAGS="-g"
4966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4967 /* end confdefs.h. */
4970 main ()
4974 return 0;
4976 _ACEOF
4977 if ac_fn_c_try_compile "$LINENO"; then :
4978 ac_cv_prog_cc_g=yes
4979 else
4980 CFLAGS=""
4981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4982 /* end confdefs.h. */
4985 main ()
4989 return 0;
4991 _ACEOF
4992 if ac_fn_c_try_compile "$LINENO"; then :
4994 else
4995 ac_c_werror_flag=$ac_save_c_werror_flag
4996 CFLAGS="-g"
4997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4998 /* end confdefs.h. */
5001 main ()
5005 return 0;
5007 _ACEOF
5008 if ac_fn_c_try_compile "$LINENO"; then :
5009 ac_cv_prog_cc_g=yes
5011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5016 ac_c_werror_flag=$ac_save_c_werror_flag
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5019 $as_echo "$ac_cv_prog_cc_g" >&6; }
5020 if test "$ac_test_CFLAGS" = set; then
5021 CFLAGS=$ac_save_CFLAGS
5022 elif test $ac_cv_prog_cc_g = yes; then
5023 if test "$GCC" = yes; then
5024 CFLAGS="-g -O2"
5025 else
5026 CFLAGS="-g"
5028 else
5029 if test "$GCC" = yes; then
5030 CFLAGS="-O2"
5031 else
5032 CFLAGS=
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5036 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5037 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5038 $as_echo_n "(cached) " >&6
5039 else
5040 ac_cv_prog_cc_c89=no
5041 ac_save_CC=$CC
5042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5043 /* end confdefs.h. */
5044 #include <stdarg.h>
5045 #include <stdio.h>
5046 #include <sys/types.h>
5047 #include <sys/stat.h>
5048 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5049 struct buf { int x; };
5050 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5051 static char *e (p, i)
5052 char **p;
5053 int i;
5055 return p[i];
5057 static char *f (char * (*g) (char **, int), char **p, ...)
5059 char *s;
5060 va_list v;
5061 va_start (v,p);
5062 s = g (p, va_arg (v,int));
5063 va_end (v);
5064 return s;
5067 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5068 function prototypes and stuff, but not '\xHH' hex character constants.
5069 These don't provoke an error unfortunately, instead are silently treated
5070 as 'x'. The following induces an error, until -std is added to get
5071 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5072 array size at least. It's necessary to write '\x00'==0 to get something
5073 that's true only with -std. */
5074 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5076 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5077 inside strings and character constants. */
5078 #define FOO(x) 'x'
5079 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5081 int test (int i, double x);
5082 struct s1 {int (*f) (int a);};
5083 struct s2 {int (*f) (double a);};
5084 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5085 int argc;
5086 char **argv;
5088 main ()
5090 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5092 return 0;
5094 _ACEOF
5095 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5096 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5098 CC="$ac_save_CC $ac_arg"
5099 if ac_fn_c_try_compile "$LINENO"; then :
5100 ac_cv_prog_cc_c89=$ac_arg
5102 rm -f core conftest.err conftest.$ac_objext
5103 test "x$ac_cv_prog_cc_c89" != "xno" && break
5104 done
5105 rm -f conftest.$ac_ext
5106 CC=$ac_save_CC
5109 # AC_CACHE_VAL
5110 case "x$ac_cv_prog_cc_c89" in
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5113 $as_echo "none needed" >&6; } ;;
5114 xno)
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5116 $as_echo "unsupported" >&6; } ;;
5118 CC="$CC $ac_cv_prog_cc_c89"
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5120 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5121 esac
5122 if test "x$ac_cv_prog_cc_c89" != xno; then :
5126 ac_ext=c
5127 ac_cpp='$CPP $CPPFLAGS'
5128 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5129 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5130 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5132 depcc="$CC" am_compiler_list=
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5135 $as_echo_n "checking dependency style of $depcc... " >&6; }
5136 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5137 $as_echo_n "(cached) " >&6
5138 else
5139 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5140 # We make a subdir and do the tests there. Otherwise we can end up
5141 # making bogus files that we don't know about and never remove. For
5142 # instance it was reported that on HP-UX the gcc test will end up
5143 # making a dummy file named `D' -- because `-MD' means `put the output
5144 # in D'.
5145 rm -rf conftest.dir
5146 mkdir conftest.dir
5147 # Copy depcomp to subdir because otherwise we won't find it if we're
5148 # using a relative directory.
5149 cp "$am_depcomp" conftest.dir
5150 cd conftest.dir
5151 # We will build objects and dependencies in a subdirectory because
5152 # it helps to detect inapplicable dependency modes. For instance
5153 # both Tru64's cc and ICC support -MD to output dependencies as a
5154 # side effect of compilation, but ICC will put the dependencies in
5155 # the current directory while Tru64 will put them in the object
5156 # directory.
5157 mkdir sub
5159 am_cv_CC_dependencies_compiler_type=none
5160 if test "$am_compiler_list" = ""; then
5161 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5163 am__universal=false
5164 case " $depcc " in #(
5165 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5166 esac
5168 for depmode in $am_compiler_list; do
5169 # Setup a source with many dependencies, because some compilers
5170 # like to wrap large dependency lists on column 80 (with \), and
5171 # we should not choose a depcomp mode which is confused by this.
5173 # We need to recreate these files for each test, as the compiler may
5174 # overwrite some of them when testing with obscure command lines.
5175 # This happens at least with the AIX C compiler.
5176 : > sub/conftest.c
5177 for i in 1 2 3 4 5 6; do
5178 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5179 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5180 # Solaris 8's {/usr,}/bin/sh.
5181 touch sub/conftst$i.h
5182 done
5183 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5185 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5186 # mode. It turns out that the SunPro C++ compiler does not properly
5187 # handle `-M -o', and we need to detect this. Also, some Intel
5188 # versions had trouble with output in subdirs
5189 am__obj=sub/conftest.${OBJEXT-o}
5190 am__minus_obj="-o $am__obj"
5191 case $depmode in
5192 gcc)
5193 # This depmode causes a compiler race in universal mode.
5194 test "$am__universal" = false || continue
5196 nosideeffect)
5197 # after this tag, mechanisms are not by side-effect, so they'll
5198 # only be used when explicitly requested
5199 if test "x$enable_dependency_tracking" = xyes; then
5200 continue
5201 else
5202 break
5205 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5206 # This compiler won't grok `-c -o', but also, the minuso test has
5207 # not run yet. These depmodes are late enough in the game, and
5208 # so weak that their functioning should not be impacted.
5209 am__obj=conftest.${OBJEXT-o}
5210 am__minus_obj=
5212 none) break ;;
5213 esac
5214 if depmode=$depmode \
5215 source=sub/conftest.c object=$am__obj \
5216 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5217 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5218 >/dev/null 2>conftest.err &&
5219 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5220 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5221 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5222 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5223 # icc doesn't choke on unknown options, it will just issue warnings
5224 # or remarks (even with -Werror). So we grep stderr for any message
5225 # that says an option was ignored or not supported.
5226 # When given -MP, icc 7.0 and 7.1 complain thusly:
5227 # icc: Command line warning: ignoring option '-M'; no argument required
5228 # The diagnosis changed in icc 8.0:
5229 # icc: Command line remark: option '-MP' not supported
5230 if (grep 'ignoring option' conftest.err ||
5231 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5232 am_cv_CC_dependencies_compiler_type=$depmode
5233 break
5236 done
5238 cd ..
5239 rm -rf conftest.dir
5240 else
5241 am_cv_CC_dependencies_compiler_type=none
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5246 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5247 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5250 test "x$enable_dependency_tracking" != xno \
5251 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5252 am__fastdepCC_TRUE=
5253 am__fastdepCC_FALSE='#'
5254 else
5255 am__fastdepCC_TRUE='#'
5256 am__fastdepCC_FALSE=
5260 ac_ext=cpp
5261 ac_cpp='$CXXCPP $CPPFLAGS'
5262 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5263 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5264 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5265 if test -z "$CXX"; then
5266 if test -n "$CCC"; then
5267 CXX=$CCC
5268 else
5269 if test -n "$ac_tool_prefix"; then
5270 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5272 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5273 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5275 $as_echo_n "checking for $ac_word... " >&6; }
5276 if test "${ac_cv_prog_CXX+set}" = set; then :
5277 $as_echo_n "(cached) " >&6
5278 else
5279 if test -n "$CXX"; then
5280 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5281 else
5282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5283 for as_dir in $PATH
5285 IFS=$as_save_IFS
5286 test -z "$as_dir" && as_dir=.
5287 for ac_exec_ext in '' $ac_executable_extensions; do
5288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5289 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5291 break 2
5293 done
5294 done
5295 IFS=$as_save_IFS
5299 CXX=$ac_cv_prog_CXX
5300 if test -n "$CXX"; then
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5302 $as_echo "$CXX" >&6; }
5303 else
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5305 $as_echo "no" >&6; }
5309 test -n "$CXX" && break
5310 done
5312 if test -z "$CXX"; then
5313 ac_ct_CXX=$CXX
5314 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5316 # Extract the first word of "$ac_prog", so it can be a program name with args.
5317 set dummy $ac_prog; ac_word=$2
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5319 $as_echo_n "checking for $ac_word... " >&6; }
5320 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
5321 $as_echo_n "(cached) " >&6
5322 else
5323 if test -n "$ac_ct_CXX"; then
5324 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5325 else
5326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5327 for as_dir in $PATH
5329 IFS=$as_save_IFS
5330 test -z "$as_dir" && as_dir=.
5331 for ac_exec_ext in '' $ac_executable_extensions; do
5332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5333 ac_cv_prog_ac_ct_CXX="$ac_prog"
5334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5335 break 2
5337 done
5338 done
5339 IFS=$as_save_IFS
5343 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5344 if test -n "$ac_ct_CXX"; then
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5346 $as_echo "$ac_ct_CXX" >&6; }
5347 else
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5349 $as_echo "no" >&6; }
5353 test -n "$ac_ct_CXX" && break
5354 done
5356 if test "x$ac_ct_CXX" = x; then
5357 CXX="g++"
5358 else
5359 case $cross_compiling:$ac_tool_warned in
5360 yes:)
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5362 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5363 ac_tool_warned=yes ;;
5364 esac
5365 CXX=$ac_ct_CXX
5371 # Provide some information about the compiler.
5372 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5373 set X $ac_compile
5374 ac_compiler=$2
5375 for ac_option in --version -v -V -qversion; do
5376 { { ac_try="$ac_compiler $ac_option >&5"
5377 case "(($ac_try" in
5378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5379 *) ac_try_echo=$ac_try;;
5380 esac
5381 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5382 $as_echo "$ac_try_echo"; } >&5
5383 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5384 ac_status=$?
5385 if test -s conftest.err; then
5386 sed '10a\
5387 ... rest of stderr output deleted ...
5388 10q' conftest.err >conftest.er1
5389 cat conftest.er1 >&5
5390 rm -f conftest.er1 conftest.err
5392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5393 test $ac_status = 0; }
5394 done
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5397 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5398 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
5399 $as_echo_n "(cached) " >&6
5400 else
5401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5402 /* end confdefs.h. */
5405 main ()
5407 #ifndef __GNUC__
5408 choke me
5409 #endif
5412 return 0;
5414 _ACEOF
5415 if ac_fn_cxx_try_compile "$LINENO"; then :
5416 ac_compiler_gnu=yes
5417 else
5418 ac_compiler_gnu=no
5420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5421 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5425 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5426 if test $ac_compiler_gnu = yes; then
5427 GXX=yes
5428 else
5429 GXX=
5431 ac_test_CXXFLAGS=${CXXFLAGS+set}
5432 ac_save_CXXFLAGS=$CXXFLAGS
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5434 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5435 if test "${ac_cv_prog_cxx_g+set}" = set; then :
5436 $as_echo_n "(cached) " >&6
5437 else
5438 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5439 ac_cxx_werror_flag=yes
5440 ac_cv_prog_cxx_g=no
5441 CXXFLAGS="-g"
5442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5443 /* end confdefs.h. */
5446 main ()
5450 return 0;
5452 _ACEOF
5453 if ac_fn_cxx_try_compile "$LINENO"; then :
5454 ac_cv_prog_cxx_g=yes
5455 else
5456 CXXFLAGS=""
5457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5458 /* end confdefs.h. */
5461 main ()
5465 return 0;
5467 _ACEOF
5468 if ac_fn_cxx_try_compile "$LINENO"; then :
5470 else
5471 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5472 CXXFLAGS="-g"
5473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5474 /* end confdefs.h. */
5477 main ()
5481 return 0;
5483 _ACEOF
5484 if ac_fn_cxx_try_compile "$LINENO"; then :
5485 ac_cv_prog_cxx_g=yes
5487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5492 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5495 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5496 if test "$ac_test_CXXFLAGS" = set; then
5497 CXXFLAGS=$ac_save_CXXFLAGS
5498 elif test $ac_cv_prog_cxx_g = yes; then
5499 if test "$GXX" = yes; then
5500 CXXFLAGS="-g -O2"
5501 else
5502 CXXFLAGS="-g"
5504 else
5505 if test "$GXX" = yes; then
5506 CXXFLAGS="-O2"
5507 else
5508 CXXFLAGS=
5511 ac_ext=c
5512 ac_cpp='$CPP $CPPFLAGS'
5513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5517 depcc="$CXX" am_compiler_list=
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5520 $as_echo_n "checking dependency style of $depcc... " >&6; }
5521 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
5522 $as_echo_n "(cached) " >&6
5523 else
5524 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5525 # We make a subdir and do the tests there. Otherwise we can end up
5526 # making bogus files that we don't know about and never remove. For
5527 # instance it was reported that on HP-UX the gcc test will end up
5528 # making a dummy file named `D' -- because `-MD' means `put the output
5529 # in D'.
5530 rm -rf conftest.dir
5531 mkdir conftest.dir
5532 # Copy depcomp to subdir because otherwise we won't find it if we're
5533 # using a relative directory.
5534 cp "$am_depcomp" conftest.dir
5535 cd conftest.dir
5536 # We will build objects and dependencies in a subdirectory because
5537 # it helps to detect inapplicable dependency modes. For instance
5538 # both Tru64's cc and ICC support -MD to output dependencies as a
5539 # side effect of compilation, but ICC will put the dependencies in
5540 # the current directory while Tru64 will put them in the object
5541 # directory.
5542 mkdir sub
5544 am_cv_CXX_dependencies_compiler_type=none
5545 if test "$am_compiler_list" = ""; then
5546 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5548 am__universal=false
5549 case " $depcc " in #(
5550 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5551 esac
5553 for depmode in $am_compiler_list; do
5554 # Setup a source with many dependencies, because some compilers
5555 # like to wrap large dependency lists on column 80 (with \), and
5556 # we should not choose a depcomp mode which is confused by this.
5558 # We need to recreate these files for each test, as the compiler may
5559 # overwrite some of them when testing with obscure command lines.
5560 # This happens at least with the AIX C compiler.
5561 : > sub/conftest.c
5562 for i in 1 2 3 4 5 6; do
5563 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5564 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5565 # Solaris 8's {/usr,}/bin/sh.
5566 touch sub/conftst$i.h
5567 done
5568 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5570 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5571 # mode. It turns out that the SunPro C++ compiler does not properly
5572 # handle `-M -o', and we need to detect this. Also, some Intel
5573 # versions had trouble with output in subdirs
5574 am__obj=sub/conftest.${OBJEXT-o}
5575 am__minus_obj="-o $am__obj"
5576 case $depmode in
5577 gcc)
5578 # This depmode causes a compiler race in universal mode.
5579 test "$am__universal" = false || continue
5581 nosideeffect)
5582 # after this tag, mechanisms are not by side-effect, so they'll
5583 # only be used when explicitly requested
5584 if test "x$enable_dependency_tracking" = xyes; then
5585 continue
5586 else
5587 break
5590 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5591 # This compiler won't grok `-c -o', but also, the minuso test has
5592 # not run yet. These depmodes are late enough in the game, and
5593 # so weak that their functioning should not be impacted.
5594 am__obj=conftest.${OBJEXT-o}
5595 am__minus_obj=
5597 none) break ;;
5598 esac
5599 if depmode=$depmode \
5600 source=sub/conftest.c object=$am__obj \
5601 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5602 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5603 >/dev/null 2>conftest.err &&
5604 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5605 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5606 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5607 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5608 # icc doesn't choke on unknown options, it will just issue warnings
5609 # or remarks (even with -Werror). So we grep stderr for any message
5610 # that says an option was ignored or not supported.
5611 # When given -MP, icc 7.0 and 7.1 complain thusly:
5612 # icc: Command line warning: ignoring option '-M'; no argument required
5613 # The diagnosis changed in icc 8.0:
5614 # icc: Command line remark: option '-MP' not supported
5615 if (grep 'ignoring option' conftest.err ||
5616 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5617 am_cv_CXX_dependencies_compiler_type=$depmode
5618 break
5621 done
5623 cd ..
5624 rm -rf conftest.dir
5625 else
5626 am_cv_CXX_dependencies_compiler_type=none
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5631 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5632 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5635 test "x$enable_dependency_tracking" != xno \
5636 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5637 am__fastdepCXX_TRUE=
5638 am__fastdepCXX_FALSE='#'
5639 else
5640 am__fastdepCXX_TRUE='#'
5641 am__fastdepCXX_FALSE=
5647 if test "x$CC" != xcc; then
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5649 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5650 else
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5652 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5654 set dummy $CC; ac_cc=`$as_echo "$2" |
5655 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5656 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5657 $as_echo_n "(cached) " >&6
5658 else
5659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5660 /* end confdefs.h. */
5663 main ()
5667 return 0;
5669 _ACEOF
5670 # Make sure it works both with $CC and with simple cc.
5671 # We do the test twice because some compilers refuse to overwrite an
5672 # existing .o file with -o, though they will create one.
5673 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5674 rm -f conftest2.*
5675 if { { case "(($ac_try" in
5676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5677 *) ac_try_echo=$ac_try;;
5678 esac
5679 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5680 $as_echo "$ac_try_echo"; } >&5
5681 (eval "$ac_try") 2>&5
5682 ac_status=$?
5683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5684 test $ac_status = 0; } &&
5685 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5687 *) ac_try_echo=$ac_try;;
5688 esac
5689 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5690 $as_echo "$ac_try_echo"; } >&5
5691 (eval "$ac_try") 2>&5
5692 ac_status=$?
5693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5694 test $ac_status = 0; };
5695 then
5696 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5697 if test "x$CC" != xcc; then
5698 # Test first that cc exists at all.
5699 if { ac_try='cc -c conftest.$ac_ext >&5'
5700 { { case "(($ac_try" in
5701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5702 *) ac_try_echo=$ac_try;;
5703 esac
5704 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5705 $as_echo "$ac_try_echo"; } >&5
5706 (eval "$ac_try") 2>&5
5707 ac_status=$?
5708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5709 test $ac_status = 0; }; }; then
5710 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5711 rm -f conftest2.*
5712 if { { case "(($ac_try" in
5713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5714 *) ac_try_echo=$ac_try;;
5715 esac
5716 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5717 $as_echo "$ac_try_echo"; } >&5
5718 (eval "$ac_try") 2>&5
5719 ac_status=$?
5720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5721 test $ac_status = 0; } &&
5722 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5724 *) ac_try_echo=$ac_try;;
5725 esac
5726 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5727 $as_echo "$ac_try_echo"; } >&5
5728 (eval "$ac_try") 2>&5
5729 ac_status=$?
5730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5731 test $ac_status = 0; };
5732 then
5733 # cc works too.
5735 else
5736 # cc exists but doesn't like -o.
5737 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5741 else
5742 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5744 rm -f core conftest*
5747 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5749 $as_echo "yes" >&6; }
5750 else
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5752 $as_echo "no" >&6; }
5754 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5758 # FIXME: we rely on the cache variable name because
5759 # there is no other way.
5760 set dummy $CC
5761 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5762 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5763 if test "$am_t" != yes; then
5764 # Losing compiler, so override with the script.
5765 # FIXME: It is wrong to rewrite CC.
5766 # But if we don't then we get into trouble of one sort or another.
5767 # A longer-term fix would be to have automake use am__CC in this case,
5768 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5769 CC="$am_aux_dir/compile $CC"
5777 # Newer automakes demand CCAS and CCASFLAGS.
5778 : ${CCAS='$(CC)'}
5779 : ${CCASFLAGS='$(CFLAGS)'}
5783 if test -n "$ac_tool_prefix"; then
5784 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5785 set dummy ${ac_tool_prefix}as; ac_word=$2
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5787 $as_echo_n "checking for $ac_word... " >&6; }
5788 if test "${ac_cv_prog_AS+set}" = set; then :
5789 $as_echo_n "(cached) " >&6
5790 else
5791 if test -n "$AS"; then
5792 ac_cv_prog_AS="$AS" # Let the user override the test.
5793 else
5794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5795 for as_dir in $PATH
5797 IFS=$as_save_IFS
5798 test -z "$as_dir" && as_dir=.
5799 for ac_exec_ext in '' $ac_executable_extensions; do
5800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5801 ac_cv_prog_AS="${ac_tool_prefix}as"
5802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5803 break 2
5805 done
5806 done
5807 IFS=$as_save_IFS
5811 AS=$ac_cv_prog_AS
5812 if test -n "$AS"; then
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5814 $as_echo "$AS" >&6; }
5815 else
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5817 $as_echo "no" >&6; }
5822 if test -z "$ac_cv_prog_AS"; then
5823 ac_ct_AS=$AS
5824 # Extract the first word of "as", so it can be a program name with args.
5825 set dummy as; ac_word=$2
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5827 $as_echo_n "checking for $ac_word... " >&6; }
5828 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
5829 $as_echo_n "(cached) " >&6
5830 else
5831 if test -n "$ac_ct_AS"; then
5832 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5833 else
5834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5835 for as_dir in $PATH
5837 IFS=$as_save_IFS
5838 test -z "$as_dir" && as_dir=.
5839 for ac_exec_ext in '' $ac_executable_extensions; do
5840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5841 ac_cv_prog_ac_ct_AS="as"
5842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5843 break 2
5845 done
5846 done
5847 IFS=$as_save_IFS
5851 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5852 if test -n "$ac_ct_AS"; then
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5854 $as_echo "$ac_ct_AS" >&6; }
5855 else
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5857 $as_echo "no" >&6; }
5860 if test "x$ac_ct_AS" = x; then
5861 AS=""
5862 else
5863 case $cross_compiling:$ac_tool_warned in
5864 yes:)
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5866 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5867 ac_tool_warned=yes ;;
5868 esac
5869 AS=$ac_ct_AS
5871 else
5872 AS="$ac_cv_prog_AS"
5875 if test -n "$ac_tool_prefix"; then
5876 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5877 set dummy ${ac_tool_prefix}ar; ac_word=$2
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5879 $as_echo_n "checking for $ac_word... " >&6; }
5880 if test "${ac_cv_prog_AR+set}" = set; then :
5881 $as_echo_n "(cached) " >&6
5882 else
5883 if test -n "$AR"; then
5884 ac_cv_prog_AR="$AR" # Let the user override the test.
5885 else
5886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5887 for as_dir in $PATH
5889 IFS=$as_save_IFS
5890 test -z "$as_dir" && as_dir=.
5891 for ac_exec_ext in '' $ac_executable_extensions; do
5892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5893 ac_cv_prog_AR="${ac_tool_prefix}ar"
5894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5895 break 2
5897 done
5898 done
5899 IFS=$as_save_IFS
5903 AR=$ac_cv_prog_AR
5904 if test -n "$AR"; then
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5906 $as_echo "$AR" >&6; }
5907 else
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5909 $as_echo "no" >&6; }
5914 if test -z "$ac_cv_prog_AR"; then
5915 ac_ct_AR=$AR
5916 # Extract the first word of "ar", so it can be a program name with args.
5917 set dummy ar; ac_word=$2
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5919 $as_echo_n "checking for $ac_word... " >&6; }
5920 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5921 $as_echo_n "(cached) " >&6
5922 else
5923 if test -n "$ac_ct_AR"; then
5924 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5925 else
5926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5927 for as_dir in $PATH
5929 IFS=$as_save_IFS
5930 test -z "$as_dir" && as_dir=.
5931 for ac_exec_ext in '' $ac_executable_extensions; do
5932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5933 ac_cv_prog_ac_ct_AR="ar"
5934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5935 break 2
5937 done
5938 done
5939 IFS=$as_save_IFS
5943 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5944 if test -n "$ac_ct_AR"; then
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5946 $as_echo "$ac_ct_AR" >&6; }
5947 else
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5949 $as_echo "no" >&6; }
5952 if test "x$ac_ct_AR" = x; then
5953 AR=""
5954 else
5955 case $cross_compiling:$ac_tool_warned in
5956 yes:)
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5958 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5959 ac_tool_warned=yes ;;
5960 esac
5961 AR=$ac_ct_AR
5963 else
5964 AR="$ac_cv_prog_AR"
5967 if test -n "$ac_tool_prefix"; then
5968 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5969 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5971 $as_echo_n "checking for $ac_word... " >&6; }
5972 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5973 $as_echo_n "(cached) " >&6
5974 else
5975 if test -n "$RANLIB"; then
5976 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5977 else
5978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5979 for as_dir in $PATH
5981 IFS=$as_save_IFS
5982 test -z "$as_dir" && as_dir=.
5983 for ac_exec_ext in '' $ac_executable_extensions; do
5984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5985 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5987 break 2
5989 done
5990 done
5991 IFS=$as_save_IFS
5995 RANLIB=$ac_cv_prog_RANLIB
5996 if test -n "$RANLIB"; then
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5998 $as_echo "$RANLIB" >&6; }
5999 else
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6001 $as_echo "no" >&6; }
6006 if test -z "$ac_cv_prog_RANLIB"; then
6007 ac_ct_RANLIB=$RANLIB
6008 # Extract the first word of "ranlib", so it can be a program name with args.
6009 set dummy ranlib; ac_word=$2
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6011 $as_echo_n "checking for $ac_word... " >&6; }
6012 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6013 $as_echo_n "(cached) " >&6
6014 else
6015 if test -n "$ac_ct_RANLIB"; then
6016 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6017 else
6018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6019 for as_dir in $PATH
6021 IFS=$as_save_IFS
6022 test -z "$as_dir" && as_dir=.
6023 for ac_exec_ext in '' $ac_executable_extensions; do
6024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6025 ac_cv_prog_ac_ct_RANLIB="ranlib"
6026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6027 break 2
6029 done
6030 done
6031 IFS=$as_save_IFS
6035 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6036 if test -n "$ac_ct_RANLIB"; then
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6038 $as_echo "$ac_ct_RANLIB" >&6; }
6039 else
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6041 $as_echo "no" >&6; }
6044 if test "x$ac_ct_RANLIB" = x; then
6045 RANLIB=":"
6046 else
6047 case $cross_compiling:$ac_tool_warned in
6048 yes:)
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6050 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6051 ac_tool_warned=yes ;;
6052 esac
6053 RANLIB=$ac_ct_RANLIB
6055 else
6056 RANLIB="$ac_cv_prog_RANLIB"
6060 # Configure libtool
6061 enable_dlopen=yes
6065 case `pwd` in
6066 *\ * | *\ *)
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6068 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6069 esac
6073 macro_version='2.2.7a'
6074 macro_revision='1.3134'
6088 ltmain="$ac_aux_dir/ltmain.sh"
6090 # Backslashify metacharacters that are still active within
6091 # double-quoted strings.
6092 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6094 # Same as above, but do not quote variable references.
6095 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6097 # Sed substitution to delay expansion of an escaped shell variable in a
6098 # double_quote_subst'ed string.
6099 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6101 # Sed substitution to delay expansion of an escaped single quote.
6102 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6104 # Sed substitution to avoid accidental globbing in evaled expressions
6105 no_glob_subst='s/\*/\\\*/g'
6107 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6108 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6109 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6112 $as_echo_n "checking how to print strings... " >&6; }
6113 # Test print first, because it will be a builtin if present.
6114 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6115 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6116 ECHO='print -r --'
6117 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6118 ECHO='printf %s\n'
6119 else
6120 # Use this function as a fallback that always works.
6121 func_fallback_echo ()
6123 eval 'cat <<_LTECHO_EOF
6125 _LTECHO_EOF'
6127 ECHO='func_fallback_echo'
6130 # func_echo_all arg...
6131 # Invoke $ECHO with all args, space-separated.
6132 func_echo_all ()
6134 $ECHO ""
6137 case "$ECHO" in
6138 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6139 $as_echo "printf" >&6; } ;;
6140 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6141 $as_echo "print -r" >&6; } ;;
6142 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6143 $as_echo "cat" >&6; } ;;
6144 esac
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6160 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6161 if test "${ac_cv_path_SED+set}" = set; then :
6162 $as_echo_n "(cached) " >&6
6163 else
6164 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6165 for ac_i in 1 2 3 4 5 6 7; do
6166 ac_script="$ac_script$as_nl$ac_script"
6167 done
6168 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6169 { ac_script=; unset ac_script;}
6170 if test -z "$SED"; then
6171 ac_path_SED_found=false
6172 # Loop through the user's path and test for each of PROGNAME-LIST
6173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6174 for as_dir in $PATH
6176 IFS=$as_save_IFS
6177 test -z "$as_dir" && as_dir=.
6178 for ac_prog in sed gsed; do
6179 for ac_exec_ext in '' $ac_executable_extensions; do
6180 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6181 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6182 # Check for GNU ac_path_SED and select it if it is found.
6183 # Check for GNU $ac_path_SED
6184 case `"$ac_path_SED" --version 2>&1` in
6185 *GNU*)
6186 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6188 ac_count=0
6189 $as_echo_n 0123456789 >"conftest.in"
6190 while :
6192 cat "conftest.in" "conftest.in" >"conftest.tmp"
6193 mv "conftest.tmp" "conftest.in"
6194 cp "conftest.in" "conftest.nl"
6195 $as_echo '' >> "conftest.nl"
6196 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6197 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6198 as_fn_arith $ac_count + 1 && ac_count=$as_val
6199 if test $ac_count -gt ${ac_path_SED_max-0}; then
6200 # Best one so far, save it but keep looking for a better one
6201 ac_cv_path_SED="$ac_path_SED"
6202 ac_path_SED_max=$ac_count
6204 # 10*(2^10) chars as input seems more than enough
6205 test $ac_count -gt 10 && break
6206 done
6207 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6208 esac
6210 $ac_path_SED_found && break 3
6211 done
6212 done
6213 done
6214 IFS=$as_save_IFS
6215 if test -z "$ac_cv_path_SED"; then
6216 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6218 else
6219 ac_cv_path_SED=$SED
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6224 $as_echo "$ac_cv_path_SED" >&6; }
6225 SED="$ac_cv_path_SED"
6226 rm -f conftest.sed
6228 test -z "$SED" && SED=sed
6229 Xsed="$SED -e 1s/^X//"
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6242 $as_echo_n "checking for fgrep... " >&6; }
6243 if test "${ac_cv_path_FGREP+set}" = set; then :
6244 $as_echo_n "(cached) " >&6
6245 else
6246 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6247 then ac_cv_path_FGREP="$GREP -F"
6248 else
6249 if test -z "$FGREP"; then
6250 ac_path_FGREP_found=false
6251 # Loop through the user's path and test for each of PROGNAME-LIST
6252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6253 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6255 IFS=$as_save_IFS
6256 test -z "$as_dir" && as_dir=.
6257 for ac_prog in fgrep; do
6258 for ac_exec_ext in '' $ac_executable_extensions; do
6259 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6260 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6261 # Check for GNU ac_path_FGREP and select it if it is found.
6262 # Check for GNU $ac_path_FGREP
6263 case `"$ac_path_FGREP" --version 2>&1` in
6264 *GNU*)
6265 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6267 ac_count=0
6268 $as_echo_n 0123456789 >"conftest.in"
6269 while :
6271 cat "conftest.in" "conftest.in" >"conftest.tmp"
6272 mv "conftest.tmp" "conftest.in"
6273 cp "conftest.in" "conftest.nl"
6274 $as_echo 'FGREP' >> "conftest.nl"
6275 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6276 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6277 as_fn_arith $ac_count + 1 && ac_count=$as_val
6278 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6279 # Best one so far, save it but keep looking for a better one
6280 ac_cv_path_FGREP="$ac_path_FGREP"
6281 ac_path_FGREP_max=$ac_count
6283 # 10*(2^10) chars as input seems more than enough
6284 test $ac_count -gt 10 && break
6285 done
6286 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6287 esac
6289 $ac_path_FGREP_found && break 3
6290 done
6291 done
6292 done
6293 IFS=$as_save_IFS
6294 if test -z "$ac_cv_path_FGREP"; then
6295 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6297 else
6298 ac_cv_path_FGREP=$FGREP
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6304 $as_echo "$ac_cv_path_FGREP" >&6; }
6305 FGREP="$ac_cv_path_FGREP"
6308 test -z "$GREP" && GREP=grep
6328 # Check whether --with-gnu-ld was given.
6329 if test "${with_gnu_ld+set}" = set; then :
6330 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6331 else
6332 with_gnu_ld=no
6335 ac_prog=ld
6336 if test "$GCC" = yes; then
6337 # Check if gcc -print-prog-name=ld gives a path.
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6339 $as_echo_n "checking for ld used by $CC... " >&6; }
6340 case $host in
6341 *-*-mingw*)
6342 # gcc leaves a trailing carriage return which upsets mingw
6343 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6345 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6346 esac
6347 case $ac_prog in
6348 # Accept absolute paths.
6349 [\\/]* | ?:[\\/]*)
6350 re_direlt='/[^/][^/]*/\.\./'
6351 # Canonicalize the pathname of ld
6352 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6353 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6354 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6355 done
6356 test -z "$LD" && LD="$ac_prog"
6359 # If it fails, then pretend we aren't using GCC.
6360 ac_prog=ld
6363 # If it is relative, then search for the first ld in PATH.
6364 with_gnu_ld=unknown
6366 esac
6367 elif test "$with_gnu_ld" = yes; then
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6369 $as_echo_n "checking for GNU ld... " >&6; }
6370 else
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6372 $as_echo_n "checking for non-GNU ld... " >&6; }
6374 if test "${lt_cv_path_LD+set}" = set; then :
6375 $as_echo_n "(cached) " >&6
6376 else
6377 if test -z "$LD"; then
6378 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6379 for ac_dir in $PATH; do
6380 IFS="$lt_save_ifs"
6381 test -z "$ac_dir" && ac_dir=.
6382 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6383 lt_cv_path_LD="$ac_dir/$ac_prog"
6384 # Check to see if the program is GNU ld. I'd rather use --version,
6385 # but apparently some variants of GNU ld only accept -v.
6386 # Break only if it was the GNU/non-GNU ld that we prefer.
6387 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6388 *GNU* | *'with BFD'*)
6389 test "$with_gnu_ld" != no && break
6392 test "$with_gnu_ld" != yes && break
6394 esac
6396 done
6397 IFS="$lt_save_ifs"
6398 else
6399 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6403 LD="$lt_cv_path_LD"
6404 if test -n "$LD"; then
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6406 $as_echo "$LD" >&6; }
6407 else
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6409 $as_echo "no" >&6; }
6411 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6413 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6414 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6415 $as_echo_n "(cached) " >&6
6416 else
6417 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6418 case `$LD -v 2>&1 </dev/null` in
6419 *GNU* | *'with BFD'*)
6420 lt_cv_prog_gnu_ld=yes
6423 lt_cv_prog_gnu_ld=no
6425 esac
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6428 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6429 with_gnu_ld=$lt_cv_prog_gnu_ld
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6440 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6441 if test "${lt_cv_path_NM+set}" = set; then :
6442 $as_echo_n "(cached) " >&6
6443 else
6444 if test -n "$NM"; then
6445 # Let the user override the test.
6446 lt_cv_path_NM="$NM"
6447 else
6448 lt_nm_to_check="${ac_tool_prefix}nm"
6449 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6450 lt_nm_to_check="$lt_nm_to_check nm"
6452 for lt_tmp_nm in $lt_nm_to_check; do
6453 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6454 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6455 IFS="$lt_save_ifs"
6456 test -z "$ac_dir" && ac_dir=.
6457 tmp_nm="$ac_dir/$lt_tmp_nm"
6458 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6459 # Check to see if the nm accepts a BSD-compat flag.
6460 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6461 # nm: unknown option "B" ignored
6462 # Tru64's nm complains that /dev/null is an invalid object file
6463 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6464 */dev/null* | *'Invalid file or object type'*)
6465 lt_cv_path_NM="$tmp_nm -B"
6466 break
6469 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6470 */dev/null*)
6471 lt_cv_path_NM="$tmp_nm -p"
6472 break
6475 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6476 continue # so that we can try to find one that supports BSD flags
6478 esac
6480 esac
6482 done
6483 IFS="$lt_save_ifs"
6484 done
6485 : ${lt_cv_path_NM=no}
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6489 $as_echo "$lt_cv_path_NM" >&6; }
6490 if test "$lt_cv_path_NM" != "no"; then
6491 NM="$lt_cv_path_NM"
6492 else
6493 # Didn't find any BSD compatible name lister, look for dumpbin.
6494 if test -n "$DUMPBIN"; then :
6495 # Let the user override the test.
6496 else
6497 if test -n "$ac_tool_prefix"; then
6498 for ac_prog in dumpbin "link -dump"
6500 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6501 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6503 $as_echo_n "checking for $ac_word... " >&6; }
6504 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6505 $as_echo_n "(cached) " >&6
6506 else
6507 if test -n "$DUMPBIN"; then
6508 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6509 else
6510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6511 for as_dir in $PATH
6513 IFS=$as_save_IFS
6514 test -z "$as_dir" && as_dir=.
6515 for ac_exec_ext in '' $ac_executable_extensions; do
6516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6517 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6519 break 2
6521 done
6522 done
6523 IFS=$as_save_IFS
6527 DUMPBIN=$ac_cv_prog_DUMPBIN
6528 if test -n "$DUMPBIN"; then
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6530 $as_echo "$DUMPBIN" >&6; }
6531 else
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6533 $as_echo "no" >&6; }
6537 test -n "$DUMPBIN" && break
6538 done
6540 if test -z "$DUMPBIN"; then
6541 ac_ct_DUMPBIN=$DUMPBIN
6542 for ac_prog in dumpbin "link -dump"
6544 # Extract the first word of "$ac_prog", so it can be a program name with args.
6545 set dummy $ac_prog; ac_word=$2
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6547 $as_echo_n "checking for $ac_word... " >&6; }
6548 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6549 $as_echo_n "(cached) " >&6
6550 else
6551 if test -n "$ac_ct_DUMPBIN"; then
6552 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6553 else
6554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6555 for as_dir in $PATH
6557 IFS=$as_save_IFS
6558 test -z "$as_dir" && as_dir=.
6559 for ac_exec_ext in '' $ac_executable_extensions; do
6560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6561 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6563 break 2
6565 done
6566 done
6567 IFS=$as_save_IFS
6571 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6572 if test -n "$ac_ct_DUMPBIN"; then
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6574 $as_echo "$ac_ct_DUMPBIN" >&6; }
6575 else
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6577 $as_echo "no" >&6; }
6581 test -n "$ac_ct_DUMPBIN" && break
6582 done
6584 if test "x$ac_ct_DUMPBIN" = x; then
6585 DUMPBIN=":"
6586 else
6587 case $cross_compiling:$ac_tool_warned in
6588 yes:)
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6590 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6591 ac_tool_warned=yes ;;
6592 esac
6593 DUMPBIN=$ac_ct_DUMPBIN
6597 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6598 *COFF*)
6599 DUMPBIN="$DUMPBIN -symbols"
6602 DUMPBIN=:
6604 esac
6607 if test "$DUMPBIN" != ":"; then
6608 NM="$DUMPBIN"
6611 test -z "$NM" && NM=nm
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6619 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6620 if test "${lt_cv_nm_interface+set}" = set; then :
6621 $as_echo_n "(cached) " >&6
6622 else
6623 lt_cv_nm_interface="BSD nm"
6624 echo "int some_variable = 0;" > conftest.$ac_ext
6625 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6626 (eval "$ac_compile" 2>conftest.err)
6627 cat conftest.err >&5
6628 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6629 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6630 cat conftest.err >&5
6631 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6632 cat conftest.out >&5
6633 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6634 lt_cv_nm_interface="MS dumpbin"
6636 rm -f conftest*
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6639 $as_echo "$lt_cv_nm_interface" >&6; }
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6642 $as_echo_n "checking whether ln -s works... " >&6; }
6643 LN_S=$as_ln_s
6644 if test "$LN_S" = "ln -s"; then
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6646 $as_echo "yes" >&6; }
6647 else
6648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6649 $as_echo "no, using $LN_S" >&6; }
6652 # find the maximum length of command line arguments
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6654 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6655 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6656 $as_echo_n "(cached) " >&6
6657 else
6659 teststring="ABCD"
6661 case $build_os in
6662 msdosdjgpp*)
6663 # On DJGPP, this test can blow up pretty badly due to problems in libc
6664 # (any single argument exceeding 2000 bytes causes a buffer overrun
6665 # during glob expansion). Even if it were fixed, the result of this
6666 # check would be larger than it should be.
6667 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6670 gnu*)
6671 # Under GNU Hurd, this test is not required because there is
6672 # no limit to the length of command line arguments.
6673 # Libtool will interpret -1 as no limit whatsoever
6674 lt_cv_sys_max_cmd_len=-1;
6677 cygwin* | mingw* | cegcc*)
6678 # On Win9x/ME, this test blows up -- it succeeds, but takes
6679 # about 5 minutes as the teststring grows exponentially.
6680 # Worse, since 9x/ME are not pre-emptively multitasking,
6681 # you end up with a "frozen" computer, even though with patience
6682 # the test eventually succeeds (with a max line length of 256k).
6683 # Instead, let's just punt: use the minimum linelength reported by
6684 # all of the supported platforms: 8192 (on NT/2K/XP).
6685 lt_cv_sys_max_cmd_len=8192;
6688 mint*)
6689 # On MiNT this can take a long time and run out of memory.
6690 lt_cv_sys_max_cmd_len=8192;
6693 amigaos*)
6694 # On AmigaOS with pdksh, this test takes hours, literally.
6695 # So we just punt and use a minimum line length of 8192.
6696 lt_cv_sys_max_cmd_len=8192;
6699 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6700 # This has been around since 386BSD, at least. Likely further.
6701 if test -x /sbin/sysctl; then
6702 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6703 elif test -x /usr/sbin/sysctl; then
6704 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6705 else
6706 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6708 # And add a safety zone
6709 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6710 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6713 interix*)
6714 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6715 lt_cv_sys_max_cmd_len=196608
6718 osf*)
6719 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6720 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6721 # nice to cause kernel panics so lets avoid the loop below.
6722 # First set a reasonable default.
6723 lt_cv_sys_max_cmd_len=16384
6725 if test -x /sbin/sysconfig; then
6726 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6727 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6728 esac
6731 sco3.2v5*)
6732 lt_cv_sys_max_cmd_len=102400
6734 sysv5* | sco5v6* | sysv4.2uw2*)
6735 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6736 if test -n "$kargmax"; then
6737 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6738 else
6739 lt_cv_sys_max_cmd_len=32768
6743 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6744 if test -n "$lt_cv_sys_max_cmd_len"; then
6745 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6746 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6747 else
6748 # Make teststring a little bigger before we do anything with it.
6749 # a 1K string should be a reasonable start.
6750 for i in 1 2 3 4 5 6 7 8 ; do
6751 teststring=$teststring$teststring
6752 done
6753 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6754 # If test is not a shell built-in, we'll probably end up computing a
6755 # maximum length that is only half of the actual maximum length, but
6756 # we can't tell.
6757 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6758 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6759 test $i != 17 # 1/2 MB should be enough
6761 i=`expr $i + 1`
6762 teststring=$teststring$teststring
6763 done
6764 # Only check the string length outside the loop.
6765 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6766 teststring=
6767 # Add a significant safety factor because C++ compilers can tack on
6768 # massive amounts of additional arguments before passing them to the
6769 # linker. It appears as though 1/2 is a usable value.
6770 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6773 esac
6777 if test -n $lt_cv_sys_max_cmd_len ; then
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6779 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6780 else
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6782 $as_echo "none" >&6; }
6784 max_cmd_len=$lt_cv_sys_max_cmd_len
6791 : ${CP="cp -f"}
6792 : ${MV="mv -f"}
6793 : ${RM="rm -f"}
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6796 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6797 # Try some XSI features
6798 xsi_shell=no
6799 ( _lt_dummy="a/b/c"
6800 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6801 = c,a/b,, \
6802 && eval 'test $(( 1 + 1 )) -eq 2 \
6803 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6804 && xsi_shell=yes
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6806 $as_echo "$xsi_shell" >&6; }
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6810 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6811 lt_shell_append=no
6812 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6813 >/dev/null 2>&1 \
6814 && lt_shell_append=yes
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6816 $as_echo "$lt_shell_append" >&6; }
6819 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6820 lt_unset=unset
6821 else
6822 lt_unset=false
6829 # test EBCDIC or ASCII
6830 case `echo X|tr X '\101'` in
6831 A) # ASCII based system
6832 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6833 lt_SP2NL='tr \040 \012'
6834 lt_NL2SP='tr \015\012 \040\040'
6836 *) # EBCDIC based system
6837 lt_SP2NL='tr \100 \n'
6838 lt_NL2SP='tr \r\n \100\100'
6840 esac
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6851 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6852 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6853 $as_echo_n "(cached) " >&6
6854 else
6855 lt_cv_ld_reload_flag='-r'
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6858 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6859 reload_flag=$lt_cv_ld_reload_flag
6860 case $reload_flag in
6861 "" | " "*) ;;
6862 *) reload_flag=" $reload_flag" ;;
6863 esac
6864 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6865 case $host_os in
6866 darwin*)
6867 if test "$GCC" = yes; then
6868 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6869 else
6870 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6873 esac
6883 if test -n "$ac_tool_prefix"; then
6884 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6885 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6887 $as_echo_n "checking for $ac_word... " >&6; }
6888 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6889 $as_echo_n "(cached) " >&6
6890 else
6891 if test -n "$OBJDUMP"; then
6892 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6893 else
6894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6895 for as_dir in $PATH
6897 IFS=$as_save_IFS
6898 test -z "$as_dir" && as_dir=.
6899 for ac_exec_ext in '' $ac_executable_extensions; do
6900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6901 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6903 break 2
6905 done
6906 done
6907 IFS=$as_save_IFS
6911 OBJDUMP=$ac_cv_prog_OBJDUMP
6912 if test -n "$OBJDUMP"; then
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6914 $as_echo "$OBJDUMP" >&6; }
6915 else
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6917 $as_echo "no" >&6; }
6922 if test -z "$ac_cv_prog_OBJDUMP"; then
6923 ac_ct_OBJDUMP=$OBJDUMP
6924 # Extract the first word of "objdump", so it can be a program name with args.
6925 set dummy objdump; ac_word=$2
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6927 $as_echo_n "checking for $ac_word... " >&6; }
6928 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6929 $as_echo_n "(cached) " >&6
6930 else
6931 if test -n "$ac_ct_OBJDUMP"; then
6932 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6933 else
6934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6935 for as_dir in $PATH
6937 IFS=$as_save_IFS
6938 test -z "$as_dir" && as_dir=.
6939 for ac_exec_ext in '' $ac_executable_extensions; do
6940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6941 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6943 break 2
6945 done
6946 done
6947 IFS=$as_save_IFS
6951 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6952 if test -n "$ac_ct_OBJDUMP"; then
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6954 $as_echo "$ac_ct_OBJDUMP" >&6; }
6955 else
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6957 $as_echo "no" >&6; }
6960 if test "x$ac_ct_OBJDUMP" = x; then
6961 OBJDUMP="false"
6962 else
6963 case $cross_compiling:$ac_tool_warned in
6964 yes:)
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6966 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6967 ac_tool_warned=yes ;;
6968 esac
6969 OBJDUMP=$ac_ct_OBJDUMP
6971 else
6972 OBJDUMP="$ac_cv_prog_OBJDUMP"
6975 test -z "$OBJDUMP" && OBJDUMP=objdump
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6986 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6987 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6988 $as_echo_n "(cached) " >&6
6989 else
6990 lt_cv_file_magic_cmd='$MAGIC_CMD'
6991 lt_cv_file_magic_test_file=
6992 lt_cv_deplibs_check_method='unknown'
6993 # Need to set the preceding variable on all platforms that support
6994 # interlibrary dependencies.
6995 # 'none' -- dependencies not supported.
6996 # `unknown' -- same as none, but documents that we really don't know.
6997 # 'pass_all' -- all dependencies passed with no checks.
6998 # 'test_compile' -- check by making test program.
6999 # 'file_magic [[regex]]' -- check by looking for files in library path
7000 # which responds to the $file_magic_cmd with a given extended regex.
7001 # If you have `file' or equivalent on your system and you're not sure
7002 # whether `pass_all' will *always* work, you probably want this one.
7004 case $host_os in
7005 aix[4-9]*)
7006 lt_cv_deplibs_check_method=pass_all
7009 beos*)
7010 lt_cv_deplibs_check_method=pass_all
7013 bsdi[45]*)
7014 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7015 lt_cv_file_magic_cmd='/usr/bin/file -L'
7016 lt_cv_file_magic_test_file=/shlib/libc.so
7019 cygwin*)
7020 # func_win32_libid is a shell function defined in ltmain.sh
7021 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7022 lt_cv_file_magic_cmd='func_win32_libid'
7025 mingw* | pw32*)
7026 # Base MSYS/MinGW do not provide the 'file' command needed by
7027 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7028 # unless we find 'file', for example because we are cross-compiling.
7029 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7030 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7031 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7032 lt_cv_file_magic_cmd='func_win32_libid'
7033 else
7034 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7035 lt_cv_file_magic_cmd='$OBJDUMP -f'
7039 cegcc*)
7040 # use the weaker test based on 'objdump'. See mingw*.
7041 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7042 lt_cv_file_magic_cmd='$OBJDUMP -f'
7045 darwin* | rhapsody*)
7046 lt_cv_deplibs_check_method=pass_all
7049 freebsd* | dragonfly*)
7050 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7051 case $host_cpu in
7052 i*86 )
7053 # Not sure whether the presence of OpenBSD here was a mistake.
7054 # Let's accept both of them until this is cleared up.
7055 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7056 lt_cv_file_magic_cmd=/usr/bin/file
7057 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7059 esac
7060 else
7061 lt_cv_deplibs_check_method=pass_all
7065 gnu*)
7066 lt_cv_deplibs_check_method=pass_all
7069 haiku*)
7070 lt_cv_deplibs_check_method=pass_all
7073 hpux10.20* | hpux11*)
7074 lt_cv_file_magic_cmd=/usr/bin/file
7075 case $host_cpu in
7076 ia64*)
7077 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7078 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7080 hppa*64*)
7081 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]'
7082 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7085 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7086 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7088 esac
7091 interix[3-9]*)
7092 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7093 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7096 irix5* | irix6* | nonstopux*)
7097 case $LD in
7098 *-32|*"-32 ") libmagic=32-bit;;
7099 *-n32|*"-n32 ") libmagic=N32;;
7100 *-64|*"-64 ") libmagic=64-bit;;
7101 *) libmagic=never-match;;
7102 esac
7103 lt_cv_deplibs_check_method=pass_all
7106 # This must be Linux ELF.
7107 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7108 lt_cv_deplibs_check_method=pass_all
7111 netbsd*)
7112 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7113 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7114 else
7115 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7119 newos6*)
7120 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7121 lt_cv_file_magic_cmd=/usr/bin/file
7122 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7125 *nto* | *qnx*)
7126 lt_cv_deplibs_check_method=pass_all
7129 openbsd*)
7130 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7131 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7132 else
7133 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7137 osf3* | osf4* | osf5*)
7138 lt_cv_deplibs_check_method=pass_all
7141 rdos*)
7142 lt_cv_deplibs_check_method=pass_all
7145 solaris*)
7146 lt_cv_deplibs_check_method=pass_all
7149 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7150 lt_cv_deplibs_check_method=pass_all
7153 sysv4 | sysv4.3*)
7154 case $host_vendor in
7155 motorola)
7156 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]'
7157 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7159 ncr)
7160 lt_cv_deplibs_check_method=pass_all
7162 sequent)
7163 lt_cv_file_magic_cmd='/bin/file'
7164 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7166 sni)
7167 lt_cv_file_magic_cmd='/bin/file'
7168 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7169 lt_cv_file_magic_test_file=/lib/libc.so
7171 siemens)
7172 lt_cv_deplibs_check_method=pass_all
7175 lt_cv_deplibs_check_method=pass_all
7177 esac
7180 tpf*)
7181 lt_cv_deplibs_check_method=pass_all
7183 esac
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7187 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7188 file_magic_cmd=$lt_cv_file_magic_cmd
7189 deplibs_check_method=$lt_cv_deplibs_check_method
7190 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7203 if test -n "$ac_tool_prefix"; then
7204 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7205 set dummy ${ac_tool_prefix}ar; ac_word=$2
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7207 $as_echo_n "checking for $ac_word... " >&6; }
7208 if test "${ac_cv_prog_AR+set}" = set; then :
7209 $as_echo_n "(cached) " >&6
7210 else
7211 if test -n "$AR"; then
7212 ac_cv_prog_AR="$AR" # Let the user override the test.
7213 else
7214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7215 for as_dir in $PATH
7217 IFS=$as_save_IFS
7218 test -z "$as_dir" && as_dir=.
7219 for ac_exec_ext in '' $ac_executable_extensions; do
7220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7221 ac_cv_prog_AR="${ac_tool_prefix}ar"
7222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7223 break 2
7225 done
7226 done
7227 IFS=$as_save_IFS
7231 AR=$ac_cv_prog_AR
7232 if test -n "$AR"; then
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7234 $as_echo "$AR" >&6; }
7235 else
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7237 $as_echo "no" >&6; }
7242 if test -z "$ac_cv_prog_AR"; then
7243 ac_ct_AR=$AR
7244 # Extract the first word of "ar", so it can be a program name with args.
7245 set dummy ar; ac_word=$2
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7247 $as_echo_n "checking for $ac_word... " >&6; }
7248 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7249 $as_echo_n "(cached) " >&6
7250 else
7251 if test -n "$ac_ct_AR"; then
7252 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7253 else
7254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7255 for as_dir in $PATH
7257 IFS=$as_save_IFS
7258 test -z "$as_dir" && as_dir=.
7259 for ac_exec_ext in '' $ac_executable_extensions; do
7260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7261 ac_cv_prog_ac_ct_AR="ar"
7262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7263 break 2
7265 done
7266 done
7267 IFS=$as_save_IFS
7271 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7272 if test -n "$ac_ct_AR"; then
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7274 $as_echo "$ac_ct_AR" >&6; }
7275 else
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7277 $as_echo "no" >&6; }
7280 if test "x$ac_ct_AR" = x; then
7281 AR="false"
7282 else
7283 case $cross_compiling:$ac_tool_warned in
7284 yes:)
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7286 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7287 ac_tool_warned=yes ;;
7288 esac
7289 AR=$ac_ct_AR
7291 else
7292 AR="$ac_cv_prog_AR"
7295 test -z "$AR" && AR=ar
7296 test -z "$AR_FLAGS" && AR_FLAGS=cru
7308 if test -n "$ac_tool_prefix"; then
7309 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7310 set dummy ${ac_tool_prefix}strip; ac_word=$2
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7312 $as_echo_n "checking for $ac_word... " >&6; }
7313 if test "${ac_cv_prog_STRIP+set}" = set; then :
7314 $as_echo_n "(cached) " >&6
7315 else
7316 if test -n "$STRIP"; then
7317 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7318 else
7319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7320 for as_dir in $PATH
7322 IFS=$as_save_IFS
7323 test -z "$as_dir" && as_dir=.
7324 for ac_exec_ext in '' $ac_executable_extensions; do
7325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7326 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7328 break 2
7330 done
7331 done
7332 IFS=$as_save_IFS
7336 STRIP=$ac_cv_prog_STRIP
7337 if test -n "$STRIP"; then
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7339 $as_echo "$STRIP" >&6; }
7340 else
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7342 $as_echo "no" >&6; }
7347 if test -z "$ac_cv_prog_STRIP"; then
7348 ac_ct_STRIP=$STRIP
7349 # Extract the first word of "strip", so it can be a program name with args.
7350 set dummy strip; ac_word=$2
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7352 $as_echo_n "checking for $ac_word... " >&6; }
7353 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7354 $as_echo_n "(cached) " >&6
7355 else
7356 if test -n "$ac_ct_STRIP"; then
7357 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7358 else
7359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7360 for as_dir in $PATH
7362 IFS=$as_save_IFS
7363 test -z "$as_dir" && as_dir=.
7364 for ac_exec_ext in '' $ac_executable_extensions; do
7365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7366 ac_cv_prog_ac_ct_STRIP="strip"
7367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7368 break 2
7370 done
7371 done
7372 IFS=$as_save_IFS
7376 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7377 if test -n "$ac_ct_STRIP"; then
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7379 $as_echo "$ac_ct_STRIP" >&6; }
7380 else
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7382 $as_echo "no" >&6; }
7385 if test "x$ac_ct_STRIP" = x; then
7386 STRIP=":"
7387 else
7388 case $cross_compiling:$ac_tool_warned in
7389 yes:)
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7391 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7392 ac_tool_warned=yes ;;
7393 esac
7394 STRIP=$ac_ct_STRIP
7396 else
7397 STRIP="$ac_cv_prog_STRIP"
7400 test -z "$STRIP" && STRIP=:
7407 if test -n "$ac_tool_prefix"; then
7408 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7409 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7411 $as_echo_n "checking for $ac_word... " >&6; }
7412 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7413 $as_echo_n "(cached) " >&6
7414 else
7415 if test -n "$RANLIB"; then
7416 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7417 else
7418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7419 for as_dir in $PATH
7421 IFS=$as_save_IFS
7422 test -z "$as_dir" && as_dir=.
7423 for ac_exec_ext in '' $ac_executable_extensions; do
7424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7425 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7427 break 2
7429 done
7430 done
7431 IFS=$as_save_IFS
7435 RANLIB=$ac_cv_prog_RANLIB
7436 if test -n "$RANLIB"; then
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7438 $as_echo "$RANLIB" >&6; }
7439 else
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7441 $as_echo "no" >&6; }
7446 if test -z "$ac_cv_prog_RANLIB"; then
7447 ac_ct_RANLIB=$RANLIB
7448 # Extract the first word of "ranlib", so it can be a program name with args.
7449 set dummy ranlib; ac_word=$2
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7451 $as_echo_n "checking for $ac_word... " >&6; }
7452 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7453 $as_echo_n "(cached) " >&6
7454 else
7455 if test -n "$ac_ct_RANLIB"; then
7456 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7457 else
7458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7459 for as_dir in $PATH
7461 IFS=$as_save_IFS
7462 test -z "$as_dir" && as_dir=.
7463 for ac_exec_ext in '' $ac_executable_extensions; do
7464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7465 ac_cv_prog_ac_ct_RANLIB="ranlib"
7466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7467 break 2
7469 done
7470 done
7471 IFS=$as_save_IFS
7475 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7476 if test -n "$ac_ct_RANLIB"; then
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7478 $as_echo "$ac_ct_RANLIB" >&6; }
7479 else
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7481 $as_echo "no" >&6; }
7484 if test "x$ac_ct_RANLIB" = x; then
7485 RANLIB=":"
7486 else
7487 case $cross_compiling:$ac_tool_warned in
7488 yes:)
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7490 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7491 ac_tool_warned=yes ;;
7492 esac
7493 RANLIB=$ac_ct_RANLIB
7495 else
7496 RANLIB="$ac_cv_prog_RANLIB"
7499 test -z "$RANLIB" && RANLIB=:
7506 # Determine commands to create old-style static archives.
7507 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7508 old_postinstall_cmds='chmod 644 $oldlib'
7509 old_postuninstall_cmds=
7511 if test -n "$RANLIB"; then
7512 case $host_os in
7513 openbsd*)
7514 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7517 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7519 esac
7520 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7523 case $host_os in
7524 darwin*)
7525 lock_old_archive_extraction=yes ;;
7527 lock_old_archive_extraction=no ;;
7528 esac
7568 # If no C compiler was specified, use CC.
7569 LTCC=${LTCC-"$CC"}
7571 # If no C compiler flags were specified, use CFLAGS.
7572 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7574 # Allow CC to be a program name with arguments.
7575 compiler=$CC
7578 # Check for command to grab the raw symbol name followed by C symbol from nm.
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7580 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7581 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7582 $as_echo_n "(cached) " >&6
7583 else
7585 # These are sane defaults that work on at least a few old systems.
7586 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7588 # Character class describing NM global symbol codes.
7589 symcode='[BCDEGRST]'
7591 # Regexp to match symbols that can be accessed directly from C.
7592 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7594 # Define system-specific variables.
7595 case $host_os in
7596 aix*)
7597 symcode='[BCDT]'
7599 cygwin* | mingw* | pw32* | cegcc*)
7600 symcode='[ABCDGISTW]'
7602 hpux*)
7603 if test "$host_cpu" = ia64; then
7604 symcode='[ABCDEGRST]'
7607 irix* | nonstopux*)
7608 symcode='[BCDEGRST]'
7610 osf*)
7611 symcode='[BCDEGQRST]'
7613 solaris*)
7614 symcode='[BDRT]'
7616 sco3.2v5*)
7617 symcode='[DT]'
7619 sysv4.2uw2*)
7620 symcode='[DT]'
7622 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7623 symcode='[ABDT]'
7625 sysv4)
7626 symcode='[DFNSTU]'
7628 esac
7630 # If we're using GNU nm, then use its standard symbol codes.
7631 case `$NM -V 2>&1` in
7632 *GNU* | *'with BFD'*)
7633 symcode='[ABCDGIRSTW]' ;;
7634 esac
7636 # Transform an extracted symbol line into a proper C declaration.
7637 # Some systems (esp. on ia64) link data and code symbols differently,
7638 # so use this general approach.
7639 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7641 # Transform an extracted symbol line into symbol name and symbol address
7642 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7643 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'"
7645 # Handle CRLF in mingw tool chain
7646 opt_cr=
7647 case $build_os in
7648 mingw*)
7649 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7651 esac
7653 # Try without a prefix underscore, then with it.
7654 for ac_symprfx in "" "_"; do
7656 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7657 symxfrm="\\1 $ac_symprfx\\2 \\2"
7659 # Write the raw and C identifiers.
7660 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7661 # Fake it for dumpbin and say T for any non-static function
7662 # and D for any global variable.
7663 # Also find C++ and __fastcall symbols from MSVC++,
7664 # which start with @ or ?.
7665 lt_cv_sys_global_symbol_pipe="$AWK '"\
7666 " {last_section=section; section=\$ 3};"\
7667 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7668 " \$ 0!~/External *\|/{next};"\
7669 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7670 " {if(hide[section]) next};"\
7671 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7672 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7673 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7674 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7675 " ' prfx=^$ac_symprfx"
7676 else
7677 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7680 # Check to see that the pipe works correctly.
7681 pipe_works=no
7683 rm -f conftest*
7684 cat > conftest.$ac_ext <<_LT_EOF
7685 #ifdef __cplusplus
7686 extern "C" {
7687 #endif
7688 char nm_test_var;
7689 void nm_test_func(void);
7690 void nm_test_func(void){}
7691 #ifdef __cplusplus
7693 #endif
7694 int main(){nm_test_var='a';nm_test_func();return(0);}
7695 _LT_EOF
7697 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7698 (eval $ac_compile) 2>&5
7699 ac_status=$?
7700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7701 test $ac_status = 0; }; then
7702 # Now try to grab the symbols.
7703 nlist=conftest.nm
7704 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7705 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7706 ac_status=$?
7707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7708 test $ac_status = 0; } && test -s "$nlist"; then
7709 # Try sorting and uniquifying the output.
7710 if sort "$nlist" | uniq > "$nlist"T; then
7711 mv -f "$nlist"T "$nlist"
7712 else
7713 rm -f "$nlist"T
7716 # Make sure that we snagged all the symbols we need.
7717 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7718 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7719 cat <<_LT_EOF > conftest.$ac_ext
7720 #ifdef __cplusplus
7721 extern "C" {
7722 #endif
7724 _LT_EOF
7725 # Now generate the symbol file.
7726 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7728 cat <<_LT_EOF >> conftest.$ac_ext
7730 /* The mapping between symbol names and symbols. */
7731 const struct {
7732 const char *name;
7733 void *address;
7735 lt__PROGRAM__LTX_preloaded_symbols[] =
7737 { "@PROGRAM@", (void *) 0 },
7738 _LT_EOF
7739 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7740 cat <<\_LT_EOF >> conftest.$ac_ext
7741 {0, (void *) 0}
7744 /* This works around a problem in FreeBSD linker */
7745 #ifdef FREEBSD_WORKAROUND
7746 static const void *lt_preloaded_setup() {
7747 return lt__PROGRAM__LTX_preloaded_symbols;
7749 #endif
7751 #ifdef __cplusplus
7753 #endif
7754 _LT_EOF
7755 # Now try linking the two files.
7756 mv conftest.$ac_objext conftstm.$ac_objext
7757 lt_save_LIBS="$LIBS"
7758 lt_save_CFLAGS="$CFLAGS"
7759 LIBS="conftstm.$ac_objext"
7760 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7761 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7762 (eval $ac_link) 2>&5
7763 ac_status=$?
7764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7765 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7766 pipe_works=yes
7768 LIBS="$lt_save_LIBS"
7769 CFLAGS="$lt_save_CFLAGS"
7770 else
7771 echo "cannot find nm_test_func in $nlist" >&5
7773 else
7774 echo "cannot find nm_test_var in $nlist" >&5
7776 else
7777 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7779 else
7780 echo "$progname: failed program was:" >&5
7781 cat conftest.$ac_ext >&5
7783 rm -rf conftest* conftst*
7785 # Do not use the global_symbol_pipe unless it works.
7786 if test "$pipe_works" = yes; then
7787 break
7788 else
7789 lt_cv_sys_global_symbol_pipe=
7791 done
7795 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7796 lt_cv_sys_global_symbol_to_cdecl=
7798 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7800 $as_echo "failed" >&6; }
7801 else
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7803 $as_echo "ok" >&6; }
7827 # Check whether --enable-libtool-lock was given.
7828 if test "${enable_libtool_lock+set}" = set; then :
7829 enableval=$enable_libtool_lock;
7832 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7834 # Some flags need to be propagated to the compiler or linker for good
7835 # libtool support.
7836 case $host in
7837 ia64-*-hpux*)
7838 # Find out which ABI we are using.
7839 echo 'int i;' > conftest.$ac_ext
7840 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7841 (eval $ac_compile) 2>&5
7842 ac_status=$?
7843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7844 test $ac_status = 0; }; then
7845 case `/usr/bin/file conftest.$ac_objext` in
7846 *ELF-32*)
7847 HPUX_IA64_MODE="32"
7849 *ELF-64*)
7850 HPUX_IA64_MODE="64"
7852 esac
7854 rm -rf conftest*
7856 *-*-irix6*)
7857 # Find out which ABI we are using.
7858 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7859 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7860 (eval $ac_compile) 2>&5
7861 ac_status=$?
7862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7863 test $ac_status = 0; }; then
7864 if test "$lt_cv_prog_gnu_ld" = yes; then
7865 case `/usr/bin/file conftest.$ac_objext` in
7866 *32-bit*)
7867 LD="${LD-ld} -melf32bsmip"
7869 *N32*)
7870 LD="${LD-ld} -melf32bmipn32"
7872 *64-bit*)
7873 LD="${LD-ld} -melf64bmip"
7875 esac
7876 else
7877 case `/usr/bin/file conftest.$ac_objext` in
7878 *32-bit*)
7879 LD="${LD-ld} -32"
7881 *N32*)
7882 LD="${LD-ld} -n32"
7884 *64-bit*)
7885 LD="${LD-ld} -64"
7887 esac
7890 rm -rf conftest*
7893 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7894 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7895 # Find out which ABI we are using.
7896 echo 'int i;' > conftest.$ac_ext
7897 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7898 (eval $ac_compile) 2>&5
7899 ac_status=$?
7900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7901 test $ac_status = 0; }; then
7902 case `/usr/bin/file conftest.o` in
7903 *32-bit*)
7904 case $host in
7905 x86_64-*kfreebsd*-gnu)
7906 LD="${LD-ld} -m elf_i386_fbsd"
7908 x86_64-*linux*)
7909 case `/usr/bin/file conftest.o` in
7910 *x86-64*)
7911 LD="${LD-ld} -m elf32_x86_64"
7914 LD="${LD-ld} -m elf_i386"
7916 esac
7918 powerpc64le-*linux*)
7919 LD="${LD-ld} -m elf32lppclinux"
7921 powerpc64-*linux*)
7922 LD="${LD-ld} -m elf32ppclinux"
7924 s390x-*linux*)
7925 LD="${LD-ld} -m elf_s390"
7927 sparc64-*linux*)
7928 LD="${LD-ld} -m elf32_sparc"
7930 esac
7932 *64-bit*)
7933 case $host in
7934 x86_64-*kfreebsd*-gnu)
7935 LD="${LD-ld} -m elf_x86_64_fbsd"
7937 x86_64-*linux*)
7938 LD="${LD-ld} -m elf_x86_64"
7940 powerpcle-*linux*)
7941 LD="${LD-ld} -m elf64lppc"
7943 powerpc-*linux*)
7944 LD="${LD-ld} -m elf64ppc"
7946 s390*-*linux*|s390*-*tpf*)
7947 LD="${LD-ld} -m elf64_s390"
7949 sparc*-*linux*)
7950 LD="${LD-ld} -m elf64_sparc"
7952 esac
7954 esac
7956 rm -rf conftest*
7959 *-*-sco3.2v5*)
7960 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7961 SAVE_CFLAGS="$CFLAGS"
7962 CFLAGS="$CFLAGS -belf"
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7964 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7965 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7966 $as_echo_n "(cached) " >&6
7967 else
7968 ac_ext=c
7969 ac_cpp='$CPP $CPPFLAGS'
7970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7972 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7975 /* end confdefs.h. */
7978 main ()
7982 return 0;
7984 _ACEOF
7985 if ac_fn_c_try_link "$LINENO"; then :
7986 lt_cv_cc_needs_belf=yes
7987 else
7988 lt_cv_cc_needs_belf=no
7990 rm -f core conftest.err conftest.$ac_objext \
7991 conftest$ac_exeext conftest.$ac_ext
7992 ac_ext=c
7993 ac_cpp='$CPP $CPPFLAGS'
7994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8000 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8001 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8002 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8003 CFLAGS="$SAVE_CFLAGS"
8006 sparc*-*solaris*)
8007 # Find out which ABI we are using.
8008 echo 'int i;' > conftest.$ac_ext
8009 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8010 (eval $ac_compile) 2>&5
8011 ac_status=$?
8012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8013 test $ac_status = 0; }; then
8014 case `/usr/bin/file conftest.o` in
8015 *64-bit*)
8016 case $lt_cv_prog_gnu_ld in
8017 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8019 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8020 LD="${LD-ld} -64"
8023 esac
8025 esac
8027 rm -rf conftest*
8029 esac
8031 need_locks="$enable_libtool_lock"
8034 case $host_os in
8035 rhapsody* | darwin*)
8036 if test -n "$ac_tool_prefix"; then
8037 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8038 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8040 $as_echo_n "checking for $ac_word... " >&6; }
8041 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
8042 $as_echo_n "(cached) " >&6
8043 else
8044 if test -n "$DSYMUTIL"; then
8045 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8046 else
8047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8048 for as_dir in $PATH
8050 IFS=$as_save_IFS
8051 test -z "$as_dir" && as_dir=.
8052 for ac_exec_ext in '' $ac_executable_extensions; do
8053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8054 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8056 break 2
8058 done
8059 done
8060 IFS=$as_save_IFS
8064 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8065 if test -n "$DSYMUTIL"; then
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8067 $as_echo "$DSYMUTIL" >&6; }
8068 else
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8070 $as_echo "no" >&6; }
8075 if test -z "$ac_cv_prog_DSYMUTIL"; then
8076 ac_ct_DSYMUTIL=$DSYMUTIL
8077 # Extract the first word of "dsymutil", so it can be a program name with args.
8078 set dummy dsymutil; ac_word=$2
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8080 $as_echo_n "checking for $ac_word... " >&6; }
8081 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8082 $as_echo_n "(cached) " >&6
8083 else
8084 if test -n "$ac_ct_DSYMUTIL"; then
8085 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8086 else
8087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8088 for as_dir in $PATH
8090 IFS=$as_save_IFS
8091 test -z "$as_dir" && as_dir=.
8092 for ac_exec_ext in '' $ac_executable_extensions; do
8093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8094 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8096 break 2
8098 done
8099 done
8100 IFS=$as_save_IFS
8104 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8105 if test -n "$ac_ct_DSYMUTIL"; then
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8107 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8108 else
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8110 $as_echo "no" >&6; }
8113 if test "x$ac_ct_DSYMUTIL" = x; then
8114 DSYMUTIL=":"
8115 else
8116 case $cross_compiling:$ac_tool_warned in
8117 yes:)
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8119 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8120 ac_tool_warned=yes ;;
8121 esac
8122 DSYMUTIL=$ac_ct_DSYMUTIL
8124 else
8125 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8128 if test -n "$ac_tool_prefix"; then
8129 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8130 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8132 $as_echo_n "checking for $ac_word... " >&6; }
8133 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
8134 $as_echo_n "(cached) " >&6
8135 else
8136 if test -n "$NMEDIT"; then
8137 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8138 else
8139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8140 for as_dir in $PATH
8142 IFS=$as_save_IFS
8143 test -z "$as_dir" && as_dir=.
8144 for ac_exec_ext in '' $ac_executable_extensions; do
8145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8146 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8148 break 2
8150 done
8151 done
8152 IFS=$as_save_IFS
8156 NMEDIT=$ac_cv_prog_NMEDIT
8157 if test -n "$NMEDIT"; then
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8159 $as_echo "$NMEDIT" >&6; }
8160 else
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8162 $as_echo "no" >&6; }
8167 if test -z "$ac_cv_prog_NMEDIT"; then
8168 ac_ct_NMEDIT=$NMEDIT
8169 # Extract the first word of "nmedit", so it can be a program name with args.
8170 set dummy nmedit; ac_word=$2
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8172 $as_echo_n "checking for $ac_word... " >&6; }
8173 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
8174 $as_echo_n "(cached) " >&6
8175 else
8176 if test -n "$ac_ct_NMEDIT"; then
8177 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8178 else
8179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8180 for as_dir in $PATH
8182 IFS=$as_save_IFS
8183 test -z "$as_dir" && as_dir=.
8184 for ac_exec_ext in '' $ac_executable_extensions; do
8185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8186 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8188 break 2
8190 done
8191 done
8192 IFS=$as_save_IFS
8196 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8197 if test -n "$ac_ct_NMEDIT"; then
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8199 $as_echo "$ac_ct_NMEDIT" >&6; }
8200 else
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8202 $as_echo "no" >&6; }
8205 if test "x$ac_ct_NMEDIT" = x; then
8206 NMEDIT=":"
8207 else
8208 case $cross_compiling:$ac_tool_warned in
8209 yes:)
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8211 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8212 ac_tool_warned=yes ;;
8213 esac
8214 NMEDIT=$ac_ct_NMEDIT
8216 else
8217 NMEDIT="$ac_cv_prog_NMEDIT"
8220 if test -n "$ac_tool_prefix"; then
8221 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8222 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8224 $as_echo_n "checking for $ac_word... " >&6; }
8225 if test "${ac_cv_prog_LIPO+set}" = set; then :
8226 $as_echo_n "(cached) " >&6
8227 else
8228 if test -n "$LIPO"; then
8229 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8230 else
8231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8232 for as_dir in $PATH
8234 IFS=$as_save_IFS
8235 test -z "$as_dir" && as_dir=.
8236 for ac_exec_ext in '' $ac_executable_extensions; do
8237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8238 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8240 break 2
8242 done
8243 done
8244 IFS=$as_save_IFS
8248 LIPO=$ac_cv_prog_LIPO
8249 if test -n "$LIPO"; then
8250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8251 $as_echo "$LIPO" >&6; }
8252 else
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8254 $as_echo "no" >&6; }
8259 if test -z "$ac_cv_prog_LIPO"; then
8260 ac_ct_LIPO=$LIPO
8261 # Extract the first word of "lipo", so it can be a program name with args.
8262 set dummy lipo; ac_word=$2
8263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8264 $as_echo_n "checking for $ac_word... " >&6; }
8265 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8266 $as_echo_n "(cached) " >&6
8267 else
8268 if test -n "$ac_ct_LIPO"; then
8269 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8270 else
8271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8272 for as_dir in $PATH
8274 IFS=$as_save_IFS
8275 test -z "$as_dir" && as_dir=.
8276 for ac_exec_ext in '' $ac_executable_extensions; do
8277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8278 ac_cv_prog_ac_ct_LIPO="lipo"
8279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8280 break 2
8282 done
8283 done
8284 IFS=$as_save_IFS
8288 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8289 if test -n "$ac_ct_LIPO"; then
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8291 $as_echo "$ac_ct_LIPO" >&6; }
8292 else
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8294 $as_echo "no" >&6; }
8297 if test "x$ac_ct_LIPO" = x; then
8298 LIPO=":"
8299 else
8300 case $cross_compiling:$ac_tool_warned in
8301 yes:)
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8303 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8304 ac_tool_warned=yes ;;
8305 esac
8306 LIPO=$ac_ct_LIPO
8308 else
8309 LIPO="$ac_cv_prog_LIPO"
8312 if test -n "$ac_tool_prefix"; then
8313 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8314 set dummy ${ac_tool_prefix}otool; ac_word=$2
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8316 $as_echo_n "checking for $ac_word... " >&6; }
8317 if test "${ac_cv_prog_OTOOL+set}" = set; then :
8318 $as_echo_n "(cached) " >&6
8319 else
8320 if test -n "$OTOOL"; then
8321 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8322 else
8323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8324 for as_dir in $PATH
8326 IFS=$as_save_IFS
8327 test -z "$as_dir" && as_dir=.
8328 for ac_exec_ext in '' $ac_executable_extensions; do
8329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8330 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8332 break 2
8334 done
8335 done
8336 IFS=$as_save_IFS
8340 OTOOL=$ac_cv_prog_OTOOL
8341 if test -n "$OTOOL"; then
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8343 $as_echo "$OTOOL" >&6; }
8344 else
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8346 $as_echo "no" >&6; }
8351 if test -z "$ac_cv_prog_OTOOL"; then
8352 ac_ct_OTOOL=$OTOOL
8353 # Extract the first word of "otool", so it can be a program name with args.
8354 set dummy otool; ac_word=$2
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8356 $as_echo_n "checking for $ac_word... " >&6; }
8357 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8358 $as_echo_n "(cached) " >&6
8359 else
8360 if test -n "$ac_ct_OTOOL"; then
8361 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8362 else
8363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8364 for as_dir in $PATH
8366 IFS=$as_save_IFS
8367 test -z "$as_dir" && as_dir=.
8368 for ac_exec_ext in '' $ac_executable_extensions; do
8369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8370 ac_cv_prog_ac_ct_OTOOL="otool"
8371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8372 break 2
8374 done
8375 done
8376 IFS=$as_save_IFS
8380 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8381 if test -n "$ac_ct_OTOOL"; then
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8383 $as_echo "$ac_ct_OTOOL" >&6; }
8384 else
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8386 $as_echo "no" >&6; }
8389 if test "x$ac_ct_OTOOL" = x; then
8390 OTOOL=":"
8391 else
8392 case $cross_compiling:$ac_tool_warned in
8393 yes:)
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8395 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8396 ac_tool_warned=yes ;;
8397 esac
8398 OTOOL=$ac_ct_OTOOL
8400 else
8401 OTOOL="$ac_cv_prog_OTOOL"
8404 if test -n "$ac_tool_prefix"; then
8405 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8406 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8408 $as_echo_n "checking for $ac_word... " >&6; }
8409 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8410 $as_echo_n "(cached) " >&6
8411 else
8412 if test -n "$OTOOL64"; then
8413 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8414 else
8415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8416 for as_dir in $PATH
8418 IFS=$as_save_IFS
8419 test -z "$as_dir" && as_dir=.
8420 for ac_exec_ext in '' $ac_executable_extensions; do
8421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8422 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8424 break 2
8426 done
8427 done
8428 IFS=$as_save_IFS
8432 OTOOL64=$ac_cv_prog_OTOOL64
8433 if test -n "$OTOOL64"; then
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8435 $as_echo "$OTOOL64" >&6; }
8436 else
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8438 $as_echo "no" >&6; }
8443 if test -z "$ac_cv_prog_OTOOL64"; then
8444 ac_ct_OTOOL64=$OTOOL64
8445 # Extract the first word of "otool64", so it can be a program name with args.
8446 set dummy otool64; ac_word=$2
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8448 $as_echo_n "checking for $ac_word... " >&6; }
8449 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8450 $as_echo_n "(cached) " >&6
8451 else
8452 if test -n "$ac_ct_OTOOL64"; then
8453 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8454 else
8455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8456 for as_dir in $PATH
8458 IFS=$as_save_IFS
8459 test -z "$as_dir" && as_dir=.
8460 for ac_exec_ext in '' $ac_executable_extensions; do
8461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8462 ac_cv_prog_ac_ct_OTOOL64="otool64"
8463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8464 break 2
8466 done
8467 done
8468 IFS=$as_save_IFS
8472 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8473 if test -n "$ac_ct_OTOOL64"; then
8474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8475 $as_echo "$ac_ct_OTOOL64" >&6; }
8476 else
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8478 $as_echo "no" >&6; }
8481 if test "x$ac_ct_OTOOL64" = x; then
8482 OTOOL64=":"
8483 else
8484 case $cross_compiling:$ac_tool_warned in
8485 yes:)
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8487 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8488 ac_tool_warned=yes ;;
8489 esac
8490 OTOOL64=$ac_ct_OTOOL64
8492 else
8493 OTOOL64="$ac_cv_prog_OTOOL64"
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8523 $as_echo_n "checking for -single_module linker flag... " >&6; }
8524 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8525 $as_echo_n "(cached) " >&6
8526 else
8527 lt_cv_apple_cc_single_mod=no
8528 if test -z "${LT_MULTI_MODULE}"; then
8529 # By default we will add the -single_module flag. You can override
8530 # by either setting the environment variable LT_MULTI_MODULE
8531 # non-empty at configure time, or by adding -multi_module to the
8532 # link flags.
8533 rm -rf libconftest.dylib*
8534 echo "int foo(void){return 1;}" > conftest.c
8535 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8536 -dynamiclib -Wl,-single_module conftest.c" >&5
8537 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8538 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8539 _lt_result=$?
8540 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8541 lt_cv_apple_cc_single_mod=yes
8542 else
8543 cat conftest.err >&5
8545 rm -rf libconftest.dylib*
8546 rm -f conftest.*
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8550 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8552 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8553 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8554 $as_echo_n "(cached) " >&6
8555 else
8556 lt_cv_ld_exported_symbols_list=no
8557 save_LDFLAGS=$LDFLAGS
8558 echo "_main" > conftest.sym
8559 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8561 /* end confdefs.h. */
8564 main ()
8568 return 0;
8570 _ACEOF
8571 if ac_fn_c_try_link "$LINENO"; then :
8572 lt_cv_ld_exported_symbols_list=yes
8573 else
8574 lt_cv_ld_exported_symbols_list=no
8576 rm -f core conftest.err conftest.$ac_objext \
8577 conftest$ac_exeext conftest.$ac_ext
8578 LDFLAGS="$save_LDFLAGS"
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8582 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8584 $as_echo_n "checking for -force_load linker flag... " >&6; }
8585 if test "${lt_cv_ld_force_load+set}" = set; then :
8586 $as_echo_n "(cached) " >&6
8587 else
8588 lt_cv_ld_force_load=no
8589 cat > conftest.c << _LT_EOF
8590 int forced_loaded() { return 2;}
8591 _LT_EOF
8592 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8593 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8594 echo "$AR cru libconftest.a conftest.o" >&5
8595 $AR cru libconftest.a conftest.o 2>&5
8596 cat > conftest.c << _LT_EOF
8597 int main() { return 0;}
8598 _LT_EOF
8599 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8600 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8601 _lt_result=$?
8602 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8603 lt_cv_ld_force_load=yes
8604 else
8605 cat conftest.err >&5
8607 rm -f conftest.err libconftest.a conftest conftest.c
8608 rm -rf conftest.dSYM
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8612 $as_echo "$lt_cv_ld_force_load" >&6; }
8613 case $host_os in
8614 rhapsody* | darwin1.[012])
8615 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8616 darwin1.*)
8617 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8618 darwin*) # darwin 5.x on
8619 # if running on 10.5 or later, the deployment target defaults
8620 # to the OS version, if on x86, and 10.4, the deployment
8621 # target defaults to 10.4. Don't you love it?
8622 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8623 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8624 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8625 10.[012][,.]*)
8626 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8627 10.*)
8628 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8629 esac
8631 esac
8632 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8633 _lt_dar_single_mod='$single_module'
8635 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8636 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8637 else
8638 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8640 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8641 _lt_dsymutil='~$DSYMUTIL $lib || :'
8642 else
8643 _lt_dsymutil=
8646 esac
8648 for ac_header in dlfcn.h
8649 do :
8650 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8652 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8653 cat >>confdefs.h <<_ACEOF
8654 #define HAVE_DLFCN_H 1
8655 _ACEOF
8659 done
8666 # Set options
8671 enable_win32_dll=no
8674 # Check whether --enable-shared was given.
8675 if test "${enable_shared+set}" = set; then :
8676 enableval=$enable_shared; p=${PACKAGE-default}
8677 case $enableval in
8678 yes) enable_shared=yes ;;
8679 no) enable_shared=no ;;
8681 enable_shared=no
8682 # Look at the argument we got. We use all the common list separators.
8683 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8684 for pkg in $enableval; do
8685 IFS="$lt_save_ifs"
8686 if test "X$pkg" = "X$p"; then
8687 enable_shared=yes
8689 done
8690 IFS="$lt_save_ifs"
8692 esac
8693 else
8694 enable_shared=yes
8705 # Check whether --enable-static was given.
8706 if test "${enable_static+set}" = set; then :
8707 enableval=$enable_static; p=${PACKAGE-default}
8708 case $enableval in
8709 yes) enable_static=yes ;;
8710 no) enable_static=no ;;
8712 enable_static=no
8713 # Look at the argument we got. We use all the common list separators.
8714 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8715 for pkg in $enableval; do
8716 IFS="$lt_save_ifs"
8717 if test "X$pkg" = "X$p"; then
8718 enable_static=yes
8720 done
8721 IFS="$lt_save_ifs"
8723 esac
8724 else
8725 enable_static=yes
8737 # Check whether --with-pic was given.
8738 if test "${with_pic+set}" = set; then :
8739 withval=$with_pic; pic_mode="$withval"
8740 else
8741 pic_mode=default
8745 test -z "$pic_mode" && pic_mode=default
8753 # Check whether --enable-fast-install was given.
8754 if test "${enable_fast_install+set}" = set; then :
8755 enableval=$enable_fast_install; p=${PACKAGE-default}
8756 case $enableval in
8757 yes) enable_fast_install=yes ;;
8758 no) enable_fast_install=no ;;
8760 enable_fast_install=no
8761 # Look at the argument we got. We use all the common list separators.
8762 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8763 for pkg in $enableval; do
8764 IFS="$lt_save_ifs"
8765 if test "X$pkg" = "X$p"; then
8766 enable_fast_install=yes
8768 done
8769 IFS="$lt_save_ifs"
8771 esac
8772 else
8773 enable_fast_install=yes
8786 # This can be used to rebuild libtool when needed
8787 LIBTOOL_DEPS="$ltmain"
8789 # Always use our own libtool.
8790 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8817 test -z "$LN_S" && LN_S="ln -s"
8832 if test -n "${ZSH_VERSION+set}" ; then
8833 setopt NO_GLOB_SUBST
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8837 $as_echo_n "checking for objdir... " >&6; }
8838 if test "${lt_cv_objdir+set}" = set; then :
8839 $as_echo_n "(cached) " >&6
8840 else
8841 rm -f .libs 2>/dev/null
8842 mkdir .libs 2>/dev/null
8843 if test -d .libs; then
8844 lt_cv_objdir=.libs
8845 else
8846 # MS-DOS does not allow filenames that begin with a dot.
8847 lt_cv_objdir=_libs
8849 rmdir .libs 2>/dev/null
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8852 $as_echo "$lt_cv_objdir" >&6; }
8853 objdir=$lt_cv_objdir
8859 cat >>confdefs.h <<_ACEOF
8860 #define LT_OBJDIR "$lt_cv_objdir/"
8861 _ACEOF
8866 case $host_os in
8867 aix3*)
8868 # AIX sometimes has problems with the GCC collect2 program. For some
8869 # reason, if we set the COLLECT_NAMES environment variable, the problems
8870 # vanish in a puff of smoke.
8871 if test "X${COLLECT_NAMES+set}" != Xset; then
8872 COLLECT_NAMES=
8873 export COLLECT_NAMES
8876 esac
8878 # Global variables:
8879 ofile=libtool
8880 can_build_shared=yes
8882 # All known linkers require a `.a' archive for static linking (except MSVC,
8883 # which needs '.lib').
8884 libext=a
8886 with_gnu_ld="$lt_cv_prog_gnu_ld"
8888 old_CC="$CC"
8889 old_CFLAGS="$CFLAGS"
8891 # Set sane defaults for various variables
8892 test -z "$CC" && CC=cc
8893 test -z "$LTCC" && LTCC=$CC
8894 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8895 test -z "$LD" && LD=ld
8896 test -z "$ac_objext" && ac_objext=o
8898 for cc_temp in $compiler""; do
8899 case $cc_temp in
8900 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8901 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8902 \-*) ;;
8903 *) break;;
8904 esac
8905 done
8906 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8909 # Only perform the check for file, if the check method requires it
8910 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8911 case $deplibs_check_method in
8912 file_magic*)
8913 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8915 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8916 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8917 $as_echo_n "(cached) " >&6
8918 else
8919 case $MAGIC_CMD in
8920 [\\/*] | ?:[\\/]*)
8921 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8924 lt_save_MAGIC_CMD="$MAGIC_CMD"
8925 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8926 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8927 for ac_dir in $ac_dummy; do
8928 IFS="$lt_save_ifs"
8929 test -z "$ac_dir" && ac_dir=.
8930 if test -f $ac_dir/${ac_tool_prefix}file; then
8931 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8932 if test -n "$file_magic_test_file"; then
8933 case $deplibs_check_method in
8934 "file_magic "*)
8935 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8936 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8937 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8938 $EGREP "$file_magic_regex" > /dev/null; then
8940 else
8941 cat <<_LT_EOF 1>&2
8943 *** Warning: the command libtool uses to detect shared libraries,
8944 *** $file_magic_cmd, produces output that libtool cannot recognize.
8945 *** The result is that libtool may fail to recognize shared libraries
8946 *** as such. This will affect the creation of libtool libraries that
8947 *** depend on shared libraries, but programs linked with such libtool
8948 *** libraries will work regardless of this problem. Nevertheless, you
8949 *** may want to report the problem to your system manager and/or to
8950 *** bug-libtool@gnu.org
8952 _LT_EOF
8953 fi ;;
8954 esac
8956 break
8958 done
8959 IFS="$lt_save_ifs"
8960 MAGIC_CMD="$lt_save_MAGIC_CMD"
8962 esac
8965 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8966 if test -n "$MAGIC_CMD"; then
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8968 $as_echo "$MAGIC_CMD" >&6; }
8969 else
8970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8971 $as_echo "no" >&6; }
8978 if test -z "$lt_cv_path_MAGIC_CMD"; then
8979 if test -n "$ac_tool_prefix"; then
8980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8981 $as_echo_n "checking for file... " >&6; }
8982 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8983 $as_echo_n "(cached) " >&6
8984 else
8985 case $MAGIC_CMD in
8986 [\\/*] | ?:[\\/]*)
8987 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8990 lt_save_MAGIC_CMD="$MAGIC_CMD"
8991 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8992 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8993 for ac_dir in $ac_dummy; do
8994 IFS="$lt_save_ifs"
8995 test -z "$ac_dir" && ac_dir=.
8996 if test -f $ac_dir/file; then
8997 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8998 if test -n "$file_magic_test_file"; then
8999 case $deplibs_check_method in
9000 "file_magic "*)
9001 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9002 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9003 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9004 $EGREP "$file_magic_regex" > /dev/null; then
9006 else
9007 cat <<_LT_EOF 1>&2
9009 *** Warning: the command libtool uses to detect shared libraries,
9010 *** $file_magic_cmd, produces output that libtool cannot recognize.
9011 *** The result is that libtool may fail to recognize shared libraries
9012 *** as such. This will affect the creation of libtool libraries that
9013 *** depend on shared libraries, but programs linked with such libtool
9014 *** libraries will work regardless of this problem. Nevertheless, you
9015 *** may want to report the problem to your system manager and/or to
9016 *** bug-libtool@gnu.org
9018 _LT_EOF
9019 fi ;;
9020 esac
9022 break
9024 done
9025 IFS="$lt_save_ifs"
9026 MAGIC_CMD="$lt_save_MAGIC_CMD"
9028 esac
9031 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9032 if test -n "$MAGIC_CMD"; then
9033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9034 $as_echo "$MAGIC_CMD" >&6; }
9035 else
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9037 $as_echo "no" >&6; }
9041 else
9042 MAGIC_CMD=:
9048 esac
9050 # Use C for the default configuration in the libtool script
9052 lt_save_CC="$CC"
9053 ac_ext=c
9054 ac_cpp='$CPP $CPPFLAGS'
9055 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9056 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9057 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9060 # Source file extension for C test sources.
9061 ac_ext=c
9063 # Object file extension for compiled C test sources.
9064 objext=o
9065 objext=$objext
9067 # Code to be used in simple compile tests
9068 lt_simple_compile_test_code="int some_variable = 0;"
9070 # Code to be used in simple link tests
9071 lt_simple_link_test_code='int main(){return(0);}'
9079 # If no C compiler was specified, use CC.
9080 LTCC=${LTCC-"$CC"}
9082 # If no C compiler flags were specified, use CFLAGS.
9083 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9085 # Allow CC to be a program name with arguments.
9086 compiler=$CC
9088 # Save the default compiler, since it gets overwritten when the other
9089 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9090 compiler_DEFAULT=$CC
9092 # save warnings/boilerplate of simple test code
9093 ac_outfile=conftest.$ac_objext
9094 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9095 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9096 _lt_compiler_boilerplate=`cat conftest.err`
9097 $RM conftest*
9099 ac_outfile=conftest.$ac_objext
9100 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9101 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9102 _lt_linker_boilerplate=`cat conftest.err`
9103 $RM -r conftest*
9106 ## CAVEAT EMPTOR:
9107 ## There is no encapsulation within the following macros, do not change
9108 ## the running order or otherwise move them around unless you know exactly
9109 ## what you are doing...
9110 if test -n "$compiler"; then
9112 lt_prog_compiler_no_builtin_flag=
9114 if test "$GCC" = yes; then
9115 case $cc_basename in
9116 nvcc*)
9117 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9119 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9120 esac
9122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9123 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9124 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9125 $as_echo_n "(cached) " >&6
9126 else
9127 lt_cv_prog_compiler_rtti_exceptions=no
9128 ac_outfile=conftest.$ac_objext
9129 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9130 lt_compiler_flag="-fno-rtti -fno-exceptions"
9131 # Insert the option either (1) after the last *FLAGS variable, or
9132 # (2) before a word containing "conftest.", or (3) at the end.
9133 # Note that $ac_compile itself does not contain backslashes and begins
9134 # with a dollar sign (not a hyphen), so the echo should work correctly.
9135 # The option is referenced via a variable to avoid confusing sed.
9136 lt_compile=`echo "$ac_compile" | $SED \
9137 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9138 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9139 -e 's:$: $lt_compiler_flag:'`
9140 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9141 (eval "$lt_compile" 2>conftest.err)
9142 ac_status=$?
9143 cat conftest.err >&5
9144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9145 if (exit $ac_status) && test -s "$ac_outfile"; then
9146 # The compiler can only warn and ignore the option if not recognized
9147 # So say no if there are warnings other than the usual output.
9148 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9149 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9150 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9151 lt_cv_prog_compiler_rtti_exceptions=yes
9154 $RM conftest*
9157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9158 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9160 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9161 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9162 else
9173 lt_prog_compiler_wl=
9174 lt_prog_compiler_pic=
9175 lt_prog_compiler_static=
9177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9178 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9180 if test "$GCC" = yes; then
9181 lt_prog_compiler_wl='-Wl,'
9182 lt_prog_compiler_static='-static'
9184 case $host_os in
9185 aix*)
9186 # All AIX code is PIC.
9187 if test "$host_cpu" = ia64; then
9188 # AIX 5 now supports IA64 processor
9189 lt_prog_compiler_static='-Bstatic'
9191 lt_prog_compiler_pic='-fPIC'
9194 amigaos*)
9195 case $host_cpu in
9196 powerpc)
9197 # see comment about AmigaOS4 .so support
9198 lt_prog_compiler_pic='-fPIC'
9200 m68k)
9201 # FIXME: we need at least 68020 code to build shared libraries, but
9202 # adding the `-m68020' flag to GCC prevents building anything better,
9203 # like `-m68040'.
9204 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9206 esac
9209 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9210 # PIC is the default for these OSes.
9213 mingw* | cygwin* | pw32* | os2* | cegcc*)
9214 # This hack is so that the source file can tell whether it is being
9215 # built for inclusion in a dll (and should export symbols for example).
9216 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9217 # (--disable-auto-import) libraries
9218 lt_prog_compiler_pic='-DDLL_EXPORT'
9221 darwin* | rhapsody*)
9222 # PIC is the default on this platform
9223 # Common symbols not allowed in MH_DYLIB files
9224 lt_prog_compiler_pic='-fno-common'
9227 haiku*)
9228 # PIC is the default for Haiku.
9229 # The "-static" flag exists, but is broken.
9230 lt_prog_compiler_static=
9233 hpux*)
9234 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9235 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9236 # sets the default TLS model and affects inlining.
9237 case $host_cpu in
9238 hppa*64*)
9239 # +Z the default
9242 lt_prog_compiler_pic='-fPIC'
9244 esac
9247 interix[3-9]*)
9248 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9249 # Instead, we relocate shared libraries at runtime.
9252 msdosdjgpp*)
9253 # Just because we use GCC doesn't mean we suddenly get shared libraries
9254 # on systems that don't support them.
9255 lt_prog_compiler_can_build_shared=no
9256 enable_shared=no
9259 *nto* | *qnx*)
9260 # QNX uses GNU C++, but need to define -shared option too, otherwise
9261 # it will coredump.
9262 lt_prog_compiler_pic='-fPIC -shared'
9265 sysv4*MP*)
9266 if test -d /usr/nec; then
9267 lt_prog_compiler_pic=-Kconform_pic
9272 lt_prog_compiler_pic='-fPIC'
9274 esac
9276 case $cc_basename in
9277 nvcc*) # Cuda Compiler Driver 2.2
9278 lt_prog_compiler_wl='-Xlinker '
9279 lt_prog_compiler_pic='-Xcompiler -fPIC'
9281 esac
9282 else
9283 # PORTME Check for flag to pass linker flags through the system compiler.
9284 case $host_os in
9285 aix*)
9286 lt_prog_compiler_wl='-Wl,'
9287 if test "$host_cpu" = ia64; then
9288 # AIX 5 now supports IA64 processor
9289 lt_prog_compiler_static='-Bstatic'
9290 else
9291 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9295 mingw* | cygwin* | pw32* | os2* | cegcc*)
9296 # This hack is so that the source file can tell whether it is being
9297 # built for inclusion in a dll (and should export symbols for example).
9298 lt_prog_compiler_pic='-DDLL_EXPORT'
9301 hpux9* | hpux10* | hpux11*)
9302 lt_prog_compiler_wl='-Wl,'
9303 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9304 # not for PA HP-UX.
9305 case $host_cpu in
9306 hppa*64*|ia64*)
9307 # +Z the default
9310 lt_prog_compiler_pic='+Z'
9312 esac
9313 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9314 lt_prog_compiler_static='${wl}-a ${wl}archive'
9317 irix5* | irix6* | nonstopux*)
9318 lt_prog_compiler_wl='-Wl,'
9319 # PIC (with -KPIC) is the default.
9320 lt_prog_compiler_static='-non_shared'
9323 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9324 case $cc_basename in
9325 # old Intel for x86_64 which still supported -KPIC.
9326 ecc*)
9327 lt_prog_compiler_wl='-Wl,'
9328 lt_prog_compiler_pic='-KPIC'
9329 lt_prog_compiler_static='-static'
9331 # icc used to be incompatible with GCC.
9332 # ICC 10 doesn't accept -KPIC any more.
9333 icc* | ifort*)
9334 lt_prog_compiler_wl='-Wl,'
9335 lt_prog_compiler_pic='-fPIC'
9336 lt_prog_compiler_static='-static'
9338 # Lahey Fortran 8.1.
9339 lf95*)
9340 lt_prog_compiler_wl='-Wl,'
9341 lt_prog_compiler_pic='--shared'
9342 lt_prog_compiler_static='--static'
9344 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9345 # Portland Group compilers (*not* the Pentium gcc compiler,
9346 # which looks to be a dead project)
9347 lt_prog_compiler_wl='-Wl,'
9348 lt_prog_compiler_pic='-fpic'
9349 lt_prog_compiler_static='-Bstatic'
9351 ccc*)
9352 lt_prog_compiler_wl='-Wl,'
9353 # All Alpha code is PIC.
9354 lt_prog_compiler_static='-non_shared'
9356 xl* | bgxl* | bgf* | mpixl*)
9357 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9358 lt_prog_compiler_wl='-Wl,'
9359 lt_prog_compiler_pic='-qpic'
9360 lt_prog_compiler_static='-qstaticlink'
9363 case `$CC -V 2>&1 | sed 5q` in
9364 *Sun\ F* | *Sun*Fortran*)
9365 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9366 lt_prog_compiler_pic='-KPIC'
9367 lt_prog_compiler_static='-Bstatic'
9368 lt_prog_compiler_wl=''
9370 *Sun\ C*)
9371 # Sun C 5.9
9372 lt_prog_compiler_pic='-KPIC'
9373 lt_prog_compiler_static='-Bstatic'
9374 lt_prog_compiler_wl='-Wl,'
9376 esac
9378 esac
9381 newsos6)
9382 lt_prog_compiler_pic='-KPIC'
9383 lt_prog_compiler_static='-Bstatic'
9386 *nto* | *qnx*)
9387 # QNX uses GNU C++, but need to define -shared option too, otherwise
9388 # it will coredump.
9389 lt_prog_compiler_pic='-fPIC -shared'
9392 osf3* | osf4* | osf5*)
9393 lt_prog_compiler_wl='-Wl,'
9394 # All OSF/1 code is PIC.
9395 lt_prog_compiler_static='-non_shared'
9398 rdos*)
9399 lt_prog_compiler_static='-non_shared'
9402 solaris*)
9403 lt_prog_compiler_pic='-KPIC'
9404 lt_prog_compiler_static='-Bstatic'
9405 case $cc_basename in
9406 f77* | f90* | f95*)
9407 lt_prog_compiler_wl='-Qoption ld ';;
9409 lt_prog_compiler_wl='-Wl,';;
9410 esac
9413 sunos4*)
9414 lt_prog_compiler_wl='-Qoption ld '
9415 lt_prog_compiler_pic='-PIC'
9416 lt_prog_compiler_static='-Bstatic'
9419 sysv4 | sysv4.2uw2* | sysv4.3*)
9420 lt_prog_compiler_wl='-Wl,'
9421 lt_prog_compiler_pic='-KPIC'
9422 lt_prog_compiler_static='-Bstatic'
9425 sysv4*MP*)
9426 if test -d /usr/nec ;then
9427 lt_prog_compiler_pic='-Kconform_pic'
9428 lt_prog_compiler_static='-Bstatic'
9432 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9433 lt_prog_compiler_wl='-Wl,'
9434 lt_prog_compiler_pic='-KPIC'
9435 lt_prog_compiler_static='-Bstatic'
9438 unicos*)
9439 lt_prog_compiler_wl='-Wl,'
9440 lt_prog_compiler_can_build_shared=no
9443 uts4*)
9444 lt_prog_compiler_pic='-pic'
9445 lt_prog_compiler_static='-Bstatic'
9449 lt_prog_compiler_can_build_shared=no
9451 esac
9454 case $host_os in
9455 # For platforms which do not support PIC, -DPIC is meaningless:
9456 *djgpp*)
9457 lt_prog_compiler_pic=
9460 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9462 esac
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9464 $as_echo "$lt_prog_compiler_pic" >&6; }
9472 # Check to make sure the PIC flag actually works.
9474 if test -n "$lt_prog_compiler_pic"; then
9475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9476 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9477 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9478 $as_echo_n "(cached) " >&6
9479 else
9480 lt_cv_prog_compiler_pic_works=no
9481 ac_outfile=conftest.$ac_objext
9482 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9483 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9484 # Insert the option either (1) after the last *FLAGS variable, or
9485 # (2) before a word containing "conftest.", or (3) at the end.
9486 # Note that $ac_compile itself does not contain backslashes and begins
9487 # with a dollar sign (not a hyphen), so the echo should work correctly.
9488 # The option is referenced via a variable to avoid confusing sed.
9489 lt_compile=`echo "$ac_compile" | $SED \
9490 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9491 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9492 -e 's:$: $lt_compiler_flag:'`
9493 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9494 (eval "$lt_compile" 2>conftest.err)
9495 ac_status=$?
9496 cat conftest.err >&5
9497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9498 if (exit $ac_status) && test -s "$ac_outfile"; then
9499 # The compiler can only warn and ignore the option if not recognized
9500 # So say no if there are warnings other than the usual output.
9501 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9502 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9503 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9504 lt_cv_prog_compiler_pic_works=yes
9507 $RM conftest*
9510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9511 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9513 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9514 case $lt_prog_compiler_pic in
9515 "" | " "*) ;;
9516 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9517 esac
9518 else
9519 lt_prog_compiler_pic=
9520 lt_prog_compiler_can_build_shared=no
9531 # Check to make sure the static flag actually works.
9533 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9535 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9536 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9537 $as_echo_n "(cached) " >&6
9538 else
9539 lt_cv_prog_compiler_static_works=no
9540 save_LDFLAGS="$LDFLAGS"
9541 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9542 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9543 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9544 # The linker can only warn and ignore the option if not recognized
9545 # So say no if there are warnings
9546 if test -s conftest.err; then
9547 # Append any errors to the config.log.
9548 cat conftest.err 1>&5
9549 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9550 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9551 if diff conftest.exp conftest.er2 >/dev/null; then
9552 lt_cv_prog_compiler_static_works=yes
9554 else
9555 lt_cv_prog_compiler_static_works=yes
9558 $RM -r conftest*
9559 LDFLAGS="$save_LDFLAGS"
9562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9563 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9565 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9567 else
9568 lt_prog_compiler_static=
9577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9578 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9579 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9580 $as_echo_n "(cached) " >&6
9581 else
9582 lt_cv_prog_compiler_c_o=no
9583 $RM -r conftest 2>/dev/null
9584 mkdir conftest
9585 cd conftest
9586 mkdir out
9587 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9589 lt_compiler_flag="-o out/conftest2.$ac_objext"
9590 # Insert the option either (1) after the last *FLAGS variable, or
9591 # (2) before a word containing "conftest.", or (3) at the end.
9592 # Note that $ac_compile itself does not contain backslashes and begins
9593 # with a dollar sign (not a hyphen), so the echo should work correctly.
9594 lt_compile=`echo "$ac_compile" | $SED \
9595 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9596 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9597 -e 's:$: $lt_compiler_flag:'`
9598 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9599 (eval "$lt_compile" 2>out/conftest.err)
9600 ac_status=$?
9601 cat out/conftest.err >&5
9602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9603 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9604 then
9605 # The compiler can only warn and ignore the option if not recognized
9606 # So say no if there are warnings
9607 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9608 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9609 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9610 lt_cv_prog_compiler_c_o=yes
9613 chmod u+w . 2>&5
9614 $RM conftest*
9615 # SGI C++ compiler will create directory out/ii_files/ for
9616 # template instantiation
9617 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9618 $RM out/* && rmdir out
9619 cd ..
9620 $RM -r conftest
9621 $RM conftest*
9624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9625 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9633 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9634 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9635 $as_echo_n "(cached) " >&6
9636 else
9637 lt_cv_prog_compiler_c_o=no
9638 $RM -r conftest 2>/dev/null
9639 mkdir conftest
9640 cd conftest
9641 mkdir out
9642 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9644 lt_compiler_flag="-o out/conftest2.$ac_objext"
9645 # Insert the option either (1) after the last *FLAGS variable, or
9646 # (2) before a word containing "conftest.", or (3) at the end.
9647 # Note that $ac_compile itself does not contain backslashes and begins
9648 # with a dollar sign (not a hyphen), so the echo should work correctly.
9649 lt_compile=`echo "$ac_compile" | $SED \
9650 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9651 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9652 -e 's:$: $lt_compiler_flag:'`
9653 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9654 (eval "$lt_compile" 2>out/conftest.err)
9655 ac_status=$?
9656 cat out/conftest.err >&5
9657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9658 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9659 then
9660 # The compiler can only warn and ignore the option if not recognized
9661 # So say no if there are warnings
9662 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9663 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9664 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9665 lt_cv_prog_compiler_c_o=yes
9668 chmod u+w . 2>&5
9669 $RM conftest*
9670 # SGI C++ compiler will create directory out/ii_files/ for
9671 # template instantiation
9672 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9673 $RM out/* && rmdir out
9674 cd ..
9675 $RM -r conftest
9676 $RM conftest*
9679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9680 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9685 hard_links="nottested"
9686 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9687 # do not overwrite the value of need_locks provided by the user
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9689 $as_echo_n "checking if we can lock with hard links... " >&6; }
9690 hard_links=yes
9691 $RM conftest*
9692 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9693 touch conftest.a
9694 ln conftest.a conftest.b 2>&5 || hard_links=no
9695 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9697 $as_echo "$hard_links" >&6; }
9698 if test "$hard_links" = no; then
9699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9700 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9701 need_locks=warn
9703 else
9704 need_locks=no
9712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9713 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9715 runpath_var=
9716 allow_undefined_flag=
9717 always_export_symbols=no
9718 archive_cmds=
9719 archive_expsym_cmds=
9720 compiler_needs_object=no
9721 enable_shared_with_static_runtimes=no
9722 export_dynamic_flag_spec=
9723 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9724 hardcode_automatic=no
9725 hardcode_direct=no
9726 hardcode_direct_absolute=no
9727 hardcode_libdir_flag_spec=
9728 hardcode_libdir_flag_spec_ld=
9729 hardcode_libdir_separator=
9730 hardcode_minus_L=no
9731 hardcode_shlibpath_var=unsupported
9732 inherit_rpath=no
9733 link_all_deplibs=unknown
9734 module_cmds=
9735 module_expsym_cmds=
9736 old_archive_from_new_cmds=
9737 old_archive_from_expsyms_cmds=
9738 thread_safe_flag_spec=
9739 whole_archive_flag_spec=
9740 # include_expsyms should be a list of space-separated symbols to be *always*
9741 # included in the symbol list
9742 include_expsyms=
9743 # exclude_expsyms can be an extended regexp of symbols to exclude
9744 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9745 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9746 # as well as any symbol that contains `d'.
9747 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9748 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9749 # platforms (ab)use it in PIC code, but their linkers get confused if
9750 # the symbol is explicitly referenced. Since portable code cannot
9751 # rely on this symbol name, it's probably fine to never include it in
9752 # preloaded symbol tables.
9753 # Exclude shared library initialization/finalization symbols.
9754 extract_expsyms_cmds=
9756 case $host_os in
9757 cygwin* | mingw* | pw32* | cegcc*)
9758 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9759 # When not using gcc, we currently assume that we are using
9760 # Microsoft Visual C++.
9761 if test "$GCC" != yes; then
9762 with_gnu_ld=no
9765 interix*)
9766 # we just hope/assume this is gcc and not c89 (= MSVC++)
9767 with_gnu_ld=yes
9769 openbsd*)
9770 with_gnu_ld=no
9772 esac
9774 ld_shlibs=yes
9776 # On some targets, GNU ld is compatible enough with the native linker
9777 # that we're better off using the native interface for both.
9778 lt_use_gnu_ld_interface=no
9779 if test "$with_gnu_ld" = yes; then
9780 case $host_os in
9781 aix*)
9782 # The AIX port of GNU ld has always aspired to compatibility
9783 # with the native linker. However, as the warning in the GNU ld
9784 # block says, versions before 2.19.5* couldn't really create working
9785 # shared libraries, regardless of the interface used.
9786 case `$LD -v 2>&1` in
9787 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9788 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9789 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9791 lt_use_gnu_ld_interface=yes
9793 esac
9796 lt_use_gnu_ld_interface=yes
9798 esac
9801 if test "$lt_use_gnu_ld_interface" = yes; then
9802 # If archive_cmds runs LD, not CC, wlarc should be empty
9803 wlarc='${wl}'
9805 # Set some defaults for GNU ld with shared library support. These
9806 # are reset later if shared libraries are not supported. Putting them
9807 # here allows them to be overridden if necessary.
9808 runpath_var=LD_RUN_PATH
9809 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9810 export_dynamic_flag_spec='${wl}--export-dynamic'
9811 # ancient GNU ld didn't support --whole-archive et. al.
9812 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9813 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9814 else
9815 whole_archive_flag_spec=
9817 supports_anon_versioning=no
9818 case `$LD -v 2>&1` in
9819 *GNU\ gold*) supports_anon_versioning=yes ;;
9820 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9821 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9822 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9823 *\ 2.11.*) ;; # other 2.11 versions
9824 *) supports_anon_versioning=yes ;;
9825 esac
9827 # See if GNU ld supports shared libraries.
9828 case $host_os in
9829 aix[3-9]*)
9830 # On AIX/PPC, the GNU linker is very broken
9831 if test "$host_cpu" != ia64; then
9832 ld_shlibs=no
9833 cat <<_LT_EOF 1>&2
9835 *** Warning: the GNU linker, at least up to release 2.19, is reported
9836 *** to be unable to reliably create shared libraries on AIX.
9837 *** Therefore, libtool is disabling shared libraries support. If you
9838 *** really care for shared libraries, you may want to install binutils
9839 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9840 *** You will then need to restart the configuration process.
9842 _LT_EOF
9846 amigaos*)
9847 case $host_cpu in
9848 powerpc)
9849 # see comment about AmigaOS4 .so support
9850 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9851 archive_expsym_cmds=''
9853 m68k)
9854 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)'
9855 hardcode_libdir_flag_spec='-L$libdir'
9856 hardcode_minus_L=yes
9858 esac
9861 beos*)
9862 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9863 allow_undefined_flag=unsupported
9864 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9865 # support --undefined. This deserves some investigation. FIXME
9866 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9867 else
9868 ld_shlibs=no
9872 cygwin* | mingw* | pw32* | cegcc*)
9873 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9874 # as there is no search path for DLLs.
9875 hardcode_libdir_flag_spec='-L$libdir'
9876 export_dynamic_flag_spec='${wl}--export-all-symbols'
9877 allow_undefined_flag=unsupported
9878 always_export_symbols=no
9879 enable_shared_with_static_runtimes=yes
9880 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9882 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9883 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9884 # If the export-symbols file already is a .def file (1st line
9885 # is EXPORTS), use it as is; otherwise, prepend...
9886 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9887 cp $export_symbols $output_objdir/$soname.def;
9888 else
9889 echo EXPORTS > $output_objdir/$soname.def;
9890 cat $export_symbols >> $output_objdir/$soname.def;
9892 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9893 else
9894 ld_shlibs=no
9898 haiku*)
9899 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9900 link_all_deplibs=yes
9903 interix[3-9]*)
9904 hardcode_direct=no
9905 hardcode_shlibpath_var=no
9906 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9907 export_dynamic_flag_spec='${wl}-E'
9908 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9909 # Instead, shared libraries are loaded at an image base (0x10000000 by
9910 # default) and relocated if they conflict, which is a slow very memory
9911 # consuming and fragmenting process. To avoid this, we pick a random,
9912 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9913 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9914 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9915 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'
9918 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9919 tmp_diet=no
9920 if test "$host_os" = linux-dietlibc; then
9921 case $cc_basename in
9922 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9923 esac
9925 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9926 && test "$tmp_diet" = no
9927 then
9928 tmp_addflag=' $pic_flag'
9929 tmp_sharedflag='-shared'
9930 case $cc_basename,$host_cpu in
9931 pgcc*) # Portland Group C compiler
9932 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'
9933 tmp_addflag=' $pic_flag'
9935 pgf77* | pgf90* | pgf95* | pgfortran*)
9936 # Portland Group f77 and f90 compilers
9937 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'
9938 tmp_addflag=' $pic_flag -Mnomain' ;;
9939 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9940 tmp_addflag=' -i_dynamic' ;;
9941 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9942 tmp_addflag=' -i_dynamic -nofor_main' ;;
9943 ifc* | ifort*) # Intel Fortran compiler
9944 tmp_addflag=' -nofor_main' ;;
9945 lf95*) # Lahey Fortran 8.1
9946 whole_archive_flag_spec=
9947 tmp_sharedflag='--shared' ;;
9948 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9949 tmp_sharedflag='-qmkshrobj'
9950 tmp_addflag= ;;
9951 nvcc*) # Cuda Compiler Driver 2.2
9952 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'
9953 compiler_needs_object=yes
9955 esac
9956 case `$CC -V 2>&1 | sed 5q` in
9957 *Sun\ C*) # Sun C 5.9
9958 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'
9959 compiler_needs_object=yes
9960 tmp_sharedflag='-G' ;;
9961 *Sun\ F*) # Sun Fortran 8.3
9962 tmp_sharedflag='-G' ;;
9963 esac
9964 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9966 if test "x$supports_anon_versioning" = xyes; then
9967 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9968 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9969 echo "local: *; };" >> $output_objdir/$libname.ver~
9970 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9973 case $cc_basename in
9974 xlf* | bgf* | bgxlf* | mpixlf*)
9975 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9976 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9977 hardcode_libdir_flag_spec=
9978 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9979 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9980 if test "x$supports_anon_versioning" = xyes; then
9981 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9982 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9983 echo "local: *; };" >> $output_objdir/$libname.ver~
9984 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9987 esac
9988 else
9989 ld_shlibs=no
9993 netbsd*)
9994 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9995 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9996 wlarc=
9997 else
9998 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9999 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10003 solaris*)
10004 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10005 ld_shlibs=no
10006 cat <<_LT_EOF 1>&2
10008 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10009 *** create shared libraries on Solaris systems. Therefore, libtool
10010 *** is disabling shared libraries support. We urge you to upgrade GNU
10011 *** binutils to release 2.9.1 or newer. Another option is to modify
10012 *** your PATH or compiler configuration so that the native linker is
10013 *** used, and then restart.
10015 _LT_EOF
10016 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10017 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10018 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10019 else
10020 ld_shlibs=no
10024 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10025 case `$LD -v 2>&1` in
10026 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10027 ld_shlibs=no
10028 cat <<_LT_EOF 1>&2
10030 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10031 *** reliably create shared libraries on SCO systems. Therefore, libtool
10032 *** is disabling shared libraries support. We urge you to upgrade GNU
10033 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10034 *** your PATH or compiler configuration so that the native linker is
10035 *** used, and then restart.
10037 _LT_EOF
10040 # For security reasons, it is highly recommended that you always
10041 # use absolute paths for naming shared libraries, and exclude the
10042 # DT_RUNPATH tag from executables and libraries. But doing so
10043 # requires that you compile everything twice, which is a pain.
10044 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10045 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10046 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10047 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10048 else
10049 ld_shlibs=no
10052 esac
10055 sunos4*)
10056 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10057 wlarc=
10058 hardcode_direct=yes
10059 hardcode_shlibpath_var=no
10063 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10064 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10065 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10066 else
10067 ld_shlibs=no
10070 esac
10072 if test "$ld_shlibs" = no; then
10073 runpath_var=
10074 hardcode_libdir_flag_spec=
10075 export_dynamic_flag_spec=
10076 whole_archive_flag_spec=
10078 else
10079 # PORTME fill in a description of your system's linker (not GNU ld)
10080 case $host_os in
10081 aix3*)
10082 allow_undefined_flag=unsupported
10083 always_export_symbols=yes
10084 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'
10085 # Note: this linker hardcodes the directories in LIBPATH if there
10086 # are no directories specified by -L.
10087 hardcode_minus_L=yes
10088 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10089 # Neither direct hardcoding nor static linking is supported with a
10090 # broken collect2.
10091 hardcode_direct=unsupported
10095 aix[4-9]*)
10096 if test "$host_cpu" = ia64; then
10097 # On IA64, the linker does run time linking by default, so we don't
10098 # have to do anything special.
10099 aix_use_runtimelinking=no
10100 exp_sym_flag='-Bexport'
10101 no_entry_flag=""
10102 else
10103 # If we're using GNU nm, then we don't want the "-C" option.
10104 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10105 # Also, AIX nm treats weak defined symbols like other global
10106 # defined symbols, whereas GNU nm marks them as "W".
10107 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10108 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'
10109 else
10110 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10112 aix_use_runtimelinking=no
10114 # Test if we are trying to use run time linking or normal
10115 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10116 # need to do runtime linking.
10117 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10118 for ld_flag in $LDFLAGS; do
10119 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10120 aix_use_runtimelinking=yes
10121 break
10123 done
10125 esac
10127 exp_sym_flag='-bexport'
10128 no_entry_flag='-bnoentry'
10131 # When large executables or shared objects are built, AIX ld can
10132 # have problems creating the table of contents. If linking a library
10133 # or program results in "error TOC overflow" add -mminimal-toc to
10134 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10135 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10137 archive_cmds=''
10138 hardcode_direct=yes
10139 hardcode_direct_absolute=yes
10140 hardcode_libdir_separator=':'
10141 link_all_deplibs=yes
10142 file_list_spec='${wl}-f,'
10144 if test "$GCC" = yes; then
10145 case $host_os in aix4.[012]|aix4.[012].*)
10146 # We only want to do this on AIX 4.2 and lower, the check
10147 # below for broken collect2 doesn't work under 4.3+
10148 collect2name=`${CC} -print-prog-name=collect2`
10149 if test -f "$collect2name" &&
10150 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10151 then
10152 # We have reworked collect2
10154 else
10155 # We have old collect2
10156 hardcode_direct=unsupported
10157 # It fails to find uninstalled libraries when the uninstalled
10158 # path is not listed in the libpath. Setting hardcode_minus_L
10159 # to unsupported forces relinking
10160 hardcode_minus_L=yes
10161 hardcode_libdir_flag_spec='-L$libdir'
10162 hardcode_libdir_separator=
10165 esac
10166 shared_flag='-shared'
10167 if test "$aix_use_runtimelinking" = yes; then
10168 shared_flag="$shared_flag "'${wl}-G'
10170 else
10171 # not using gcc
10172 if test "$host_cpu" = ia64; then
10173 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10174 # chokes on -Wl,-G. The following line is correct:
10175 shared_flag='-G'
10176 else
10177 if test "$aix_use_runtimelinking" = yes; then
10178 shared_flag='${wl}-G'
10179 else
10180 shared_flag='${wl}-bM:SRE'
10185 export_dynamic_flag_spec='${wl}-bexpall'
10186 # It seems that -bexpall does not export symbols beginning with
10187 # underscore (_), so it is better to generate a list of symbols to export.
10188 always_export_symbols=yes
10189 if test "$aix_use_runtimelinking" = yes; then
10190 # Warning - without using the other runtime loading flags (-brtl),
10191 # -berok will link without error, but may produce a broken library.
10192 allow_undefined_flag='-berok'
10193 # Determine the default libpath from the value encoded in an
10194 # empty executable.
10195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10196 /* end confdefs.h. */
10199 main ()
10203 return 0;
10205 _ACEOF
10206 if ac_fn_c_try_link "$LINENO"; then :
10208 lt_aix_libpath_sed='
10209 /Import File Strings/,/^$/ {
10210 /^0/ {
10211 s/^0 *\(.*\)$/\1/
10215 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10216 # Check for a 64-bit object if we didn't find anything.
10217 if test -z "$aix_libpath"; then
10218 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10221 rm -f core conftest.err conftest.$ac_objext \
10222 conftest$ac_exeext conftest.$ac_ext
10223 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10225 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10226 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"
10227 else
10228 if test "$host_cpu" = ia64; then
10229 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10230 allow_undefined_flag="-z nodefs"
10231 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"
10232 else
10233 # Determine the default libpath from the value encoded in an
10234 # empty executable.
10235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10236 /* end confdefs.h. */
10239 main ()
10243 return 0;
10245 _ACEOF
10246 if ac_fn_c_try_link "$LINENO"; then :
10248 lt_aix_libpath_sed='
10249 /Import File Strings/,/^$/ {
10250 /^0/ {
10251 s/^0 *\(.*\)$/\1/
10255 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10256 # Check for a 64-bit object if we didn't find anything.
10257 if test -z "$aix_libpath"; then
10258 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10261 rm -f core conftest.err conftest.$ac_objext \
10262 conftest$ac_exeext conftest.$ac_ext
10263 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10265 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10266 # Warning - without using the other run time loading flags,
10267 # -berok will link without error, but may produce a broken library.
10268 no_undefined_flag=' ${wl}-bernotok'
10269 allow_undefined_flag=' ${wl}-berok'
10270 if test "$with_gnu_ld" = yes; then
10271 # We only use this code for GNU lds that support --whole-archive.
10272 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10273 else
10274 # Exported symbols can be pulled into shared objects from archives
10275 whole_archive_flag_spec='$convenience'
10277 archive_cmds_need_lc=yes
10278 # This is similar to how AIX traditionally builds its shared libraries.
10279 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'
10284 amigaos*)
10285 case $host_cpu in
10286 powerpc)
10287 # see comment about AmigaOS4 .so support
10288 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10289 archive_expsym_cmds=''
10291 m68k)
10292 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)'
10293 hardcode_libdir_flag_spec='-L$libdir'
10294 hardcode_minus_L=yes
10296 esac
10299 bsdi[45]*)
10300 export_dynamic_flag_spec=-rdynamic
10303 cygwin* | mingw* | pw32* | cegcc*)
10304 # When not using gcc, we currently assume that we are using
10305 # Microsoft Visual C++.
10306 # hardcode_libdir_flag_spec is actually meaningless, as there is
10307 # no search path for DLLs.
10308 hardcode_libdir_flag_spec=' '
10309 allow_undefined_flag=unsupported
10310 # Tell ltmain to make .lib files, not .a files.
10311 libext=lib
10312 # Tell ltmain to make .dll files, not .so files.
10313 shrext_cmds=".dll"
10314 # FIXME: Setting linknames here is a bad hack.
10315 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10316 # The linker will automatically build a .lib file if we build a DLL.
10317 old_archive_from_new_cmds='true'
10318 # FIXME: Should let the user specify the lib program.
10319 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10320 fix_srcfile_path='`cygpath -w "$srcfile"`'
10321 enable_shared_with_static_runtimes=yes
10324 darwin* | rhapsody*)
10327 archive_cmds_need_lc=no
10328 hardcode_direct=no
10329 hardcode_automatic=yes
10330 hardcode_shlibpath_var=unsupported
10331 if test "$lt_cv_ld_force_load" = "yes"; then
10332 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\"`'
10333 else
10334 whole_archive_flag_spec=''
10336 link_all_deplibs=yes
10337 allow_undefined_flag="$_lt_dar_allow_undefined"
10338 case $cc_basename in
10339 ifort*) _lt_dar_can_shared=yes ;;
10340 *) _lt_dar_can_shared=$GCC ;;
10341 esac
10342 if test "$_lt_dar_can_shared" = "yes"; then
10343 output_verbose_link_cmd=func_echo_all
10344 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10345 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10346 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}"
10347 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}"
10349 else
10350 ld_shlibs=no
10355 dgux*)
10356 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10357 hardcode_libdir_flag_spec='-L$libdir'
10358 hardcode_shlibpath_var=no
10361 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10362 # support. Future versions do this automatically, but an explicit c++rt0.o
10363 # does not break anything, and helps significantly (at the cost of a little
10364 # extra space).
10365 freebsd2.2*)
10366 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10367 hardcode_libdir_flag_spec='-R$libdir'
10368 hardcode_direct=yes
10369 hardcode_shlibpath_var=no
10372 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10373 freebsd2.*)
10374 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10375 hardcode_direct=yes
10376 hardcode_minus_L=yes
10377 hardcode_shlibpath_var=no
10380 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10381 freebsd* | dragonfly*)
10382 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10383 hardcode_libdir_flag_spec='-R$libdir'
10384 hardcode_direct=yes
10385 hardcode_shlibpath_var=no
10388 hpux9*)
10389 if test "$GCC" = yes; then
10390 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'
10391 else
10392 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'
10394 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10395 hardcode_libdir_separator=:
10396 hardcode_direct=yes
10398 # hardcode_minus_L: Not really in the search PATH,
10399 # but as the default location of the library.
10400 hardcode_minus_L=yes
10401 export_dynamic_flag_spec='${wl}-E'
10404 hpux10*)
10405 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10406 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10407 else
10408 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10410 if test "$with_gnu_ld" = no; then
10411 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10412 hardcode_libdir_flag_spec_ld='+b $libdir'
10413 hardcode_libdir_separator=:
10414 hardcode_direct=yes
10415 hardcode_direct_absolute=yes
10416 export_dynamic_flag_spec='${wl}-E'
10417 # hardcode_minus_L: Not really in the search PATH,
10418 # but as the default location of the library.
10419 hardcode_minus_L=yes
10423 hpux11*)
10424 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10425 case $host_cpu in
10426 hppa*64*)
10427 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10429 ia64*)
10430 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10433 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10435 esac
10436 else
10437 case $host_cpu in
10438 hppa*64*)
10439 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10441 ia64*)
10442 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10446 # Older versions of the 11.00 compiler do not understand -b yet
10447 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10449 $as_echo_n "checking if $CC understands -b... " >&6; }
10450 if test "${lt_cv_prog_compiler__b+set}" = set; then :
10451 $as_echo_n "(cached) " >&6
10452 else
10453 lt_cv_prog_compiler__b=no
10454 save_LDFLAGS="$LDFLAGS"
10455 LDFLAGS="$LDFLAGS -b"
10456 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10457 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10458 # The linker can only warn and ignore the option if not recognized
10459 # So say no if there are warnings
10460 if test -s conftest.err; then
10461 # Append any errors to the config.log.
10462 cat conftest.err 1>&5
10463 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10464 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10465 if diff conftest.exp conftest.er2 >/dev/null; then
10466 lt_cv_prog_compiler__b=yes
10468 else
10469 lt_cv_prog_compiler__b=yes
10472 $RM -r conftest*
10473 LDFLAGS="$save_LDFLAGS"
10476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10477 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10479 if test x"$lt_cv_prog_compiler__b" = xyes; then
10480 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10481 else
10482 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10486 esac
10488 if test "$with_gnu_ld" = no; then
10489 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10490 hardcode_libdir_separator=:
10492 case $host_cpu in
10493 hppa*64*|ia64*)
10494 hardcode_direct=no
10495 hardcode_shlibpath_var=no
10498 hardcode_direct=yes
10499 hardcode_direct_absolute=yes
10500 export_dynamic_flag_spec='${wl}-E'
10502 # hardcode_minus_L: Not really in the search PATH,
10503 # but as the default location of the library.
10504 hardcode_minus_L=yes
10506 esac
10510 irix5* | irix6* | nonstopux*)
10511 if test "$GCC" = yes; then
10512 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'
10513 # Try to use the -exported_symbol ld option, if it does not
10514 # work, assume that -exports_file does not work either and
10515 # implicitly export all symbols.
10516 save_LDFLAGS="$LDFLAGS"
10517 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10519 /* end confdefs.h. */
10520 int foo(void) {}
10521 _ACEOF
10522 if ac_fn_c_try_link "$LINENO"; then :
10523 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'
10526 rm -f core conftest.err conftest.$ac_objext \
10527 conftest$ac_exeext conftest.$ac_ext
10528 LDFLAGS="$save_LDFLAGS"
10529 else
10530 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'
10531 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'
10533 archive_cmds_need_lc='no'
10534 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10535 hardcode_libdir_separator=:
10536 inherit_rpath=yes
10537 link_all_deplibs=yes
10540 netbsd*)
10541 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10542 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10543 else
10544 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10546 hardcode_libdir_flag_spec='-R$libdir'
10547 hardcode_direct=yes
10548 hardcode_shlibpath_var=no
10551 newsos6)
10552 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10553 hardcode_direct=yes
10554 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10555 hardcode_libdir_separator=:
10556 hardcode_shlibpath_var=no
10559 *nto* | *qnx*)
10562 openbsd*)
10563 if test -f /usr/libexec/ld.so; then
10564 hardcode_direct=yes
10565 hardcode_shlibpath_var=no
10566 hardcode_direct_absolute=yes
10567 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10568 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10569 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10570 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10571 export_dynamic_flag_spec='${wl}-E'
10572 else
10573 case $host_os in
10574 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10575 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10576 hardcode_libdir_flag_spec='-R$libdir'
10579 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10580 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10582 esac
10584 else
10585 ld_shlibs=no
10589 os2*)
10590 hardcode_libdir_flag_spec='-L$libdir'
10591 hardcode_minus_L=yes
10592 allow_undefined_flag=unsupported
10593 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'
10594 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10597 osf3*)
10598 if test "$GCC" = yes; then
10599 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10600 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'
10601 else
10602 allow_undefined_flag=' -expect_unresolved \*'
10603 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'
10605 archive_cmds_need_lc='no'
10606 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10607 hardcode_libdir_separator=:
10610 osf4* | osf5*) # as osf3* with the addition of -msym flag
10611 if test "$GCC" = yes; then
10612 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10613 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'
10614 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10615 else
10616 allow_undefined_flag=' -expect_unresolved \*'
10617 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'
10618 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~
10619 $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'
10621 # Both c and cxx compiler support -rpath directly
10622 hardcode_libdir_flag_spec='-rpath $libdir'
10624 archive_cmds_need_lc='no'
10625 hardcode_libdir_separator=:
10628 solaris*)
10629 no_undefined_flag=' -z defs'
10630 if test "$GCC" = yes; then
10631 wlarc='${wl}'
10632 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10633 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10634 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10635 else
10636 case `$CC -V 2>&1` in
10637 *"Compilers 5.0"*)
10638 wlarc=''
10639 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10640 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10641 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10644 wlarc='${wl}'
10645 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10646 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10647 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10649 esac
10651 hardcode_libdir_flag_spec='-R$libdir'
10652 hardcode_shlibpath_var=no
10653 case $host_os in
10654 solaris2.[0-5] | solaris2.[0-5].*) ;;
10656 # The compiler driver will combine and reorder linker options,
10657 # but understands `-z linker_flag'. GCC discards it without `$wl',
10658 # but is careful enough not to reorder.
10659 # Supported since Solaris 2.6 (maybe 2.5.1?)
10660 if test "$GCC" = yes; then
10661 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10662 else
10663 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10666 esac
10667 link_all_deplibs=yes
10670 sunos4*)
10671 if test "x$host_vendor" = xsequent; then
10672 # Use $CC to link under sequent, because it throws in some extra .o
10673 # files that make .init and .fini sections work.
10674 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10675 else
10676 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10678 hardcode_libdir_flag_spec='-L$libdir'
10679 hardcode_direct=yes
10680 hardcode_minus_L=yes
10681 hardcode_shlibpath_var=no
10684 sysv4)
10685 case $host_vendor in
10686 sni)
10687 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10688 hardcode_direct=yes # is this really true???
10690 siemens)
10691 ## LD is ld it makes a PLAMLIB
10692 ## CC just makes a GrossModule.
10693 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10694 reload_cmds='$CC -r -o $output$reload_objs'
10695 hardcode_direct=no
10697 motorola)
10698 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10699 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10701 esac
10702 runpath_var='LD_RUN_PATH'
10703 hardcode_shlibpath_var=no
10706 sysv4.3*)
10707 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10708 hardcode_shlibpath_var=no
10709 export_dynamic_flag_spec='-Bexport'
10712 sysv4*MP*)
10713 if test -d /usr/nec; then
10714 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10715 hardcode_shlibpath_var=no
10716 runpath_var=LD_RUN_PATH
10717 hardcode_runpath_var=yes
10718 ld_shlibs=yes
10722 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10723 no_undefined_flag='${wl}-z,text'
10724 archive_cmds_need_lc=no
10725 hardcode_shlibpath_var=no
10726 runpath_var='LD_RUN_PATH'
10728 if test "$GCC" = yes; then
10729 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10730 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10731 else
10732 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10733 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10737 sysv5* | sco3.2v5* | sco5v6*)
10738 # Note: We can NOT use -z defs as we might desire, because we do not
10739 # link with -lc, and that would cause any symbols used from libc to
10740 # always be unresolved, which means just about no library would
10741 # ever link correctly. If we're not using GNU ld we use -z text
10742 # though, which does catch some bad symbols but isn't as heavy-handed
10743 # as -z defs.
10744 no_undefined_flag='${wl}-z,text'
10745 allow_undefined_flag='${wl}-z,nodefs'
10746 archive_cmds_need_lc=no
10747 hardcode_shlibpath_var=no
10748 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10749 hardcode_libdir_separator=':'
10750 link_all_deplibs=yes
10751 export_dynamic_flag_spec='${wl}-Bexport'
10752 runpath_var='LD_RUN_PATH'
10754 if test "$GCC" = yes; then
10755 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10756 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10757 else
10758 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10759 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10763 uts4*)
10764 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10765 hardcode_libdir_flag_spec='-L$libdir'
10766 hardcode_shlibpath_var=no
10770 ld_shlibs=no
10772 esac
10774 if test x$host_vendor = xsni; then
10775 case $host in
10776 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10777 export_dynamic_flag_spec='${wl}-Blargedynsym'
10779 esac
10783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10784 $as_echo "$ld_shlibs" >&6; }
10785 test "$ld_shlibs" = no && can_build_shared=no
10787 with_gnu_ld=$with_gnu_ld
10804 # Do we need to explicitly link libc?
10806 case "x$archive_cmds_need_lc" in
10807 x|xyes)
10808 # Assume -lc should be added
10809 archive_cmds_need_lc=yes
10811 if test "$enable_shared" = yes && test "$GCC" = yes; then
10812 case $archive_cmds in
10813 *'~'*)
10814 # FIXME: we may have to deal with multi-command sequences.
10816 '$CC '*)
10817 # Test whether the compiler implicitly links with -lc since on some
10818 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10819 # to ld, don't add -lc before -lgcc.
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10821 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10822 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10823 $as_echo_n "(cached) " >&6
10824 else
10825 $RM conftest*
10826 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10828 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10829 (eval $ac_compile) 2>&5
10830 ac_status=$?
10831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10832 test $ac_status = 0; } 2>conftest.err; then
10833 soname=conftest
10834 lib=conftest
10835 libobjs=conftest.$ac_objext
10836 deplibs=
10837 wl=$lt_prog_compiler_wl
10838 pic_flag=$lt_prog_compiler_pic
10839 compiler_flags=-v
10840 linker_flags=-v
10841 verstring=
10842 output_objdir=.
10843 libname=conftest
10844 lt_save_allow_undefined_flag=$allow_undefined_flag
10845 allow_undefined_flag=
10846 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10847 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10848 ac_status=$?
10849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10850 test $ac_status = 0; }
10851 then
10852 lt_cv_archive_cmds_need_lc=no
10853 else
10854 lt_cv_archive_cmds_need_lc=yes
10856 allow_undefined_flag=$lt_save_allow_undefined_flag
10857 else
10858 cat conftest.err 1>&5
10860 $RM conftest*
10863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10864 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10865 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10867 esac
10870 esac
11028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11029 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11031 if test "$GCC" = yes; then
11032 case $host_os in
11033 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11034 *) lt_awk_arg="/^libraries:/" ;;
11035 esac
11036 case $host_os in
11037 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11038 *) lt_sed_strip_eq="s,=/,/,g" ;;
11039 esac
11040 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11041 case $lt_search_path_spec in
11042 *\;*)
11043 # if the path contains ";" then we assume it to be the separator
11044 # otherwise default to the standard path separator (i.e. ":") - it is
11045 # assumed that no part of a normal pathname contains ";" but that should
11046 # okay in the real world where ";" in dirpaths is itself problematic.
11047 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11050 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11052 esac
11053 # Ok, now we have the path, separated by spaces, we can step through it
11054 # and add multilib dir if necessary.
11055 lt_tmp_lt_search_path_spec=
11056 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11057 for lt_sys_path in $lt_search_path_spec; do
11058 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11059 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11060 else
11061 test -d "$lt_sys_path" && \
11062 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11064 done
11065 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11066 BEGIN {RS=" "; FS="/|\n";} {
11067 lt_foo="";
11068 lt_count=0;
11069 for (lt_i = NF; lt_i > 0; lt_i--) {
11070 if ($lt_i != "" && $lt_i != ".") {
11071 if ($lt_i == "..") {
11072 lt_count++;
11073 } else {
11074 if (lt_count == 0) {
11075 lt_foo="/" $lt_i lt_foo;
11076 } else {
11077 lt_count--;
11082 if (lt_foo != "") { lt_freq[lt_foo]++; }
11083 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11085 # AWK program above erroneously prepends '/' to C:/dos/paths
11086 # for these hosts.
11087 case $host_os in
11088 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11089 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11090 esac
11091 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11092 else
11093 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11095 library_names_spec=
11096 libname_spec='lib$name'
11097 soname_spec=
11098 shrext_cmds=".so"
11099 postinstall_cmds=
11100 postuninstall_cmds=
11101 finish_cmds=
11102 finish_eval=
11103 shlibpath_var=
11104 shlibpath_overrides_runpath=unknown
11105 version_type=none
11106 dynamic_linker="$host_os ld.so"
11107 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11108 need_lib_prefix=unknown
11109 hardcode_into_libs=no
11111 # when you set need_version to no, make sure it does not cause -set_version
11112 # flags to be left without arguments
11113 need_version=unknown
11115 case $host_os in
11116 aix3*)
11117 version_type=linux
11118 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11119 shlibpath_var=LIBPATH
11121 # AIX 3 has no versioning support, so we append a major version to the name.
11122 soname_spec='${libname}${release}${shared_ext}$major'
11125 aix[4-9]*)
11126 version_type=linux
11127 need_lib_prefix=no
11128 need_version=no
11129 hardcode_into_libs=yes
11130 if test "$host_cpu" = ia64; then
11131 # AIX 5 supports IA64
11132 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11133 shlibpath_var=LD_LIBRARY_PATH
11134 else
11135 # With GCC up to 2.95.x, collect2 would create an import file
11136 # for dependence libraries. The import file would start with
11137 # the line `#! .'. This would cause the generated library to
11138 # depend on `.', always an invalid library. This was fixed in
11139 # development snapshots of GCC prior to 3.0.
11140 case $host_os in
11141 aix4 | aix4.[01] | aix4.[01].*)
11142 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11143 echo ' yes '
11144 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11146 else
11147 can_build_shared=no
11150 esac
11151 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11152 # soname into executable. Probably we can add versioning support to
11153 # collect2, so additional links can be useful in future.
11154 if test "$aix_use_runtimelinking" = yes; then
11155 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11156 # instead of lib<name>.a to let people know that these are not
11157 # typical AIX shared libraries.
11158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11159 else
11160 # We preserve .a as extension for shared libraries through AIX4.2
11161 # and later when we are not doing run time linking.
11162 library_names_spec='${libname}${release}.a $libname.a'
11163 soname_spec='${libname}${release}${shared_ext}$major'
11165 shlibpath_var=LIBPATH
11169 amigaos*)
11170 case $host_cpu in
11171 powerpc)
11172 # Since July 2007 AmigaOS4 officially supports .so libraries.
11173 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11176 m68k)
11177 library_names_spec='$libname.ixlibrary $libname.a'
11178 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11179 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'
11181 esac
11184 beos*)
11185 library_names_spec='${libname}${shared_ext}'
11186 dynamic_linker="$host_os ld.so"
11187 shlibpath_var=LIBRARY_PATH
11190 bsdi[45]*)
11191 version_type=linux
11192 need_version=no
11193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11194 soname_spec='${libname}${release}${shared_ext}$major'
11195 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11196 shlibpath_var=LD_LIBRARY_PATH
11197 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11198 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11199 # the default ld.so.conf also contains /usr/contrib/lib and
11200 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11201 # libtool to hard-code these into programs
11204 cygwin* | mingw* | pw32* | cegcc*)
11205 version_type=windows
11206 shrext_cmds=".dll"
11207 need_version=no
11208 need_lib_prefix=no
11210 case $GCC,$host_os in
11211 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11212 library_names_spec='$libname.dll.a'
11213 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11214 postinstall_cmds='base_file=`basename \${file}`~
11215 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11216 dldir=$destdir/`dirname \$dlpath`~
11217 test -d \$dldir || mkdir -p \$dldir~
11218 $install_prog $dir/$dlname \$dldir/$dlname~
11219 chmod a+x \$dldir/$dlname~
11220 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11221 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11223 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11224 dlpath=$dir/\$dldll~
11225 $RM \$dlpath'
11226 shlibpath_overrides_runpath=yes
11228 case $host_os in
11229 cygwin*)
11230 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11231 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11233 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11235 mingw* | cegcc*)
11236 # MinGW DLLs use traditional 'lib' prefix
11237 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11239 pw32*)
11240 # pw32 DLLs use 'pw' prefix rather than 'lib'
11241 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11243 esac
11247 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11249 esac
11250 dynamic_linker='Win32 ld.exe'
11251 # FIXME: first we should search . and the directory the executable is in
11252 shlibpath_var=PATH
11255 darwin* | rhapsody*)
11256 dynamic_linker="$host_os dyld"
11257 version_type=darwin
11258 need_lib_prefix=no
11259 need_version=no
11260 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11261 soname_spec='${libname}${release}${major}$shared_ext'
11262 shlibpath_overrides_runpath=yes
11263 shlibpath_var=DYLD_LIBRARY_PATH
11264 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11266 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11267 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11270 dgux*)
11271 version_type=linux
11272 need_lib_prefix=no
11273 need_version=no
11274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11275 soname_spec='${libname}${release}${shared_ext}$major'
11276 shlibpath_var=LD_LIBRARY_PATH
11279 freebsd* | dragonfly*)
11280 # DragonFly does not have aout. When/if they implement a new
11281 # versioning mechanism, adjust this.
11282 if test -x /usr/bin/objformat; then
11283 objformat=`/usr/bin/objformat`
11284 else
11285 case $host_os in
11286 freebsd[23].*) objformat=aout ;;
11287 *) objformat=elf ;;
11288 esac
11290 version_type=freebsd-$objformat
11291 case $version_type in
11292 freebsd-elf*)
11293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11294 need_version=no
11295 need_lib_prefix=no
11297 freebsd-*)
11298 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11299 need_version=yes
11301 esac
11302 shlibpath_var=LD_LIBRARY_PATH
11303 case $host_os in
11304 freebsd2.*)
11305 shlibpath_overrides_runpath=yes
11307 freebsd3.[01]* | freebsdelf3.[01]*)
11308 shlibpath_overrides_runpath=yes
11309 hardcode_into_libs=yes
11311 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11312 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11313 shlibpath_overrides_runpath=no
11314 hardcode_into_libs=yes
11316 *) # from 4.6 on, and DragonFly
11317 shlibpath_overrides_runpath=yes
11318 hardcode_into_libs=yes
11320 esac
11323 gnu*)
11324 version_type=linux
11325 need_lib_prefix=no
11326 need_version=no
11327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11328 soname_spec='${libname}${release}${shared_ext}$major'
11329 shlibpath_var=LD_LIBRARY_PATH
11330 hardcode_into_libs=yes
11333 haiku*)
11334 version_type=linux
11335 need_lib_prefix=no
11336 need_version=no
11337 dynamic_linker="$host_os runtime_loader"
11338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11339 soname_spec='${libname}${release}${shared_ext}$major'
11340 shlibpath_var=LIBRARY_PATH
11341 shlibpath_overrides_runpath=yes
11342 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11343 hardcode_into_libs=yes
11346 hpux9* | hpux10* | hpux11*)
11347 # Give a soname corresponding to the major version so that dld.sl refuses to
11348 # link against other versions.
11349 version_type=sunos
11350 need_lib_prefix=no
11351 need_version=no
11352 case $host_cpu in
11353 ia64*)
11354 shrext_cmds='.so'
11355 hardcode_into_libs=yes
11356 dynamic_linker="$host_os dld.so"
11357 shlibpath_var=LD_LIBRARY_PATH
11358 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11360 soname_spec='${libname}${release}${shared_ext}$major'
11361 if test "X$HPUX_IA64_MODE" = X32; then
11362 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11363 else
11364 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11366 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11368 hppa*64*)
11369 shrext_cmds='.sl'
11370 hardcode_into_libs=yes
11371 dynamic_linker="$host_os dld.sl"
11372 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11373 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11375 soname_spec='${libname}${release}${shared_ext}$major'
11376 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11377 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11380 shrext_cmds='.sl'
11381 dynamic_linker="$host_os dld.sl"
11382 shlibpath_var=SHLIB_PATH
11383 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11385 soname_spec='${libname}${release}${shared_ext}$major'
11387 esac
11388 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11389 postinstall_cmds='chmod 555 $lib'
11390 # or fails outright, so override atomically:
11391 install_override_mode=555
11394 interix[3-9]*)
11395 version_type=linux
11396 need_lib_prefix=no
11397 need_version=no
11398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11399 soname_spec='${libname}${release}${shared_ext}$major'
11400 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11401 shlibpath_var=LD_LIBRARY_PATH
11402 shlibpath_overrides_runpath=no
11403 hardcode_into_libs=yes
11406 irix5* | irix6* | nonstopux*)
11407 case $host_os in
11408 nonstopux*) version_type=nonstopux ;;
11410 if test "$lt_cv_prog_gnu_ld" = yes; then
11411 version_type=linux
11412 else
11413 version_type=irix
11414 fi ;;
11415 esac
11416 need_lib_prefix=no
11417 need_version=no
11418 soname_spec='${libname}${release}${shared_ext}$major'
11419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11420 case $host_os in
11421 irix5* | nonstopux*)
11422 libsuff= shlibsuff=
11425 case $LD in # libtool.m4 will add one of these switches to LD
11426 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11427 libsuff= shlibsuff= libmagic=32-bit;;
11428 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11429 libsuff=32 shlibsuff=N32 libmagic=N32;;
11430 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11431 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11432 *) libsuff= shlibsuff= libmagic=never-match;;
11433 esac
11435 esac
11436 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11437 shlibpath_overrides_runpath=no
11438 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11439 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11440 hardcode_into_libs=yes
11443 # No shared lib support for Linux oldld, aout, or coff.
11444 linux*oldld* | linux*aout* | linux*coff*)
11445 dynamic_linker=no
11448 # This must be Linux ELF.
11449 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11450 version_type=linux
11451 need_lib_prefix=no
11452 need_version=no
11453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11454 soname_spec='${libname}${release}${shared_ext}$major'
11455 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11456 shlibpath_var=LD_LIBRARY_PATH
11457 shlibpath_overrides_runpath=no
11459 # Some binutils ld are patched to set DT_RUNPATH
11460 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11461 $as_echo_n "(cached) " >&6
11462 else
11463 lt_cv_shlibpath_overrides_runpath=no
11464 save_LDFLAGS=$LDFLAGS
11465 save_libdir=$libdir
11466 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11467 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11469 /* end confdefs.h. */
11472 main ()
11476 return 0;
11478 _ACEOF
11479 if ac_fn_c_try_link "$LINENO"; then :
11480 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11481 lt_cv_shlibpath_overrides_runpath=yes
11484 rm -f core conftest.err conftest.$ac_objext \
11485 conftest$ac_exeext conftest.$ac_ext
11486 LDFLAGS=$save_LDFLAGS
11487 libdir=$save_libdir
11491 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11493 # This implies no fast_install, which is unacceptable.
11494 # Some rework will be needed to allow for fast_install
11495 # before this can be enabled.
11496 hardcode_into_libs=yes
11498 # Append ld.so.conf contents to the search path
11499 if test -f /etc/ld.so.conf; then
11500 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' ' '`
11501 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11504 # We used to test for /lib/ld.so.1 and disable shared libraries on
11505 # powerpc, because MkLinux only supported shared libraries with the
11506 # GNU dynamic linker. Since this was broken with cross compilers,
11507 # most powerpc-linux boxes support dynamic linking these days and
11508 # people can always --disable-shared, the test was removed, and we
11509 # assume the GNU/Linux dynamic linker is in use.
11510 dynamic_linker='GNU/Linux ld.so'
11513 netbsd*)
11514 version_type=sunos
11515 need_lib_prefix=no
11516 need_version=no
11517 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11519 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11520 dynamic_linker='NetBSD (a.out) ld.so'
11521 else
11522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11523 soname_spec='${libname}${release}${shared_ext}$major'
11524 dynamic_linker='NetBSD ld.elf_so'
11526 shlibpath_var=LD_LIBRARY_PATH
11527 shlibpath_overrides_runpath=yes
11528 hardcode_into_libs=yes
11531 newsos6)
11532 version_type=linux
11533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11534 shlibpath_var=LD_LIBRARY_PATH
11535 shlibpath_overrides_runpath=yes
11538 *nto* | *qnx*)
11539 version_type=qnx
11540 need_lib_prefix=no
11541 need_version=no
11542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11543 soname_spec='${libname}${release}${shared_ext}$major'
11544 shlibpath_var=LD_LIBRARY_PATH
11545 shlibpath_overrides_runpath=no
11546 hardcode_into_libs=yes
11547 dynamic_linker='ldqnx.so'
11550 openbsd*)
11551 version_type=sunos
11552 sys_lib_dlsearch_path_spec="/usr/lib"
11553 need_lib_prefix=no
11554 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11555 case $host_os in
11556 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11557 *) need_version=no ;;
11558 esac
11559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11560 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11561 shlibpath_var=LD_LIBRARY_PATH
11562 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11563 case $host_os in
11564 openbsd2.[89] | openbsd2.[89].*)
11565 shlibpath_overrides_runpath=no
11568 shlibpath_overrides_runpath=yes
11570 esac
11571 else
11572 shlibpath_overrides_runpath=yes
11576 os2*)
11577 libname_spec='$name'
11578 shrext_cmds=".dll"
11579 need_lib_prefix=no
11580 library_names_spec='$libname${shared_ext} $libname.a'
11581 dynamic_linker='OS/2 ld.exe'
11582 shlibpath_var=LIBPATH
11585 osf3* | osf4* | osf5*)
11586 version_type=osf
11587 need_lib_prefix=no
11588 need_version=no
11589 soname_spec='${libname}${release}${shared_ext}$major'
11590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11591 shlibpath_var=LD_LIBRARY_PATH
11592 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11593 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11596 rdos*)
11597 dynamic_linker=no
11600 solaris*)
11601 version_type=linux
11602 need_lib_prefix=no
11603 need_version=no
11604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11605 soname_spec='${libname}${release}${shared_ext}$major'
11606 shlibpath_var=LD_LIBRARY_PATH
11607 shlibpath_overrides_runpath=yes
11608 hardcode_into_libs=yes
11609 # ldd complains unless libraries are executable
11610 postinstall_cmds='chmod +x $lib'
11613 sunos4*)
11614 version_type=sunos
11615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11616 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11617 shlibpath_var=LD_LIBRARY_PATH
11618 shlibpath_overrides_runpath=yes
11619 if test "$with_gnu_ld" = yes; then
11620 need_lib_prefix=no
11622 need_version=yes
11625 sysv4 | sysv4.3*)
11626 version_type=linux
11627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11628 soname_spec='${libname}${release}${shared_ext}$major'
11629 shlibpath_var=LD_LIBRARY_PATH
11630 case $host_vendor in
11631 sni)
11632 shlibpath_overrides_runpath=no
11633 need_lib_prefix=no
11634 runpath_var=LD_RUN_PATH
11636 siemens)
11637 need_lib_prefix=no
11639 motorola)
11640 need_lib_prefix=no
11641 need_version=no
11642 shlibpath_overrides_runpath=no
11643 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11645 esac
11648 sysv4*MP*)
11649 if test -d /usr/nec ;then
11650 version_type=linux
11651 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11652 soname_spec='$libname${shared_ext}.$major'
11653 shlibpath_var=LD_LIBRARY_PATH
11657 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11658 version_type=freebsd-elf
11659 need_lib_prefix=no
11660 need_version=no
11661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11662 soname_spec='${libname}${release}${shared_ext}$major'
11663 shlibpath_var=LD_LIBRARY_PATH
11664 shlibpath_overrides_runpath=yes
11665 hardcode_into_libs=yes
11666 if test "$with_gnu_ld" = yes; then
11667 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11668 else
11669 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11670 case $host_os in
11671 sco3.2v5*)
11672 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11674 esac
11676 sys_lib_dlsearch_path_spec='/usr/lib'
11679 tpf*)
11680 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11681 version_type=linux
11682 need_lib_prefix=no
11683 need_version=no
11684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11685 shlibpath_var=LD_LIBRARY_PATH
11686 shlibpath_overrides_runpath=no
11687 hardcode_into_libs=yes
11690 uts4*)
11691 version_type=linux
11692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11693 soname_spec='${libname}${release}${shared_ext}$major'
11694 shlibpath_var=LD_LIBRARY_PATH
11698 dynamic_linker=no
11700 esac
11701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11702 $as_echo "$dynamic_linker" >&6; }
11703 test "$dynamic_linker" = no && can_build_shared=no
11705 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11706 if test "$GCC" = yes; then
11707 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11710 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11711 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11713 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11714 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11809 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11810 hardcode_action=
11811 if test -n "$hardcode_libdir_flag_spec" ||
11812 test -n "$runpath_var" ||
11813 test "X$hardcode_automatic" = "Xyes" ; then
11815 # We can hardcode non-existent directories.
11816 if test "$hardcode_direct" != no &&
11817 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11818 # have to relink, otherwise we might link with an installed library
11819 # when we should be linking with a yet-to-be-installed one
11820 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11821 test "$hardcode_minus_L" != no; then
11822 # Linking always hardcodes the temporary library directory.
11823 hardcode_action=relink
11824 else
11825 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11826 hardcode_action=immediate
11828 else
11829 # We cannot hardcode anything, or else we can only hardcode existing
11830 # directories.
11831 hardcode_action=unsupported
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11834 $as_echo "$hardcode_action" >&6; }
11836 if test "$hardcode_action" = relink ||
11837 test "$inherit_rpath" = yes; then
11838 # Fast installation is not supported
11839 enable_fast_install=no
11840 elif test "$shlibpath_overrides_runpath" = yes ||
11841 test "$enable_shared" = no; then
11842 # Fast installation is not necessary
11843 enable_fast_install=needless
11851 if test "x$enable_dlopen" != xyes; then
11852 enable_dlopen=unknown
11853 enable_dlopen_self=unknown
11854 enable_dlopen_self_static=unknown
11855 else
11856 lt_cv_dlopen=no
11857 lt_cv_dlopen_libs=
11859 case $host_os in
11860 beos*)
11861 lt_cv_dlopen="load_add_on"
11862 lt_cv_dlopen_libs=
11863 lt_cv_dlopen_self=yes
11866 mingw* | pw32* | cegcc*)
11867 lt_cv_dlopen="LoadLibrary"
11868 lt_cv_dlopen_libs=
11871 cygwin*)
11872 lt_cv_dlopen="dlopen"
11873 lt_cv_dlopen_libs=
11876 darwin*)
11877 # if libdl is installed we need to link against it
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11879 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11880 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11881 $as_echo_n "(cached) " >&6
11882 else
11883 ac_check_lib_save_LIBS=$LIBS
11884 LIBS="-ldl $LIBS"
11885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11886 /* end confdefs.h. */
11888 /* Override any GCC internal prototype to avoid an error.
11889 Use char because int might match the return type of a GCC
11890 builtin and then its argument prototype would still apply. */
11891 #ifdef __cplusplus
11892 extern "C"
11893 #endif
11894 char dlopen ();
11896 main ()
11898 return dlopen ();
11900 return 0;
11902 _ACEOF
11903 if ac_fn_c_try_link "$LINENO"; then :
11904 ac_cv_lib_dl_dlopen=yes
11905 else
11906 ac_cv_lib_dl_dlopen=no
11908 rm -f core conftest.err conftest.$ac_objext \
11909 conftest$ac_exeext conftest.$ac_ext
11910 LIBS=$ac_check_lib_save_LIBS
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11913 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11914 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11915 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11916 else
11918 lt_cv_dlopen="dyld"
11919 lt_cv_dlopen_libs=
11920 lt_cv_dlopen_self=yes
11927 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11928 if test "x$ac_cv_func_shl_load" = x""yes; then :
11929 lt_cv_dlopen="shl_load"
11930 else
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11932 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11933 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11934 $as_echo_n "(cached) " >&6
11935 else
11936 ac_check_lib_save_LIBS=$LIBS
11937 LIBS="-ldld $LIBS"
11938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11939 /* end confdefs.h. */
11941 /* Override any GCC internal prototype to avoid an error.
11942 Use char because int might match the return type of a GCC
11943 builtin and then its argument prototype would still apply. */
11944 #ifdef __cplusplus
11945 extern "C"
11946 #endif
11947 char shl_load ();
11949 main ()
11951 return shl_load ();
11953 return 0;
11955 _ACEOF
11956 if ac_fn_c_try_link "$LINENO"; then :
11957 ac_cv_lib_dld_shl_load=yes
11958 else
11959 ac_cv_lib_dld_shl_load=no
11961 rm -f core conftest.err conftest.$ac_objext \
11962 conftest$ac_exeext conftest.$ac_ext
11963 LIBS=$ac_check_lib_save_LIBS
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11966 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11967 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11968 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11969 else
11970 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11971 if test "x$ac_cv_func_dlopen" = x""yes; then :
11972 lt_cv_dlopen="dlopen"
11973 else
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11975 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11976 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11977 $as_echo_n "(cached) " >&6
11978 else
11979 ac_check_lib_save_LIBS=$LIBS
11980 LIBS="-ldl $LIBS"
11981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11982 /* end confdefs.h. */
11984 /* Override any GCC internal prototype to avoid an error.
11985 Use char because int might match the return type of a GCC
11986 builtin and then its argument prototype would still apply. */
11987 #ifdef __cplusplus
11988 extern "C"
11989 #endif
11990 char dlopen ();
11992 main ()
11994 return dlopen ();
11996 return 0;
11998 _ACEOF
11999 if ac_fn_c_try_link "$LINENO"; then :
12000 ac_cv_lib_dl_dlopen=yes
12001 else
12002 ac_cv_lib_dl_dlopen=no
12004 rm -f core conftest.err conftest.$ac_objext \
12005 conftest$ac_exeext conftest.$ac_ext
12006 LIBS=$ac_check_lib_save_LIBS
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12009 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12010 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12011 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12012 else
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12014 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12015 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
12016 $as_echo_n "(cached) " >&6
12017 else
12018 ac_check_lib_save_LIBS=$LIBS
12019 LIBS="-lsvld $LIBS"
12020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12021 /* end confdefs.h. */
12023 /* Override any GCC internal prototype to avoid an error.
12024 Use char because int might match the return type of a GCC
12025 builtin and then its argument prototype would still apply. */
12026 #ifdef __cplusplus
12027 extern "C"
12028 #endif
12029 char dlopen ();
12031 main ()
12033 return dlopen ();
12035 return 0;
12037 _ACEOF
12038 if ac_fn_c_try_link "$LINENO"; then :
12039 ac_cv_lib_svld_dlopen=yes
12040 else
12041 ac_cv_lib_svld_dlopen=no
12043 rm -f core conftest.err conftest.$ac_objext \
12044 conftest$ac_exeext conftest.$ac_ext
12045 LIBS=$ac_check_lib_save_LIBS
12047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12048 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12049 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
12050 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12051 else
12052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12053 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12054 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
12055 $as_echo_n "(cached) " >&6
12056 else
12057 ac_check_lib_save_LIBS=$LIBS
12058 LIBS="-ldld $LIBS"
12059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12060 /* end confdefs.h. */
12062 /* Override any GCC internal prototype to avoid an error.
12063 Use char because int might match the return type of a GCC
12064 builtin and then its argument prototype would still apply. */
12065 #ifdef __cplusplus
12066 extern "C"
12067 #endif
12068 char dld_link ();
12070 main ()
12072 return dld_link ();
12074 return 0;
12076 _ACEOF
12077 if ac_fn_c_try_link "$LINENO"; then :
12078 ac_cv_lib_dld_dld_link=yes
12079 else
12080 ac_cv_lib_dld_dld_link=no
12082 rm -f core conftest.err conftest.$ac_objext \
12083 conftest$ac_exeext conftest.$ac_ext
12084 LIBS=$ac_check_lib_save_LIBS
12086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12087 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12088 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
12089 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12108 esac
12110 if test "x$lt_cv_dlopen" != xno; then
12111 enable_dlopen=yes
12112 else
12113 enable_dlopen=no
12116 case $lt_cv_dlopen in
12117 dlopen)
12118 save_CPPFLAGS="$CPPFLAGS"
12119 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12121 save_LDFLAGS="$LDFLAGS"
12122 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12124 save_LIBS="$LIBS"
12125 LIBS="$lt_cv_dlopen_libs $LIBS"
12127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12128 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12129 if test "${lt_cv_dlopen_self+set}" = set; then :
12130 $as_echo_n "(cached) " >&6
12131 else
12132 if test "$cross_compiling" = yes; then :
12133 lt_cv_dlopen_self=cross
12134 else
12135 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12136 lt_status=$lt_dlunknown
12137 cat > conftest.$ac_ext <<_LT_EOF
12138 #line 12138 "configure"
12139 #include "confdefs.h"
12141 #if HAVE_DLFCN_H
12142 #include <dlfcn.h>
12143 #endif
12145 #include <stdio.h>
12147 #ifdef RTLD_GLOBAL
12148 # define LT_DLGLOBAL RTLD_GLOBAL
12149 #else
12150 # ifdef DL_GLOBAL
12151 # define LT_DLGLOBAL DL_GLOBAL
12152 # else
12153 # define LT_DLGLOBAL 0
12154 # endif
12155 #endif
12157 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12158 find out it does not work in some platform. */
12159 #ifndef LT_DLLAZY_OR_NOW
12160 # ifdef RTLD_LAZY
12161 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12162 # else
12163 # ifdef DL_LAZY
12164 # define LT_DLLAZY_OR_NOW DL_LAZY
12165 # else
12166 # ifdef RTLD_NOW
12167 # define LT_DLLAZY_OR_NOW RTLD_NOW
12168 # else
12169 # ifdef DL_NOW
12170 # define LT_DLLAZY_OR_NOW DL_NOW
12171 # else
12172 # define LT_DLLAZY_OR_NOW 0
12173 # endif
12174 # endif
12175 # endif
12176 # endif
12177 #endif
12179 /* When -fvisbility=hidden is used, assume the code has been annotated
12180 correspondingly for the symbols needed. */
12181 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12182 void fnord () __attribute__((visibility("default")));
12183 #endif
12185 void fnord () { int i=42; }
12186 int main ()
12188 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12189 int status = $lt_dlunknown;
12191 if (self)
12193 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12194 else
12196 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12197 else puts (dlerror ());
12199 /* dlclose (self); */
12201 else
12202 puts (dlerror ());
12204 return status;
12206 _LT_EOF
12207 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12208 (eval $ac_link) 2>&5
12209 ac_status=$?
12210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12211 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12212 (./conftest; exit; ) >&5 2>/dev/null
12213 lt_status=$?
12214 case x$lt_status in
12215 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12216 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12217 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12218 esac
12219 else :
12220 # compilation failed
12221 lt_cv_dlopen_self=no
12224 rm -fr conftest*
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12229 $as_echo "$lt_cv_dlopen_self" >&6; }
12231 if test "x$lt_cv_dlopen_self" = xyes; then
12232 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12234 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12235 if test "${lt_cv_dlopen_self_static+set}" = set; then :
12236 $as_echo_n "(cached) " >&6
12237 else
12238 if test "$cross_compiling" = yes; then :
12239 lt_cv_dlopen_self_static=cross
12240 else
12241 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12242 lt_status=$lt_dlunknown
12243 cat > conftest.$ac_ext <<_LT_EOF
12244 #line 12244 "configure"
12245 #include "confdefs.h"
12247 #if HAVE_DLFCN_H
12248 #include <dlfcn.h>
12249 #endif
12251 #include <stdio.h>
12253 #ifdef RTLD_GLOBAL
12254 # define LT_DLGLOBAL RTLD_GLOBAL
12255 #else
12256 # ifdef DL_GLOBAL
12257 # define LT_DLGLOBAL DL_GLOBAL
12258 # else
12259 # define LT_DLGLOBAL 0
12260 # endif
12261 #endif
12263 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12264 find out it does not work in some platform. */
12265 #ifndef LT_DLLAZY_OR_NOW
12266 # ifdef RTLD_LAZY
12267 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12268 # else
12269 # ifdef DL_LAZY
12270 # define LT_DLLAZY_OR_NOW DL_LAZY
12271 # else
12272 # ifdef RTLD_NOW
12273 # define LT_DLLAZY_OR_NOW RTLD_NOW
12274 # else
12275 # ifdef DL_NOW
12276 # define LT_DLLAZY_OR_NOW DL_NOW
12277 # else
12278 # define LT_DLLAZY_OR_NOW 0
12279 # endif
12280 # endif
12281 # endif
12282 # endif
12283 #endif
12285 /* When -fvisbility=hidden is used, assume the code has been annotated
12286 correspondingly for the symbols needed. */
12287 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12288 void fnord () __attribute__((visibility("default")));
12289 #endif
12291 void fnord () { int i=42; }
12292 int main ()
12294 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12295 int status = $lt_dlunknown;
12297 if (self)
12299 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12300 else
12302 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12303 else puts (dlerror ());
12305 /* dlclose (self); */
12307 else
12308 puts (dlerror ());
12310 return status;
12312 _LT_EOF
12313 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12314 (eval $ac_link) 2>&5
12315 ac_status=$?
12316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12317 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12318 (./conftest; exit; ) >&5 2>/dev/null
12319 lt_status=$?
12320 case x$lt_status in
12321 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12322 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12323 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12324 esac
12325 else :
12326 # compilation failed
12327 lt_cv_dlopen_self_static=no
12330 rm -fr conftest*
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12335 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12338 CPPFLAGS="$save_CPPFLAGS"
12339 LDFLAGS="$save_LDFLAGS"
12340 LIBS="$save_LIBS"
12342 esac
12344 case $lt_cv_dlopen_self in
12345 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12346 *) enable_dlopen_self=unknown ;;
12347 esac
12349 case $lt_cv_dlopen_self_static in
12350 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12351 *) enable_dlopen_self_static=unknown ;;
12352 esac
12371 striplib=
12372 old_striplib=
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12374 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12375 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12376 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12377 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12379 $as_echo "yes" >&6; }
12380 else
12381 # FIXME - insert some real tests, host_os isn't really good enough
12382 case $host_os in
12383 darwin*)
12384 if test -n "$STRIP" ; then
12385 striplib="$STRIP -x"
12386 old_striplib="$STRIP -S"
12387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12388 $as_echo "yes" >&6; }
12389 else
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12391 $as_echo "no" >&6; }
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12396 $as_echo "no" >&6; }
12398 esac
12412 # Report which library types will actually be built
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12414 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12416 $as_echo "$can_build_shared" >&6; }
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12419 $as_echo_n "checking whether to build shared libraries... " >&6; }
12420 test "$can_build_shared" = "no" && enable_shared=no
12422 # On AIX, shared libraries and static libraries use the same namespace, and
12423 # are all built from PIC.
12424 case $host_os in
12425 aix3*)
12426 test "$enable_shared" = yes && enable_static=no
12427 if test -n "$RANLIB"; then
12428 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12429 postinstall_cmds='$RANLIB $lib'
12433 aix[4-9]*)
12434 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12435 test "$enable_shared" = yes && enable_static=no
12438 esac
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12440 $as_echo "$enable_shared" >&6; }
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12443 $as_echo_n "checking whether to build static libraries... " >&6; }
12444 # Make sure either enable_shared or enable_static is yes.
12445 test "$enable_shared" = yes || enable_static=yes
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12447 $as_echo "$enable_static" >&6; }
12453 ac_ext=c
12454 ac_cpp='$CPP $CPPFLAGS'
12455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12459 CC="$lt_save_CC"
12461 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12462 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12463 (test "X$CXX" != "Xg++"))) ; then
12464 ac_ext=cpp
12465 ac_cpp='$CXXCPP $CPPFLAGS'
12466 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12467 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12468 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12470 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12471 if test -z "$CXXCPP"; then
12472 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
12473 $as_echo_n "(cached) " >&6
12474 else
12475 # Double quotes because CXXCPP needs to be expanded
12476 for CXXCPP in "$CXX -E" "/lib/cpp"
12478 ac_preproc_ok=false
12479 for ac_cxx_preproc_warn_flag in '' yes
12481 # Use a header file that comes with gcc, so configuring glibc
12482 # with a fresh cross-compiler works.
12483 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12484 # <limits.h> exists even on freestanding compilers.
12485 # On the NeXT, cc -E runs the code through the compiler's parser,
12486 # not just through cpp. "Syntax error" is here to catch this case.
12487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12488 /* end confdefs.h. */
12489 #ifdef __STDC__
12490 # include <limits.h>
12491 #else
12492 # include <assert.h>
12493 #endif
12494 Syntax error
12495 _ACEOF
12496 if ac_fn_cxx_try_cpp "$LINENO"; then :
12498 else
12499 # Broken: fails on valid input.
12500 continue
12502 rm -f conftest.err conftest.$ac_ext
12504 # OK, works on sane cases. Now check whether nonexistent headers
12505 # can be detected and how.
12506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12507 /* end confdefs.h. */
12508 #include <ac_nonexistent.h>
12509 _ACEOF
12510 if ac_fn_cxx_try_cpp "$LINENO"; then :
12511 # Broken: success on invalid input.
12512 continue
12513 else
12514 # Passes both tests.
12515 ac_preproc_ok=:
12516 break
12518 rm -f conftest.err conftest.$ac_ext
12520 done
12521 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12522 rm -f conftest.err conftest.$ac_ext
12523 if $ac_preproc_ok; then :
12524 break
12527 done
12528 ac_cv_prog_CXXCPP=$CXXCPP
12531 CXXCPP=$ac_cv_prog_CXXCPP
12532 else
12533 ac_cv_prog_CXXCPP=$CXXCPP
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12536 $as_echo "$CXXCPP" >&6; }
12537 ac_preproc_ok=false
12538 for ac_cxx_preproc_warn_flag in '' yes
12540 # Use a header file that comes with gcc, so configuring glibc
12541 # with a fresh cross-compiler works.
12542 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12543 # <limits.h> exists even on freestanding compilers.
12544 # On the NeXT, cc -E runs the code through the compiler's parser,
12545 # not just through cpp. "Syntax error" is here to catch this case.
12546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12547 /* end confdefs.h. */
12548 #ifdef __STDC__
12549 # include <limits.h>
12550 #else
12551 # include <assert.h>
12552 #endif
12553 Syntax error
12554 _ACEOF
12555 if ac_fn_cxx_try_cpp "$LINENO"; then :
12557 else
12558 # Broken: fails on valid input.
12559 continue
12561 rm -f conftest.err conftest.$ac_ext
12563 # OK, works on sane cases. Now check whether nonexistent headers
12564 # can be detected and how.
12565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12566 /* end confdefs.h. */
12567 #include <ac_nonexistent.h>
12568 _ACEOF
12569 if ac_fn_cxx_try_cpp "$LINENO"; then :
12570 # Broken: success on invalid input.
12571 continue
12572 else
12573 # Passes both tests.
12574 ac_preproc_ok=:
12575 break
12577 rm -f conftest.err conftest.$ac_ext
12579 done
12580 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12581 rm -f conftest.err conftest.$ac_ext
12582 if $ac_preproc_ok; then :
12584 else
12585 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12586 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12587 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
12588 See \`config.log' for more details." "$LINENO" 5; }
12591 ac_ext=c
12592 ac_cpp='$CPP $CPPFLAGS'
12593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12597 else
12598 _lt_caught_CXX_error=yes
12601 ac_ext=cpp
12602 ac_cpp='$CXXCPP $CPPFLAGS'
12603 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12604 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12605 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12607 archive_cmds_need_lc_CXX=no
12608 allow_undefined_flag_CXX=
12609 always_export_symbols_CXX=no
12610 archive_expsym_cmds_CXX=
12611 compiler_needs_object_CXX=no
12612 export_dynamic_flag_spec_CXX=
12613 hardcode_direct_CXX=no
12614 hardcode_direct_absolute_CXX=no
12615 hardcode_libdir_flag_spec_CXX=
12616 hardcode_libdir_flag_spec_ld_CXX=
12617 hardcode_libdir_separator_CXX=
12618 hardcode_minus_L_CXX=no
12619 hardcode_shlibpath_var_CXX=unsupported
12620 hardcode_automatic_CXX=no
12621 inherit_rpath_CXX=no
12622 module_cmds_CXX=
12623 module_expsym_cmds_CXX=
12624 link_all_deplibs_CXX=unknown
12625 old_archive_cmds_CXX=$old_archive_cmds
12626 reload_flag_CXX=$reload_flag
12627 reload_cmds_CXX=$reload_cmds
12628 no_undefined_flag_CXX=
12629 whole_archive_flag_spec_CXX=
12630 enable_shared_with_static_runtimes_CXX=no
12632 # Source file extension for C++ test sources.
12633 ac_ext=cpp
12635 # Object file extension for compiled C++ test sources.
12636 objext=o
12637 objext_CXX=$objext
12639 # No sense in running all these tests if we already determined that
12640 # the CXX compiler isn't working. Some variables (like enable_shared)
12641 # are currently assumed to apply to all compilers on this platform,
12642 # and will be corrupted by setting them based on a non-working compiler.
12643 if test "$_lt_caught_CXX_error" != yes; then
12644 # Code to be used in simple compile tests
12645 lt_simple_compile_test_code="int some_variable = 0;"
12647 # Code to be used in simple link tests
12648 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12650 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12657 # If no C compiler was specified, use CC.
12658 LTCC=${LTCC-"$CC"}
12660 # If no C compiler flags were specified, use CFLAGS.
12661 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12663 # Allow CC to be a program name with arguments.
12664 compiler=$CC
12667 # save warnings/boilerplate of simple test code
12668 ac_outfile=conftest.$ac_objext
12669 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12670 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12671 _lt_compiler_boilerplate=`cat conftest.err`
12672 $RM conftest*
12674 ac_outfile=conftest.$ac_objext
12675 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12676 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12677 _lt_linker_boilerplate=`cat conftest.err`
12678 $RM -r conftest*
12681 # Allow CC to be a program name with arguments.
12682 lt_save_CC=$CC
12683 lt_save_LD=$LD
12684 lt_save_GCC=$GCC
12685 GCC=$GXX
12686 lt_save_with_gnu_ld=$with_gnu_ld
12687 lt_save_path_LD=$lt_cv_path_LD
12688 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12689 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12690 else
12691 $as_unset lt_cv_prog_gnu_ld
12693 if test -n "${lt_cv_path_LDCXX+set}"; then
12694 lt_cv_path_LD=$lt_cv_path_LDCXX
12695 else
12696 $as_unset lt_cv_path_LD
12698 test -z "${LDCXX+set}" || LD=$LDCXX
12699 CC=${CXX-"c++"}
12700 compiler=$CC
12701 compiler_CXX=$CC
12702 for cc_temp in $compiler""; do
12703 case $cc_temp in
12704 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12705 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12706 \-*) ;;
12707 *) break;;
12708 esac
12709 done
12710 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12713 if test -n "$compiler"; then
12714 # We don't want -fno-exception when compiling C++ code, so set the
12715 # no_builtin_flag separately
12716 if test "$GXX" = yes; then
12717 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12718 else
12719 lt_prog_compiler_no_builtin_flag_CXX=
12722 if test "$GXX" = yes; then
12723 # Set up default GNU C++ configuration
12727 # Check whether --with-gnu-ld was given.
12728 if test "${with_gnu_ld+set}" = set; then :
12729 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12730 else
12731 with_gnu_ld=no
12734 ac_prog=ld
12735 if test "$GCC" = yes; then
12736 # Check if gcc -print-prog-name=ld gives a path.
12737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12738 $as_echo_n "checking for ld used by $CC... " >&6; }
12739 case $host in
12740 *-*-mingw*)
12741 # gcc leaves a trailing carriage return which upsets mingw
12742 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12744 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12745 esac
12746 case $ac_prog in
12747 # Accept absolute paths.
12748 [\\/]* | ?:[\\/]*)
12749 re_direlt='/[^/][^/]*/\.\./'
12750 # Canonicalize the pathname of ld
12751 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12752 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12753 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12754 done
12755 test -z "$LD" && LD="$ac_prog"
12758 # If it fails, then pretend we aren't using GCC.
12759 ac_prog=ld
12762 # If it is relative, then search for the first ld in PATH.
12763 with_gnu_ld=unknown
12765 esac
12766 elif test "$with_gnu_ld" = yes; then
12767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12768 $as_echo_n "checking for GNU ld... " >&6; }
12769 else
12770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12771 $as_echo_n "checking for non-GNU ld... " >&6; }
12773 if test "${lt_cv_path_LD+set}" = set; then :
12774 $as_echo_n "(cached) " >&6
12775 else
12776 if test -z "$LD"; then
12777 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12778 for ac_dir in $PATH; do
12779 IFS="$lt_save_ifs"
12780 test -z "$ac_dir" && ac_dir=.
12781 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12782 lt_cv_path_LD="$ac_dir/$ac_prog"
12783 # Check to see if the program is GNU ld. I'd rather use --version,
12784 # but apparently some variants of GNU ld only accept -v.
12785 # Break only if it was the GNU/non-GNU ld that we prefer.
12786 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12787 *GNU* | *'with BFD'*)
12788 test "$with_gnu_ld" != no && break
12791 test "$with_gnu_ld" != yes && break
12793 esac
12795 done
12796 IFS="$lt_save_ifs"
12797 else
12798 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12802 LD="$lt_cv_path_LD"
12803 if test -n "$LD"; then
12804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12805 $as_echo "$LD" >&6; }
12806 else
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12808 $as_echo "no" >&6; }
12810 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12812 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12813 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12814 $as_echo_n "(cached) " >&6
12815 else
12816 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12817 case `$LD -v 2>&1 </dev/null` in
12818 *GNU* | *'with BFD'*)
12819 lt_cv_prog_gnu_ld=yes
12822 lt_cv_prog_gnu_ld=no
12824 esac
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12827 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12828 with_gnu_ld=$lt_cv_prog_gnu_ld
12836 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12837 # archiving commands below assume that GNU ld is being used.
12838 if test "$with_gnu_ld" = yes; then
12839 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12840 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'
12842 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12843 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12845 # If archive_cmds runs LD, not CC, wlarc should be empty
12846 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12847 # investigate it a little bit more. (MM)
12848 wlarc='${wl}'
12850 # ancient GNU ld didn't support --whole-archive et. al.
12851 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12852 $GREP 'no-whole-archive' > /dev/null; then
12853 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12854 else
12855 whole_archive_flag_spec_CXX=
12857 else
12858 with_gnu_ld=no
12859 wlarc=
12861 # A generic and very simple default shared library creation
12862 # command for GNU C++ for the case where it uses the native
12863 # linker, instead of GNU ld. If possible, this setting should
12864 # overridden to take advantage of the native linker features on
12865 # the platform it is being used on.
12866 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12869 # Commands to make compiler produce verbose output that lists
12870 # what "hidden" libraries, object files and flags are used when
12871 # linking a shared library.
12872 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12874 else
12875 GXX=no
12876 with_gnu_ld=no
12877 wlarc=
12880 # PORTME: fill in a description of your system's C++ link characteristics
12881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12882 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12883 ld_shlibs_CXX=yes
12884 case $host_os in
12885 aix3*)
12886 # FIXME: insert proper C++ library support
12887 ld_shlibs_CXX=no
12889 aix[4-9]*)
12890 if test "$host_cpu" = ia64; then
12891 # On IA64, the linker does run time linking by default, so we don't
12892 # have to do anything special.
12893 aix_use_runtimelinking=no
12894 exp_sym_flag='-Bexport'
12895 no_entry_flag=""
12896 else
12897 aix_use_runtimelinking=no
12899 # Test if we are trying to use run time linking or normal
12900 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12901 # need to do runtime linking.
12902 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12903 for ld_flag in $LDFLAGS; do
12904 case $ld_flag in
12905 *-brtl*)
12906 aix_use_runtimelinking=yes
12907 break
12909 esac
12910 done
12912 esac
12914 exp_sym_flag='-bexport'
12915 no_entry_flag='-bnoentry'
12918 # When large executables or shared objects are built, AIX ld can
12919 # have problems creating the table of contents. If linking a library
12920 # or program results in "error TOC overflow" add -mminimal-toc to
12921 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12922 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12924 archive_cmds_CXX=''
12925 hardcode_direct_CXX=yes
12926 hardcode_direct_absolute_CXX=yes
12927 hardcode_libdir_separator_CXX=':'
12928 link_all_deplibs_CXX=yes
12929 file_list_spec_CXX='${wl}-f,'
12931 if test "$GXX" = yes; then
12932 case $host_os in aix4.[012]|aix4.[012].*)
12933 # We only want to do this on AIX 4.2 and lower, the check
12934 # below for broken collect2 doesn't work under 4.3+
12935 collect2name=`${CC} -print-prog-name=collect2`
12936 if test -f "$collect2name" &&
12937 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12938 then
12939 # We have reworked collect2
12941 else
12942 # We have old collect2
12943 hardcode_direct_CXX=unsupported
12944 # It fails to find uninstalled libraries when the uninstalled
12945 # path is not listed in the libpath. Setting hardcode_minus_L
12946 # to unsupported forces relinking
12947 hardcode_minus_L_CXX=yes
12948 hardcode_libdir_flag_spec_CXX='-L$libdir'
12949 hardcode_libdir_separator_CXX=
12951 esac
12952 shared_flag='-shared'
12953 if test "$aix_use_runtimelinking" = yes; then
12954 shared_flag="$shared_flag "'${wl}-G'
12956 else
12957 # not using gcc
12958 if test "$host_cpu" = ia64; then
12959 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12960 # chokes on -Wl,-G. The following line is correct:
12961 shared_flag='-G'
12962 else
12963 if test "$aix_use_runtimelinking" = yes; then
12964 shared_flag='${wl}-G'
12965 else
12966 shared_flag='${wl}-bM:SRE'
12971 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12972 # It seems that -bexpall does not export symbols beginning with
12973 # underscore (_), so it is better to generate a list of symbols to
12974 # export.
12975 always_export_symbols_CXX=yes
12976 if test "$aix_use_runtimelinking" = yes; then
12977 # Warning - without using the other runtime loading flags (-brtl),
12978 # -berok will link without error, but may produce a broken library.
12979 allow_undefined_flag_CXX='-berok'
12980 # Determine the default libpath from the value encoded in an empty
12981 # executable.
12982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12983 /* end confdefs.h. */
12986 main ()
12990 return 0;
12992 _ACEOF
12993 if ac_fn_cxx_try_link "$LINENO"; then :
12995 lt_aix_libpath_sed='
12996 /Import File Strings/,/^$/ {
12997 /^0/ {
12998 s/^0 *\(.*\)$/\1/
13002 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13003 # Check for a 64-bit object if we didn't find anything.
13004 if test -z "$aix_libpath"; then
13005 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13008 rm -f core conftest.err conftest.$ac_objext \
13009 conftest$ac_exeext conftest.$ac_ext
13010 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13012 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13014 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"
13015 else
13016 if test "$host_cpu" = ia64; then
13017 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13018 allow_undefined_flag_CXX="-z nodefs"
13019 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"
13020 else
13021 # Determine the default libpath from the value encoded in an
13022 # empty executable.
13023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13024 /* end confdefs.h. */
13027 main ()
13031 return 0;
13033 _ACEOF
13034 if ac_fn_cxx_try_link "$LINENO"; then :
13036 lt_aix_libpath_sed='
13037 /Import File Strings/,/^$/ {
13038 /^0/ {
13039 s/^0 *\(.*\)$/\1/
13043 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13044 # Check for a 64-bit object if we didn't find anything.
13045 if test -z "$aix_libpath"; then
13046 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13049 rm -f core conftest.err conftest.$ac_objext \
13050 conftest$ac_exeext conftest.$ac_ext
13051 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13053 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13054 # Warning - without using the other run time loading flags,
13055 # -berok will link without error, but may produce a broken library.
13056 no_undefined_flag_CXX=' ${wl}-bernotok'
13057 allow_undefined_flag_CXX=' ${wl}-berok'
13058 if test "$with_gnu_ld" = yes; then
13059 # We only use this code for GNU lds that support --whole-archive.
13060 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13061 else
13062 # Exported symbols can be pulled into shared objects from archives
13063 whole_archive_flag_spec_CXX='$convenience'
13065 archive_cmds_need_lc_CXX=yes
13066 # This is similar to how AIX traditionally builds its shared
13067 # libraries.
13068 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'
13073 beos*)
13074 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13075 allow_undefined_flag_CXX=unsupported
13076 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13077 # support --undefined. This deserves some investigation. FIXME
13078 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13079 else
13080 ld_shlibs_CXX=no
13084 chorus*)
13085 case $cc_basename in
13087 # FIXME: insert proper C++ library support
13088 ld_shlibs_CXX=no
13090 esac
13093 cygwin* | mingw* | pw32* | cegcc*)
13094 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13095 # as there is no search path for DLLs.
13096 hardcode_libdir_flag_spec_CXX='-L$libdir'
13097 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13098 allow_undefined_flag_CXX=unsupported
13099 always_export_symbols_CXX=no
13100 enable_shared_with_static_runtimes_CXX=yes
13102 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13103 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'
13104 # If the export-symbols file already is a .def file (1st line
13105 # is EXPORTS), use it as is; otherwise, prepend...
13106 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13107 cp $export_symbols $output_objdir/$soname.def;
13108 else
13109 echo EXPORTS > $output_objdir/$soname.def;
13110 cat $export_symbols >> $output_objdir/$soname.def;
13112 $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'
13113 else
13114 ld_shlibs_CXX=no
13117 darwin* | rhapsody*)
13120 archive_cmds_need_lc_CXX=no
13121 hardcode_direct_CXX=no
13122 hardcode_automatic_CXX=yes
13123 hardcode_shlibpath_var_CXX=unsupported
13124 if test "$lt_cv_ld_force_load" = "yes"; then
13125 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\"`'
13126 else
13127 whole_archive_flag_spec_CXX=''
13129 link_all_deplibs_CXX=yes
13130 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13131 case $cc_basename in
13132 ifort*) _lt_dar_can_shared=yes ;;
13133 *) _lt_dar_can_shared=$GCC ;;
13134 esac
13135 if test "$_lt_dar_can_shared" = "yes"; then
13136 output_verbose_link_cmd=func_echo_all
13137 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}"
13138 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13139 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}"
13140 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}"
13141 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13142 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}"
13143 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}"
13146 else
13147 ld_shlibs_CXX=no
13152 dgux*)
13153 case $cc_basename in
13154 ec++*)
13155 # FIXME: insert proper C++ library support
13156 ld_shlibs_CXX=no
13158 ghcx*)
13159 # Green Hills C++ Compiler
13160 # FIXME: insert proper C++ library support
13161 ld_shlibs_CXX=no
13164 # FIXME: insert proper C++ library support
13165 ld_shlibs_CXX=no
13167 esac
13170 freebsd2.*)
13171 # C++ shared libraries reported to be fairly broken before
13172 # switch to ELF
13173 ld_shlibs_CXX=no
13176 freebsd-elf*)
13177 archive_cmds_need_lc_CXX=no
13180 freebsd* | dragonfly*)
13181 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13182 # conventions
13183 ld_shlibs_CXX=yes
13186 gnu*)
13189 haiku*)
13190 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13191 link_all_deplibs_CXX=yes
13194 hpux9*)
13195 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13196 hardcode_libdir_separator_CXX=:
13197 export_dynamic_flag_spec_CXX='${wl}-E'
13198 hardcode_direct_CXX=yes
13199 hardcode_minus_L_CXX=yes # Not in the search PATH,
13200 # but as the default
13201 # location of the library.
13203 case $cc_basename in
13204 CC*)
13205 # FIXME: insert proper C++ library support
13206 ld_shlibs_CXX=no
13208 aCC*)
13209 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'
13210 # Commands to make compiler produce verbose output that lists
13211 # what "hidden" libraries, object files and flags are used when
13212 # linking a shared library.
13214 # There doesn't appear to be a way to prevent this compiler from
13215 # explicitly linking system object files so we need to strip them
13216 # from the output so that they don't get included in the library
13217 # dependencies.
13218 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"'
13221 if test "$GXX" = yes; then
13222 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'
13223 else
13224 # FIXME: insert proper C++ library support
13225 ld_shlibs_CXX=no
13228 esac
13231 hpux10*|hpux11*)
13232 if test $with_gnu_ld = no; then
13233 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13234 hardcode_libdir_separator_CXX=:
13236 case $host_cpu in
13237 hppa*64*|ia64*)
13240 export_dynamic_flag_spec_CXX='${wl}-E'
13242 esac
13244 case $host_cpu in
13245 hppa*64*|ia64*)
13246 hardcode_direct_CXX=no
13247 hardcode_shlibpath_var_CXX=no
13250 hardcode_direct_CXX=yes
13251 hardcode_direct_absolute_CXX=yes
13252 hardcode_minus_L_CXX=yes # Not in the search PATH,
13253 # but as the default
13254 # location of the library.
13256 esac
13258 case $cc_basename in
13259 CC*)
13260 # FIXME: insert proper C++ library support
13261 ld_shlibs_CXX=no
13263 aCC*)
13264 case $host_cpu in
13265 hppa*64*)
13266 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13268 ia64*)
13269 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13272 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13274 esac
13275 # Commands to make compiler produce verbose output that lists
13276 # what "hidden" libraries, object files and flags are used when
13277 # linking a shared library.
13279 # There doesn't appear to be a way to prevent this compiler from
13280 # explicitly linking system object files so we need to strip them
13281 # from the output so that they don't get included in the library
13282 # dependencies.
13283 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"'
13286 if test "$GXX" = yes; then
13287 if test $with_gnu_ld = no; then
13288 case $host_cpu in
13289 hppa*64*)
13290 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13292 ia64*)
13293 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13296 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'
13298 esac
13300 else
13301 # FIXME: insert proper C++ library support
13302 ld_shlibs_CXX=no
13305 esac
13308 interix[3-9]*)
13309 hardcode_direct_CXX=no
13310 hardcode_shlibpath_var_CXX=no
13311 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13312 export_dynamic_flag_spec_CXX='${wl}-E'
13313 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13314 # Instead, shared libraries are loaded at an image base (0x10000000 by
13315 # default) and relocated if they conflict, which is a slow very memory
13316 # consuming and fragmenting process. To avoid this, we pick a random,
13317 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13318 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13319 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'
13320 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'
13322 irix5* | irix6*)
13323 case $cc_basename in
13324 CC*)
13325 # SGI C++
13326 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'
13328 # Archives containing C++ object files must be created using
13329 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13330 # necessary to make sure instantiated templates are included
13331 # in the archive.
13332 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13335 if test "$GXX" = yes; then
13336 if test "$with_gnu_ld" = no; then
13337 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'
13338 else
13339 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'
13342 link_all_deplibs_CXX=yes
13344 esac
13345 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13346 hardcode_libdir_separator_CXX=:
13347 inherit_rpath_CXX=yes
13350 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13351 case $cc_basename in
13352 KCC*)
13353 # Kuck and Associates, Inc. (KAI) C++ Compiler
13355 # KCC will only create a shared library if the output file
13356 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13357 # to its proper name (with version) after linking.
13358 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'
13359 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'
13360 # Commands to make compiler produce verbose output that lists
13361 # what "hidden" libraries, object files and flags are used when
13362 # linking a shared library.
13364 # There doesn't appear to be a way to prevent this compiler from
13365 # explicitly linking system object files so we need to strip them
13366 # from the output so that they don't get included in the library
13367 # dependencies.
13368 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"'
13370 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13371 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13373 # Archives containing C++ object files must be created using
13374 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13375 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13377 icpc* | ecpc* )
13378 # Intel C++
13379 with_gnu_ld=yes
13380 # version 8.0 and above of icpc choke on multiply defined symbols
13381 # if we add $predep_objects and $postdep_objects, however 7.1 and
13382 # earlier do not add the objects themselves.
13383 case `$CC -V 2>&1` in
13384 *"Version 7."*)
13385 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13386 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'
13388 *) # Version 8.0 or newer
13389 tmp_idyn=
13390 case $host_cpu in
13391 ia64*) tmp_idyn=' -i_dynamic';;
13392 esac
13393 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13394 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'
13396 esac
13397 archive_cmds_need_lc_CXX=no
13398 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13399 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13400 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13402 pgCC* | pgcpp*)
13403 # Portland Group C++ compiler
13404 case `$CC -V` in
13405 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13406 prelink_cmds_CXX='tpldir=Template.dir~
13407 rm -rf $tpldir~
13408 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13409 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13410 old_archive_cmds_CXX='tpldir=Template.dir~
13411 rm -rf $tpldir~
13412 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13413 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13414 $RANLIB $oldlib'
13415 archive_cmds_CXX='tpldir=Template.dir~
13416 rm -rf $tpldir~
13417 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13418 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13419 archive_expsym_cmds_CXX='tpldir=Template.dir~
13420 rm -rf $tpldir~
13421 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13422 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13424 *) # Version 6 and above use weak symbols
13425 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13426 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'
13428 esac
13430 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13431 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13432 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'
13434 cxx*)
13435 # Compaq C++
13436 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13437 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'
13439 runpath_var=LD_RUN_PATH
13440 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13441 hardcode_libdir_separator_CXX=:
13443 # Commands to make compiler produce verbose output that lists
13444 # what "hidden" libraries, object files and flags are used when
13445 # linking a shared library.
13447 # There doesn't appear to be a way to prevent this compiler from
13448 # explicitly linking system object files so we need to strip them
13449 # from the output so that they don't get included in the library
13450 # dependencies.
13451 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'
13453 xl* | mpixl* | bgxl*)
13454 # IBM XL 8.0 on PPC, with GNU ld
13455 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13456 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13457 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13458 if test "x$supports_anon_versioning" = xyes; then
13459 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13460 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13461 echo "local: *; };" >> $output_objdir/$libname.ver~
13462 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13466 case `$CC -V 2>&1 | sed 5q` in
13467 *Sun\ C*)
13468 # Sun C++ 5.9
13469 no_undefined_flag_CXX=' -zdefs'
13470 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13471 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'
13472 hardcode_libdir_flag_spec_CXX='-R$libdir'
13473 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'
13474 compiler_needs_object_CXX=yes
13476 # Not sure whether something based on
13477 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13478 # would be better.
13479 output_verbose_link_cmd='func_echo_all'
13481 # Archives containing C++ object files must be created using
13482 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13483 # necessary to make sure instantiated templates are included
13484 # in the archive.
13485 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13487 esac
13489 esac
13492 lynxos*)
13493 # FIXME: insert proper C++ library support
13494 ld_shlibs_CXX=no
13497 m88k*)
13498 # FIXME: insert proper C++ library support
13499 ld_shlibs_CXX=no
13502 mvs*)
13503 case $cc_basename in
13504 cxx*)
13505 # FIXME: insert proper C++ library support
13506 ld_shlibs_CXX=no
13509 # FIXME: insert proper C++ library support
13510 ld_shlibs_CXX=no
13512 esac
13515 netbsd*)
13516 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13517 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13518 wlarc=
13519 hardcode_libdir_flag_spec_CXX='-R$libdir'
13520 hardcode_direct_CXX=yes
13521 hardcode_shlibpath_var_CXX=no
13523 # Workaround some broken pre-1.5 toolchains
13524 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13527 *nto* | *qnx*)
13528 ld_shlibs_CXX=yes
13531 openbsd2*)
13532 # C++ shared libraries are fairly broken
13533 ld_shlibs_CXX=no
13536 openbsd*)
13537 if test -f /usr/libexec/ld.so; then
13538 hardcode_direct_CXX=yes
13539 hardcode_shlibpath_var_CXX=no
13540 hardcode_direct_absolute_CXX=yes
13541 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13542 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13543 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13544 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13545 export_dynamic_flag_spec_CXX='${wl}-E'
13546 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13548 output_verbose_link_cmd=func_echo_all
13549 else
13550 ld_shlibs_CXX=no
13554 osf3* | osf4* | osf5*)
13555 case $cc_basename in
13556 KCC*)
13557 # Kuck and Associates, Inc. (KAI) C++ Compiler
13559 # KCC will only create a shared library if the output file
13560 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13561 # to its proper name (with version) after linking.
13562 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'
13564 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13565 hardcode_libdir_separator_CXX=:
13567 # Archives containing C++ object files must be created using
13568 # the KAI C++ compiler.
13569 case $host in
13570 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13571 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13572 esac
13574 RCC*)
13575 # Rational C++ 2.4.1
13576 # FIXME: insert proper C++ library support
13577 ld_shlibs_CXX=no
13579 cxx*)
13580 case $host in
13581 osf3*)
13582 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13583 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'
13584 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13587 allow_undefined_flag_CXX=' -expect_unresolved \*'
13588 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'
13589 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13590 echo "-hidden">> $lib.exp~
13591 $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~
13592 $RM $lib.exp'
13593 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13595 esac
13597 hardcode_libdir_separator_CXX=:
13599 # Commands to make compiler produce verbose output that lists
13600 # what "hidden" libraries, object files and flags are used when
13601 # linking a shared library.
13603 # There doesn't appear to be a way to prevent this compiler from
13604 # explicitly linking system object files so we need to strip them
13605 # from the output so that they don't get included in the library
13606 # dependencies.
13607 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"'
13610 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13611 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13612 case $host in
13613 osf3*)
13614 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'
13617 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'
13619 esac
13621 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13622 hardcode_libdir_separator_CXX=:
13624 # Commands to make compiler produce verbose output that lists
13625 # what "hidden" libraries, object files and flags are used when
13626 # linking a shared library.
13627 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13629 else
13630 # FIXME: insert proper C++ library support
13631 ld_shlibs_CXX=no
13634 esac
13637 psos*)
13638 # FIXME: insert proper C++ library support
13639 ld_shlibs_CXX=no
13642 sunos4*)
13643 case $cc_basename in
13644 CC*)
13645 # Sun C++ 4.x
13646 # FIXME: insert proper C++ library support
13647 ld_shlibs_CXX=no
13649 lcc*)
13650 # Lucid
13651 # FIXME: insert proper C++ library support
13652 ld_shlibs_CXX=no
13655 # FIXME: insert proper C++ library support
13656 ld_shlibs_CXX=no
13658 esac
13661 solaris*)
13662 case $cc_basename in
13663 CC*)
13664 # Sun C++ 4.2, 5.x and Centerline C++
13665 archive_cmds_need_lc_CXX=yes
13666 no_undefined_flag_CXX=' -zdefs'
13667 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13668 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13669 $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'
13671 hardcode_libdir_flag_spec_CXX='-R$libdir'
13672 hardcode_shlibpath_var_CXX=no
13673 case $host_os in
13674 solaris2.[0-5] | solaris2.[0-5].*) ;;
13676 # The compiler driver will combine and reorder linker options,
13677 # but understands `-z linker_flag'.
13678 # Supported since Solaris 2.6 (maybe 2.5.1?)
13679 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13681 esac
13682 link_all_deplibs_CXX=yes
13684 output_verbose_link_cmd='func_echo_all'
13686 # Archives containing C++ object files must be created using
13687 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13688 # necessary to make sure instantiated templates are included
13689 # in the archive.
13690 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13692 gcx*)
13693 # Green Hills C++ Compiler
13694 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13696 # The C++ compiler must be used to create the archive.
13697 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13700 # GNU C++ compiler with Solaris linker
13701 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13702 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13703 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13704 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13705 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13706 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13708 # Commands to make compiler produce verbose output that lists
13709 # what "hidden" libraries, object files and flags are used when
13710 # linking a shared library.
13711 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13712 else
13713 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13714 # platform.
13715 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13716 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13717 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
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 -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13725 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13726 case $host_os in
13727 solaris2.[0-5] | solaris2.[0-5].*) ;;
13729 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13731 esac
13734 esac
13737 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13738 no_undefined_flag_CXX='${wl}-z,text'
13739 archive_cmds_need_lc_CXX=no
13740 hardcode_shlibpath_var_CXX=no
13741 runpath_var='LD_RUN_PATH'
13743 case $cc_basename in
13744 CC*)
13745 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13746 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13749 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13750 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13752 esac
13755 sysv5* | sco3.2v5* | sco5v6*)
13756 # Note: We can NOT use -z defs as we might desire, because we do not
13757 # link with -lc, and that would cause any symbols used from libc to
13758 # always be unresolved, which means just about no library would
13759 # ever link correctly. If we're not using GNU ld we use -z text
13760 # though, which does catch some bad symbols but isn't as heavy-handed
13761 # as -z defs.
13762 no_undefined_flag_CXX='${wl}-z,text'
13763 allow_undefined_flag_CXX='${wl}-z,nodefs'
13764 archive_cmds_need_lc_CXX=no
13765 hardcode_shlibpath_var_CXX=no
13766 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13767 hardcode_libdir_separator_CXX=':'
13768 link_all_deplibs_CXX=yes
13769 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13770 runpath_var='LD_RUN_PATH'
13772 case $cc_basename in
13773 CC*)
13774 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13775 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13776 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13777 '"$old_archive_cmds_CXX"
13778 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13779 '"$reload_cmds_CXX"
13782 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13783 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13785 esac
13788 tandem*)
13789 case $cc_basename in
13790 NCC*)
13791 # NonStop-UX NCC 3.20
13792 # FIXME: insert proper C++ library support
13793 ld_shlibs_CXX=no
13796 # FIXME: insert proper C++ library support
13797 ld_shlibs_CXX=no
13799 esac
13802 vxworks*)
13803 # FIXME: insert proper C++ library support
13804 ld_shlibs_CXX=no
13808 # FIXME: insert proper C++ library support
13809 ld_shlibs_CXX=no
13811 esac
13813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13814 $as_echo "$ld_shlibs_CXX" >&6; }
13815 test "$ld_shlibs_CXX" = no && can_build_shared=no
13817 GCC_CXX="$GXX"
13818 LD_CXX="$LD"
13820 ## CAVEAT EMPTOR:
13821 ## There is no encapsulation within the following macros, do not change
13822 ## the running order or otherwise move them around unless you know exactly
13823 ## what you are doing...
13824 # Dependencies to place before and after the object being linked:
13825 predep_objects_CXX=
13826 postdep_objects_CXX=
13827 predeps_CXX=
13828 postdeps_CXX=
13829 compiler_lib_search_path_CXX=
13831 cat > conftest.$ac_ext <<_LT_EOF
13832 class Foo
13834 public:
13835 Foo (void) { a = 0; }
13836 private:
13837 int a;
13839 _LT_EOF
13841 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13842 (eval $ac_compile) 2>&5
13843 ac_status=$?
13844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13845 test $ac_status = 0; }; then
13846 # Parse the compiler output and extract the necessary
13847 # objects, libraries and library flags.
13849 # Sentinel used to keep track of whether or not we are before
13850 # the conftest object file.
13851 pre_test_object_deps_done=no
13853 for p in `eval "$output_verbose_link_cmd"`; do
13854 case $p in
13856 -L* | -R* | -l*)
13857 # Some compilers place space between "-{L,R}" and the path.
13858 # Remove the space.
13859 if test $p = "-L" ||
13860 test $p = "-R"; then
13861 prev=$p
13862 continue
13863 else
13864 prev=
13867 if test "$pre_test_object_deps_done" = no; then
13868 case $p in
13869 -L* | -R*)
13870 # Internal compiler library paths should come after those
13871 # provided the user. The postdeps already come after the
13872 # user supplied libs so there is no need to process them.
13873 if test -z "$compiler_lib_search_path_CXX"; then
13874 compiler_lib_search_path_CXX="${prev}${p}"
13875 else
13876 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13879 # The "-l" case would never come before the object being
13880 # linked, so don't bother handling this case.
13881 esac
13882 else
13883 if test -z "$postdeps_CXX"; then
13884 postdeps_CXX="${prev}${p}"
13885 else
13886 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13891 *.$objext)
13892 # This assumes that the test object file only shows up
13893 # once in the compiler output.
13894 if test "$p" = "conftest.$objext"; then
13895 pre_test_object_deps_done=yes
13896 continue
13899 if test "$pre_test_object_deps_done" = no; then
13900 if test -z "$predep_objects_CXX"; then
13901 predep_objects_CXX="$p"
13902 else
13903 predep_objects_CXX="$predep_objects_CXX $p"
13905 else
13906 if test -z "$postdep_objects_CXX"; then
13907 postdep_objects_CXX="$p"
13908 else
13909 postdep_objects_CXX="$postdep_objects_CXX $p"
13914 *) ;; # Ignore the rest.
13916 esac
13917 done
13919 # Clean up.
13920 rm -f a.out a.exe
13921 else
13922 echo "libtool.m4: error: problem compiling CXX test program"
13925 $RM -f confest.$objext
13927 # PORTME: override above test on systems where it is broken
13928 case $host_os in
13929 interix[3-9]*)
13930 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13931 # hack all around it, let's just trust "g++" to DTRT.
13932 predep_objects_CXX=
13933 postdep_objects_CXX=
13934 postdeps_CXX=
13937 linux*)
13938 case `$CC -V 2>&1 | sed 5q` in
13939 *Sun\ C*)
13940 # Sun C++ 5.9
13942 # The more standards-conforming stlport4 library is
13943 # incompatible with the Cstd library. Avoid specifying
13944 # it if it's in CXXFLAGS. Ignore libCrun as
13945 # -library=stlport4 depends on it.
13946 case " $CXX $CXXFLAGS " in
13947 *" -library=stlport4 "*)
13948 solaris_use_stlport4=yes
13950 esac
13952 if test "$solaris_use_stlport4" != yes; then
13953 postdeps_CXX='-library=Cstd -library=Crun'
13956 esac
13959 solaris*)
13960 case $cc_basename in
13961 CC*)
13962 # The more standards-conforming stlport4 library is
13963 # incompatible with the Cstd library. Avoid specifying
13964 # it if it's in CXXFLAGS. Ignore libCrun as
13965 # -library=stlport4 depends on it.
13966 case " $CXX $CXXFLAGS " in
13967 *" -library=stlport4 "*)
13968 solaris_use_stlport4=yes
13970 esac
13972 # Adding this requires a known-good setup of shared libraries for
13973 # Sun compiler versions before 5.6, else PIC objects from an old
13974 # archive will be linked into the output, leading to subtle bugs.
13975 if test "$solaris_use_stlport4" != yes; then
13976 postdeps_CXX='-library=Cstd -library=Crun'
13979 esac
13981 esac
13984 case " $postdeps_CXX " in
13985 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13986 esac
13987 compiler_lib_search_dirs_CXX=
13988 if test -n "${compiler_lib_search_path_CXX}"; then
13989 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14022 lt_prog_compiler_wl_CXX=
14023 lt_prog_compiler_pic_CXX=
14024 lt_prog_compiler_static_CXX=
14026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14027 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14029 # C++ specific cases for pic, static, wl, etc.
14030 if test "$GXX" = yes; then
14031 lt_prog_compiler_wl_CXX='-Wl,'
14032 lt_prog_compiler_static_CXX='-static'
14034 case $host_os in
14035 aix*)
14036 # All AIX code is PIC.
14037 if test "$host_cpu" = ia64; then
14038 # AIX 5 now supports IA64 processor
14039 lt_prog_compiler_static_CXX='-Bstatic'
14041 lt_prog_compiler_pic_CXX='-fPIC'
14044 amigaos*)
14045 case $host_cpu in
14046 powerpc)
14047 # see comment about AmigaOS4 .so support
14048 lt_prog_compiler_pic_CXX='-fPIC'
14050 m68k)
14051 # FIXME: we need at least 68020 code to build shared libraries, but
14052 # adding the `-m68020' flag to GCC prevents building anything better,
14053 # like `-m68040'.
14054 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14056 esac
14059 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14060 # PIC is the default for these OSes.
14062 mingw* | cygwin* | os2* | pw32* | cegcc*)
14063 # This hack is so that the source file can tell whether it is being
14064 # built for inclusion in a dll (and should export symbols for example).
14065 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14066 # (--disable-auto-import) libraries
14067 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14069 darwin* | rhapsody*)
14070 # PIC is the default on this platform
14071 # Common symbols not allowed in MH_DYLIB files
14072 lt_prog_compiler_pic_CXX='-fno-common'
14074 *djgpp*)
14075 # DJGPP does not support shared libraries at all
14076 lt_prog_compiler_pic_CXX=
14078 haiku*)
14079 # PIC is the default for Haiku.
14080 # The "-static" flag exists, but is broken.
14081 lt_prog_compiler_static_CXX=
14083 interix[3-9]*)
14084 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14085 # Instead, we relocate shared libraries at runtime.
14087 sysv4*MP*)
14088 if test -d /usr/nec; then
14089 lt_prog_compiler_pic_CXX=-Kconform_pic
14092 hpux*)
14093 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14094 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14095 # sets the default TLS model and affects inlining.
14096 case $host_cpu in
14097 hppa*64*)
14100 lt_prog_compiler_pic_CXX='-fPIC'
14102 esac
14104 *qnx* | *nto*)
14105 # QNX uses GNU C++, but need to define -shared option too, otherwise
14106 # it will coredump.
14107 lt_prog_compiler_pic_CXX='-fPIC -shared'
14110 lt_prog_compiler_pic_CXX='-fPIC'
14112 esac
14113 else
14114 case $host_os in
14115 aix[4-9]*)
14116 # All AIX code is PIC.
14117 if test "$host_cpu" = ia64; then
14118 # AIX 5 now supports IA64 processor
14119 lt_prog_compiler_static_CXX='-Bstatic'
14120 else
14121 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14124 chorus*)
14125 case $cc_basename in
14126 cxch68*)
14127 # Green Hills C++ Compiler
14128 # _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"
14130 esac
14132 dgux*)
14133 case $cc_basename in
14134 ec++*)
14135 lt_prog_compiler_pic_CXX='-KPIC'
14137 ghcx*)
14138 # Green Hills C++ Compiler
14139 lt_prog_compiler_pic_CXX='-pic'
14143 esac
14145 freebsd* | dragonfly*)
14146 # FreeBSD uses GNU C++
14148 hpux9* | hpux10* | hpux11*)
14149 case $cc_basename in
14150 CC*)
14151 lt_prog_compiler_wl_CXX='-Wl,'
14152 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14153 if test "$host_cpu" != ia64; then
14154 lt_prog_compiler_pic_CXX='+Z'
14157 aCC*)
14158 lt_prog_compiler_wl_CXX='-Wl,'
14159 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14160 case $host_cpu in
14161 hppa*64*|ia64*)
14162 # +Z the default
14165 lt_prog_compiler_pic_CXX='+Z'
14167 esac
14171 esac
14173 interix*)
14174 # This is c89, which is MS Visual C++ (no shared libs)
14175 # Anyone wants to do a port?
14177 irix5* | irix6* | nonstopux*)
14178 case $cc_basename in
14179 CC*)
14180 lt_prog_compiler_wl_CXX='-Wl,'
14181 lt_prog_compiler_static_CXX='-non_shared'
14182 # CC pic flag -KPIC is the default.
14186 esac
14188 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14189 case $cc_basename in
14190 KCC*)
14191 # KAI C++ Compiler
14192 lt_prog_compiler_wl_CXX='--backend -Wl,'
14193 lt_prog_compiler_pic_CXX='-fPIC'
14195 ecpc* )
14196 # old Intel C++ for x86_64 which still supported -KPIC.
14197 lt_prog_compiler_wl_CXX='-Wl,'
14198 lt_prog_compiler_pic_CXX='-KPIC'
14199 lt_prog_compiler_static_CXX='-static'
14201 icpc* )
14202 # Intel C++, used to be incompatible with GCC.
14203 # ICC 10 doesn't accept -KPIC any more.
14204 lt_prog_compiler_wl_CXX='-Wl,'
14205 lt_prog_compiler_pic_CXX='-fPIC'
14206 lt_prog_compiler_static_CXX='-static'
14208 pgCC* | pgcpp*)
14209 # Portland Group C++ compiler
14210 lt_prog_compiler_wl_CXX='-Wl,'
14211 lt_prog_compiler_pic_CXX='-fpic'
14212 lt_prog_compiler_static_CXX='-Bstatic'
14214 cxx*)
14215 # Compaq C++
14216 # Make sure the PIC flag is empty. It appears that all Alpha
14217 # Linux and Compaq Tru64 Unix objects are PIC.
14218 lt_prog_compiler_pic_CXX=
14219 lt_prog_compiler_static_CXX='-non_shared'
14221 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14222 # IBM XL 8.0, 9.0 on PPC and BlueGene
14223 lt_prog_compiler_wl_CXX='-Wl,'
14224 lt_prog_compiler_pic_CXX='-qpic'
14225 lt_prog_compiler_static_CXX='-qstaticlink'
14228 case `$CC -V 2>&1 | sed 5q` in
14229 *Sun\ C*)
14230 # Sun C++ 5.9
14231 lt_prog_compiler_pic_CXX='-KPIC'
14232 lt_prog_compiler_static_CXX='-Bstatic'
14233 lt_prog_compiler_wl_CXX='-Qoption ld '
14235 esac
14237 esac
14239 lynxos*)
14241 m88k*)
14243 mvs*)
14244 case $cc_basename in
14245 cxx*)
14246 lt_prog_compiler_pic_CXX='-W c,exportall'
14250 esac
14252 netbsd*)
14254 *qnx* | *nto*)
14255 # QNX uses GNU C++, but need to define -shared option too, otherwise
14256 # it will coredump.
14257 lt_prog_compiler_pic_CXX='-fPIC -shared'
14259 osf3* | osf4* | osf5*)
14260 case $cc_basename in
14261 KCC*)
14262 lt_prog_compiler_wl_CXX='--backend -Wl,'
14264 RCC*)
14265 # Rational C++ 2.4.1
14266 lt_prog_compiler_pic_CXX='-pic'
14268 cxx*)
14269 # Digital/Compaq C++
14270 lt_prog_compiler_wl_CXX='-Wl,'
14271 # Make sure the PIC flag is empty. It appears that all Alpha
14272 # Linux and Compaq Tru64 Unix objects are PIC.
14273 lt_prog_compiler_pic_CXX=
14274 lt_prog_compiler_static_CXX='-non_shared'
14278 esac
14280 psos*)
14282 solaris*)
14283 case $cc_basename in
14284 CC*)
14285 # Sun C++ 4.2, 5.x and Centerline C++
14286 lt_prog_compiler_pic_CXX='-KPIC'
14287 lt_prog_compiler_static_CXX='-Bstatic'
14288 lt_prog_compiler_wl_CXX='-Qoption ld '
14290 gcx*)
14291 # Green Hills C++ Compiler
14292 lt_prog_compiler_pic_CXX='-PIC'
14296 esac
14298 sunos4*)
14299 case $cc_basename in
14300 CC*)
14301 # Sun C++ 4.x
14302 lt_prog_compiler_pic_CXX='-pic'
14303 lt_prog_compiler_static_CXX='-Bstatic'
14305 lcc*)
14306 # Lucid
14307 lt_prog_compiler_pic_CXX='-pic'
14311 esac
14313 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14314 case $cc_basename in
14315 CC*)
14316 lt_prog_compiler_wl_CXX='-Wl,'
14317 lt_prog_compiler_pic_CXX='-KPIC'
14318 lt_prog_compiler_static_CXX='-Bstatic'
14320 esac
14322 tandem*)
14323 case $cc_basename in
14324 NCC*)
14325 # NonStop-UX NCC 3.20
14326 lt_prog_compiler_pic_CXX='-KPIC'
14330 esac
14332 vxworks*)
14335 lt_prog_compiler_can_build_shared_CXX=no
14337 esac
14340 case $host_os in
14341 # For platforms which do not support PIC, -DPIC is meaningless:
14342 *djgpp*)
14343 lt_prog_compiler_pic_CXX=
14346 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14348 esac
14349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14350 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14355 # Check to make sure the PIC flag actually works.
14357 if test -n "$lt_prog_compiler_pic_CXX"; then
14358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14359 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14360 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
14361 $as_echo_n "(cached) " >&6
14362 else
14363 lt_cv_prog_compiler_pic_works_CXX=no
14364 ac_outfile=conftest.$ac_objext
14365 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14366 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14367 # Insert the option either (1) after the last *FLAGS variable, or
14368 # (2) before a word containing "conftest.", or (3) at the end.
14369 # Note that $ac_compile itself does not contain backslashes and begins
14370 # with a dollar sign (not a hyphen), so the echo should work correctly.
14371 # The option is referenced via a variable to avoid confusing sed.
14372 lt_compile=`echo "$ac_compile" | $SED \
14373 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14374 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14375 -e 's:$: $lt_compiler_flag:'`
14376 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14377 (eval "$lt_compile" 2>conftest.err)
14378 ac_status=$?
14379 cat conftest.err >&5
14380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14381 if (exit $ac_status) && test -s "$ac_outfile"; then
14382 # The compiler can only warn and ignore the option if not recognized
14383 # So say no if there are warnings other than the usual output.
14384 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14385 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14386 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14387 lt_cv_prog_compiler_pic_works_CXX=yes
14390 $RM conftest*
14393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14394 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14396 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14397 case $lt_prog_compiler_pic_CXX in
14398 "" | " "*) ;;
14399 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14400 esac
14401 else
14402 lt_prog_compiler_pic_CXX=
14403 lt_prog_compiler_can_build_shared_CXX=no
14411 # Check to make sure the static flag actually works.
14413 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14415 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14416 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
14417 $as_echo_n "(cached) " >&6
14418 else
14419 lt_cv_prog_compiler_static_works_CXX=no
14420 save_LDFLAGS="$LDFLAGS"
14421 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14422 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14423 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14424 # The linker can only warn and ignore the option if not recognized
14425 # So say no if there are warnings
14426 if test -s conftest.err; then
14427 # Append any errors to the config.log.
14428 cat conftest.err 1>&5
14429 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14430 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14431 if diff conftest.exp conftest.er2 >/dev/null; then
14432 lt_cv_prog_compiler_static_works_CXX=yes
14434 else
14435 lt_cv_prog_compiler_static_works_CXX=yes
14438 $RM -r conftest*
14439 LDFLAGS="$save_LDFLAGS"
14442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14443 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14445 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14447 else
14448 lt_prog_compiler_static_CXX=
14454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14455 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14456 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14457 $as_echo_n "(cached) " >&6
14458 else
14459 lt_cv_prog_compiler_c_o_CXX=no
14460 $RM -r conftest 2>/dev/null
14461 mkdir conftest
14462 cd conftest
14463 mkdir out
14464 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14466 lt_compiler_flag="-o out/conftest2.$ac_objext"
14467 # Insert the option either (1) after the last *FLAGS variable, or
14468 # (2) before a word containing "conftest.", or (3) at the end.
14469 # Note that $ac_compile itself does not contain backslashes and begins
14470 # with a dollar sign (not a hyphen), so the echo should work correctly.
14471 lt_compile=`echo "$ac_compile" | $SED \
14472 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14473 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14474 -e 's:$: $lt_compiler_flag:'`
14475 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14476 (eval "$lt_compile" 2>out/conftest.err)
14477 ac_status=$?
14478 cat out/conftest.err >&5
14479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14480 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14481 then
14482 # The compiler can only warn and ignore the option if not recognized
14483 # So say no if there are warnings
14484 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14485 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14486 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14487 lt_cv_prog_compiler_c_o_CXX=yes
14490 chmod u+w . 2>&5
14491 $RM conftest*
14492 # SGI C++ compiler will create directory out/ii_files/ for
14493 # template instantiation
14494 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14495 $RM out/* && rmdir out
14496 cd ..
14497 $RM -r conftest
14498 $RM conftest*
14501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14502 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14507 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14508 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14509 $as_echo_n "(cached) " >&6
14510 else
14511 lt_cv_prog_compiler_c_o_CXX=no
14512 $RM -r conftest 2>/dev/null
14513 mkdir conftest
14514 cd conftest
14515 mkdir out
14516 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14518 lt_compiler_flag="-o out/conftest2.$ac_objext"
14519 # Insert the option either (1) after the last *FLAGS variable, or
14520 # (2) before a word containing "conftest.", or (3) at the end.
14521 # Note that $ac_compile itself does not contain backslashes and begins
14522 # with a dollar sign (not a hyphen), so the echo should work correctly.
14523 lt_compile=`echo "$ac_compile" | $SED \
14524 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14525 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14526 -e 's:$: $lt_compiler_flag:'`
14527 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14528 (eval "$lt_compile" 2>out/conftest.err)
14529 ac_status=$?
14530 cat out/conftest.err >&5
14531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14532 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14533 then
14534 # The compiler can only warn and ignore the option if not recognized
14535 # So say no if there are warnings
14536 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14537 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14538 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14539 lt_cv_prog_compiler_c_o_CXX=yes
14542 chmod u+w . 2>&5
14543 $RM conftest*
14544 # SGI C++ compiler will create directory out/ii_files/ for
14545 # template instantiation
14546 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14547 $RM out/* && rmdir out
14548 cd ..
14549 $RM -r conftest
14550 $RM conftest*
14553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14554 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14559 hard_links="nottested"
14560 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14561 # do not overwrite the value of need_locks provided by the user
14562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14563 $as_echo_n "checking if we can lock with hard links... " >&6; }
14564 hard_links=yes
14565 $RM conftest*
14566 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14567 touch conftest.a
14568 ln conftest.a conftest.b 2>&5 || hard_links=no
14569 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14571 $as_echo "$hard_links" >&6; }
14572 if test "$hard_links" = no; then
14573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14574 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14575 need_locks=warn
14577 else
14578 need_locks=no
14583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14584 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14586 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14587 case $host_os in
14588 aix[4-9]*)
14589 # If we're using GNU nm, then we don't want the "-C" option.
14590 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14591 # Also, AIX nm treats weak defined symbols like other global defined
14592 # symbols, whereas GNU nm marks them as "W".
14593 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14594 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'
14595 else
14596 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14599 pw32*)
14600 export_symbols_cmds_CXX="$ltdll_cmds"
14602 cygwin* | mingw* | cegcc*)
14603 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'
14606 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14608 esac
14609 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14612 $as_echo "$ld_shlibs_CXX" >&6; }
14613 test "$ld_shlibs_CXX" = no && can_build_shared=no
14615 with_gnu_ld_CXX=$with_gnu_ld
14623 # Do we need to explicitly link libc?
14625 case "x$archive_cmds_need_lc_CXX" in
14626 x|xyes)
14627 # Assume -lc should be added
14628 archive_cmds_need_lc_CXX=yes
14630 if test "$enable_shared" = yes && test "$GCC" = yes; then
14631 case $archive_cmds_CXX in
14632 *'~'*)
14633 # FIXME: we may have to deal with multi-command sequences.
14635 '$CC '*)
14636 # Test whether the compiler implicitly links with -lc since on some
14637 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14638 # to ld, don't add -lc before -lgcc.
14639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14640 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14641 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
14642 $as_echo_n "(cached) " >&6
14643 else
14644 $RM conftest*
14645 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14647 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14648 (eval $ac_compile) 2>&5
14649 ac_status=$?
14650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14651 test $ac_status = 0; } 2>conftest.err; then
14652 soname=conftest
14653 lib=conftest
14654 libobjs=conftest.$ac_objext
14655 deplibs=
14656 wl=$lt_prog_compiler_wl_CXX
14657 pic_flag=$lt_prog_compiler_pic_CXX
14658 compiler_flags=-v
14659 linker_flags=-v
14660 verstring=
14661 output_objdir=.
14662 libname=conftest
14663 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14664 allow_undefined_flag_CXX=
14665 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14666 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14667 ac_status=$?
14668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14669 test $ac_status = 0; }
14670 then
14671 lt_cv_archive_cmds_need_lc_CXX=no
14672 else
14673 lt_cv_archive_cmds_need_lc_CXX=yes
14675 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14676 else
14677 cat conftest.err 1>&5
14679 $RM conftest*
14682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14683 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14684 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14686 esac
14689 esac
14754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14755 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14757 library_names_spec=
14758 libname_spec='lib$name'
14759 soname_spec=
14760 shrext_cmds=".so"
14761 postinstall_cmds=
14762 postuninstall_cmds=
14763 finish_cmds=
14764 finish_eval=
14765 shlibpath_var=
14766 shlibpath_overrides_runpath=unknown
14767 version_type=none
14768 dynamic_linker="$host_os ld.so"
14769 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14770 need_lib_prefix=unknown
14771 hardcode_into_libs=no
14773 # when you set need_version to no, make sure it does not cause -set_version
14774 # flags to be left without arguments
14775 need_version=unknown
14777 case $host_os in
14778 aix3*)
14779 version_type=linux
14780 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14781 shlibpath_var=LIBPATH
14783 # AIX 3 has no versioning support, so we append a major version to the name.
14784 soname_spec='${libname}${release}${shared_ext}$major'
14787 aix[4-9]*)
14788 version_type=linux
14789 need_lib_prefix=no
14790 need_version=no
14791 hardcode_into_libs=yes
14792 if test "$host_cpu" = ia64; then
14793 # AIX 5 supports IA64
14794 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14795 shlibpath_var=LD_LIBRARY_PATH
14796 else
14797 # With GCC up to 2.95.x, collect2 would create an import file
14798 # for dependence libraries. The import file would start with
14799 # the line `#! .'. This would cause the generated library to
14800 # depend on `.', always an invalid library. This was fixed in
14801 # development snapshots of GCC prior to 3.0.
14802 case $host_os in
14803 aix4 | aix4.[01] | aix4.[01].*)
14804 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14805 echo ' yes '
14806 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14808 else
14809 can_build_shared=no
14812 esac
14813 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14814 # soname into executable. Probably we can add versioning support to
14815 # collect2, so additional links can be useful in future.
14816 if test "$aix_use_runtimelinking" = yes; then
14817 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14818 # instead of lib<name>.a to let people know that these are not
14819 # typical AIX shared libraries.
14820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14821 else
14822 # We preserve .a as extension for shared libraries through AIX4.2
14823 # and later when we are not doing run time linking.
14824 library_names_spec='${libname}${release}.a $libname.a'
14825 soname_spec='${libname}${release}${shared_ext}$major'
14827 shlibpath_var=LIBPATH
14831 amigaos*)
14832 case $host_cpu in
14833 powerpc)
14834 # Since July 2007 AmigaOS4 officially supports .so libraries.
14835 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14838 m68k)
14839 library_names_spec='$libname.ixlibrary $libname.a'
14840 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14841 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'
14843 esac
14846 beos*)
14847 library_names_spec='${libname}${shared_ext}'
14848 dynamic_linker="$host_os ld.so"
14849 shlibpath_var=LIBRARY_PATH
14852 bsdi[45]*)
14853 version_type=linux
14854 need_version=no
14855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14856 soname_spec='${libname}${release}${shared_ext}$major'
14857 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14858 shlibpath_var=LD_LIBRARY_PATH
14859 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14860 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14861 # the default ld.so.conf also contains /usr/contrib/lib and
14862 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14863 # libtool to hard-code these into programs
14866 cygwin* | mingw* | pw32* | cegcc*)
14867 version_type=windows
14868 shrext_cmds=".dll"
14869 need_version=no
14870 need_lib_prefix=no
14872 case $GCC,$host_os in
14873 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14874 library_names_spec='$libname.dll.a'
14875 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14876 postinstall_cmds='base_file=`basename \${file}`~
14877 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14878 dldir=$destdir/`dirname \$dlpath`~
14879 test -d \$dldir || mkdir -p \$dldir~
14880 $install_prog $dir/$dlname \$dldir/$dlname~
14881 chmod a+x \$dldir/$dlname~
14882 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14883 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14885 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14886 dlpath=$dir/\$dldll~
14887 $RM \$dlpath'
14888 shlibpath_overrides_runpath=yes
14890 case $host_os in
14891 cygwin*)
14892 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14893 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14896 mingw* | cegcc*)
14897 # MinGW DLLs use traditional 'lib' prefix
14898 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14900 pw32*)
14901 # pw32 DLLs use 'pw' prefix rather than 'lib'
14902 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14904 esac
14908 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14910 esac
14911 dynamic_linker='Win32 ld.exe'
14912 # FIXME: first we should search . and the directory the executable is in
14913 shlibpath_var=PATH
14916 darwin* | rhapsody*)
14917 dynamic_linker="$host_os dyld"
14918 version_type=darwin
14919 need_lib_prefix=no
14920 need_version=no
14921 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14922 soname_spec='${libname}${release}${major}$shared_ext'
14923 shlibpath_overrides_runpath=yes
14924 shlibpath_var=DYLD_LIBRARY_PATH
14925 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14927 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14930 dgux*)
14931 version_type=linux
14932 need_lib_prefix=no
14933 need_version=no
14934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14935 soname_spec='${libname}${release}${shared_ext}$major'
14936 shlibpath_var=LD_LIBRARY_PATH
14939 freebsd* | dragonfly*)
14940 # DragonFly does not have aout. When/if they implement a new
14941 # versioning mechanism, adjust this.
14942 if test -x /usr/bin/objformat; then
14943 objformat=`/usr/bin/objformat`
14944 else
14945 case $host_os in
14946 freebsd[23].*) objformat=aout ;;
14947 *) objformat=elf ;;
14948 esac
14950 version_type=freebsd-$objformat
14951 case $version_type in
14952 freebsd-elf*)
14953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14954 need_version=no
14955 need_lib_prefix=no
14957 freebsd-*)
14958 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14959 need_version=yes
14961 esac
14962 shlibpath_var=LD_LIBRARY_PATH
14963 case $host_os in
14964 freebsd2.*)
14965 shlibpath_overrides_runpath=yes
14967 freebsd3.[01]* | freebsdelf3.[01]*)
14968 shlibpath_overrides_runpath=yes
14969 hardcode_into_libs=yes
14971 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14972 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14973 shlibpath_overrides_runpath=no
14974 hardcode_into_libs=yes
14976 *) # from 4.6 on, and DragonFly
14977 shlibpath_overrides_runpath=yes
14978 hardcode_into_libs=yes
14980 esac
14983 gnu*)
14984 version_type=linux
14985 need_lib_prefix=no
14986 need_version=no
14987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14988 soname_spec='${libname}${release}${shared_ext}$major'
14989 shlibpath_var=LD_LIBRARY_PATH
14990 hardcode_into_libs=yes
14993 haiku*)
14994 version_type=linux
14995 need_lib_prefix=no
14996 need_version=no
14997 dynamic_linker="$host_os runtime_loader"
14998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14999 soname_spec='${libname}${release}${shared_ext}$major'
15000 shlibpath_var=LIBRARY_PATH
15001 shlibpath_overrides_runpath=yes
15002 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
15003 hardcode_into_libs=yes
15006 hpux9* | hpux10* | hpux11*)
15007 # Give a soname corresponding to the major version so that dld.sl refuses to
15008 # link against other versions.
15009 version_type=sunos
15010 need_lib_prefix=no
15011 need_version=no
15012 case $host_cpu in
15013 ia64*)
15014 shrext_cmds='.so'
15015 hardcode_into_libs=yes
15016 dynamic_linker="$host_os dld.so"
15017 shlibpath_var=LD_LIBRARY_PATH
15018 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15020 soname_spec='${libname}${release}${shared_ext}$major'
15021 if test "X$HPUX_IA64_MODE" = X32; then
15022 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15023 else
15024 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15026 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15028 hppa*64*)
15029 shrext_cmds='.sl'
15030 hardcode_into_libs=yes
15031 dynamic_linker="$host_os dld.sl"
15032 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15033 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15035 soname_spec='${libname}${release}${shared_ext}$major'
15036 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15037 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15040 shrext_cmds='.sl'
15041 dynamic_linker="$host_os dld.sl"
15042 shlibpath_var=SHLIB_PATH
15043 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15045 soname_spec='${libname}${release}${shared_ext}$major'
15047 esac
15048 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15049 postinstall_cmds='chmod 555 $lib'
15050 # or fails outright, so override atomically:
15051 install_override_mode=555
15054 interix[3-9]*)
15055 version_type=linux
15056 need_lib_prefix=no
15057 need_version=no
15058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15059 soname_spec='${libname}${release}${shared_ext}$major'
15060 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15061 shlibpath_var=LD_LIBRARY_PATH
15062 shlibpath_overrides_runpath=no
15063 hardcode_into_libs=yes
15066 irix5* | irix6* | nonstopux*)
15067 case $host_os in
15068 nonstopux*) version_type=nonstopux ;;
15070 if test "$lt_cv_prog_gnu_ld" = yes; then
15071 version_type=linux
15072 else
15073 version_type=irix
15074 fi ;;
15075 esac
15076 need_lib_prefix=no
15077 need_version=no
15078 soname_spec='${libname}${release}${shared_ext}$major'
15079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15080 case $host_os in
15081 irix5* | nonstopux*)
15082 libsuff= shlibsuff=
15085 case $LD in # libtool.m4 will add one of these switches to LD
15086 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15087 libsuff= shlibsuff= libmagic=32-bit;;
15088 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15089 libsuff=32 shlibsuff=N32 libmagic=N32;;
15090 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15091 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15092 *) libsuff= shlibsuff= libmagic=never-match;;
15093 esac
15095 esac
15096 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15097 shlibpath_overrides_runpath=no
15098 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15099 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15100 hardcode_into_libs=yes
15103 # No shared lib support for Linux oldld, aout, or coff.
15104 linux*oldld* | linux*aout* | linux*coff*)
15105 dynamic_linker=no
15108 # This must be Linux ELF.
15109 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15110 version_type=linux
15111 need_lib_prefix=no
15112 need_version=no
15113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15114 soname_spec='${libname}${release}${shared_ext}$major'
15115 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15116 shlibpath_var=LD_LIBRARY_PATH
15117 shlibpath_overrides_runpath=no
15119 # Some binutils ld are patched to set DT_RUNPATH
15120 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
15121 $as_echo_n "(cached) " >&6
15122 else
15123 lt_cv_shlibpath_overrides_runpath=no
15124 save_LDFLAGS=$LDFLAGS
15125 save_libdir=$libdir
15126 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15127 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15129 /* end confdefs.h. */
15132 main ()
15136 return 0;
15138 _ACEOF
15139 if ac_fn_cxx_try_link "$LINENO"; then :
15140 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15141 lt_cv_shlibpath_overrides_runpath=yes
15144 rm -f core conftest.err conftest.$ac_objext \
15145 conftest$ac_exeext conftest.$ac_ext
15146 LDFLAGS=$save_LDFLAGS
15147 libdir=$save_libdir
15151 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15153 # This implies no fast_install, which is unacceptable.
15154 # Some rework will be needed to allow for fast_install
15155 # before this can be enabled.
15156 hardcode_into_libs=yes
15158 # Append ld.so.conf contents to the search path
15159 if test -f /etc/ld.so.conf; then
15160 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' ' '`
15161 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15164 # We used to test for /lib/ld.so.1 and disable shared libraries on
15165 # powerpc, because MkLinux only supported shared libraries with the
15166 # GNU dynamic linker. Since this was broken with cross compilers,
15167 # most powerpc-linux boxes support dynamic linking these days and
15168 # people can always --disable-shared, the test was removed, and we
15169 # assume the GNU/Linux dynamic linker is in use.
15170 dynamic_linker='GNU/Linux ld.so'
15173 netbsd*)
15174 version_type=sunos
15175 need_lib_prefix=no
15176 need_version=no
15177 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15179 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15180 dynamic_linker='NetBSD (a.out) ld.so'
15181 else
15182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15183 soname_spec='${libname}${release}${shared_ext}$major'
15184 dynamic_linker='NetBSD ld.elf_so'
15186 shlibpath_var=LD_LIBRARY_PATH
15187 shlibpath_overrides_runpath=yes
15188 hardcode_into_libs=yes
15191 newsos6)
15192 version_type=linux
15193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15194 shlibpath_var=LD_LIBRARY_PATH
15195 shlibpath_overrides_runpath=yes
15198 *nto* | *qnx*)
15199 version_type=qnx
15200 need_lib_prefix=no
15201 need_version=no
15202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15203 soname_spec='${libname}${release}${shared_ext}$major'
15204 shlibpath_var=LD_LIBRARY_PATH
15205 shlibpath_overrides_runpath=no
15206 hardcode_into_libs=yes
15207 dynamic_linker='ldqnx.so'
15210 openbsd*)
15211 version_type=sunos
15212 sys_lib_dlsearch_path_spec="/usr/lib"
15213 need_lib_prefix=no
15214 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15215 case $host_os in
15216 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15217 *) need_version=no ;;
15218 esac
15219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15220 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15221 shlibpath_var=LD_LIBRARY_PATH
15222 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15223 case $host_os in
15224 openbsd2.[89] | openbsd2.[89].*)
15225 shlibpath_overrides_runpath=no
15228 shlibpath_overrides_runpath=yes
15230 esac
15231 else
15232 shlibpath_overrides_runpath=yes
15236 os2*)
15237 libname_spec='$name'
15238 shrext_cmds=".dll"
15239 need_lib_prefix=no
15240 library_names_spec='$libname${shared_ext} $libname.a'
15241 dynamic_linker='OS/2 ld.exe'
15242 shlibpath_var=LIBPATH
15245 osf3* | osf4* | osf5*)
15246 version_type=osf
15247 need_lib_prefix=no
15248 need_version=no
15249 soname_spec='${libname}${release}${shared_ext}$major'
15250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15251 shlibpath_var=LD_LIBRARY_PATH
15252 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15253 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15256 rdos*)
15257 dynamic_linker=no
15260 solaris*)
15261 version_type=linux
15262 need_lib_prefix=no
15263 need_version=no
15264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15265 soname_spec='${libname}${release}${shared_ext}$major'
15266 shlibpath_var=LD_LIBRARY_PATH
15267 shlibpath_overrides_runpath=yes
15268 hardcode_into_libs=yes
15269 # ldd complains unless libraries are executable
15270 postinstall_cmds='chmod +x $lib'
15273 sunos4*)
15274 version_type=sunos
15275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15276 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15277 shlibpath_var=LD_LIBRARY_PATH
15278 shlibpath_overrides_runpath=yes
15279 if test "$with_gnu_ld" = yes; then
15280 need_lib_prefix=no
15282 need_version=yes
15285 sysv4 | sysv4.3*)
15286 version_type=linux
15287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15288 soname_spec='${libname}${release}${shared_ext}$major'
15289 shlibpath_var=LD_LIBRARY_PATH
15290 case $host_vendor in
15291 sni)
15292 shlibpath_overrides_runpath=no
15293 need_lib_prefix=no
15294 runpath_var=LD_RUN_PATH
15296 siemens)
15297 need_lib_prefix=no
15299 motorola)
15300 need_lib_prefix=no
15301 need_version=no
15302 shlibpath_overrides_runpath=no
15303 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15305 esac
15308 sysv4*MP*)
15309 if test -d /usr/nec ;then
15310 version_type=linux
15311 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15312 soname_spec='$libname${shared_ext}.$major'
15313 shlibpath_var=LD_LIBRARY_PATH
15317 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15318 version_type=freebsd-elf
15319 need_lib_prefix=no
15320 need_version=no
15321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15322 soname_spec='${libname}${release}${shared_ext}$major'
15323 shlibpath_var=LD_LIBRARY_PATH
15324 shlibpath_overrides_runpath=yes
15325 hardcode_into_libs=yes
15326 if test "$with_gnu_ld" = yes; then
15327 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15328 else
15329 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15330 case $host_os in
15331 sco3.2v5*)
15332 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15334 esac
15336 sys_lib_dlsearch_path_spec='/usr/lib'
15339 tpf*)
15340 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15341 version_type=linux
15342 need_lib_prefix=no
15343 need_version=no
15344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15345 shlibpath_var=LD_LIBRARY_PATH
15346 shlibpath_overrides_runpath=no
15347 hardcode_into_libs=yes
15350 uts4*)
15351 version_type=linux
15352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15353 soname_spec='${libname}${release}${shared_ext}$major'
15354 shlibpath_var=LD_LIBRARY_PATH
15358 dynamic_linker=no
15360 esac
15361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15362 $as_echo "$dynamic_linker" >&6; }
15363 test "$dynamic_linker" = no && can_build_shared=no
15365 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15366 if test "$GCC" = yes; then
15367 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15370 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15371 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15373 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15374 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15415 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15416 hardcode_action_CXX=
15417 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15418 test -n "$runpath_var_CXX" ||
15419 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15421 # We can hardcode non-existent directories.
15422 if test "$hardcode_direct_CXX" != no &&
15423 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15424 # have to relink, otherwise we might link with an installed library
15425 # when we should be linking with a yet-to-be-installed one
15426 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15427 test "$hardcode_minus_L_CXX" != no; then
15428 # Linking always hardcodes the temporary library directory.
15429 hardcode_action_CXX=relink
15430 else
15431 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15432 hardcode_action_CXX=immediate
15434 else
15435 # We cannot hardcode anything, or else we can only hardcode existing
15436 # directories.
15437 hardcode_action_CXX=unsupported
15439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15440 $as_echo "$hardcode_action_CXX" >&6; }
15442 if test "$hardcode_action_CXX" = relink ||
15443 test "$inherit_rpath_CXX" = yes; then
15444 # Fast installation is not supported
15445 enable_fast_install=no
15446 elif test "$shlibpath_overrides_runpath" = yes ||
15447 test "$enable_shared" = no; then
15448 # Fast installation is not necessary
15449 enable_fast_install=needless
15458 fi # test -n "$compiler"
15460 CC=$lt_save_CC
15461 LDCXX=$LD
15462 LD=$lt_save_LD
15463 GCC=$lt_save_GCC
15464 with_gnu_ld=$lt_save_with_gnu_ld
15465 lt_cv_path_LDCXX=$lt_cv_path_LD
15466 lt_cv_path_LD=$lt_save_path_LD
15467 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15468 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15469 fi # test "$_lt_caught_CXX_error" != yes
15471 ac_ext=c
15472 ac_cpp='$CPP $CPPFLAGS'
15473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15489 ac_config_commands="$ac_config_commands libtool"
15494 # Only expand once:
15500 case $host in
15501 *-cygwin* | *-mingw*)
15502 # 'host' will be top-level target in the case of a target lib,
15503 # we must compare to with_cross_host to decide if this is a native
15504 # or cross-compiler and select where to install dlls appropriately.
15505 if test -n "$with_cross_host" &&
15506 test x"$with_cross_host" != x"no"; then
15507 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
15508 else
15509 lt_host_flags='-no-undefined -bindir "$(bindir)"';
15513 lt_host_flags=
15515 esac
15522 # For libtool versioning info, format is CURRENT:REVISION:AGE
15523 libtool_VERSION=1:0:0
15526 XCFLAGS="-D_GNU_SOURCE -Wall -Wextra -fno-exceptions"
15529 if test "${multilib}" = "yes"; then
15530 multilib_arg="--enable-multilib"
15531 else
15532 multilib_arg=
15535 ac_config_files="$ac_config_files Makefile"
15538 if test "x$VTV_SUPPORTED" = "xyes"; then
15539 ac_config_files="$ac_config_files testsuite/Makefile"
15543 case "$target_os" in
15544 cygwin*|mingw32*)
15545 vtv_cygmin="yes"
15548 vtv_cygmin="no"
15550 esac
15552 if test $vtv_cygmin = yes; then
15553 VTV_CYGMIN_TRUE=
15554 VTV_CYGMIN_FALSE='#'
15555 else
15556 VTV_CYGMIN_TRUE='#'
15557 VTV_CYGMIN_FALSE=
15561 cat >confcache <<\_ACEOF
15562 # This file is a shell script that caches the results of configure
15563 # tests run on this system so they can be shared between configure
15564 # scripts and configure runs, see configure's option --config-cache.
15565 # It is not useful on other systems. If it contains results you don't
15566 # want to keep, you may remove or edit it.
15568 # config.status only pays attention to the cache file if you give it
15569 # the --recheck option to rerun configure.
15571 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15572 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15573 # following values.
15575 _ACEOF
15577 # The following way of writing the cache mishandles newlines in values,
15578 # but we know of no workaround that is simple, portable, and efficient.
15579 # So, we kill variables containing newlines.
15580 # Ultrix sh set writes to stderr and can't be redirected directly,
15581 # and sets the high bit in the cache file unless we assign to the vars.
15583 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15584 eval ac_val=\$$ac_var
15585 case $ac_val in #(
15586 *${as_nl}*)
15587 case $ac_var in #(
15588 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15589 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15590 esac
15591 case $ac_var in #(
15592 _ | IFS | as_nl) ;; #(
15593 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15594 *) { eval $ac_var=; unset $ac_var;} ;;
15595 esac ;;
15596 esac
15597 done
15599 (set) 2>&1 |
15600 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15601 *${as_nl}ac_space=\ *)
15602 # `set' does not quote correctly, so add quotes: double-quote
15603 # substitution turns \\\\ into \\, and sed turns \\ into \.
15604 sed -n \
15605 "s/'/'\\\\''/g;
15606 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15607 ;; #(
15609 # `set' quotes correctly as required by POSIX, so do not add quotes.
15610 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15612 esac |
15613 sort
15615 sed '
15616 /^ac_cv_env_/b end
15617 t clear
15618 :clear
15619 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15620 t end
15621 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15622 :end' >>confcache
15623 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15624 if test -w "$cache_file"; then
15625 test "x$cache_file" != "x/dev/null" &&
15626 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15627 $as_echo "$as_me: updating cache $cache_file" >&6;}
15628 cat confcache >$cache_file
15629 else
15630 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15631 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15634 rm -f confcache
15636 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15637 # Let make expand exec_prefix.
15638 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15640 # Transform confdefs.h into DEFS.
15641 # Protect against shell expansion while executing Makefile rules.
15642 # Protect against Makefile macro expansion.
15644 # If the first sed substitution is executed (which looks for macros that
15645 # take arguments), then branch to the quote section. Otherwise,
15646 # look for a macro that doesn't take arguments.
15647 ac_script='
15648 :mline
15649 /\\$/{
15651 s,\\\n,,
15652 b mline
15654 t clear
15655 :clear
15656 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
15657 t quote
15658 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
15659 t quote
15660 b any
15661 :quote
15662 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15663 s/\[/\\&/g
15664 s/\]/\\&/g
15665 s/\$/$$/g
15667 :any
15670 s/^\n//
15671 s/\n/ /g
15675 DEFS=`sed -n "$ac_script" confdefs.h`
15678 ac_libobjs=
15679 ac_ltlibobjs=
15680 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15681 # 1. Remove the extension, and $U if already installed.
15682 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15683 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15684 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15685 # will be set to the directory where LIBOBJS objects are built.
15686 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15687 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15688 done
15689 LIBOBJS=$ac_libobjs
15691 LTLIBOBJS=$ac_ltlibobjs
15694 if test -z "${ENABLE_VTABLE_VERIFY_TRUE}" && test -z "${ENABLE_VTABLE_VERIFY_FALSE}"; then
15695 as_fn_error "conditional \"ENABLE_VTABLE_VERIFY\" was never defined.
15696 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15698 if test -n "$EXEEXT"; then
15699 am__EXEEXT_TRUE=
15700 am__EXEEXT_FALSE='#'
15701 else
15702 am__EXEEXT_TRUE='#'
15703 am__EXEEXT_FALSE=
15706 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15707 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15708 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15710 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15711 as_fn_error "conditional \"AMDEP\" was never defined.
15712 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15714 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15715 as_fn_error "conditional \"am__fastdepCC\" was never defined.
15716 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15718 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15719 as_fn_error "conditional \"am__fastdepCC\" was never defined.
15720 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15722 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15723 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
15724 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15726 if test -z "${VTV_CYGMIN_TRUE}" && test -z "${VTV_CYGMIN_FALSE}"; then
15727 as_fn_error "conditional \"VTV_CYGMIN\" was never defined.
15728 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15731 : ${CONFIG_STATUS=./config.status}
15732 ac_write_fail=0
15733 ac_clean_files_save=$ac_clean_files
15734 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15735 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15736 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15737 as_write_fail=0
15738 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15739 #! $SHELL
15740 # Generated by $as_me.
15741 # Run this file to recreate the current configuration.
15742 # Compiler output produced by configure, useful for debugging
15743 # configure, is in config.log if it exists.
15745 debug=false
15746 ac_cs_recheck=false
15747 ac_cs_silent=false
15749 SHELL=\${CONFIG_SHELL-$SHELL}
15750 export SHELL
15751 _ASEOF
15752 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15753 ## -------------------- ##
15754 ## M4sh Initialization. ##
15755 ## -------------------- ##
15757 # Be more Bourne compatible
15758 DUALCASE=1; export DUALCASE # for MKS sh
15759 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15760 emulate sh
15761 NULLCMD=:
15762 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15763 # is contrary to our usage. Disable this feature.
15764 alias -g '${1+"$@"}'='"$@"'
15765 setopt NO_GLOB_SUBST
15766 else
15767 case `(set -o) 2>/dev/null` in #(
15768 *posix*) :
15769 set -o posix ;; #(
15770 *) :
15772 esac
15776 as_nl='
15778 export as_nl
15779 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15780 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15781 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15782 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15783 # Prefer a ksh shell builtin over an external printf program on Solaris,
15784 # but without wasting forks for bash or zsh.
15785 if test -z "$BASH_VERSION$ZSH_VERSION" \
15786 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15787 as_echo='print -r --'
15788 as_echo_n='print -rn --'
15789 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15790 as_echo='printf %s\n'
15791 as_echo_n='printf %s'
15792 else
15793 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15794 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15795 as_echo_n='/usr/ucb/echo -n'
15796 else
15797 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15798 as_echo_n_body='eval
15799 arg=$1;
15800 case $arg in #(
15801 *"$as_nl"*)
15802 expr "X$arg" : "X\\(.*\\)$as_nl";
15803 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15804 esac;
15805 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15807 export as_echo_n_body
15808 as_echo_n='sh -c $as_echo_n_body as_echo'
15810 export as_echo_body
15811 as_echo='sh -c $as_echo_body as_echo'
15814 # The user is always right.
15815 if test "${PATH_SEPARATOR+set}" != set; then
15816 PATH_SEPARATOR=:
15817 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15818 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15819 PATH_SEPARATOR=';'
15824 # IFS
15825 # We need space, tab and new line, in precisely that order. Quoting is
15826 # there to prevent editors from complaining about space-tab.
15827 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15828 # splitting by setting IFS to empty value.)
15829 IFS=" "" $as_nl"
15831 # Find who we are. Look in the path if we contain no directory separator.
15832 case $0 in #((
15833 *[\\/]* ) as_myself=$0 ;;
15834 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15835 for as_dir in $PATH
15837 IFS=$as_save_IFS
15838 test -z "$as_dir" && as_dir=.
15839 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15840 done
15841 IFS=$as_save_IFS
15844 esac
15845 # We did not find ourselves, most probably we were run as `sh COMMAND'
15846 # in which case we are not to be found in the path.
15847 if test "x$as_myself" = x; then
15848 as_myself=$0
15850 if test ! -f "$as_myself"; then
15851 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15852 exit 1
15855 # Unset variables that we do not need and which cause bugs (e.g. in
15856 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15857 # suppresses any "Segmentation fault" message there. '((' could
15858 # trigger a bug in pdksh 5.2.14.
15859 for as_var in BASH_ENV ENV MAIL MAILPATH
15860 do eval test x\${$as_var+set} = xset \
15861 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15862 done
15863 PS1='$ '
15864 PS2='> '
15865 PS4='+ '
15867 # NLS nuisances.
15868 LC_ALL=C
15869 export LC_ALL
15870 LANGUAGE=C
15871 export LANGUAGE
15873 # CDPATH.
15874 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15877 # as_fn_error ERROR [LINENO LOG_FD]
15878 # ---------------------------------
15879 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15880 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15881 # script with status $?, using 1 if that was 0.
15882 as_fn_error ()
15884 as_status=$?; test $as_status -eq 0 && as_status=1
15885 if test "$3"; then
15886 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15887 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15889 $as_echo "$as_me: error: $1" >&2
15890 as_fn_exit $as_status
15891 } # as_fn_error
15894 # as_fn_set_status STATUS
15895 # -----------------------
15896 # Set $? to STATUS, without forking.
15897 as_fn_set_status ()
15899 return $1
15900 } # as_fn_set_status
15902 # as_fn_exit STATUS
15903 # -----------------
15904 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15905 as_fn_exit ()
15907 set +e
15908 as_fn_set_status $1
15909 exit $1
15910 } # as_fn_exit
15912 # as_fn_unset VAR
15913 # ---------------
15914 # Portably unset VAR.
15915 as_fn_unset ()
15917 { eval $1=; unset $1;}
15919 as_unset=as_fn_unset
15920 # as_fn_append VAR VALUE
15921 # ----------------------
15922 # Append the text in VALUE to the end of the definition contained in VAR. Take
15923 # advantage of any shell optimizations that allow amortized linear growth over
15924 # repeated appends, instead of the typical quadratic growth present in naive
15925 # implementations.
15926 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15927 eval 'as_fn_append ()
15929 eval $1+=\$2
15931 else
15932 as_fn_append ()
15934 eval $1=\$$1\$2
15936 fi # as_fn_append
15938 # as_fn_arith ARG...
15939 # ------------------
15940 # Perform arithmetic evaluation on the ARGs, and store the result in the
15941 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15942 # must be portable across $(()) and expr.
15943 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15944 eval 'as_fn_arith ()
15946 as_val=$(( $* ))
15948 else
15949 as_fn_arith ()
15951 as_val=`expr "$@" || test $? -eq 1`
15953 fi # as_fn_arith
15956 if expr a : '\(a\)' >/dev/null 2>&1 &&
15957 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15958 as_expr=expr
15959 else
15960 as_expr=false
15963 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15964 as_basename=basename
15965 else
15966 as_basename=false
15969 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15970 as_dirname=dirname
15971 else
15972 as_dirname=false
15975 as_me=`$as_basename -- "$0" ||
15976 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15977 X"$0" : 'X\(//\)$' \| \
15978 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15979 $as_echo X/"$0" |
15980 sed '/^.*\/\([^/][^/]*\)\/*$/{
15981 s//\1/
15984 /^X\/\(\/\/\)$/{
15985 s//\1/
15988 /^X\/\(\/\).*/{
15989 s//\1/
15992 s/.*/./; q'`
15994 # Avoid depending upon Character Ranges.
15995 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15996 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15997 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15998 as_cr_digits='0123456789'
15999 as_cr_alnum=$as_cr_Letters$as_cr_digits
16001 ECHO_C= ECHO_N= ECHO_T=
16002 case `echo -n x` in #(((((
16003 -n*)
16004 case `echo 'xy\c'` in
16005 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16006 xy) ECHO_C='\c';;
16007 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16008 ECHO_T=' ';;
16009 esac;;
16011 ECHO_N='-n';;
16012 esac
16014 rm -f conf$$ conf$$.exe conf$$.file
16015 if test -d conf$$.dir; then
16016 rm -f conf$$.dir/conf$$.file
16017 else
16018 rm -f conf$$.dir
16019 mkdir conf$$.dir 2>/dev/null
16021 if (echo >conf$$.file) 2>/dev/null; then
16022 if ln -s conf$$.file conf$$ 2>/dev/null; then
16023 as_ln_s='ln -s'
16024 # ... but there are two gotchas:
16025 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16026 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16027 # In both cases, we have to default to `cp -p'.
16028 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16029 as_ln_s='cp -p'
16030 elif ln conf$$.file conf$$ 2>/dev/null; then
16031 as_ln_s=ln
16032 else
16033 as_ln_s='cp -p'
16035 else
16036 as_ln_s='cp -p'
16038 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16039 rmdir conf$$.dir 2>/dev/null
16042 # as_fn_mkdir_p
16043 # -------------
16044 # Create "$as_dir" as a directory, including parents if necessary.
16045 as_fn_mkdir_p ()
16048 case $as_dir in #(
16049 -*) as_dir=./$as_dir;;
16050 esac
16051 test -d "$as_dir" || eval $as_mkdir_p || {
16052 as_dirs=
16053 while :; do
16054 case $as_dir in #(
16055 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16056 *) as_qdir=$as_dir;;
16057 esac
16058 as_dirs="'$as_qdir' $as_dirs"
16059 as_dir=`$as_dirname -- "$as_dir" ||
16060 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16061 X"$as_dir" : 'X\(//\)[^/]' \| \
16062 X"$as_dir" : 'X\(//\)$' \| \
16063 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16064 $as_echo X"$as_dir" |
16065 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16066 s//\1/
16069 /^X\(\/\/\)[^/].*/{
16070 s//\1/
16073 /^X\(\/\/\)$/{
16074 s//\1/
16077 /^X\(\/\).*/{
16078 s//\1/
16081 s/.*/./; q'`
16082 test -d "$as_dir" && break
16083 done
16084 test -z "$as_dirs" || eval "mkdir $as_dirs"
16085 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16088 } # as_fn_mkdir_p
16089 if mkdir -p . 2>/dev/null; then
16090 as_mkdir_p='mkdir -p "$as_dir"'
16091 else
16092 test -d ./-p && rmdir ./-p
16093 as_mkdir_p=false
16096 if test -x / >/dev/null 2>&1; then
16097 as_test_x='test -x'
16098 else
16099 if ls -dL / >/dev/null 2>&1; then
16100 as_ls_L_option=L
16101 else
16102 as_ls_L_option=
16104 as_test_x='
16105 eval sh -c '\''
16106 if test -d "$1"; then
16107 test -d "$1/.";
16108 else
16109 case $1 in #(
16110 -*)set "./$1";;
16111 esac;
16112 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16113 ???[sx]*):;;*)false;;esac;fi
16114 '\'' sh
16117 as_executable_p=$as_test_x
16119 # Sed expression to map a string onto a valid CPP name.
16120 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16122 # Sed expression to map a string onto a valid variable name.
16123 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16126 exec 6>&1
16127 ## ----------------------------------- ##
16128 ## Main body of $CONFIG_STATUS script. ##
16129 ## ----------------------------------- ##
16130 _ASEOF
16131 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16133 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16134 # Save the log message, to keep $0 and so on meaningful, and to
16135 # report actual input values of CONFIG_FILES etc. instead of their
16136 # values after options handling.
16137 ac_log="
16138 This file was extended by GNU Vtable Verification Runtime Library $as_me 1.0, which was
16139 generated by GNU Autoconf 2.64. Invocation command line was
16141 CONFIG_FILES = $CONFIG_FILES
16142 CONFIG_HEADERS = $CONFIG_HEADERS
16143 CONFIG_LINKS = $CONFIG_LINKS
16144 CONFIG_COMMANDS = $CONFIG_COMMANDS
16145 $ $0 $@
16147 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16150 _ACEOF
16152 case $ac_config_files in *"
16153 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16154 esac
16158 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16159 # Files that config.status was made for.
16160 config_files="$ac_config_files"
16161 config_commands="$ac_config_commands"
16163 _ACEOF
16165 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16166 ac_cs_usage="\
16167 \`$as_me' instantiates files and other configuration actions
16168 from templates according to the current configuration. Unless the files
16169 and actions are specified as TAGs, all are instantiated by default.
16171 Usage: $0 [OPTION]... [TAG]...
16173 -h, --help print this help, then exit
16174 -V, --version print version number and configuration settings, then exit
16175 -q, --quiet, --silent
16176 do not print progress messages
16177 -d, --debug don't remove temporary files
16178 --recheck update $as_me by reconfiguring in the same conditions
16179 --file=FILE[:TEMPLATE]
16180 instantiate the configuration file FILE
16182 Configuration files:
16183 $config_files
16185 Configuration commands:
16186 $config_commands
16188 Report bugs to the package provider.
16189 GNU Vtable Verification Runtime Library home page: <http://www.gnu.org/software/libvtv/>.
16190 General help using GNU software: <http://www.gnu.org/gethelp/>."
16192 _ACEOF
16193 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16194 ac_cs_version="\\
16195 GNU Vtable Verification Runtime Library config.status 1.0
16196 configured by $0, generated by GNU Autoconf 2.64,
16197 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16199 Copyright (C) 2009 Free Software Foundation, Inc.
16200 This config.status script is free software; the Free Software Foundation
16201 gives unlimited permission to copy, distribute and modify it."
16203 ac_pwd='$ac_pwd'
16204 srcdir='$srcdir'
16205 INSTALL='$INSTALL'
16206 MKDIR_P='$MKDIR_P'
16207 AWK='$AWK'
16208 test -n "\$AWK" || AWK=awk
16209 _ACEOF
16211 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16212 # The default lists apply if the user does not specify any file.
16213 ac_need_defaults=:
16214 while test $# != 0
16216 case $1 in
16217 --*=*)
16218 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16219 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16220 ac_shift=:
16223 ac_option=$1
16224 ac_optarg=$2
16225 ac_shift=shift
16227 esac
16229 case $ac_option in
16230 # Handling of the options.
16231 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16232 ac_cs_recheck=: ;;
16233 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16234 $as_echo "$ac_cs_version"; exit ;;
16235 --debug | --debu | --deb | --de | --d | -d )
16236 debug=: ;;
16237 --file | --fil | --fi | --f )
16238 $ac_shift
16239 case $ac_optarg in
16240 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16241 esac
16242 as_fn_append CONFIG_FILES " '$ac_optarg'"
16243 ac_need_defaults=false;;
16244 --he | --h | --help | --hel | -h )
16245 $as_echo "$ac_cs_usage"; exit ;;
16246 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16247 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16248 ac_cs_silent=: ;;
16250 # This is an error.
16251 -*) as_fn_error "unrecognized option: \`$1'
16252 Try \`$0 --help' for more information." ;;
16254 *) as_fn_append ac_config_targets " $1"
16255 ac_need_defaults=false ;;
16257 esac
16258 shift
16259 done
16261 ac_configure_extra_args=
16263 if $ac_cs_silent; then
16264 exec 6>/dev/null
16265 ac_configure_extra_args="$ac_configure_extra_args --silent"
16268 _ACEOF
16269 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16270 if \$ac_cs_recheck; then
16271 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16272 shift
16273 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16274 CONFIG_SHELL='$SHELL'
16275 export CONFIG_SHELL
16276 exec "\$@"
16279 _ACEOF
16280 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16281 exec 5>>config.log
16283 echo
16284 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16285 ## Running $as_me. ##
16286 _ASBOX
16287 $as_echo "$ac_log"
16288 } >&5
16290 _ACEOF
16291 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16293 # INIT-COMMANDS
16296 srcdir="$srcdir"
16297 host="$host"
16298 target="$target"
16299 with_multisubdir="$with_multisubdir"
16300 with_multisrctop="$with_multisrctop"
16301 with_target_subdir="$with_target_subdir"
16302 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16303 multi_basedir="$multi_basedir"
16304 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16305 CC="$CC"
16306 CXX="$CXX"
16307 GFORTRAN="$GFORTRAN"
16308 GCJ="$GCJ"
16309 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16312 # The HP-UX ksh and POSIX shell print the target directory to stdout
16313 # if CDPATH is set.
16314 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16316 sed_quote_subst='$sed_quote_subst'
16317 double_quote_subst='$double_quote_subst'
16318 delay_variable_subst='$delay_variable_subst'
16319 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16320 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16321 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16322 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16323 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16324 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16325 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16326 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16327 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16328 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16329 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16330 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16331 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16332 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16333 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16334 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16335 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16336 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16337 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16338 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16339 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16340 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16341 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16342 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16343 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16344 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16345 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16346 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16347 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16348 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16349 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16350 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16351 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16352 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16353 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16354 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16355 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16356 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16357 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16358 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16359 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16360 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16361 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16362 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16363 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16364 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16365 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16366 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16367 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"`'
16368 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16369 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16370 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16371 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16372 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16373 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16374 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16375 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16376 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16377 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16378 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16379 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16380 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16381 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16382 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16383 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16384 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16385 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16386 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16387 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16388 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16389 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16390 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16391 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16392 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16393 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16394 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16395 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16396 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16397 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16398 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16399 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16400 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16401 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16402 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16403 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16404 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16405 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16406 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16407 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16408 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16409 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16410 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16411 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16412 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16413 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16414 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16415 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16416 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16417 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16418 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16419 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16420 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16421 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16422 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16423 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16424 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16425 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16426 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16427 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16428 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16429 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16430 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16431 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16432 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16433 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16434 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16435 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16436 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16437 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16438 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16439 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
16440 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
16441 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
16442 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
16443 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
16444 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
16445 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
16446 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
16447 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16448 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16449 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
16450 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
16451 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
16452 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
16453 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
16454 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
16455 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
16456 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
16457 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
16458 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16459 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16460 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
16461 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16462 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16463 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16464 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16465 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16466 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16467 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
16468 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16469 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16470 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16471 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
16472 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
16473 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
16474 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
16475 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
16476 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
16477 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
16478 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
16479 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
16480 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
16481 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
16482 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16483 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16484 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16485 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16486 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
16487 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
16488 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
16489 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16490 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16491 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
16492 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
16493 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
16495 LTCC='$LTCC'
16496 LTCFLAGS='$LTCFLAGS'
16497 compiler='$compiler_DEFAULT'
16499 # A function that is used when there is no print builtin or printf.
16500 func_fallback_echo ()
16502 eval 'cat <<_LTECHO_EOF
16504 _LTECHO_EOF'
16507 # Quote evaled strings.
16508 for var in SHELL \
16509 ECHO \
16510 SED \
16511 GREP \
16512 EGREP \
16513 FGREP \
16514 LD \
16515 NM \
16516 LN_S \
16517 lt_SP2NL \
16518 lt_NL2SP \
16519 reload_flag \
16520 OBJDUMP \
16521 deplibs_check_method \
16522 file_magic_cmd \
16523 AR \
16524 AR_FLAGS \
16525 STRIP \
16526 RANLIB \
16527 CC \
16528 CFLAGS \
16529 compiler \
16530 lt_cv_sys_global_symbol_pipe \
16531 lt_cv_sys_global_symbol_to_cdecl \
16532 lt_cv_sys_global_symbol_to_c_name_address \
16533 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16534 lt_prog_compiler_no_builtin_flag \
16535 lt_prog_compiler_wl \
16536 lt_prog_compiler_pic \
16537 lt_prog_compiler_static \
16538 lt_cv_prog_compiler_c_o \
16539 need_locks \
16540 DSYMUTIL \
16541 NMEDIT \
16542 LIPO \
16543 OTOOL \
16544 OTOOL64 \
16545 shrext_cmds \
16546 export_dynamic_flag_spec \
16547 whole_archive_flag_spec \
16548 compiler_needs_object \
16549 with_gnu_ld \
16550 allow_undefined_flag \
16551 no_undefined_flag \
16552 hardcode_libdir_flag_spec \
16553 hardcode_libdir_flag_spec_ld \
16554 hardcode_libdir_separator \
16555 fix_srcfile_path \
16556 exclude_expsyms \
16557 include_expsyms \
16558 file_list_spec \
16559 variables_saved_for_relink \
16560 libname_spec \
16561 library_names_spec \
16562 soname_spec \
16563 install_override_mode \
16564 finish_eval \
16565 old_striplib \
16566 striplib \
16567 compiler_lib_search_dirs \
16568 predep_objects \
16569 postdep_objects \
16570 predeps \
16571 postdeps \
16572 compiler_lib_search_path \
16573 LD_CXX \
16574 reload_flag_CXX \
16575 compiler_CXX \
16576 lt_prog_compiler_no_builtin_flag_CXX \
16577 lt_prog_compiler_wl_CXX \
16578 lt_prog_compiler_pic_CXX \
16579 lt_prog_compiler_static_CXX \
16580 lt_cv_prog_compiler_c_o_CXX \
16581 export_dynamic_flag_spec_CXX \
16582 whole_archive_flag_spec_CXX \
16583 compiler_needs_object_CXX \
16584 with_gnu_ld_CXX \
16585 allow_undefined_flag_CXX \
16586 no_undefined_flag_CXX \
16587 hardcode_libdir_flag_spec_CXX \
16588 hardcode_libdir_flag_spec_ld_CXX \
16589 hardcode_libdir_separator_CXX \
16590 fix_srcfile_path_CXX \
16591 exclude_expsyms_CXX \
16592 include_expsyms_CXX \
16593 file_list_spec_CXX \
16594 compiler_lib_search_dirs_CXX \
16595 predep_objects_CXX \
16596 postdep_objects_CXX \
16597 predeps_CXX \
16598 postdeps_CXX \
16599 compiler_lib_search_path_CXX; do
16600 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16601 *[\\\\\\\`\\"\\\$]*)
16602 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16605 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16607 esac
16608 done
16610 # Double-quote double-evaled strings.
16611 for var in reload_cmds \
16612 old_postinstall_cmds \
16613 old_postuninstall_cmds \
16614 old_archive_cmds \
16615 extract_expsyms_cmds \
16616 old_archive_from_new_cmds \
16617 old_archive_from_expsyms_cmds \
16618 archive_cmds \
16619 archive_expsym_cmds \
16620 module_cmds \
16621 module_expsym_cmds \
16622 export_symbols_cmds \
16623 prelink_cmds \
16624 postinstall_cmds \
16625 postuninstall_cmds \
16626 finish_cmds \
16627 sys_lib_search_path_spec \
16628 sys_lib_dlsearch_path_spec \
16629 reload_cmds_CXX \
16630 old_archive_cmds_CXX \
16631 old_archive_from_new_cmds_CXX \
16632 old_archive_from_expsyms_cmds_CXX \
16633 archive_cmds_CXX \
16634 archive_expsym_cmds_CXX \
16635 module_cmds_CXX \
16636 module_expsym_cmds_CXX \
16637 export_symbols_cmds_CXX \
16638 prelink_cmds_CXX; do
16639 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16640 *[\\\\\\\`\\"\\\$]*)
16641 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16644 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16646 esac
16647 done
16649 ac_aux_dir='$ac_aux_dir'
16650 xsi_shell='$xsi_shell'
16651 lt_shell_append='$lt_shell_append'
16653 # See if we are running on zsh, and set the options which allow our
16654 # commands through without removal of \ escapes INIT.
16655 if test -n "\${ZSH_VERSION+set}" ; then
16656 setopt NO_GLOB_SUBST
16660 PACKAGE='$PACKAGE'
16661 VERSION='$VERSION'
16662 TIMESTAMP='$TIMESTAMP'
16663 RM='$RM'
16664 ofile='$ofile'
16671 _ACEOF
16673 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16675 # Handling of arguments.
16676 for ac_config_target in $ac_config_targets
16678 case $ac_config_target in
16679 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16680 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16681 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16682 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16683 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16685 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16686 esac
16687 done
16690 # If the user did not use the arguments to specify the items to instantiate,
16691 # then the envvar interface is used. Set only those that are not.
16692 # We use the long form for the default assignment because of an extremely
16693 # bizarre bug on SunOS 4.1.3.
16694 if $ac_need_defaults; then
16695 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16696 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16699 # Have a temporary directory for convenience. Make it in the build tree
16700 # simply because there is no reason against having it here, and in addition,
16701 # creating and moving files from /tmp can sometimes cause problems.
16702 # Hook for its removal unless debugging.
16703 # Note that there is a small window in which the directory will not be cleaned:
16704 # after its creation but before its name has been assigned to `$tmp'.
16705 $debug ||
16707 tmp=
16708 trap 'exit_status=$?
16709 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16711 trap 'as_fn_exit 1' 1 2 13 15
16713 # Create a (secure) tmp directory for tmp files.
16716 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16717 test -n "$tmp" && test -d "$tmp"
16718 } ||
16720 tmp=./conf$$-$RANDOM
16721 (umask 077 && mkdir "$tmp")
16722 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16724 # Set up the scripts for CONFIG_FILES section.
16725 # No need to generate them if there are no CONFIG_FILES.
16726 # This happens for instance with `./config.status config.h'.
16727 if test -n "$CONFIG_FILES"; then
16730 ac_cr=`echo X | tr X '\015'`
16731 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16732 # But we know of no other shell where ac_cr would be empty at this
16733 # point, so we can use a bashism as a fallback.
16734 if test "x$ac_cr" = x; then
16735 eval ac_cr=\$\'\\r\'
16737 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16738 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16739 ac_cs_awk_cr='\r'
16740 else
16741 ac_cs_awk_cr=$ac_cr
16744 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16745 _ACEOF
16749 echo "cat >conf$$subs.awk <<_ACEOF" &&
16750 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16751 echo "_ACEOF"
16752 } >conf$$subs.sh ||
16753 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16754 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16755 ac_delim='%!_!# '
16756 for ac_last_try in false false false false false :; do
16757 . ./conf$$subs.sh ||
16758 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16760 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16761 if test $ac_delim_n = $ac_delim_num; then
16762 break
16763 elif $ac_last_try; then
16764 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16765 else
16766 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16768 done
16769 rm -f conf$$subs.sh
16771 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16772 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16773 _ACEOF
16774 sed -n '
16776 s/^/S["/; s/!.*/"]=/
16779 s/^[^!]*!//
16780 :repl
16781 t repl
16782 s/'"$ac_delim"'$//
16783 t delim
16786 s/\(.\{148\}\).*/\1/
16787 t more1
16788 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16791 b repl
16792 :more1
16793 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16796 s/.\{148\}//
16797 t nl
16798 :delim
16800 s/\(.\{148\}\).*/\1/
16801 t more2
16802 s/["\\]/\\&/g; s/^/"/; s/$/"/
16805 :more2
16806 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16809 s/.\{148\}//
16810 t delim
16811 ' <conf$$subs.awk | sed '
16812 /^[^""]/{
16814 s/\n//
16816 ' >>$CONFIG_STATUS || ac_write_fail=1
16817 rm -f conf$$subs.awk
16818 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16819 _ACAWK
16820 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16821 for (key in S) S_is_set[key] = 1
16822 FS = "\a"
16826 line = $ 0
16827 nfields = split(line, field, "@")
16828 substed = 0
16829 len = length(field[1])
16830 for (i = 2; i < nfields; i++) {
16831 key = field[i]
16832 keylen = length(key)
16833 if (S_is_set[key]) {
16834 value = S[key]
16835 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16836 len += length(value) + length(field[++i])
16837 substed = 1
16838 } else
16839 len += 1 + keylen
16842 print line
16845 _ACAWK
16846 _ACEOF
16847 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16848 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16849 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16850 else
16852 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16853 || as_fn_error "could not setup config files machinery" "$LINENO" 5
16854 _ACEOF
16856 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16857 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16858 # trailing colons and then remove the whole line if VPATH becomes empty
16859 # (actually we leave an empty line to preserve line numbers).
16860 if test "x$srcdir" = x.; then
16861 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16862 s/:*\$(srcdir):*/:/
16863 s/:*\${srcdir}:*/:/
16864 s/:*@srcdir@:*/:/
16865 s/^\([^=]*=[ ]*\):*/\1/
16866 s/:*$//
16867 s/^[^=]*=[ ]*$//
16871 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16872 fi # test -n "$CONFIG_FILES"
16875 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
16876 shift
16877 for ac_tag
16879 case $ac_tag in
16880 :[FHLC]) ac_mode=$ac_tag; continue;;
16881 esac
16882 case $ac_mode$ac_tag in
16883 :[FHL]*:*);;
16884 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16885 :[FH]-) ac_tag=-:-;;
16886 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16887 esac
16888 ac_save_IFS=$IFS
16889 IFS=:
16890 set x $ac_tag
16891 IFS=$ac_save_IFS
16892 shift
16893 ac_file=$1
16894 shift
16896 case $ac_mode in
16897 :L) ac_source=$1;;
16898 :[FH])
16899 ac_file_inputs=
16900 for ac_f
16902 case $ac_f in
16903 -) ac_f="$tmp/stdin";;
16904 *) # Look for the file first in the build tree, then in the source tree
16905 # (if the path is not absolute). The absolute path cannot be DOS-style,
16906 # because $ac_f cannot contain `:'.
16907 test -f "$ac_f" ||
16908 case $ac_f in
16909 [\\/$]*) false;;
16910 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16911 esac ||
16912 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16913 esac
16914 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16915 as_fn_append ac_file_inputs " '$ac_f'"
16916 done
16918 # Let's still pretend it is `configure' which instantiates (i.e., don't
16919 # use $as_me), people would be surprised to read:
16920 # /* config.h. Generated by config.status. */
16921 configure_input='Generated from '`
16922 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16923 `' by configure.'
16924 if test x"$ac_file" != x-; then
16925 configure_input="$ac_file. $configure_input"
16926 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16927 $as_echo "$as_me: creating $ac_file" >&6;}
16929 # Neutralize special characters interpreted by sed in replacement strings.
16930 case $configure_input in #(
16931 *\&* | *\|* | *\\* )
16932 ac_sed_conf_input=`$as_echo "$configure_input" |
16933 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16934 *) ac_sed_conf_input=$configure_input;;
16935 esac
16937 case $ac_tag in
16938 *:-:* | *:-) cat >"$tmp/stdin" \
16939 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16940 esac
16942 esac
16944 ac_dir=`$as_dirname -- "$ac_file" ||
16945 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16946 X"$ac_file" : 'X\(//\)[^/]' \| \
16947 X"$ac_file" : 'X\(//\)$' \| \
16948 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16949 $as_echo X"$ac_file" |
16950 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16951 s//\1/
16954 /^X\(\/\/\)[^/].*/{
16955 s//\1/
16958 /^X\(\/\/\)$/{
16959 s//\1/
16962 /^X\(\/\).*/{
16963 s//\1/
16966 s/.*/./; q'`
16967 as_dir="$ac_dir"; as_fn_mkdir_p
16968 ac_builddir=.
16970 case "$ac_dir" in
16971 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16973 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16974 # A ".." for each directory in $ac_dir_suffix.
16975 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16976 case $ac_top_builddir_sub in
16977 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16978 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16979 esac ;;
16980 esac
16981 ac_abs_top_builddir=$ac_pwd
16982 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16983 # for backward compatibility:
16984 ac_top_builddir=$ac_top_build_prefix
16986 case $srcdir in
16987 .) # We are building in place.
16988 ac_srcdir=.
16989 ac_top_srcdir=$ac_top_builddir_sub
16990 ac_abs_top_srcdir=$ac_pwd ;;
16991 [\\/]* | ?:[\\/]* ) # Absolute name.
16992 ac_srcdir=$srcdir$ac_dir_suffix;
16993 ac_top_srcdir=$srcdir
16994 ac_abs_top_srcdir=$srcdir ;;
16995 *) # Relative name.
16996 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16997 ac_top_srcdir=$ac_top_build_prefix$srcdir
16998 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16999 esac
17000 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17003 case $ac_mode in
17006 # CONFIG_FILE
17009 case $INSTALL in
17010 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17011 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17012 esac
17013 ac_MKDIR_P=$MKDIR_P
17014 case $MKDIR_P in
17015 [\\/$]* | ?:[\\/]* ) ;;
17016 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17017 esac
17018 _ACEOF
17020 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17021 # If the template does not know about datarootdir, expand it.
17022 # FIXME: This hack should be removed a few years after 2.60.
17023 ac_datarootdir_hack=; ac_datarootdir_seen=
17024 ac_sed_dataroot='
17025 /datarootdir/ {
17029 /@datadir@/p
17030 /@docdir@/p
17031 /@infodir@/p
17032 /@localedir@/p
17033 /@mandir@/p'
17034 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17035 *datarootdir*) ac_datarootdir_seen=yes;;
17036 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17038 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17039 _ACEOF
17040 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17041 ac_datarootdir_hack='
17042 s&@datadir@&$datadir&g
17043 s&@docdir@&$docdir&g
17044 s&@infodir@&$infodir&g
17045 s&@localedir@&$localedir&g
17046 s&@mandir@&$mandir&g
17047 s&\\\${datarootdir}&$datarootdir&g' ;;
17048 esac
17049 _ACEOF
17051 # Neutralize VPATH when `$srcdir' = `.'.
17052 # Shell code in configure.ac might set extrasub.
17053 # FIXME: do we really want to maintain this feature?
17054 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17055 ac_sed_extra="$ac_vpsub
17056 $extrasub
17057 _ACEOF
17058 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17060 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17061 s|@configure_input@|$ac_sed_conf_input|;t t
17062 s&@top_builddir@&$ac_top_builddir_sub&;t t
17063 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17064 s&@srcdir@&$ac_srcdir&;t t
17065 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17066 s&@top_srcdir@&$ac_top_srcdir&;t t
17067 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17068 s&@builddir@&$ac_builddir&;t t
17069 s&@abs_builddir@&$ac_abs_builddir&;t t
17070 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17071 s&@INSTALL@&$ac_INSTALL&;t t
17072 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17073 $ac_datarootdir_hack
17075 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17076 || as_fn_error "could not create $ac_file" "$LINENO" 5
17078 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17079 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17080 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17082 which seems to be undefined. Please make sure it is defined." >&5
17083 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17084 which seems to be undefined. Please make sure it is defined." >&2;}
17086 rm -f "$tmp/stdin"
17087 case $ac_file in
17088 -) cat "$tmp/out" && rm -f "$tmp/out";;
17089 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17090 esac \
17091 || as_fn_error "could not create $ac_file" "$LINENO" 5
17095 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17096 $as_echo "$as_me: executing $ac_file commands" >&6;}
17098 esac
17101 case $ac_file$ac_mode in
17102 "default-1":C)
17103 # Only add multilib support code if we just rebuilt the top-level
17104 # Makefile.
17105 case " $CONFIG_FILES " in
17106 *" Makefile "*)
17107 ac_file=Makefile . ${multi_basedir}/config-ml.in
17109 esac ;;
17110 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17111 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17112 # are listed without --file. Let's play safe and only enable the eval
17113 # if we detect the quoting.
17114 case $CONFIG_FILES in
17115 *\'*) eval set x "$CONFIG_FILES" ;;
17116 *) set x $CONFIG_FILES ;;
17117 esac
17118 shift
17119 for mf
17121 # Strip MF so we end up with the name of the file.
17122 mf=`echo "$mf" | sed -e 's/:.*$//'`
17123 # Check whether this is an Automake generated Makefile or not.
17124 # We used to match only the files named `Makefile.in', but
17125 # some people rename them; so instead we look at the file content.
17126 # Grep'ing the first line is not enough: some people post-process
17127 # each Makefile.in and add a new line on top of each file to say so.
17128 # Grep'ing the whole file is not good either: AIX grep has a line
17129 # limit of 2048, but all sed's we know have understand at least 4000.
17130 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17131 dirpart=`$as_dirname -- "$mf" ||
17132 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17133 X"$mf" : 'X\(//\)[^/]' \| \
17134 X"$mf" : 'X\(//\)$' \| \
17135 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17136 $as_echo X"$mf" |
17137 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17138 s//\1/
17141 /^X\(\/\/\)[^/].*/{
17142 s//\1/
17145 /^X\(\/\/\)$/{
17146 s//\1/
17149 /^X\(\/\).*/{
17150 s//\1/
17153 s/.*/./; q'`
17154 else
17155 continue
17157 # Extract the definition of DEPDIR, am__include, and am__quote
17158 # from the Makefile without running `make'.
17159 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17160 test -z "$DEPDIR" && continue
17161 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17162 test -z "am__include" && continue
17163 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17164 # When using ansi2knr, U may be empty or an underscore; expand it
17165 U=`sed -n 's/^U = //p' < "$mf"`
17166 # Find all dependency output files, they are included files with
17167 # $(DEPDIR) in their names. We invoke sed twice because it is the
17168 # simplest approach to changing $(DEPDIR) to its actual value in the
17169 # expansion.
17170 for file in `sed -n "
17171 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17172 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17173 # Make sure the directory exists.
17174 test -f "$dirpart/$file" && continue
17175 fdir=`$as_dirname -- "$file" ||
17176 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17177 X"$file" : 'X\(//\)[^/]' \| \
17178 X"$file" : 'X\(//\)$' \| \
17179 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17180 $as_echo X"$file" |
17181 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17182 s//\1/
17185 /^X\(\/\/\)[^/].*/{
17186 s//\1/
17189 /^X\(\/\/\)$/{
17190 s//\1/
17193 /^X\(\/\).*/{
17194 s//\1/
17197 s/.*/./; q'`
17198 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17199 # echo "creating $dirpart/$file"
17200 echo '# dummy' > "$dirpart/$file"
17201 done
17202 done
17205 "libtool":C)
17207 # See if we are running on zsh, and set the options which allow our
17208 # commands through without removal of \ escapes.
17209 if test -n "${ZSH_VERSION+set}" ; then
17210 setopt NO_GLOB_SUBST
17213 cfgfile="${ofile}T"
17214 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17215 $RM "$cfgfile"
17217 cat <<_LT_EOF >> "$cfgfile"
17218 #! $SHELL
17220 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17221 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17222 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17223 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17225 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17226 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17227 # Written by Gordon Matzigkeit, 1996
17229 # This file is part of GNU Libtool.
17231 # GNU Libtool is free software; you can redistribute it and/or
17232 # modify it under the terms of the GNU General Public License as
17233 # published by the Free Software Foundation; either version 2 of
17234 # the License, or (at your option) any later version.
17236 # As a special exception to the GNU General Public License,
17237 # if you distribute this file as part of a program or library that
17238 # is built using GNU Libtool, you may include this file under the
17239 # same distribution terms that you use for the rest of that program.
17241 # GNU Libtool is distributed in the hope that it will be useful,
17242 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17243 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17244 # GNU General Public License for more details.
17246 # You should have received a copy of the GNU General Public License
17247 # along with GNU Libtool; see the file COPYING. If not, a copy
17248 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17249 # obtained by writing to the Free Software Foundation, Inc.,
17250 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17253 # The names of the tagged configurations supported by this script.
17254 available_tags="CXX "
17256 # ### BEGIN LIBTOOL CONFIG
17258 # Which release of libtool.m4 was used?
17259 macro_version=$macro_version
17260 macro_revision=$macro_revision
17262 # Whether or not to build shared libraries.
17263 build_libtool_libs=$enable_shared
17265 # Whether or not to build static libraries.
17266 build_old_libs=$enable_static
17268 # What type of objects to build.
17269 pic_mode=$pic_mode
17271 # Whether or not to optimize for fast installation.
17272 fast_install=$enable_fast_install
17274 # Shell to use when invoking shell scripts.
17275 SHELL=$lt_SHELL
17277 # An echo program that protects backslashes.
17278 ECHO=$lt_ECHO
17280 # The host system.
17281 host_alias=$host_alias
17282 host=$host
17283 host_os=$host_os
17285 # The build system.
17286 build_alias=$build_alias
17287 build=$build
17288 build_os=$build_os
17290 # A sed program that does not truncate output.
17291 SED=$lt_SED
17293 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17294 Xsed="\$SED -e 1s/^X//"
17296 # A grep program that handles long lines.
17297 GREP=$lt_GREP
17299 # An ERE matcher.
17300 EGREP=$lt_EGREP
17302 # A literal string matcher.
17303 FGREP=$lt_FGREP
17305 # A BSD- or MS-compatible name lister.
17306 NM=$lt_NM
17308 # Whether we need soft or hard links.
17309 LN_S=$lt_LN_S
17311 # What is the maximum length of a command?
17312 max_cmd_len=$max_cmd_len
17314 # Object file suffix (normally "o").
17315 objext=$ac_objext
17317 # Executable file suffix (normally "").
17318 exeext=$exeext
17320 # whether the shell understands "unset".
17321 lt_unset=$lt_unset
17323 # turn spaces into newlines.
17324 SP2NL=$lt_lt_SP2NL
17326 # turn newlines into spaces.
17327 NL2SP=$lt_lt_NL2SP
17329 # An object symbol dumper.
17330 OBJDUMP=$lt_OBJDUMP
17332 # Method to check whether dependent libraries are shared objects.
17333 deplibs_check_method=$lt_deplibs_check_method
17335 # Command to use when deplibs_check_method == "file_magic".
17336 file_magic_cmd=$lt_file_magic_cmd
17338 # The archiver.
17339 AR=$lt_AR
17340 AR_FLAGS=$lt_AR_FLAGS
17342 # A symbol stripping program.
17343 STRIP=$lt_STRIP
17345 # Commands used to install an old-style archive.
17346 RANLIB=$lt_RANLIB
17347 old_postinstall_cmds=$lt_old_postinstall_cmds
17348 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17350 # Whether to use a lock for old archive extraction.
17351 lock_old_archive_extraction=$lock_old_archive_extraction
17353 # A C compiler.
17354 LTCC=$lt_CC
17356 # LTCC compiler flags.
17357 LTCFLAGS=$lt_CFLAGS
17359 # Take the output of nm and produce a listing of raw symbols and C names.
17360 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17362 # Transform the output of nm in a proper C declaration.
17363 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17365 # Transform the output of nm in a C name address pair.
17366 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17368 # Transform the output of nm in a C name address pair when lib prefix is needed.
17369 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17371 # The name of the directory that contains temporary libtool files.
17372 objdir=$objdir
17374 # Used to examine libraries when file_magic_cmd begins with "file".
17375 MAGIC_CMD=$MAGIC_CMD
17377 # Must we lock files when doing compilation?
17378 need_locks=$lt_need_locks
17380 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17381 DSYMUTIL=$lt_DSYMUTIL
17383 # Tool to change global to local symbols on Mac OS X.
17384 NMEDIT=$lt_NMEDIT
17386 # Tool to manipulate fat objects and archives on Mac OS X.
17387 LIPO=$lt_LIPO
17389 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17390 OTOOL=$lt_OTOOL
17392 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17393 OTOOL64=$lt_OTOOL64
17395 # Old archive suffix (normally "a").
17396 libext=$libext
17398 # Shared library suffix (normally ".so").
17399 shrext_cmds=$lt_shrext_cmds
17401 # The commands to extract the exported symbol list from a shared archive.
17402 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17404 # Variables whose values should be saved in libtool wrapper scripts and
17405 # restored at link time.
17406 variables_saved_for_relink=$lt_variables_saved_for_relink
17408 # Do we need the "lib" prefix for modules?
17409 need_lib_prefix=$need_lib_prefix
17411 # Do we need a version for libraries?
17412 need_version=$need_version
17414 # Library versioning type.
17415 version_type=$version_type
17417 # Shared library runtime path variable.
17418 runpath_var=$runpath_var
17420 # Shared library path variable.
17421 shlibpath_var=$shlibpath_var
17423 # Is shlibpath searched before the hard-coded library search path?
17424 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17426 # Format of library name prefix.
17427 libname_spec=$lt_libname_spec
17429 # List of archive names. First name is the real one, the rest are links.
17430 # The last name is the one that the linker finds with -lNAME
17431 library_names_spec=$lt_library_names_spec
17433 # The coded name of the library, if different from the real name.
17434 soname_spec=$lt_soname_spec
17436 # Permission mode override for installation of shared libraries.
17437 install_override_mode=$lt_install_override_mode
17439 # Command to use after installation of a shared archive.
17440 postinstall_cmds=$lt_postinstall_cmds
17442 # Command to use after uninstallation of a shared archive.
17443 postuninstall_cmds=$lt_postuninstall_cmds
17445 # Commands used to finish a libtool library installation in a directory.
17446 finish_cmds=$lt_finish_cmds
17448 # As "finish_cmds", except a single script fragment to be evaled but
17449 # not shown.
17450 finish_eval=$lt_finish_eval
17452 # Whether we should hardcode library paths into libraries.
17453 hardcode_into_libs=$hardcode_into_libs
17455 # Compile-time system search path for libraries.
17456 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17458 # Run-time system search path for libraries.
17459 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17461 # Whether dlopen is supported.
17462 dlopen_support=$enable_dlopen
17464 # Whether dlopen of programs is supported.
17465 dlopen_self=$enable_dlopen_self
17467 # Whether dlopen of statically linked programs is supported.
17468 dlopen_self_static=$enable_dlopen_self_static
17470 # Commands to strip libraries.
17471 old_striplib=$lt_old_striplib
17472 striplib=$lt_striplib
17475 # The linker used to build libraries.
17476 LD=$lt_LD
17478 # How to create reloadable object files.
17479 reload_flag=$lt_reload_flag
17480 reload_cmds=$lt_reload_cmds
17482 # Commands used to build an old-style archive.
17483 old_archive_cmds=$lt_old_archive_cmds
17485 # A language specific compiler.
17486 CC=$lt_compiler
17488 # Is the compiler the GNU compiler?
17489 with_gcc=$GCC
17491 # Compiler flag to turn off builtin functions.
17492 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17494 # How to pass a linker flag through the compiler.
17495 wl=$lt_lt_prog_compiler_wl
17497 # Additional compiler flags for building library objects.
17498 pic_flag=$lt_lt_prog_compiler_pic
17500 # Compiler flag to prevent dynamic linking.
17501 link_static_flag=$lt_lt_prog_compiler_static
17503 # Does compiler simultaneously support -c and -o options?
17504 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17506 # Whether or not to add -lc for building shared libraries.
17507 build_libtool_need_lc=$archive_cmds_need_lc
17509 # Whether or not to disallow shared libs when runtime libs are static.
17510 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17512 # Compiler flag to allow reflexive dlopens.
17513 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17515 # Compiler flag to generate shared objects directly from archives.
17516 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17518 # Whether the compiler copes with passing no objects directly.
17519 compiler_needs_object=$lt_compiler_needs_object
17521 # Create an old-style archive from a shared archive.
17522 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17524 # Create a temporary old-style archive to link instead of a shared archive.
17525 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17527 # Commands used to build a shared archive.
17528 archive_cmds=$lt_archive_cmds
17529 archive_expsym_cmds=$lt_archive_expsym_cmds
17531 # Commands used to build a loadable module if different from building
17532 # a shared archive.
17533 module_cmds=$lt_module_cmds
17534 module_expsym_cmds=$lt_module_expsym_cmds
17536 # Whether we are building with GNU ld or not.
17537 with_gnu_ld=$lt_with_gnu_ld
17539 # Flag that allows shared libraries with undefined symbols to be built.
17540 allow_undefined_flag=$lt_allow_undefined_flag
17542 # Flag that enforces no undefined symbols.
17543 no_undefined_flag=$lt_no_undefined_flag
17545 # Flag to hardcode \$libdir into a binary during linking.
17546 # This must work even if \$libdir does not exist
17547 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17549 # If ld is used when linking, flag to hardcode \$libdir into a binary
17550 # during linking. This must work even if \$libdir does not exist.
17551 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17553 # Whether we need a single "-rpath" flag with a separated argument.
17554 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17556 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17557 # DIR into the resulting binary.
17558 hardcode_direct=$hardcode_direct
17560 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17561 # DIR into the resulting binary and the resulting library dependency is
17562 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17563 # library is relocated.
17564 hardcode_direct_absolute=$hardcode_direct_absolute
17566 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17567 # into the resulting binary.
17568 hardcode_minus_L=$hardcode_minus_L
17570 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17571 # into the resulting binary.
17572 hardcode_shlibpath_var=$hardcode_shlibpath_var
17574 # Set to "yes" if building a shared library automatically hardcodes DIR
17575 # into the library and all subsequent libraries and executables linked
17576 # against it.
17577 hardcode_automatic=$hardcode_automatic
17579 # Set to yes if linker adds runtime paths of dependent libraries
17580 # to runtime path list.
17581 inherit_rpath=$inherit_rpath
17583 # Whether libtool must link a program against all its dependency libraries.
17584 link_all_deplibs=$link_all_deplibs
17586 # Fix the shell variable \$srcfile for the compiler.
17587 fix_srcfile_path=$lt_fix_srcfile_path
17589 # Set to "yes" if exported symbols are required.
17590 always_export_symbols=$always_export_symbols
17592 # The commands to list exported symbols.
17593 export_symbols_cmds=$lt_export_symbols_cmds
17595 # Symbols that should not be listed in the preloaded symbols.
17596 exclude_expsyms=$lt_exclude_expsyms
17598 # Symbols that must always be exported.
17599 include_expsyms=$lt_include_expsyms
17601 # Commands necessary for linking programs (against libraries) with templates.
17602 prelink_cmds=$lt_prelink_cmds
17604 # Specify filename containing input files.
17605 file_list_spec=$lt_file_list_spec
17607 # How to hardcode a shared library path into an executable.
17608 hardcode_action=$hardcode_action
17610 # The directories searched by this compiler when creating a shared library.
17611 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17613 # Dependencies to place before and after the objects being linked to
17614 # create a shared library.
17615 predep_objects=$lt_predep_objects
17616 postdep_objects=$lt_postdep_objects
17617 predeps=$lt_predeps
17618 postdeps=$lt_postdeps
17620 # The library search path used internally by the compiler when linking
17621 # a shared library.
17622 compiler_lib_search_path=$lt_compiler_lib_search_path
17624 # ### END LIBTOOL CONFIG
17626 _LT_EOF
17628 case $host_os in
17629 aix3*)
17630 cat <<\_LT_EOF >> "$cfgfile"
17631 # AIX sometimes has problems with the GCC collect2 program. For some
17632 # reason, if we set the COLLECT_NAMES environment variable, the problems
17633 # vanish in a puff of smoke.
17634 if test "X${COLLECT_NAMES+set}" != Xset; then
17635 COLLECT_NAMES=
17636 export COLLECT_NAMES
17638 _LT_EOF
17640 esac
17643 ltmain="$ac_aux_dir/ltmain.sh"
17646 # We use sed instead of cat because bash on DJGPP gets confused if
17647 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17648 # text mode, it properly converts lines to CR/LF. This bash problem
17649 # is reportedly fixed, but why not run on old versions too?
17650 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17651 || (rm -f "$cfgfile"; exit 1)
17653 case $xsi_shell in
17654 yes)
17655 cat << \_LT_EOF >> "$cfgfile"
17657 # func_dirname file append nondir_replacement
17658 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17659 # otherwise set result to NONDIR_REPLACEMENT.
17660 func_dirname ()
17662 case ${1} in
17663 */*) func_dirname_result="${1%/*}${2}" ;;
17664 * ) func_dirname_result="${3}" ;;
17665 esac
17668 # func_basename file
17669 func_basename ()
17671 func_basename_result="${1##*/}"
17674 # func_dirname_and_basename file append nondir_replacement
17675 # perform func_basename and func_dirname in a single function
17676 # call:
17677 # dirname: Compute the dirname of FILE. If nonempty,
17678 # add APPEND to the result, otherwise set result
17679 # to NONDIR_REPLACEMENT.
17680 # value returned in "$func_dirname_result"
17681 # basename: Compute filename of FILE.
17682 # value retuned in "$func_basename_result"
17683 # Implementation must be kept synchronized with func_dirname
17684 # and func_basename. For efficiency, we do not delegate to
17685 # those functions but instead duplicate the functionality here.
17686 func_dirname_and_basename ()
17688 case ${1} in
17689 */*) func_dirname_result="${1%/*}${2}" ;;
17690 * ) func_dirname_result="${3}" ;;
17691 esac
17692 func_basename_result="${1##*/}"
17695 # func_stripname prefix suffix name
17696 # strip PREFIX and SUFFIX off of NAME.
17697 # PREFIX and SUFFIX must not contain globbing or regex special
17698 # characters, hashes, percent signs, but SUFFIX may contain a leading
17699 # dot (in which case that matches only a dot).
17700 func_stripname ()
17702 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17703 # positional parameters, so assign one to ordinary parameter first.
17704 func_stripname_result=${3}
17705 func_stripname_result=${func_stripname_result#"${1}"}
17706 func_stripname_result=${func_stripname_result%"${2}"}
17709 # func_opt_split
17710 func_opt_split ()
17712 func_opt_split_opt=${1%%=*}
17713 func_opt_split_arg=${1#*=}
17716 # func_lo2o object
17717 func_lo2o ()
17719 case ${1} in
17720 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17721 *) func_lo2o_result=${1} ;;
17722 esac
17725 # func_xform libobj-or-source
17726 func_xform ()
17728 func_xform_result=${1%.*}.lo
17731 # func_arith arithmetic-term...
17732 func_arith ()
17734 func_arith_result=$(( $* ))
17737 # func_len string
17738 # STRING may not start with a hyphen.
17739 func_len ()
17741 func_len_result=${#1}
17744 _LT_EOF
17746 *) # Bourne compatible functions.
17747 cat << \_LT_EOF >> "$cfgfile"
17749 # func_dirname file append nondir_replacement
17750 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17751 # otherwise set result to NONDIR_REPLACEMENT.
17752 func_dirname ()
17754 # Extract subdirectory from the argument.
17755 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17756 if test "X$func_dirname_result" = "X${1}"; then
17757 func_dirname_result="${3}"
17758 else
17759 func_dirname_result="$func_dirname_result${2}"
17763 # func_basename file
17764 func_basename ()
17766 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17770 # func_stripname prefix suffix name
17771 # strip PREFIX and SUFFIX off of NAME.
17772 # PREFIX and SUFFIX must not contain globbing or regex special
17773 # characters, hashes, percent signs, but SUFFIX may contain a leading
17774 # dot (in which case that matches only a dot).
17775 # func_strip_suffix prefix name
17776 func_stripname ()
17778 case ${2} in
17779 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17780 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17781 esac
17784 # sed scripts:
17785 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17786 my_sed_long_arg='1s/^-[^=]*=//'
17788 # func_opt_split
17789 func_opt_split ()
17791 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17792 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17795 # func_lo2o object
17796 func_lo2o ()
17798 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17801 # func_xform libobj-or-source
17802 func_xform ()
17804 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17807 # func_arith arithmetic-term...
17808 func_arith ()
17810 func_arith_result=`expr "$@"`
17813 # func_len string
17814 # STRING may not start with a hyphen.
17815 func_len ()
17817 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17820 _LT_EOF
17821 esac
17823 case $lt_shell_append in
17824 yes)
17825 cat << \_LT_EOF >> "$cfgfile"
17827 # func_append var value
17828 # Append VALUE to the end of shell variable VAR.
17829 func_append ()
17831 eval "$1+=\$2"
17833 _LT_EOF
17836 cat << \_LT_EOF >> "$cfgfile"
17838 # func_append var value
17839 # Append VALUE to the end of shell variable VAR.
17840 func_append ()
17842 eval "$1=\$$1\$2"
17845 _LT_EOF
17847 esac
17850 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17851 || (rm -f "$cfgfile"; exit 1)
17853 mv -f "$cfgfile" "$ofile" ||
17854 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17855 chmod +x "$ofile"
17858 cat <<_LT_EOF >> "$ofile"
17860 # ### BEGIN LIBTOOL TAG CONFIG: CXX
17862 # The linker used to build libraries.
17863 LD=$lt_LD_CXX
17865 # How to create reloadable object files.
17866 reload_flag=$lt_reload_flag_CXX
17867 reload_cmds=$lt_reload_cmds_CXX
17869 # Commands used to build an old-style archive.
17870 old_archive_cmds=$lt_old_archive_cmds_CXX
17872 # A language specific compiler.
17873 CC=$lt_compiler_CXX
17875 # Is the compiler the GNU compiler?
17876 with_gcc=$GCC_CXX
17878 # Compiler flag to turn off builtin functions.
17879 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
17881 # How to pass a linker flag through the compiler.
17882 wl=$lt_lt_prog_compiler_wl_CXX
17884 # Additional compiler flags for building library objects.
17885 pic_flag=$lt_lt_prog_compiler_pic_CXX
17887 # Compiler flag to prevent dynamic linking.
17888 link_static_flag=$lt_lt_prog_compiler_static_CXX
17890 # Does compiler simultaneously support -c and -o options?
17891 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
17893 # Whether or not to add -lc for building shared libraries.
17894 build_libtool_need_lc=$archive_cmds_need_lc_CXX
17896 # Whether or not to disallow shared libs when runtime libs are static.
17897 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
17899 # Compiler flag to allow reflexive dlopens.
17900 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
17902 # Compiler flag to generate shared objects directly from archives.
17903 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
17905 # Whether the compiler copes with passing no objects directly.
17906 compiler_needs_object=$lt_compiler_needs_object_CXX
17908 # Create an old-style archive from a shared archive.
17909 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
17911 # Create a temporary old-style archive to link instead of a shared archive.
17912 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
17914 # Commands used to build a shared archive.
17915 archive_cmds=$lt_archive_cmds_CXX
17916 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
17918 # Commands used to build a loadable module if different from building
17919 # a shared archive.
17920 module_cmds=$lt_module_cmds_CXX
17921 module_expsym_cmds=$lt_module_expsym_cmds_CXX
17923 # Whether we are building with GNU ld or not.
17924 with_gnu_ld=$lt_with_gnu_ld_CXX
17926 # Flag that allows shared libraries with undefined symbols to be built.
17927 allow_undefined_flag=$lt_allow_undefined_flag_CXX
17929 # Flag that enforces no undefined symbols.
17930 no_undefined_flag=$lt_no_undefined_flag_CXX
17932 # Flag to hardcode \$libdir into a binary during linking.
17933 # This must work even if \$libdir does not exist
17934 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
17936 # If ld is used when linking, flag to hardcode \$libdir into a binary
17937 # during linking. This must work even if \$libdir does not exist.
17938 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
17940 # Whether we need a single "-rpath" flag with a separated argument.
17941 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
17943 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17944 # DIR into the resulting binary.
17945 hardcode_direct=$hardcode_direct_CXX
17947 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17948 # DIR into the resulting binary and the resulting library dependency is
17949 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17950 # library is relocated.
17951 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
17953 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17954 # into the resulting binary.
17955 hardcode_minus_L=$hardcode_minus_L_CXX
17957 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17958 # into the resulting binary.
17959 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
17961 # Set to "yes" if building a shared library automatically hardcodes DIR
17962 # into the library and all subsequent libraries and executables linked
17963 # against it.
17964 hardcode_automatic=$hardcode_automatic_CXX
17966 # Set to yes if linker adds runtime paths of dependent libraries
17967 # to runtime path list.
17968 inherit_rpath=$inherit_rpath_CXX
17970 # Whether libtool must link a program against all its dependency libraries.
17971 link_all_deplibs=$link_all_deplibs_CXX
17973 # Fix the shell variable \$srcfile for the compiler.
17974 fix_srcfile_path=$lt_fix_srcfile_path_CXX
17976 # Set to "yes" if exported symbols are required.
17977 always_export_symbols=$always_export_symbols_CXX
17979 # The commands to list exported symbols.
17980 export_symbols_cmds=$lt_export_symbols_cmds_CXX
17982 # Symbols that should not be listed in the preloaded symbols.
17983 exclude_expsyms=$lt_exclude_expsyms_CXX
17985 # Symbols that must always be exported.
17986 include_expsyms=$lt_include_expsyms_CXX
17988 # Commands necessary for linking programs (against libraries) with templates.
17989 prelink_cmds=$lt_prelink_cmds_CXX
17991 # Specify filename containing input files.
17992 file_list_spec=$lt_file_list_spec_CXX
17994 # How to hardcode a shared library path into an executable.
17995 hardcode_action=$hardcode_action_CXX
17997 # The directories searched by this compiler when creating a shared library.
17998 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18000 # Dependencies to place before and after the objects being linked to
18001 # create a shared library.
18002 predep_objects=$lt_predep_objects_CXX
18003 postdep_objects=$lt_postdep_objects_CXX
18004 predeps=$lt_predeps_CXX
18005 postdeps=$lt_postdeps_CXX
18007 # The library search path used internally by the compiler when linking
18008 # a shared library.
18009 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18011 # ### END LIBTOOL TAG CONFIG: CXX
18012 _LT_EOF
18015 "testsuite/Makefile":F) cat > vpsed$$ << \_EOF
18016 s!`test -f '$<' || echo '$(srcdir)/'`!!
18017 _EOF
18018 sed -f vpsed$$ $ac_file > tmp$$
18019 mv tmp$$ $ac_file
18020 rm vpsed$$
18021 echo 'MULTISUBDIR =' >> $ac_file
18022 ml_norecursion=yes
18023 . ${multi_basedir}/config-ml.in
18024 { ml_norecursion=; unset ml_norecursion;}
18027 esac
18028 done # for ac_tag
18031 as_fn_exit 0
18032 _ACEOF
18033 ac_clean_files=$ac_clean_files_save
18035 test $ac_write_fail = 0 ||
18036 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
18039 # configure is writing to config.log, and then calls config.status.
18040 # config.status does its own redirection, appending to config.log.
18041 # Unfortunately, on DOS this fails, as config.log is still kept open
18042 # by configure, so config.status won't be able to write to it; its
18043 # output is simply discarded. So we exec the FD to /dev/null,
18044 # effectively closing config.log, so it can be properly (re)opened and
18045 # appended to by config.status. When coming back to configure, we
18046 # need to make the FD available again.
18047 if test "$no_create" != yes; then
18048 ac_cs_success=:
18049 ac_config_status_args=
18050 test "$silent" = yes &&
18051 ac_config_status_args="$ac_config_status_args --quiet"
18052 exec 5>/dev/null
18053 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18054 exec 5>>config.log
18055 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18056 # would make configure fail if this is the last instruction.
18057 $ac_cs_success || as_fn_exit $?
18059 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18061 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}