* gimple-ssa-store-merging.c (struct store_immediate_info): Add
[official-gcc.git] / libvtv / configure
blobc3bed2dfc708431b672fb4d46e52aecfee96396d
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 get_gcc_base_ver
606 VTV_NO_OBSTACK_FALSE
607 VTV_NO_OBSTACK_TRUE
608 VTV_CYGMIN_FALSE
609 VTV_CYGMIN_TRUE
610 XCFLAGS
611 libtool_VERSION
612 enable_static
613 enable_shared
614 lt_host_flags
615 CXXCPP
616 OTOOL64
617 OTOOL
618 LIPO
619 NMEDIT
620 DSYMUTIL
621 OBJDUMP
622 LN_S
624 ac_ct_DUMPBIN
625 DUMPBIN
627 FGREP
629 LIBTOOL
630 RANLIB
633 CCASFLAGS
634 CCAS
635 am__fastdepCXX_FALSE
636 am__fastdepCXX_TRUE
637 CXXDEPMODE
638 ac_ct_CXX
639 CXXFLAGS
641 toolexeclibdir
642 toolexecdir
643 toplevel_srcdir
644 toplevel_builddir
645 libvtv_srcdir
646 libvtv_builddir
647 MAINT
648 MAINTAINER_MODE_FALSE
649 MAINTAINER_MODE_TRUE
650 am__fastdepCC_FALSE
651 am__fastdepCC_TRUE
652 CCDEPMODE
653 am__nodep
654 AMDEPBACKSLASH
655 AMDEP_FALSE
656 AMDEP_TRUE
657 am__quote
658 am__include
659 DEPDIR
660 am__untar
661 am__tar
662 AMTAR
663 am__leading_dot
664 SET_MAKE
666 mkdir_p
667 MKDIR_P
668 INSTALL_STRIP_PROGRAM
669 STRIP
670 install_sh
671 MAKEINFO
672 AUTOHEADER
673 AUTOMAKE
674 AUTOCONF
675 ACLOCAL
676 VERSION
677 PACKAGE
678 CYGPATH_W
679 am__isrc
680 INSTALL_DATA
681 INSTALL_SCRIPT
682 INSTALL_PROGRAM
683 ENABLE_VTABLE_VERIFY_FALSE
684 ENABLE_VTABLE_VERIFY_TRUE
685 EGREP
686 GREP
688 OBJEXT
689 EXEEXT
690 ac_ct_CC
691 CPPFLAGS
692 LDFLAGS
693 CFLAGS
695 LIBSTDCXX_RAW_CXX_LDFLAGS
696 LIBSTDCXX_RAW_CXX_CXXFLAGS
697 target_noncanonical
698 target_os
699 target_vendor
700 target_cpu
701 target
702 host_os
703 host_vendor
704 host_cpu
705 host
706 build_os
707 build_vendor
708 build_cpu
709 build
710 multi_basedir
711 target_alias
712 host_alias
713 build_alias
714 LIBS
715 ECHO_T
716 ECHO_N
717 ECHO_C
718 DEFS
719 mandir
720 localedir
721 libdir
722 psdir
723 pdfdir
724 dvidir
725 htmldir
726 infodir
727 docdir
728 oldincludedir
729 includedir
730 localstatedir
731 sharedstatedir
732 sysconfdir
733 datadir
734 datarootdir
735 libexecdir
736 sbindir
737 bindir
738 program_transform_name
739 prefix
740 exec_prefix
741 PACKAGE_URL
742 PACKAGE_BUGREPORT
743 PACKAGE_STRING
744 PACKAGE_VERSION
745 PACKAGE_TARNAME
746 PACKAGE_NAME
747 PATH_SEPARATOR
748 SHELL'
749 ac_subst_files=''
750 ac_user_opts='
751 enable_option_checking
752 enable_multilib
753 enable_version_specific_runtime_libs
754 enable_vtable_verify
755 enable_dependency_tracking
756 enable_maintainer_mode
757 enable_shared
758 enable_static
759 with_pic
760 enable_fast_install
761 with_gnu_ld
762 enable_libtool_lock
763 with_gcc_major_version_only
765 ac_precious_vars='build_alias
766 host_alias
767 target_alias
769 CFLAGS
770 LDFLAGS
771 LIBS
772 CPPFLAGS
774 CXXCPP'
777 # Initialize some variables set by options.
778 ac_init_help=
779 ac_init_version=false
780 ac_unrecognized_opts=
781 ac_unrecognized_sep=
782 # The variables have the same names as the options, with
783 # dashes changed to underlines.
784 cache_file=/dev/null
785 exec_prefix=NONE
786 no_create=
787 no_recursion=
788 prefix=NONE
789 program_prefix=NONE
790 program_suffix=NONE
791 program_transform_name=s,x,x,
792 silent=
793 site=
794 srcdir=
795 verbose=
796 x_includes=NONE
797 x_libraries=NONE
799 # Installation directory options.
800 # These are left unexpanded so users can "make install exec_prefix=/foo"
801 # and all the variables that are supposed to be based on exec_prefix
802 # by default will actually change.
803 # Use braces instead of parens because sh, perl, etc. also accept them.
804 # (The list follows the same order as the GNU Coding Standards.)
805 bindir='${exec_prefix}/bin'
806 sbindir='${exec_prefix}/sbin'
807 libexecdir='${exec_prefix}/libexec'
808 datarootdir='${prefix}/share'
809 datadir='${datarootdir}'
810 sysconfdir='${prefix}/etc'
811 sharedstatedir='${prefix}/com'
812 localstatedir='${prefix}/var'
813 includedir='${prefix}/include'
814 oldincludedir='/usr/include'
815 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
816 infodir='${datarootdir}/info'
817 htmldir='${docdir}'
818 dvidir='${docdir}'
819 pdfdir='${docdir}'
820 psdir='${docdir}'
821 libdir='${exec_prefix}/lib'
822 localedir='${datarootdir}/locale'
823 mandir='${datarootdir}/man'
825 ac_prev=
826 ac_dashdash=
827 for ac_option
829 # If the previous option needs an argument, assign it.
830 if test -n "$ac_prev"; then
831 eval $ac_prev=\$ac_option
832 ac_prev=
833 continue
836 case $ac_option in
837 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
838 *) ac_optarg=yes ;;
839 esac
841 # Accept the important Cygnus configure options, so we can diagnose typos.
843 case $ac_dashdash$ac_option in
845 ac_dashdash=yes ;;
847 -bindir | --bindir | --bindi | --bind | --bin | --bi)
848 ac_prev=bindir ;;
849 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
850 bindir=$ac_optarg ;;
852 -build | --build | --buil | --bui | --bu)
853 ac_prev=build_alias ;;
854 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
855 build_alias=$ac_optarg ;;
857 -cache-file | --cache-file | --cache-fil | --cache-fi \
858 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
859 ac_prev=cache_file ;;
860 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
861 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
862 cache_file=$ac_optarg ;;
864 --config-cache | -C)
865 cache_file=config.cache ;;
867 -datadir | --datadir | --datadi | --datad)
868 ac_prev=datadir ;;
869 -datadir=* | --datadir=* | --datadi=* | --datad=*)
870 datadir=$ac_optarg ;;
872 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
873 | --dataroo | --dataro | --datar)
874 ac_prev=datarootdir ;;
875 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
876 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
877 datarootdir=$ac_optarg ;;
879 -disable-* | --disable-*)
880 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
881 # Reject names that are not valid shell variable names.
882 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
883 as_fn_error "invalid feature name: $ac_useropt"
884 ac_useropt_orig=$ac_useropt
885 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
886 case $ac_user_opts in
888 "enable_$ac_useropt"
889 "*) ;;
890 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
891 ac_unrecognized_sep=', ';;
892 esac
893 eval enable_$ac_useropt=no ;;
895 -docdir | --docdir | --docdi | --doc | --do)
896 ac_prev=docdir ;;
897 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
898 docdir=$ac_optarg ;;
900 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
901 ac_prev=dvidir ;;
902 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
903 dvidir=$ac_optarg ;;
905 -enable-* | --enable-*)
906 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
907 # Reject names that are not valid shell variable names.
908 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
909 as_fn_error "invalid feature name: $ac_useropt"
910 ac_useropt_orig=$ac_useropt
911 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
912 case $ac_user_opts in
914 "enable_$ac_useropt"
915 "*) ;;
916 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
917 ac_unrecognized_sep=', ';;
918 esac
919 eval enable_$ac_useropt=\$ac_optarg ;;
921 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
922 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
923 | --exec | --exe | --ex)
924 ac_prev=exec_prefix ;;
925 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
926 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
927 | --exec=* | --exe=* | --ex=*)
928 exec_prefix=$ac_optarg ;;
930 -gas | --gas | --ga | --g)
931 # Obsolete; use --with-gas.
932 with_gas=yes ;;
934 -help | --help | --hel | --he | -h)
935 ac_init_help=long ;;
936 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
937 ac_init_help=recursive ;;
938 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
939 ac_init_help=short ;;
941 -host | --host | --hos | --ho)
942 ac_prev=host_alias ;;
943 -host=* | --host=* | --hos=* | --ho=*)
944 host_alias=$ac_optarg ;;
946 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
947 ac_prev=htmldir ;;
948 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
949 | --ht=*)
950 htmldir=$ac_optarg ;;
952 -includedir | --includedir | --includedi | --included | --include \
953 | --includ | --inclu | --incl | --inc)
954 ac_prev=includedir ;;
955 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
956 | --includ=* | --inclu=* | --incl=* | --inc=*)
957 includedir=$ac_optarg ;;
959 -infodir | --infodir | --infodi | --infod | --info | --inf)
960 ac_prev=infodir ;;
961 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
962 infodir=$ac_optarg ;;
964 -libdir | --libdir | --libdi | --libd)
965 ac_prev=libdir ;;
966 -libdir=* | --libdir=* | --libdi=* | --libd=*)
967 libdir=$ac_optarg ;;
969 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
970 | --libexe | --libex | --libe)
971 ac_prev=libexecdir ;;
972 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
973 | --libexe=* | --libex=* | --libe=*)
974 libexecdir=$ac_optarg ;;
976 -localedir | --localedir | --localedi | --localed | --locale)
977 ac_prev=localedir ;;
978 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
979 localedir=$ac_optarg ;;
981 -localstatedir | --localstatedir | --localstatedi | --localstated \
982 | --localstate | --localstat | --localsta | --localst | --locals)
983 ac_prev=localstatedir ;;
984 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
985 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
986 localstatedir=$ac_optarg ;;
988 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
989 ac_prev=mandir ;;
990 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
991 mandir=$ac_optarg ;;
993 -nfp | --nfp | --nf)
994 # Obsolete; use --without-fp.
995 with_fp=no ;;
997 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
998 | --no-cr | --no-c | -n)
999 no_create=yes ;;
1001 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1002 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1003 no_recursion=yes ;;
1005 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1006 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1007 | --oldin | --oldi | --old | --ol | --o)
1008 ac_prev=oldincludedir ;;
1009 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1010 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1011 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1012 oldincludedir=$ac_optarg ;;
1014 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1015 ac_prev=prefix ;;
1016 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1017 prefix=$ac_optarg ;;
1019 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1020 | --program-pre | --program-pr | --program-p)
1021 ac_prev=program_prefix ;;
1022 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1023 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1024 program_prefix=$ac_optarg ;;
1026 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1027 | --program-suf | --program-su | --program-s)
1028 ac_prev=program_suffix ;;
1029 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1030 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1031 program_suffix=$ac_optarg ;;
1033 -program-transform-name | --program-transform-name \
1034 | --program-transform-nam | --program-transform-na \
1035 | --program-transform-n | --program-transform- \
1036 | --program-transform | --program-transfor \
1037 | --program-transfo | --program-transf \
1038 | --program-trans | --program-tran \
1039 | --progr-tra | --program-tr | --program-t)
1040 ac_prev=program_transform_name ;;
1041 -program-transform-name=* | --program-transform-name=* \
1042 | --program-transform-nam=* | --program-transform-na=* \
1043 | --program-transform-n=* | --program-transform-=* \
1044 | --program-transform=* | --program-transfor=* \
1045 | --program-transfo=* | --program-transf=* \
1046 | --program-trans=* | --program-tran=* \
1047 | --progr-tra=* | --program-tr=* | --program-t=*)
1048 program_transform_name=$ac_optarg ;;
1050 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1051 ac_prev=pdfdir ;;
1052 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1053 pdfdir=$ac_optarg ;;
1055 -psdir | --psdir | --psdi | --psd | --ps)
1056 ac_prev=psdir ;;
1057 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1058 psdir=$ac_optarg ;;
1060 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1061 | -silent | --silent | --silen | --sile | --sil)
1062 silent=yes ;;
1064 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1065 ac_prev=sbindir ;;
1066 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1067 | --sbi=* | --sb=*)
1068 sbindir=$ac_optarg ;;
1070 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1071 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1072 | --sharedst | --shareds | --shared | --share | --shar \
1073 | --sha | --sh)
1074 ac_prev=sharedstatedir ;;
1075 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1076 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1077 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1078 | --sha=* | --sh=*)
1079 sharedstatedir=$ac_optarg ;;
1081 -site | --site | --sit)
1082 ac_prev=site ;;
1083 -site=* | --site=* | --sit=*)
1084 site=$ac_optarg ;;
1086 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1087 ac_prev=srcdir ;;
1088 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1089 srcdir=$ac_optarg ;;
1091 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1092 | --syscon | --sysco | --sysc | --sys | --sy)
1093 ac_prev=sysconfdir ;;
1094 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1095 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1096 sysconfdir=$ac_optarg ;;
1098 -target | --target | --targe | --targ | --tar | --ta | --t)
1099 ac_prev=target_alias ;;
1100 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1101 target_alias=$ac_optarg ;;
1103 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1104 verbose=yes ;;
1106 -version | --version | --versio | --versi | --vers | -V)
1107 ac_init_version=: ;;
1109 -with-* | --with-*)
1110 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1111 # Reject names that are not valid shell variable names.
1112 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1113 as_fn_error "invalid package name: $ac_useropt"
1114 ac_useropt_orig=$ac_useropt
1115 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1116 case $ac_user_opts in
1118 "with_$ac_useropt"
1119 "*) ;;
1120 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1121 ac_unrecognized_sep=', ';;
1122 esac
1123 eval with_$ac_useropt=\$ac_optarg ;;
1125 -without-* | --without-*)
1126 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1127 # Reject names that are not valid shell variable names.
1128 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1129 as_fn_error "invalid package name: $ac_useropt"
1130 ac_useropt_orig=$ac_useropt
1131 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1132 case $ac_user_opts in
1134 "with_$ac_useropt"
1135 "*) ;;
1136 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1137 ac_unrecognized_sep=', ';;
1138 esac
1139 eval with_$ac_useropt=no ;;
1141 --x)
1142 # Obsolete; use --with-x.
1143 with_x=yes ;;
1145 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1146 | --x-incl | --x-inc | --x-in | --x-i)
1147 ac_prev=x_includes ;;
1148 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1149 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1150 x_includes=$ac_optarg ;;
1152 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1153 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1154 ac_prev=x_libraries ;;
1155 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1156 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1157 x_libraries=$ac_optarg ;;
1159 -*) as_fn_error "unrecognized option: \`$ac_option'
1160 Try \`$0 --help' for more information."
1163 *=*)
1164 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1165 # Reject names that are not valid shell variable names.
1166 case $ac_envvar in #(
1167 '' | [0-9]* | *[!_$as_cr_alnum]* )
1168 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1169 esac
1170 eval $ac_envvar=\$ac_optarg
1171 export $ac_envvar ;;
1174 # FIXME: should be removed in autoconf 3.0.
1175 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1176 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1177 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1178 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1181 esac
1182 done
1184 if test -n "$ac_prev"; then
1185 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1186 as_fn_error "missing argument to $ac_option"
1189 if test -n "$ac_unrecognized_opts"; then
1190 case $enable_option_checking in
1191 no) ;;
1192 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1193 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1194 esac
1197 # Check all directory arguments for consistency.
1198 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1199 datadir sysconfdir sharedstatedir localstatedir includedir \
1200 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1201 libdir localedir mandir
1203 eval ac_val=\$$ac_var
1204 # Remove trailing slashes.
1205 case $ac_val in
1206 */ )
1207 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1208 eval $ac_var=\$ac_val;;
1209 esac
1210 # Be sure to have absolute directory names.
1211 case $ac_val in
1212 [\\/$]* | ?:[\\/]* ) continue;;
1213 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1214 esac
1215 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1216 done
1218 # There might be people who depend on the old broken behavior: `$host'
1219 # used to hold the argument of --host etc.
1220 # FIXME: To remove some day.
1221 build=$build_alias
1222 host=$host_alias
1223 target=$target_alias
1225 # FIXME: To remove some day.
1226 if test "x$host_alias" != x; then
1227 if test "x$build_alias" = x; then
1228 cross_compiling=maybe
1229 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1230 If a cross compiler is detected then cross compile mode will be used." >&2
1231 elif test "x$build_alias" != "x$host_alias"; then
1232 cross_compiling=yes
1236 ac_tool_prefix=
1237 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1239 test "$silent" = yes && exec 6>/dev/null
1242 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1243 ac_ls_di=`ls -di .` &&
1244 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1245 as_fn_error "working directory cannot be determined"
1246 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1247 as_fn_error "pwd does not report name of working directory"
1250 # Find the source files, if location was not specified.
1251 if test -z "$srcdir"; then
1252 ac_srcdir_defaulted=yes
1253 # Try the directory containing this script, then the parent directory.
1254 ac_confdir=`$as_dirname -- "$as_myself" ||
1255 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1256 X"$as_myself" : 'X\(//\)[^/]' \| \
1257 X"$as_myself" : 'X\(//\)$' \| \
1258 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1259 $as_echo X"$as_myself" |
1260 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1261 s//\1/
1264 /^X\(\/\/\)[^/].*/{
1265 s//\1/
1268 /^X\(\/\/\)$/{
1269 s//\1/
1272 /^X\(\/\).*/{
1273 s//\1/
1276 s/.*/./; q'`
1277 srcdir=$ac_confdir
1278 if test ! -r "$srcdir/$ac_unique_file"; then
1279 srcdir=..
1281 else
1282 ac_srcdir_defaulted=no
1284 if test ! -r "$srcdir/$ac_unique_file"; then
1285 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1286 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1288 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1289 ac_abs_confdir=`(
1290 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1291 pwd)`
1292 # When building in place, set srcdir=.
1293 if test "$ac_abs_confdir" = "$ac_pwd"; then
1294 srcdir=.
1296 # Remove unnecessary trailing slashes from srcdir.
1297 # Double slashes in file names in object file debugging info
1298 # mess up M-x gdb in Emacs.
1299 case $srcdir in
1300 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1301 esac
1302 for ac_var in $ac_precious_vars; do
1303 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1304 eval ac_env_${ac_var}_value=\$${ac_var}
1305 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1306 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1307 done
1310 # Report the --help message.
1312 if test "$ac_init_help" = "long"; then
1313 # Omit some internal or obsolete options to make the list less imposing.
1314 # This message is too long to be a string in the A/UX 3.1 sh.
1315 cat <<_ACEOF
1316 \`configure' configures GNU Vtable Verification Runtime Library 1.0 to adapt to many kinds of systems.
1318 Usage: $0 [OPTION]... [VAR=VALUE]...
1320 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1321 VAR=VALUE. See below for descriptions of some of the useful variables.
1323 Defaults for the options are specified in brackets.
1325 Configuration:
1326 -h, --help display this help and exit
1327 --help=short display options specific to this package
1328 --help=recursive display the short help of all the included packages
1329 -V, --version display version information and exit
1330 -q, --quiet, --silent do not print \`checking...' messages
1331 --cache-file=FILE cache test results in FILE [disabled]
1332 -C, --config-cache alias for \`--cache-file=config.cache'
1333 -n, --no-create do not create output files
1334 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1336 Installation directories:
1337 --prefix=PREFIX install architecture-independent files in PREFIX
1338 [$ac_default_prefix]
1339 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1340 [PREFIX]
1342 By default, \`make install' will install all the files in
1343 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1344 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1345 for instance \`--prefix=\$HOME'.
1347 For better control, use the options below.
1349 Fine tuning of the installation directories:
1350 --bindir=DIR user executables [EPREFIX/bin]
1351 --sbindir=DIR system admin executables [EPREFIX/sbin]
1352 --libexecdir=DIR program executables [EPREFIX/libexec]
1353 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1354 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1355 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1356 --libdir=DIR object code libraries [EPREFIX/lib]
1357 --includedir=DIR C header files [PREFIX/include]
1358 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1359 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1360 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1361 --infodir=DIR info documentation [DATAROOTDIR/info]
1362 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1363 --mandir=DIR man documentation [DATAROOTDIR/man]
1364 --docdir=DIR documentation root [DATAROOTDIR/doc/libvtv]
1365 --htmldir=DIR html documentation [DOCDIR]
1366 --dvidir=DIR dvi documentation [DOCDIR]
1367 --pdfdir=DIR pdf documentation [DOCDIR]
1368 --psdir=DIR ps documentation [DOCDIR]
1369 _ACEOF
1371 cat <<\_ACEOF
1373 Program names:
1374 --program-prefix=PREFIX prepend PREFIX to installed program names
1375 --program-suffix=SUFFIX append SUFFIX to installed program names
1376 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1378 System types:
1379 --build=BUILD configure for building on BUILD [guessed]
1380 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1381 --target=TARGET configure for building compilers for TARGET [HOST]
1382 _ACEOF
1385 if test -n "$ac_init_help"; then
1386 case $ac_init_help in
1387 short | recursive ) echo "Configuration of GNU Vtable Verification Runtime Library 1.0:";;
1388 esac
1389 cat <<\_ACEOF
1391 Optional Features:
1392 --disable-option-checking ignore unrecognized --enable/--with options
1393 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1394 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1395 --enable-multilib build many library versions (default)
1396 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
1397 --enable-vtable-verify Enable vtable verification feature
1398 --disable-dependency-tracking speeds up one-time build
1399 --enable-dependency-tracking do not reject slow dependency extractors
1400 --enable-maintainer-mode enable make rules and dependencies not useful
1401 (and sometimes confusing) to the casual installer
1402 --enable-shared[=PKGS] build shared libraries [default=yes]
1403 --enable-static[=PKGS] build static libraries [default=yes]
1404 --enable-fast-install[=PKGS]
1405 optimize for fast installation [default=yes]
1406 --disable-libtool-lock avoid locking (might break parallel builds)
1408 Optional Packages:
1409 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1410 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1411 --with-pic try to use only PIC/non-PIC objects [default=use
1412 both]
1413 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1414 --with-gcc-major-version-only
1415 use only GCC major number in filesystem paths
1417 Some influential environment variables:
1418 CC C compiler command
1419 CFLAGS C compiler flags
1420 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1421 nonstandard directory <lib dir>
1422 LIBS libraries to pass to the linker, e.g. -l<library>
1423 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1424 you have headers in a nonstandard directory <include dir>
1425 CPP C preprocessor
1426 CXX C++ compiler command
1427 CXXFLAGS C++ compiler flags
1428 CXXCPP C++ preprocessor
1430 Use these variables to override the choices made by `configure' or to help
1431 it to find libraries and programs with nonstandard names/locations.
1433 Report bugs to the package provider.
1434 GNU Vtable Verification Runtime Library home page: <http://www.gnu.org/software/libvtv/>.
1435 General help using GNU software: <http://www.gnu.org/gethelp/>.
1436 _ACEOF
1437 ac_status=$?
1440 if test "$ac_init_help" = "recursive"; then
1441 # If there are subdirs, report their specific --help.
1442 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1443 test -d "$ac_dir" ||
1444 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1445 continue
1446 ac_builddir=.
1448 case "$ac_dir" in
1449 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1451 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1452 # A ".." for each directory in $ac_dir_suffix.
1453 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1454 case $ac_top_builddir_sub in
1455 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1456 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1457 esac ;;
1458 esac
1459 ac_abs_top_builddir=$ac_pwd
1460 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1461 # for backward compatibility:
1462 ac_top_builddir=$ac_top_build_prefix
1464 case $srcdir in
1465 .) # We are building in place.
1466 ac_srcdir=.
1467 ac_top_srcdir=$ac_top_builddir_sub
1468 ac_abs_top_srcdir=$ac_pwd ;;
1469 [\\/]* | ?:[\\/]* ) # Absolute name.
1470 ac_srcdir=$srcdir$ac_dir_suffix;
1471 ac_top_srcdir=$srcdir
1472 ac_abs_top_srcdir=$srcdir ;;
1473 *) # Relative name.
1474 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1475 ac_top_srcdir=$ac_top_build_prefix$srcdir
1476 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1477 esac
1478 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1480 cd "$ac_dir" || { ac_status=$?; continue; }
1481 # Check for guested configure.
1482 if test -f "$ac_srcdir/configure.gnu"; then
1483 echo &&
1484 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1485 elif test -f "$ac_srcdir/configure"; then
1486 echo &&
1487 $SHELL "$ac_srcdir/configure" --help=recursive
1488 else
1489 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1490 fi || ac_status=$?
1491 cd "$ac_pwd" || { ac_status=$?; break; }
1492 done
1495 test -n "$ac_init_help" && exit $ac_status
1496 if $ac_init_version; then
1497 cat <<\_ACEOF
1498 GNU Vtable Verification Runtime Library configure 1.0
1499 generated by GNU Autoconf 2.64
1501 Copyright (C) 2009 Free Software Foundation, Inc.
1502 This configure script is free software; the Free Software Foundation
1503 gives unlimited permission to copy, distribute and modify it.
1504 _ACEOF
1505 exit
1508 ## ------------------------ ##
1509 ## Autoconf initialization. ##
1510 ## ------------------------ ##
1512 # ac_fn_c_try_compile LINENO
1513 # --------------------------
1514 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1515 ac_fn_c_try_compile ()
1517 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1518 rm -f conftest.$ac_objext
1519 if { { ac_try="$ac_compile"
1520 case "(($ac_try" in
1521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1522 *) ac_try_echo=$ac_try;;
1523 esac
1524 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1525 $as_echo "$ac_try_echo"; } >&5
1526 (eval "$ac_compile") 2>conftest.err
1527 ac_status=$?
1528 if test -s conftest.err; then
1529 grep -v '^ *+' conftest.err >conftest.er1
1530 cat conftest.er1 >&5
1531 mv -f conftest.er1 conftest.err
1533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1534 test $ac_status = 0; } && {
1535 test -z "$ac_c_werror_flag" ||
1536 test ! -s conftest.err
1537 } && test -s conftest.$ac_objext; then :
1538 ac_retval=0
1539 else
1540 $as_echo "$as_me: failed program was:" >&5
1541 sed 's/^/| /' conftest.$ac_ext >&5
1543 ac_retval=1
1545 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1546 return $ac_retval
1548 } # ac_fn_c_try_compile
1550 # ac_fn_c_try_cpp LINENO
1551 # ----------------------
1552 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1553 ac_fn_c_try_cpp ()
1555 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1556 if { { ac_try="$ac_cpp conftest.$ac_ext"
1557 case "(($ac_try" in
1558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1559 *) ac_try_echo=$ac_try;;
1560 esac
1561 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1562 $as_echo "$ac_try_echo"; } >&5
1563 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1564 ac_status=$?
1565 if test -s conftest.err; then
1566 grep -v '^ *+' conftest.err >conftest.er1
1567 cat conftest.er1 >&5
1568 mv -f conftest.er1 conftest.err
1570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1571 test $ac_status = 0; } >/dev/null && {
1572 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1573 test ! -s conftest.err
1574 }; then :
1575 ac_retval=0
1576 else
1577 $as_echo "$as_me: failed program was:" >&5
1578 sed 's/^/| /' conftest.$ac_ext >&5
1580 ac_retval=1
1582 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1583 return $ac_retval
1585 } # ac_fn_c_try_cpp
1587 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1588 # -------------------------------------------------------
1589 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1590 # the include files in INCLUDES and setting the cache variable VAR
1591 # accordingly.
1592 ac_fn_c_check_header_mongrel ()
1594 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1595 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1597 $as_echo_n "checking for $2... " >&6; }
1598 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1599 $as_echo_n "(cached) " >&6
1601 eval ac_res=\$$3
1602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1603 $as_echo "$ac_res" >&6; }
1604 else
1605 # Is the header compilable?
1606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1607 $as_echo_n "checking $2 usability... " >&6; }
1608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1609 /* end confdefs.h. */
1611 #include <$2>
1612 _ACEOF
1613 if ac_fn_c_try_compile "$LINENO"; then :
1614 ac_header_compiler=yes
1615 else
1616 ac_header_compiler=no
1618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1620 $as_echo "$ac_header_compiler" >&6; }
1622 # Is the header present?
1623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1624 $as_echo_n "checking $2 presence... " >&6; }
1625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1626 /* end confdefs.h. */
1627 #include <$2>
1628 _ACEOF
1629 if ac_fn_c_try_cpp "$LINENO"; then :
1630 ac_header_preproc=yes
1631 else
1632 ac_header_preproc=no
1634 rm -f conftest.err conftest.$ac_ext
1635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1636 $as_echo "$ac_header_preproc" >&6; }
1638 # So? What about this header?
1639 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1640 yes:no: )
1641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1642 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1644 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1646 no:yes:* )
1647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1648 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1650 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1652 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1654 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1656 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1658 esac
1659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1660 $as_echo_n "checking for $2... " >&6; }
1661 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1662 $as_echo_n "(cached) " >&6
1663 else
1664 eval "$3=\$ac_header_compiler"
1666 eval ac_res=\$$3
1667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1668 $as_echo "$ac_res" >&6; }
1670 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1672 } # ac_fn_c_check_header_mongrel
1674 # ac_fn_c_try_run LINENO
1675 # ----------------------
1676 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1677 # that executables *can* be run.
1678 ac_fn_c_try_run ()
1680 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1681 if { { ac_try="$ac_link"
1682 case "(($ac_try" in
1683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1684 *) ac_try_echo=$ac_try;;
1685 esac
1686 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1687 $as_echo "$ac_try_echo"; } >&5
1688 (eval "$ac_link") 2>&5
1689 ac_status=$?
1690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1691 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1692 { { case "(($ac_try" in
1693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1694 *) ac_try_echo=$ac_try;;
1695 esac
1696 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1697 $as_echo "$ac_try_echo"; } >&5
1698 (eval "$ac_try") 2>&5
1699 ac_status=$?
1700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1701 test $ac_status = 0; }; }; then :
1702 ac_retval=0
1703 else
1704 $as_echo "$as_me: program exited with status $ac_status" >&5
1705 $as_echo "$as_me: failed program was:" >&5
1706 sed 's/^/| /' conftest.$ac_ext >&5
1708 ac_retval=$ac_status
1710 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1711 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1712 return $ac_retval
1714 } # ac_fn_c_try_run
1716 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1717 # -------------------------------------------------------
1718 # Tests whether HEADER exists and can be compiled using the include files in
1719 # INCLUDES, setting the cache variable VAR accordingly.
1720 ac_fn_c_check_header_compile ()
1722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1724 $as_echo_n "checking for $2... " >&6; }
1725 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1726 $as_echo_n "(cached) " >&6
1727 else
1728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1729 /* end confdefs.h. */
1731 #include <$2>
1732 _ACEOF
1733 if ac_fn_c_try_compile "$LINENO"; then :
1734 eval "$3=yes"
1735 else
1736 eval "$3=no"
1738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1740 eval ac_res=\$$3
1741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1742 $as_echo "$ac_res" >&6; }
1743 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1745 } # ac_fn_c_check_header_compile
1747 # ac_fn_c_try_link LINENO
1748 # -----------------------
1749 # Try to link conftest.$ac_ext, and return whether this succeeded.
1750 ac_fn_c_try_link ()
1752 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1753 rm -f conftest.$ac_objext conftest$ac_exeext
1754 if { { ac_try="$ac_link"
1755 case "(($ac_try" in
1756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1757 *) ac_try_echo=$ac_try;;
1758 esac
1759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1760 $as_echo "$ac_try_echo"; } >&5
1761 (eval "$ac_link") 2>conftest.err
1762 ac_status=$?
1763 if test -s conftest.err; then
1764 grep -v '^ *+' conftest.err >conftest.er1
1765 cat conftest.er1 >&5
1766 mv -f conftest.er1 conftest.err
1768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1769 test $ac_status = 0; } && {
1770 test -z "$ac_c_werror_flag" ||
1771 test ! -s conftest.err
1772 } && test -s conftest$ac_exeext && {
1773 test "$cross_compiling" = yes ||
1774 $as_test_x conftest$ac_exeext
1775 }; then :
1776 ac_retval=0
1777 else
1778 $as_echo "$as_me: failed program was:" >&5
1779 sed 's/^/| /' conftest.$ac_ext >&5
1781 ac_retval=1
1783 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1784 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1785 # interfere with the next link command; also delete a directory that is
1786 # left behind by Apple's compiler. We do this before executing the actions.
1787 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1788 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1789 return $ac_retval
1791 } # ac_fn_c_try_link
1793 # ac_fn_c_check_func LINENO FUNC VAR
1794 # ----------------------------------
1795 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1796 ac_fn_c_check_func ()
1798 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1800 $as_echo_n "checking for $2... " >&6; }
1801 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1802 $as_echo_n "(cached) " >&6
1803 else
1804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1805 /* end confdefs.h. */
1806 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1807 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1808 #define $2 innocuous_$2
1810 /* System header to define __stub macros and hopefully few prototypes,
1811 which can conflict with char $2 (); below.
1812 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1813 <limits.h> exists even on freestanding compilers. */
1815 #ifdef __STDC__
1816 # include <limits.h>
1817 #else
1818 # include <assert.h>
1819 #endif
1821 #undef $2
1823 /* Override any GCC internal prototype to avoid an error.
1824 Use char because int might match the return type of a GCC
1825 builtin and then its argument prototype would still apply. */
1826 #ifdef __cplusplus
1827 extern "C"
1828 #endif
1829 char $2 ();
1830 /* The GNU C library defines this for functions which it implements
1831 to always fail with ENOSYS. Some functions are actually named
1832 something starting with __ and the normal name is an alias. */
1833 #if defined __stub_$2 || defined __stub___$2
1834 choke me
1835 #endif
1838 main ()
1840 return $2 ();
1842 return 0;
1844 _ACEOF
1845 if ac_fn_c_try_link "$LINENO"; then :
1846 eval "$3=yes"
1847 else
1848 eval "$3=no"
1850 rm -f core conftest.err conftest.$ac_objext \
1851 conftest$ac_exeext conftest.$ac_ext
1853 eval ac_res=\$$3
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1855 $as_echo "$ac_res" >&6; }
1856 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1858 } # ac_fn_c_check_func
1860 # ac_fn_cxx_try_compile LINENO
1861 # ----------------------------
1862 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1863 ac_fn_cxx_try_compile ()
1865 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1866 rm -f conftest.$ac_objext
1867 if { { ac_try="$ac_compile"
1868 case "(($ac_try" in
1869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1870 *) ac_try_echo=$ac_try;;
1871 esac
1872 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1873 $as_echo "$ac_try_echo"; } >&5
1874 (eval "$ac_compile") 2>conftest.err
1875 ac_status=$?
1876 if test -s conftest.err; then
1877 grep -v '^ *+' conftest.err >conftest.er1
1878 cat conftest.er1 >&5
1879 mv -f conftest.er1 conftest.err
1881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1882 test $ac_status = 0; } && {
1883 test -z "$ac_cxx_werror_flag" ||
1884 test ! -s conftest.err
1885 } && test -s conftest.$ac_objext; then :
1886 ac_retval=0
1887 else
1888 $as_echo "$as_me: failed program was:" >&5
1889 sed 's/^/| /' conftest.$ac_ext >&5
1891 ac_retval=1
1893 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1894 return $ac_retval
1896 } # ac_fn_cxx_try_compile
1898 # ac_fn_cxx_try_cpp LINENO
1899 # ------------------------
1900 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1901 ac_fn_cxx_try_cpp ()
1903 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1904 if { { ac_try="$ac_cpp conftest.$ac_ext"
1905 case "(($ac_try" in
1906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1907 *) ac_try_echo=$ac_try;;
1908 esac
1909 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1910 $as_echo "$ac_try_echo"; } >&5
1911 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1912 ac_status=$?
1913 if test -s conftest.err; then
1914 grep -v '^ *+' conftest.err >conftest.er1
1915 cat conftest.er1 >&5
1916 mv -f conftest.er1 conftest.err
1918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1919 test $ac_status = 0; } >/dev/null && {
1920 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1921 test ! -s conftest.err
1922 }; then :
1923 ac_retval=0
1924 else
1925 $as_echo "$as_me: failed program was:" >&5
1926 sed 's/^/| /' conftest.$ac_ext >&5
1928 ac_retval=1
1930 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1931 return $ac_retval
1933 } # ac_fn_cxx_try_cpp
1935 # ac_fn_cxx_try_link LINENO
1936 # -------------------------
1937 # Try to link conftest.$ac_ext, and return whether this succeeded.
1938 ac_fn_cxx_try_link ()
1940 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1941 rm -f conftest.$ac_objext conftest$ac_exeext
1942 if { { ac_try="$ac_link"
1943 case "(($ac_try" in
1944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1945 *) ac_try_echo=$ac_try;;
1946 esac
1947 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1948 $as_echo "$ac_try_echo"; } >&5
1949 (eval "$ac_link") 2>conftest.err
1950 ac_status=$?
1951 if test -s conftest.err; then
1952 grep -v '^ *+' conftest.err >conftest.er1
1953 cat conftest.er1 >&5
1954 mv -f conftest.er1 conftest.err
1956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1957 test $ac_status = 0; } && {
1958 test -z "$ac_cxx_werror_flag" ||
1959 test ! -s conftest.err
1960 } && test -s conftest$ac_exeext && {
1961 test "$cross_compiling" = yes ||
1962 $as_test_x conftest$ac_exeext
1963 }; then :
1964 ac_retval=0
1965 else
1966 $as_echo "$as_me: failed program was:" >&5
1967 sed 's/^/| /' conftest.$ac_ext >&5
1969 ac_retval=1
1971 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1972 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1973 # interfere with the next link command; also delete a directory that is
1974 # left behind by Apple's compiler. We do this before executing the actions.
1975 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1976 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1977 return $ac_retval
1979 } # ac_fn_cxx_try_link
1980 cat >config.log <<_ACEOF
1981 This file contains any messages produced by compilers while
1982 running configure, to aid debugging if configure makes a mistake.
1984 It was created by GNU Vtable Verification Runtime Library $as_me 1.0, which was
1985 generated by GNU Autoconf 2.64. Invocation command line was
1987 $ $0 $@
1989 _ACEOF
1990 exec 5>>config.log
1992 cat <<_ASUNAME
1993 ## --------- ##
1994 ## Platform. ##
1995 ## --------- ##
1997 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1998 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1999 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2000 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2001 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2003 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2004 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2006 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2007 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2008 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2009 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2010 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2011 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2012 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2014 _ASUNAME
2016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2017 for as_dir in $PATH
2019 IFS=$as_save_IFS
2020 test -z "$as_dir" && as_dir=.
2021 $as_echo "PATH: $as_dir"
2022 done
2023 IFS=$as_save_IFS
2025 } >&5
2027 cat >&5 <<_ACEOF
2030 ## ----------- ##
2031 ## Core tests. ##
2032 ## ----------- ##
2034 _ACEOF
2037 # Keep a trace of the command line.
2038 # Strip out --no-create and --no-recursion so they do not pile up.
2039 # Strip out --silent because we don't want to record it for future runs.
2040 # Also quote any args containing shell meta-characters.
2041 # Make two passes to allow for proper duplicate-argument suppression.
2042 ac_configure_args=
2043 ac_configure_args0=
2044 ac_configure_args1=
2045 ac_must_keep_next=false
2046 for ac_pass in 1 2
2048 for ac_arg
2050 case $ac_arg in
2051 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2052 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2053 | -silent | --silent | --silen | --sile | --sil)
2054 continue ;;
2055 *\'*)
2056 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2057 esac
2058 case $ac_pass in
2059 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2061 as_fn_append ac_configure_args1 " '$ac_arg'"
2062 if test $ac_must_keep_next = true; then
2063 ac_must_keep_next=false # Got value, back to normal.
2064 else
2065 case $ac_arg in
2066 *=* | --config-cache | -C | -disable-* | --disable-* \
2067 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2068 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2069 | -with-* | --with-* | -without-* | --without-* | --x)
2070 case "$ac_configure_args0 " in
2071 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2072 esac
2074 -* ) ac_must_keep_next=true ;;
2075 esac
2077 as_fn_append ac_configure_args " '$ac_arg'"
2079 esac
2080 done
2081 done
2082 { ac_configure_args0=; unset ac_configure_args0;}
2083 { ac_configure_args1=; unset ac_configure_args1;}
2085 # When interrupted or exit'd, cleanup temporary files, and complete
2086 # config.log. We remove comments because anyway the quotes in there
2087 # would cause problems or look ugly.
2088 # WARNING: Use '\'' to represent an apostrophe within the trap.
2089 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2090 trap 'exit_status=$?
2091 # Save into config.log some information that might help in debugging.
2093 echo
2095 cat <<\_ASBOX
2096 ## ---------------- ##
2097 ## Cache variables. ##
2098 ## ---------------- ##
2099 _ASBOX
2100 echo
2101 # The following way of writing the cache mishandles newlines in values,
2103 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2104 eval ac_val=\$$ac_var
2105 case $ac_val in #(
2106 *${as_nl}*)
2107 case $ac_var in #(
2108 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2109 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2110 esac
2111 case $ac_var in #(
2112 _ | IFS | as_nl) ;; #(
2113 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2114 *) { eval $ac_var=; unset $ac_var;} ;;
2115 esac ;;
2116 esac
2117 done
2118 (set) 2>&1 |
2119 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2120 *${as_nl}ac_space=\ *)
2121 sed -n \
2122 "s/'\''/'\''\\\\'\'''\''/g;
2123 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2124 ;; #(
2126 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2128 esac |
2129 sort
2131 echo
2133 cat <<\_ASBOX
2134 ## ----------------- ##
2135 ## Output variables. ##
2136 ## ----------------- ##
2137 _ASBOX
2138 echo
2139 for ac_var in $ac_subst_vars
2141 eval ac_val=\$$ac_var
2142 case $ac_val in
2143 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2144 esac
2145 $as_echo "$ac_var='\''$ac_val'\''"
2146 done | sort
2147 echo
2149 if test -n "$ac_subst_files"; then
2150 cat <<\_ASBOX
2151 ## ------------------- ##
2152 ## File substitutions. ##
2153 ## ------------------- ##
2154 _ASBOX
2155 echo
2156 for ac_var in $ac_subst_files
2158 eval ac_val=\$$ac_var
2159 case $ac_val in
2160 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2161 esac
2162 $as_echo "$ac_var='\''$ac_val'\''"
2163 done | sort
2164 echo
2167 if test -s confdefs.h; then
2168 cat <<\_ASBOX
2169 ## ----------- ##
2170 ## confdefs.h. ##
2171 ## ----------- ##
2172 _ASBOX
2173 echo
2174 cat confdefs.h
2175 echo
2177 test "$ac_signal" != 0 &&
2178 $as_echo "$as_me: caught signal $ac_signal"
2179 $as_echo "$as_me: exit $exit_status"
2180 } >&5
2181 rm -f core *.core core.conftest.* &&
2182 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2183 exit $exit_status
2185 for ac_signal in 1 2 13 15; do
2186 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2187 done
2188 ac_signal=0
2190 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2191 rm -f -r conftest* confdefs.h
2193 $as_echo "/* confdefs.h */" > confdefs.h
2195 # Predefined preprocessor variables.
2197 cat >>confdefs.h <<_ACEOF
2198 #define PACKAGE_NAME "$PACKAGE_NAME"
2199 _ACEOF
2201 cat >>confdefs.h <<_ACEOF
2202 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2203 _ACEOF
2205 cat >>confdefs.h <<_ACEOF
2206 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2207 _ACEOF
2209 cat >>confdefs.h <<_ACEOF
2210 #define PACKAGE_STRING "$PACKAGE_STRING"
2211 _ACEOF
2213 cat >>confdefs.h <<_ACEOF
2214 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2215 _ACEOF
2217 cat >>confdefs.h <<_ACEOF
2218 #define PACKAGE_URL "$PACKAGE_URL"
2219 _ACEOF
2222 # Let the site file select an alternate cache file if it wants to.
2223 # Prefer an explicitly selected file to automatically selected ones.
2224 ac_site_file1=NONE
2225 ac_site_file2=NONE
2226 if test -n "$CONFIG_SITE"; then
2227 ac_site_file1=$CONFIG_SITE
2228 elif test "x$prefix" != xNONE; then
2229 ac_site_file1=$prefix/share/config.site
2230 ac_site_file2=$prefix/etc/config.site
2231 else
2232 ac_site_file1=$ac_default_prefix/share/config.site
2233 ac_site_file2=$ac_default_prefix/etc/config.site
2235 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2237 test "x$ac_site_file" = xNONE && continue
2238 if test -r "$ac_site_file"; then
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2240 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2241 sed 's/^/| /' "$ac_site_file" >&5
2242 . "$ac_site_file"
2244 done
2246 if test -r "$cache_file"; then
2247 # Some versions of bash will fail to source /dev/null (special
2248 # files actually), so we avoid doing that.
2249 if test -f "$cache_file"; then
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2251 $as_echo "$as_me: loading cache $cache_file" >&6;}
2252 case $cache_file in
2253 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2254 *) . "./$cache_file";;
2255 esac
2257 else
2258 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2259 $as_echo "$as_me: creating cache $cache_file" >&6;}
2260 >$cache_file
2263 # Check that the precious variables saved in the cache have kept the same
2264 # value.
2265 ac_cache_corrupted=false
2266 for ac_var in $ac_precious_vars; do
2267 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2268 eval ac_new_set=\$ac_env_${ac_var}_set
2269 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2270 eval ac_new_val=\$ac_env_${ac_var}_value
2271 case $ac_old_set,$ac_new_set in
2272 set,)
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2274 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2275 ac_cache_corrupted=: ;;
2276 ,set)
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2278 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2279 ac_cache_corrupted=: ;;
2280 ,);;
2282 if test "x$ac_old_val" != "x$ac_new_val"; then
2283 # differences in whitespace do not lead to failure.
2284 ac_old_val_w=`echo x $ac_old_val`
2285 ac_new_val_w=`echo x $ac_new_val`
2286 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2288 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2289 ac_cache_corrupted=:
2290 else
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2292 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2293 eval $ac_var=\$ac_old_val
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2296 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2298 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2299 fi;;
2300 esac
2301 # Pass precious variables to config.status.
2302 if test "$ac_new_set" = set; then
2303 case $ac_new_val in
2304 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2305 *) ac_arg=$ac_var=$ac_new_val ;;
2306 esac
2307 case " $ac_configure_args " in
2308 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2309 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2310 esac
2312 done
2313 if $ac_cache_corrupted; then
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2315 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2317 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2318 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2320 ## -------------------- ##
2321 ## Main body of script. ##
2322 ## -------------------- ##
2324 ac_ext=c
2325 ac_cpp='$CPP $CPPFLAGS'
2326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2334 #AC_INIT(package-unused, version-unused, libvtv)
2337 # Default to --enable-multilib
2338 # Check whether --enable-multilib was given.
2339 if test "${enable_multilib+set}" = set; then :
2340 enableval=$enable_multilib; case "$enableval" in
2341 yes) multilib=yes ;;
2342 no) multilib=no ;;
2343 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2344 esac
2345 else
2346 multilib=yes
2350 # We may get other options which we leave undocumented:
2351 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2352 # See config-ml.in if you want the gory details.
2354 if test "$srcdir" = "."; then
2355 if test "$with_target_subdir" != "."; then
2356 multi_basedir="$srcdir/$with_multisrctop../.."
2357 else
2358 multi_basedir="$srcdir/$with_multisrctop.."
2360 else
2361 multi_basedir="$srcdir/.."
2365 # Even if the default multilib is not a cross compilation,
2366 # it may be that some of the other multilibs are.
2367 if test $cross_compiling = no && test $multilib = yes \
2368 && test "x${with_multisubdir}" != x ; then
2369 cross_compiling=maybe
2372 ac_config_commands="$ac_config_commands default-1"
2375 # -------
2376 # Options
2377 # -------
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2379 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2380 # Check whether --enable-version-specific-runtime-libs was given.
2381 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2382 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2383 yes) version_specific_libs=yes ;;
2384 no) version_specific_libs=no ;;
2385 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2386 esac
2387 else
2388 version_specific_libs=no
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2392 $as_echo "$version_specific_libs" >&6; }
2394 # Do not delete or change the following two lines. For why, see
2395 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2396 ac_aux_dir=
2397 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2398 for ac_t in install-sh install.sh shtool; do
2399 if test -f "$ac_dir/$ac_t"; then
2400 ac_aux_dir=$ac_dir
2401 ac_install_sh="$ac_aux_dir/$ac_t -c"
2402 break 2
2404 done
2405 done
2406 if test -z "$ac_aux_dir"; then
2407 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2410 # These three variables are undocumented and unsupported,
2411 # and are intended to be withdrawn in a future Autoconf release.
2412 # They can cause serious problems if a builder's source tree is in a directory
2413 # whose full name contains unusual characters.
2414 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2415 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2416 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2419 # Make sure we can run config.sub.
2420 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2421 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2424 $as_echo_n "checking build system type... " >&6; }
2425 if test "${ac_cv_build+set}" = set; then :
2426 $as_echo_n "(cached) " >&6
2427 else
2428 ac_build_alias=$build_alias
2429 test "x$ac_build_alias" = x &&
2430 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2431 test "x$ac_build_alias" = x &&
2432 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2433 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2434 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2438 $as_echo "$ac_cv_build" >&6; }
2439 case $ac_cv_build in
2440 *-*-*) ;;
2441 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2442 esac
2443 build=$ac_cv_build
2444 ac_save_IFS=$IFS; IFS='-'
2445 set x $ac_cv_build
2446 shift
2447 build_cpu=$1
2448 build_vendor=$2
2449 shift; shift
2450 # Remember, the first character of IFS is used to create $*,
2451 # except with old shells:
2452 build_os=$*
2453 IFS=$ac_save_IFS
2454 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2458 $as_echo_n "checking host system type... " >&6; }
2459 if test "${ac_cv_host+set}" = set; then :
2460 $as_echo_n "(cached) " >&6
2461 else
2462 if test "x$host_alias" = x; then
2463 ac_cv_host=$ac_cv_build
2464 else
2465 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2466 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2471 $as_echo "$ac_cv_host" >&6; }
2472 case $ac_cv_host in
2473 *-*-*) ;;
2474 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2475 esac
2476 host=$ac_cv_host
2477 ac_save_IFS=$IFS; IFS='-'
2478 set x $ac_cv_host
2479 shift
2480 host_cpu=$1
2481 host_vendor=$2
2482 shift; shift
2483 # Remember, the first character of IFS is used to create $*,
2484 # except with old shells:
2485 host_os=$*
2486 IFS=$ac_save_IFS
2487 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2491 $as_echo_n "checking target system type... " >&6; }
2492 if test "${ac_cv_target+set}" = set; then :
2493 $as_echo_n "(cached) " >&6
2494 else
2495 if test "x$target_alias" = x; then
2496 ac_cv_target=$ac_cv_host
2497 else
2498 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2499 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2504 $as_echo "$ac_cv_target" >&6; }
2505 case $ac_cv_target in
2506 *-*-*) ;;
2507 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2508 esac
2509 target=$ac_cv_target
2510 ac_save_IFS=$IFS; IFS='-'
2511 set x $ac_cv_target
2512 shift
2513 target_cpu=$1
2514 target_vendor=$2
2515 shift; shift
2516 # Remember, the first character of IFS is used to create $*,
2517 # except with old shells:
2518 target_os=$*
2519 IFS=$ac_save_IFS
2520 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2523 # The aliases save the names the user supplied, while $host etc.
2524 # will get canonicalized.
2525 test -n "$target_alias" &&
2526 test "$program_prefix$program_suffix$program_transform_name" = \
2527 NONENONEs,x,x, &&
2528 program_prefix=${target_alias}-
2530 target_alias=${target_alias-$host_alias}
2532 case ${build_alias} in
2533 "") build_noncanonical=${build} ;;
2534 *) build_noncanonical=${build_alias} ;;
2535 esac
2537 case ${host_alias} in
2538 "") host_noncanonical=${build_noncanonical} ;;
2539 *) host_noncanonical=${host_alias} ;;
2540 esac
2542 case ${target_alias} in
2543 "") target_noncanonical=${host_noncanonical} ;;
2544 *) target_noncanonical=${target_alias} ;;
2545 esac
2551 LIBSTDCXX_RAW_CXX_CXXFLAGS="\
2552 -I\$(top_builddir)/../libstdc++-v3/include \
2553 -I\$(top_builddir)/../libstdc++-v3/include/\$(target_noncanonical) \
2554 -I\$(top_srcdir)/../libstdc++-v3/libsupc++"
2555 LIBSTDCXX_RAW_CXX_LDFLAGS="\
2556 \$(top_builddir)/../libstdc++-v3/src/libstdc++.la"
2561 ac_ext=c
2562 ac_cpp='$CPP $CPPFLAGS'
2563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2566 if test -n "$ac_tool_prefix"; then
2567 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2568 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2570 $as_echo_n "checking for $ac_word... " >&6; }
2571 if test "${ac_cv_prog_CC+set}" = set; then :
2572 $as_echo_n "(cached) " >&6
2573 else
2574 if test -n "$CC"; then
2575 ac_cv_prog_CC="$CC" # Let the user override the test.
2576 else
2577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2578 for as_dir in $PATH
2580 IFS=$as_save_IFS
2581 test -z "$as_dir" && as_dir=.
2582 for ac_exec_ext in '' $ac_executable_extensions; do
2583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2584 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2586 break 2
2588 done
2589 done
2590 IFS=$as_save_IFS
2594 CC=$ac_cv_prog_CC
2595 if test -n "$CC"; then
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2597 $as_echo "$CC" >&6; }
2598 else
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2600 $as_echo "no" >&6; }
2605 if test -z "$ac_cv_prog_CC"; then
2606 ac_ct_CC=$CC
2607 # Extract the first word of "gcc", so it can be a program name with args.
2608 set dummy gcc; ac_word=$2
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2610 $as_echo_n "checking for $ac_word... " >&6; }
2611 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2612 $as_echo_n "(cached) " >&6
2613 else
2614 if test -n "$ac_ct_CC"; then
2615 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2616 else
2617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2618 for as_dir in $PATH
2620 IFS=$as_save_IFS
2621 test -z "$as_dir" && as_dir=.
2622 for ac_exec_ext in '' $ac_executable_extensions; do
2623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2624 ac_cv_prog_ac_ct_CC="gcc"
2625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2626 break 2
2628 done
2629 done
2630 IFS=$as_save_IFS
2634 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2635 if test -n "$ac_ct_CC"; then
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2637 $as_echo "$ac_ct_CC" >&6; }
2638 else
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2640 $as_echo "no" >&6; }
2643 if test "x$ac_ct_CC" = x; then
2644 CC=""
2645 else
2646 case $cross_compiling:$ac_tool_warned in
2647 yes:)
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2649 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2650 ac_tool_warned=yes ;;
2651 esac
2652 CC=$ac_ct_CC
2654 else
2655 CC="$ac_cv_prog_CC"
2658 if test -z "$CC"; then
2659 if test -n "$ac_tool_prefix"; then
2660 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2661 set dummy ${ac_tool_prefix}cc; ac_word=$2
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2663 $as_echo_n "checking for $ac_word... " >&6; }
2664 if test "${ac_cv_prog_CC+set}" = set; then :
2665 $as_echo_n "(cached) " >&6
2666 else
2667 if test -n "$CC"; then
2668 ac_cv_prog_CC="$CC" # Let the user override the test.
2669 else
2670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2671 for as_dir in $PATH
2673 IFS=$as_save_IFS
2674 test -z "$as_dir" && as_dir=.
2675 for ac_exec_ext in '' $ac_executable_extensions; do
2676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2677 ac_cv_prog_CC="${ac_tool_prefix}cc"
2678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2679 break 2
2681 done
2682 done
2683 IFS=$as_save_IFS
2687 CC=$ac_cv_prog_CC
2688 if test -n "$CC"; then
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2690 $as_echo "$CC" >&6; }
2691 else
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2693 $as_echo "no" >&6; }
2699 if test -z "$CC"; then
2700 # Extract the first word of "cc", so it can be a program name with args.
2701 set dummy cc; ac_word=$2
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2703 $as_echo_n "checking for $ac_word... " >&6; }
2704 if test "${ac_cv_prog_CC+set}" = set; then :
2705 $as_echo_n "(cached) " >&6
2706 else
2707 if test -n "$CC"; then
2708 ac_cv_prog_CC="$CC" # Let the user override the test.
2709 else
2710 ac_prog_rejected=no
2711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2712 for as_dir in $PATH
2714 IFS=$as_save_IFS
2715 test -z "$as_dir" && as_dir=.
2716 for ac_exec_ext in '' $ac_executable_extensions; do
2717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2718 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2719 ac_prog_rejected=yes
2720 continue
2722 ac_cv_prog_CC="cc"
2723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2724 break 2
2726 done
2727 done
2728 IFS=$as_save_IFS
2730 if test $ac_prog_rejected = yes; then
2731 # We found a bogon in the path, so make sure we never use it.
2732 set dummy $ac_cv_prog_CC
2733 shift
2734 if test $# != 0; then
2735 # We chose a different compiler from the bogus one.
2736 # However, it has the same basename, so the bogon will be chosen
2737 # first if we set CC to just the basename; use the full file name.
2738 shift
2739 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2744 CC=$ac_cv_prog_CC
2745 if test -n "$CC"; then
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2747 $as_echo "$CC" >&6; }
2748 else
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2750 $as_echo "no" >&6; }
2755 if test -z "$CC"; then
2756 if test -n "$ac_tool_prefix"; then
2757 for ac_prog in cl.exe
2759 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2760 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2762 $as_echo_n "checking for $ac_word... " >&6; }
2763 if test "${ac_cv_prog_CC+set}" = set; then :
2764 $as_echo_n "(cached) " >&6
2765 else
2766 if test -n "$CC"; then
2767 ac_cv_prog_CC="$CC" # Let the user override the test.
2768 else
2769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2770 for as_dir in $PATH
2772 IFS=$as_save_IFS
2773 test -z "$as_dir" && as_dir=.
2774 for ac_exec_ext in '' $ac_executable_extensions; do
2775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2776 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2778 break 2
2780 done
2781 done
2782 IFS=$as_save_IFS
2786 CC=$ac_cv_prog_CC
2787 if test -n "$CC"; then
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2789 $as_echo "$CC" >&6; }
2790 else
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2792 $as_echo "no" >&6; }
2796 test -n "$CC" && break
2797 done
2799 if test -z "$CC"; then
2800 ac_ct_CC=$CC
2801 for ac_prog in cl.exe
2803 # Extract the first word of "$ac_prog", so it can be a program name with args.
2804 set dummy $ac_prog; ac_word=$2
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2806 $as_echo_n "checking for $ac_word... " >&6; }
2807 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2808 $as_echo_n "(cached) " >&6
2809 else
2810 if test -n "$ac_ct_CC"; then
2811 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2812 else
2813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2814 for as_dir in $PATH
2816 IFS=$as_save_IFS
2817 test -z "$as_dir" && as_dir=.
2818 for ac_exec_ext in '' $ac_executable_extensions; do
2819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2820 ac_cv_prog_ac_ct_CC="$ac_prog"
2821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2822 break 2
2824 done
2825 done
2826 IFS=$as_save_IFS
2830 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2831 if test -n "$ac_ct_CC"; then
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2833 $as_echo "$ac_ct_CC" >&6; }
2834 else
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2836 $as_echo "no" >&6; }
2840 test -n "$ac_ct_CC" && break
2841 done
2843 if test "x$ac_ct_CC" = x; then
2844 CC=""
2845 else
2846 case $cross_compiling:$ac_tool_warned in
2847 yes:)
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2849 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2850 ac_tool_warned=yes ;;
2851 esac
2852 CC=$ac_ct_CC
2859 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2860 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2861 as_fn_error "no acceptable C compiler found in \$PATH
2862 See \`config.log' for more details." "$LINENO" 5; }
2864 # Provide some information about the compiler.
2865 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2866 set X $ac_compile
2867 ac_compiler=$2
2868 for ac_option in --version -v -V -qversion; do
2869 { { ac_try="$ac_compiler $ac_option >&5"
2870 case "(($ac_try" in
2871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2872 *) ac_try_echo=$ac_try;;
2873 esac
2874 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2875 $as_echo "$ac_try_echo"; } >&5
2876 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2877 ac_status=$?
2878 if test -s conftest.err; then
2879 sed '10a\
2880 ... rest of stderr output deleted ...
2881 10q' conftest.err >conftest.er1
2882 cat conftest.er1 >&5
2883 rm -f conftest.er1 conftest.err
2885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2886 test $ac_status = 0; }
2887 done
2889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2890 /* end confdefs.h. */
2893 main ()
2897 return 0;
2899 _ACEOF
2900 ac_clean_files_save=$ac_clean_files
2901 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2902 # Try to create an executable without -o first, disregard a.out.
2903 # It will help us diagnose broken compilers, and finding out an intuition
2904 # of exeext.
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2906 $as_echo_n "checking for C compiler default output file name... " >&6; }
2907 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2909 # The possible output files:
2910 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2912 ac_rmfiles=
2913 for ac_file in $ac_files
2915 case $ac_file in
2916 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2917 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2918 esac
2919 done
2920 rm -f $ac_rmfiles
2922 if { { ac_try="$ac_link_default"
2923 case "(($ac_try" in
2924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2925 *) ac_try_echo=$ac_try;;
2926 esac
2927 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2928 $as_echo "$ac_try_echo"; } >&5
2929 (eval "$ac_link_default") 2>&5
2930 ac_status=$?
2931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2932 test $ac_status = 0; }; then :
2933 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2934 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2935 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2936 # so that the user can short-circuit this test for compilers unknown to
2937 # Autoconf.
2938 for ac_file in $ac_files ''
2940 test -f "$ac_file" || continue
2941 case $ac_file in
2942 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2944 [ab].out )
2945 # We found the default executable, but exeext='' is most
2946 # certainly right.
2947 break;;
2948 *.* )
2949 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2950 then :; else
2951 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2953 # We set ac_cv_exeext here because the later test for it is not
2954 # safe: cross compilers may not add the suffix if given an `-o'
2955 # argument, so we may need to know it at that point already.
2956 # Even if this section looks crufty: it has the advantage of
2957 # actually working.
2958 break;;
2960 break;;
2961 esac
2962 done
2963 test "$ac_cv_exeext" = no && ac_cv_exeext=
2965 else
2966 ac_file=''
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2969 $as_echo "$ac_file" >&6; }
2970 if test -z "$ac_file"; then :
2971 $as_echo "$as_me: failed program was:" >&5
2972 sed 's/^/| /' conftest.$ac_ext >&5
2974 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2975 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2976 { as_fn_set_status 77
2977 as_fn_error "C compiler cannot create executables
2978 See \`config.log' for more details." "$LINENO" 5; }; }
2980 ac_exeext=$ac_cv_exeext
2982 # Check that the compiler produces executables we can run. If not, either
2983 # the compiler is broken, or we cross compile.
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2985 $as_echo_n "checking whether the C compiler works... " >&6; }
2986 # If not cross compiling, check that we can run a simple program.
2987 if test "$cross_compiling" != yes; then
2988 if { ac_try='./$ac_file'
2989 { { case "(($ac_try" in
2990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2991 *) ac_try_echo=$ac_try;;
2992 esac
2993 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2994 $as_echo "$ac_try_echo"; } >&5
2995 (eval "$ac_try") 2>&5
2996 ac_status=$?
2997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2998 test $ac_status = 0; }; }; then
2999 cross_compiling=no
3000 else
3001 if test "$cross_compiling" = maybe; then
3002 cross_compiling=yes
3003 else
3004 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3005 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3006 as_fn_error "cannot run C compiled programs.
3007 If you meant to cross compile, use \`--host'.
3008 See \`config.log' for more details." "$LINENO" 5; }
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3013 $as_echo "yes" >&6; }
3015 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3016 ac_clean_files=$ac_clean_files_save
3017 # Check that the compiler produces executables we can run. If not, either
3018 # the compiler is broken, or we cross compile.
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3020 $as_echo_n "checking whether we are cross compiling... " >&6; }
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3022 $as_echo "$cross_compiling" >&6; }
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3025 $as_echo_n "checking for suffix of executables... " >&6; }
3026 if { { ac_try="$ac_link"
3027 case "(($ac_try" in
3028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3029 *) ac_try_echo=$ac_try;;
3030 esac
3031 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3032 $as_echo "$ac_try_echo"; } >&5
3033 (eval "$ac_link") 2>&5
3034 ac_status=$?
3035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3036 test $ac_status = 0; }; then :
3037 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3038 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3039 # work properly (i.e., refer to `conftest.exe'), while it won't with
3040 # `rm'.
3041 for ac_file in conftest.exe conftest conftest.*; do
3042 test -f "$ac_file" || continue
3043 case $ac_file in
3044 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3045 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3046 break;;
3047 * ) break;;
3048 esac
3049 done
3050 else
3051 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3052 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3053 as_fn_error "cannot compute suffix of executables: cannot compile and link
3054 See \`config.log' for more details." "$LINENO" 5; }
3056 rm -f conftest$ac_cv_exeext
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3058 $as_echo "$ac_cv_exeext" >&6; }
3060 rm -f conftest.$ac_ext
3061 EXEEXT=$ac_cv_exeext
3062 ac_exeext=$EXEEXT
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3064 $as_echo_n "checking for suffix of object files... " >&6; }
3065 if test "${ac_cv_objext+set}" = set; then :
3066 $as_echo_n "(cached) " >&6
3067 else
3068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3069 /* end confdefs.h. */
3072 main ()
3076 return 0;
3078 _ACEOF
3079 rm -f conftest.o conftest.obj
3080 if { { ac_try="$ac_compile"
3081 case "(($ac_try" in
3082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3083 *) ac_try_echo=$ac_try;;
3084 esac
3085 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3086 $as_echo "$ac_try_echo"; } >&5
3087 (eval "$ac_compile") 2>&5
3088 ac_status=$?
3089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3090 test $ac_status = 0; }; then :
3091 for ac_file in conftest.o conftest.obj conftest.*; do
3092 test -f "$ac_file" || continue;
3093 case $ac_file in
3094 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3095 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3096 break;;
3097 esac
3098 done
3099 else
3100 $as_echo "$as_me: failed program was:" >&5
3101 sed 's/^/| /' conftest.$ac_ext >&5
3103 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3104 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3105 as_fn_error "cannot compute suffix of object files: cannot compile
3106 See \`config.log' for more details." "$LINENO" 5; }
3108 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3111 $as_echo "$ac_cv_objext" >&6; }
3112 OBJEXT=$ac_cv_objext
3113 ac_objext=$OBJEXT
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3115 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3116 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3117 $as_echo_n "(cached) " >&6
3118 else
3119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3120 /* end confdefs.h. */
3123 main ()
3125 #ifndef __GNUC__
3126 choke me
3127 #endif
3130 return 0;
3132 _ACEOF
3133 if ac_fn_c_try_compile "$LINENO"; then :
3134 ac_compiler_gnu=yes
3135 else
3136 ac_compiler_gnu=no
3138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3139 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3143 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3144 if test $ac_compiler_gnu = yes; then
3145 GCC=yes
3146 else
3147 GCC=
3149 ac_test_CFLAGS=${CFLAGS+set}
3150 ac_save_CFLAGS=$CFLAGS
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3152 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3153 if test "${ac_cv_prog_cc_g+set}" = set; then :
3154 $as_echo_n "(cached) " >&6
3155 else
3156 ac_save_c_werror_flag=$ac_c_werror_flag
3157 ac_c_werror_flag=yes
3158 ac_cv_prog_cc_g=no
3159 CFLAGS="-g"
3160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3161 /* end confdefs.h. */
3164 main ()
3168 return 0;
3170 _ACEOF
3171 if ac_fn_c_try_compile "$LINENO"; then :
3172 ac_cv_prog_cc_g=yes
3173 else
3174 CFLAGS=""
3175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3176 /* end confdefs.h. */
3179 main ()
3183 return 0;
3185 _ACEOF
3186 if ac_fn_c_try_compile "$LINENO"; then :
3188 else
3189 ac_c_werror_flag=$ac_save_c_werror_flag
3190 CFLAGS="-g"
3191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3192 /* end confdefs.h. */
3195 main ()
3199 return 0;
3201 _ACEOF
3202 if ac_fn_c_try_compile "$LINENO"; then :
3203 ac_cv_prog_cc_g=yes
3205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3210 ac_c_werror_flag=$ac_save_c_werror_flag
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3213 $as_echo "$ac_cv_prog_cc_g" >&6; }
3214 if test "$ac_test_CFLAGS" = set; then
3215 CFLAGS=$ac_save_CFLAGS
3216 elif test $ac_cv_prog_cc_g = yes; then
3217 if test "$GCC" = yes; then
3218 CFLAGS="-g -O2"
3219 else
3220 CFLAGS="-g"
3222 else
3223 if test "$GCC" = yes; then
3224 CFLAGS="-O2"
3225 else
3226 CFLAGS=
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3230 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3231 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3232 $as_echo_n "(cached) " >&6
3233 else
3234 ac_cv_prog_cc_c89=no
3235 ac_save_CC=$CC
3236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3237 /* end confdefs.h. */
3238 #include <stdarg.h>
3239 #include <stdio.h>
3240 #include <sys/types.h>
3241 #include <sys/stat.h>
3242 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3243 struct buf { int x; };
3244 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3245 static char *e (p, i)
3246 char **p;
3247 int i;
3249 return p[i];
3251 static char *f (char * (*g) (char **, int), char **p, ...)
3253 char *s;
3254 va_list v;
3255 va_start (v,p);
3256 s = g (p, va_arg (v,int));
3257 va_end (v);
3258 return s;
3261 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3262 function prototypes and stuff, but not '\xHH' hex character constants.
3263 These don't provoke an error unfortunately, instead are silently treated
3264 as 'x'. The following induces an error, until -std is added to get
3265 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3266 array size at least. It's necessary to write '\x00'==0 to get something
3267 that's true only with -std. */
3268 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3270 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3271 inside strings and character constants. */
3272 #define FOO(x) 'x'
3273 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3275 int test (int i, double x);
3276 struct s1 {int (*f) (int a);};
3277 struct s2 {int (*f) (double a);};
3278 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3279 int argc;
3280 char **argv;
3282 main ()
3284 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3286 return 0;
3288 _ACEOF
3289 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3290 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3292 CC="$ac_save_CC $ac_arg"
3293 if ac_fn_c_try_compile "$LINENO"; then :
3294 ac_cv_prog_cc_c89=$ac_arg
3296 rm -f core conftest.err conftest.$ac_objext
3297 test "x$ac_cv_prog_cc_c89" != "xno" && break
3298 done
3299 rm -f conftest.$ac_ext
3300 CC=$ac_save_CC
3303 # AC_CACHE_VAL
3304 case "x$ac_cv_prog_cc_c89" in
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3307 $as_echo "none needed" >&6; } ;;
3308 xno)
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3310 $as_echo "unsupported" >&6; } ;;
3312 CC="$CC $ac_cv_prog_cc_c89"
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3314 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3315 esac
3316 if test "x$ac_cv_prog_cc_c89" != xno; then :
3320 ac_ext=c
3321 ac_cpp='$CPP $CPPFLAGS'
3322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3327 ac_ext=c
3328 ac_cpp='$CPP $CPPFLAGS'
3329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3333 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3334 # On Suns, sometimes $CPP names a directory.
3335 if test -n "$CPP" && test -d "$CPP"; then
3336 CPP=
3338 if test -z "$CPP"; then
3339 if test "${ac_cv_prog_CPP+set}" = set; then :
3340 $as_echo_n "(cached) " >&6
3341 else
3342 # Double quotes because CPP needs to be expanded
3343 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3345 ac_preproc_ok=false
3346 for ac_c_preproc_warn_flag in '' yes
3348 # Use a header file that comes with gcc, so configuring glibc
3349 # with a fresh cross-compiler works.
3350 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3351 # <limits.h> exists even on freestanding compilers.
3352 # On the NeXT, cc -E runs the code through the compiler's parser,
3353 # not just through cpp. "Syntax error" is here to catch this case.
3354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3355 /* end confdefs.h. */
3356 #ifdef __STDC__
3357 # include <limits.h>
3358 #else
3359 # include <assert.h>
3360 #endif
3361 Syntax error
3362 _ACEOF
3363 if ac_fn_c_try_cpp "$LINENO"; then :
3365 else
3366 # Broken: fails on valid input.
3367 continue
3369 rm -f conftest.err conftest.$ac_ext
3371 # OK, works on sane cases. Now check whether nonexistent headers
3372 # can be detected and how.
3373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3374 /* end confdefs.h. */
3375 #include <ac_nonexistent.h>
3376 _ACEOF
3377 if ac_fn_c_try_cpp "$LINENO"; then :
3378 # Broken: success on invalid input.
3379 continue
3380 else
3381 # Passes both tests.
3382 ac_preproc_ok=:
3383 break
3385 rm -f conftest.err conftest.$ac_ext
3387 done
3388 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3389 rm -f conftest.err conftest.$ac_ext
3390 if $ac_preproc_ok; then :
3391 break
3394 done
3395 ac_cv_prog_CPP=$CPP
3398 CPP=$ac_cv_prog_CPP
3399 else
3400 ac_cv_prog_CPP=$CPP
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3403 $as_echo "$CPP" >&6; }
3404 ac_preproc_ok=false
3405 for ac_c_preproc_warn_flag in '' yes
3407 # Use a header file that comes with gcc, so configuring glibc
3408 # with a fresh cross-compiler works.
3409 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3410 # <limits.h> exists even on freestanding compilers.
3411 # On the NeXT, cc -E runs the code through the compiler's parser,
3412 # not just through cpp. "Syntax error" is here to catch this case.
3413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3414 /* end confdefs.h. */
3415 #ifdef __STDC__
3416 # include <limits.h>
3417 #else
3418 # include <assert.h>
3419 #endif
3420 Syntax error
3421 _ACEOF
3422 if ac_fn_c_try_cpp "$LINENO"; then :
3424 else
3425 # Broken: fails on valid input.
3426 continue
3428 rm -f conftest.err conftest.$ac_ext
3430 # OK, works on sane cases. Now check whether nonexistent headers
3431 # can be detected and how.
3432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3433 /* end confdefs.h. */
3434 #include <ac_nonexistent.h>
3435 _ACEOF
3436 if ac_fn_c_try_cpp "$LINENO"; then :
3437 # Broken: success on invalid input.
3438 continue
3439 else
3440 # Passes both tests.
3441 ac_preproc_ok=:
3442 break
3444 rm -f conftest.err conftest.$ac_ext
3446 done
3447 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3448 rm -f conftest.err conftest.$ac_ext
3449 if $ac_preproc_ok; then :
3451 else
3452 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3453 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3454 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3455 See \`config.log' for more details." "$LINENO" 5; }
3458 ac_ext=c
3459 ac_cpp='$CPP $CPPFLAGS'
3460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3466 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3467 if test "${ac_cv_path_GREP+set}" = set; then :
3468 $as_echo_n "(cached) " >&6
3469 else
3470 if test -z "$GREP"; then
3471 ac_path_GREP_found=false
3472 # Loop through the user's path and test for each of PROGNAME-LIST
3473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3474 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3476 IFS=$as_save_IFS
3477 test -z "$as_dir" && as_dir=.
3478 for ac_prog in grep ggrep; do
3479 for ac_exec_ext in '' $ac_executable_extensions; do
3480 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3481 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3482 # Check for GNU ac_path_GREP and select it if it is found.
3483 # Check for GNU $ac_path_GREP
3484 case `"$ac_path_GREP" --version 2>&1` in
3485 *GNU*)
3486 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3488 ac_count=0
3489 $as_echo_n 0123456789 >"conftest.in"
3490 while :
3492 cat "conftest.in" "conftest.in" >"conftest.tmp"
3493 mv "conftest.tmp" "conftest.in"
3494 cp "conftest.in" "conftest.nl"
3495 $as_echo 'GREP' >> "conftest.nl"
3496 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3497 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3498 as_fn_arith $ac_count + 1 && ac_count=$as_val
3499 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3500 # Best one so far, save it but keep looking for a better one
3501 ac_cv_path_GREP="$ac_path_GREP"
3502 ac_path_GREP_max=$ac_count
3504 # 10*(2^10) chars as input seems more than enough
3505 test $ac_count -gt 10 && break
3506 done
3507 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3508 esac
3510 $ac_path_GREP_found && break 3
3511 done
3512 done
3513 done
3514 IFS=$as_save_IFS
3515 if test -z "$ac_cv_path_GREP"; then
3516 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3518 else
3519 ac_cv_path_GREP=$GREP
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3524 $as_echo "$ac_cv_path_GREP" >&6; }
3525 GREP="$ac_cv_path_GREP"
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3529 $as_echo_n "checking for egrep... " >&6; }
3530 if test "${ac_cv_path_EGREP+set}" = set; then :
3531 $as_echo_n "(cached) " >&6
3532 else
3533 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3534 then ac_cv_path_EGREP="$GREP -E"
3535 else
3536 if test -z "$EGREP"; then
3537 ac_path_EGREP_found=false
3538 # Loop through the user's path and test for each of PROGNAME-LIST
3539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3540 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3542 IFS=$as_save_IFS
3543 test -z "$as_dir" && as_dir=.
3544 for ac_prog in egrep; do
3545 for ac_exec_ext in '' $ac_executable_extensions; do
3546 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3547 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3548 # Check for GNU ac_path_EGREP and select it if it is found.
3549 # Check for GNU $ac_path_EGREP
3550 case `"$ac_path_EGREP" --version 2>&1` in
3551 *GNU*)
3552 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3554 ac_count=0
3555 $as_echo_n 0123456789 >"conftest.in"
3556 while :
3558 cat "conftest.in" "conftest.in" >"conftest.tmp"
3559 mv "conftest.tmp" "conftest.in"
3560 cp "conftest.in" "conftest.nl"
3561 $as_echo 'EGREP' >> "conftest.nl"
3562 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3563 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3564 as_fn_arith $ac_count + 1 && ac_count=$as_val
3565 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3566 # Best one so far, save it but keep looking for a better one
3567 ac_cv_path_EGREP="$ac_path_EGREP"
3568 ac_path_EGREP_max=$ac_count
3570 # 10*(2^10) chars as input seems more than enough
3571 test $ac_count -gt 10 && break
3572 done
3573 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3574 esac
3576 $ac_path_EGREP_found && break 3
3577 done
3578 done
3579 done
3580 IFS=$as_save_IFS
3581 if test -z "$ac_cv_path_EGREP"; then
3582 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3584 else
3585 ac_cv_path_EGREP=$EGREP
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3591 $as_echo "$ac_cv_path_EGREP" >&6; }
3592 EGREP="$ac_cv_path_EGREP"
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3596 $as_echo_n "checking for ANSI C header files... " >&6; }
3597 if test "${ac_cv_header_stdc+set}" = set; then :
3598 $as_echo_n "(cached) " >&6
3599 else
3600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3601 /* end confdefs.h. */
3602 #include <stdlib.h>
3603 #include <stdarg.h>
3604 #include <string.h>
3605 #include <float.h>
3608 main ()
3612 return 0;
3614 _ACEOF
3615 if ac_fn_c_try_compile "$LINENO"; then :
3616 ac_cv_header_stdc=yes
3617 else
3618 ac_cv_header_stdc=no
3620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3622 if test $ac_cv_header_stdc = yes; then
3623 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3625 /* end confdefs.h. */
3626 #include <string.h>
3628 _ACEOF
3629 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3630 $EGREP "memchr" >/dev/null 2>&1; then :
3632 else
3633 ac_cv_header_stdc=no
3635 rm -f conftest*
3639 if test $ac_cv_header_stdc = yes; then
3640 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3642 /* end confdefs.h. */
3643 #include <stdlib.h>
3645 _ACEOF
3646 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3647 $EGREP "free" >/dev/null 2>&1; then :
3649 else
3650 ac_cv_header_stdc=no
3652 rm -f conftest*
3656 if test $ac_cv_header_stdc = yes; then
3657 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3658 if test "$cross_compiling" = yes; then :
3660 else
3661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3662 /* end confdefs.h. */
3663 #include <ctype.h>
3664 #include <stdlib.h>
3665 #if ((' ' & 0x0FF) == 0x020)
3666 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3667 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3668 #else
3669 # define ISLOWER(c) \
3670 (('a' <= (c) && (c) <= 'i') \
3671 || ('j' <= (c) && (c) <= 'r') \
3672 || ('s' <= (c) && (c) <= 'z'))
3673 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3674 #endif
3676 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3678 main ()
3680 int i;
3681 for (i = 0; i < 256; i++)
3682 if (XOR (islower (i), ISLOWER (i))
3683 || toupper (i) != TOUPPER (i))
3684 return 2;
3685 return 0;
3687 _ACEOF
3688 if ac_fn_c_try_run "$LINENO"; then :
3690 else
3691 ac_cv_header_stdc=no
3693 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3694 conftest.$ac_objext conftest.beam conftest.$ac_ext
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3700 $as_echo "$ac_cv_header_stdc" >&6; }
3701 if test $ac_cv_header_stdc = yes; then
3703 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3707 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3708 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3709 inttypes.h stdint.h unistd.h
3710 do :
3711 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3712 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3714 eval as_val=\$$as_ac_Header
3715 if test "x$as_val" = x""yes; then :
3716 cat >>confdefs.h <<_ACEOF
3717 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3718 _ACEOF
3722 done
3726 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3727 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
3728 MINIX=yes
3729 else
3730 MINIX=
3734 if test "$MINIX" = yes; then
3736 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3739 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3742 $as_echo "#define _MINIX 1" >>confdefs.h
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3748 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3749 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3750 $as_echo_n "(cached) " >&6
3751 else
3752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3753 /* end confdefs.h. */
3755 # define __EXTENSIONS__ 1
3756 $ac_includes_default
3758 main ()
3762 return 0;
3764 _ACEOF
3765 if ac_fn_c_try_compile "$LINENO"; then :
3766 ac_cv_safe_to_define___extensions__=yes
3767 else
3768 ac_cv_safe_to_define___extensions__=no
3770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3773 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3774 test $ac_cv_safe_to_define___extensions__ = yes &&
3775 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3777 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3779 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3781 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3783 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3787 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
3789 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
3790 # Check whether --enable-vtable-verify was given.
3791 if test "${enable_vtable_verify+set}" = set; then :
3792 enableval=$enable_vtable_verify; case "$enableval" in
3793 yes) enable_vtable_verify=yes ;;
3794 no) enable_vtable_verify=no ;;
3795 *) enable_vtable_verify=no;;
3796 esac
3797 else
3798 enable_vtable_verify=no
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
3802 $as_echo "$enable_vtable_verify" >&6; }
3804 # See if supported.
3805 unset VTV_SUPPORTED
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for host support for vtable verification" >&5
3807 $as_echo_n "checking for host support for vtable verification... " >&6; }
3808 . ${srcdir}/configure.tgt
3809 case ${host} in
3810 *-*-solaris2*)
3811 # libvtv requires init priority support, which depends on the linker
3812 # used on Solaris.
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for init priority support" >&5
3814 $as_echo_n "checking for init priority support... " >&6; }
3815 if test "${libvtv_cv_init_priority+set}" = set; then :
3816 $as_echo_n "(cached) " >&6
3817 else
3819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3820 /* end confdefs.h. */
3823 main ()
3825 void ip (void) __attribute__ ((constructor (1)));
3827 return 0;
3829 _ACEOF
3830 if ac_fn_c_try_compile "$LINENO"; then :
3831 libgcc_cv_init_priority=yes
3832 else
3833 libgcc_cv_init_priority=no
3835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libvtv_cv_init_priority" >&5
3838 $as_echo "$libvtv_cv_init_priority" >&6; }
3839 if test x$libvtv_cv_init_priority = xno; then
3840 VTV_SUPPORTED=no
3842 # FIXME: Maybe check for dl_iterate_phdr, too? Should be covered by
3843 # configure.tgt restricting to libvtv to Solaris 11+.
3845 esac
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VTV_SUPPORTED" >&5
3847 $as_echo "$VTV_SUPPORTED" >&6; }
3849 # Decide if it's usable.
3850 use_vtable_verify=no
3851 if test "x$VTV_SUPPORTED" = "xyes"; then
3852 if test "x$enable_vtable_verify" = "xyes"; then
3853 use_vtable_verify=yes
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: using vtable verification" >&5
3855 $as_echo "$as_me: using vtable verification" >&6;}
3858 if test $use_vtable_verify = yes; then
3859 ENABLE_VTABLE_VERIFY_TRUE=
3860 ENABLE_VTABLE_VERIFY_FALSE='#'
3861 else
3862 ENABLE_VTABLE_VERIFY_TRUE='#'
3863 ENABLE_VTABLE_VERIFY_FALSE=
3867 am__api_version='1.11'
3869 # Find a good install program. We prefer a C program (faster),
3870 # so one script is as good as another. But avoid the broken or
3871 # incompatible versions:
3872 # SysV /etc/install, /usr/sbin/install
3873 # SunOS /usr/etc/install
3874 # IRIX /sbin/install
3875 # AIX /bin/install
3876 # AmigaOS /C/install, which installs bootblocks on floppy discs
3877 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3878 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3879 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3880 # OS/2's system install, which has a completely different semantic
3881 # ./install, which can be erroneously created by make from ./install.sh.
3882 # Reject install programs that cannot install multiple files.
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3884 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3885 if test -z "$INSTALL"; then
3886 if test "${ac_cv_path_install+set}" = set; then :
3887 $as_echo_n "(cached) " >&6
3888 else
3889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3890 for as_dir in $PATH
3892 IFS=$as_save_IFS
3893 test -z "$as_dir" && as_dir=.
3894 # Account for people who put trailing slashes in PATH elements.
3895 case $as_dir/ in #((
3896 ./ | .// | /[cC]/* | \
3897 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3898 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3899 /usr/ucb/* ) ;;
3901 # OSF1 and SCO ODT 3.0 have their own names for install.
3902 # Don't use installbsd from OSF since it installs stuff as root
3903 # by default.
3904 for ac_prog in ginstall scoinst install; do
3905 for ac_exec_ext in '' $ac_executable_extensions; do
3906 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3907 if test $ac_prog = install &&
3908 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3909 # AIX install. It has an incompatible calling convention.
3911 elif test $ac_prog = install &&
3912 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3913 # program-specific install script used by HP pwplus--don't use.
3915 else
3916 rm -rf conftest.one conftest.two conftest.dir
3917 echo one > conftest.one
3918 echo two > conftest.two
3919 mkdir conftest.dir
3920 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3921 test -s conftest.one && test -s conftest.two &&
3922 test -s conftest.dir/conftest.one &&
3923 test -s conftest.dir/conftest.two
3924 then
3925 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3926 break 3
3930 done
3931 done
3933 esac
3935 done
3936 IFS=$as_save_IFS
3938 rm -rf conftest.one conftest.two conftest.dir
3941 if test "${ac_cv_path_install+set}" = set; then
3942 INSTALL=$ac_cv_path_install
3943 else
3944 # As a last resort, use the slow shell script. Don't cache a
3945 # value for INSTALL within a source directory, because that will
3946 # break other packages using the cache if that directory is
3947 # removed, or if the value is a relative name.
3948 INSTALL=$ac_install_sh
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3952 $as_echo "$INSTALL" >&6; }
3954 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3955 # It thinks the first close brace ends the variable substitution.
3956 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3958 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3960 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3963 $as_echo_n "checking whether build environment is sane... " >&6; }
3964 # Just in case
3965 sleep 1
3966 echo timestamp > conftest.file
3967 # Reject unsafe characters in $srcdir or the absolute working directory
3968 # name. Accept space and tab only in the latter.
3969 am_lf='
3971 case `pwd` in
3972 *[\\\"\#\$\&\'\`$am_lf]*)
3973 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3974 esac
3975 case $srcdir in
3976 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3977 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3978 esac
3980 # Do `set' in a subshell so we don't clobber the current shell's
3981 # arguments. Must try -L first in case configure is actually a
3982 # symlink; some systems play weird games with the mod time of symlinks
3983 # (eg FreeBSD returns the mod time of the symlink's containing
3984 # directory).
3985 if (
3986 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3987 if test "$*" = "X"; then
3988 # -L didn't work.
3989 set X `ls -t "$srcdir/configure" conftest.file`
3991 rm -f conftest.file
3992 if test "$*" != "X $srcdir/configure conftest.file" \
3993 && test "$*" != "X conftest.file $srcdir/configure"; then
3995 # If neither matched, then we have a broken ls. This can happen
3996 # if, for instance, CONFIG_SHELL is bash and it inherits a
3997 # broken ls alias from the environment. This has actually
3998 # happened. Such a system could not be considered "sane".
3999 as_fn_error "ls -t appears to fail. Make sure there is not a broken
4000 alias in your environment" "$LINENO" 5
4003 test "$2" = conftest.file
4005 then
4006 # Ok.
4008 else
4009 as_fn_error "newly created file is older than distributed files!
4010 Check your system clock" "$LINENO" 5
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4013 $as_echo "yes" >&6; }
4014 test "$program_prefix" != NONE &&
4015 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4016 # Use a double $ so make ignores it.
4017 test "$program_suffix" != NONE &&
4018 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4019 # Double any \ or $.
4020 # By default was `s,x,x', remove it if useless.
4021 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4022 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4024 # expand $ac_aux_dir to an absolute path
4025 am_aux_dir=`cd $ac_aux_dir && pwd`
4027 if test x"${MISSING+set}" != xset; then
4028 case $am_aux_dir in
4029 *\ * | *\ *)
4030 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4032 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4033 esac
4035 # Use eval to expand $SHELL
4036 if eval "$MISSING --run true"; then
4037 am_missing_run="$MISSING --run "
4038 else
4039 am_missing_run=
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
4041 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4044 if test x"${install_sh}" != xset; then
4045 case $am_aux_dir in
4046 *\ * | *\ *)
4047 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4049 install_sh="\${SHELL} $am_aux_dir/install-sh"
4050 esac
4053 # Installed binaries are usually stripped using `strip' when the user
4054 # run `make install-strip'. However `strip' might not be the right
4055 # tool to use in cross-compilation environments, therefore Automake
4056 # will honor the `STRIP' environment variable to overrule this program.
4057 if test "$cross_compiling" != no; then
4058 if test -n "$ac_tool_prefix"; then
4059 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4060 set dummy ${ac_tool_prefix}strip; ac_word=$2
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4062 $as_echo_n "checking for $ac_word... " >&6; }
4063 if test "${ac_cv_prog_STRIP+set}" = set; then :
4064 $as_echo_n "(cached) " >&6
4065 else
4066 if test -n "$STRIP"; then
4067 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4068 else
4069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4070 for as_dir in $PATH
4072 IFS=$as_save_IFS
4073 test -z "$as_dir" && as_dir=.
4074 for ac_exec_ext in '' $ac_executable_extensions; do
4075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4076 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4078 break 2
4080 done
4081 done
4082 IFS=$as_save_IFS
4086 STRIP=$ac_cv_prog_STRIP
4087 if test -n "$STRIP"; then
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4089 $as_echo "$STRIP" >&6; }
4090 else
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4092 $as_echo "no" >&6; }
4097 if test -z "$ac_cv_prog_STRIP"; then
4098 ac_ct_STRIP=$STRIP
4099 # Extract the first word of "strip", so it can be a program name with args.
4100 set dummy strip; ac_word=$2
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4102 $as_echo_n "checking for $ac_word... " >&6; }
4103 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4104 $as_echo_n "(cached) " >&6
4105 else
4106 if test -n "$ac_ct_STRIP"; then
4107 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4108 else
4109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4110 for as_dir in $PATH
4112 IFS=$as_save_IFS
4113 test -z "$as_dir" && as_dir=.
4114 for ac_exec_ext in '' $ac_executable_extensions; do
4115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4116 ac_cv_prog_ac_ct_STRIP="strip"
4117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4118 break 2
4120 done
4121 done
4122 IFS=$as_save_IFS
4126 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4127 if test -n "$ac_ct_STRIP"; then
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4129 $as_echo "$ac_ct_STRIP" >&6; }
4130 else
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4132 $as_echo "no" >&6; }
4135 if test "x$ac_ct_STRIP" = x; then
4136 STRIP=":"
4137 else
4138 case $cross_compiling:$ac_tool_warned in
4139 yes:)
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4141 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4142 ac_tool_warned=yes ;;
4143 esac
4144 STRIP=$ac_ct_STRIP
4146 else
4147 STRIP="$ac_cv_prog_STRIP"
4151 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4154 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4155 if test -z "$MKDIR_P"; then
4156 if test "${ac_cv_path_mkdir+set}" = set; then :
4157 $as_echo_n "(cached) " >&6
4158 else
4159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4160 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4162 IFS=$as_save_IFS
4163 test -z "$as_dir" && as_dir=.
4164 for ac_prog in mkdir gmkdir; do
4165 for ac_exec_ext in '' $ac_executable_extensions; do
4166 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4167 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4168 'mkdir (GNU coreutils) '* | \
4169 'mkdir (coreutils) '* | \
4170 'mkdir (fileutils) '4.1*)
4171 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4172 break 3;;
4173 esac
4174 done
4175 done
4176 done
4177 IFS=$as_save_IFS
4181 if test "${ac_cv_path_mkdir+set}" = set; then
4182 MKDIR_P="$ac_cv_path_mkdir -p"
4183 else
4184 # As a last resort, use the slow shell script. Don't cache a
4185 # value for MKDIR_P within a source directory, because that will
4186 # break other packages using the cache if that directory is
4187 # removed, or if the value is a relative name.
4188 test -d ./--version && rmdir ./--version
4189 MKDIR_P="$ac_install_sh -d"
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4193 $as_echo "$MKDIR_P" >&6; }
4195 mkdir_p="$MKDIR_P"
4196 case $mkdir_p in
4197 [\\/$]* | ?:[\\/]*) ;;
4198 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4199 esac
4201 for ac_prog in gawk mawk nawk awk
4203 # Extract the first word of "$ac_prog", so it can be a program name with args.
4204 set dummy $ac_prog; ac_word=$2
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4206 $as_echo_n "checking for $ac_word... " >&6; }
4207 if test "${ac_cv_prog_AWK+set}" = set; then :
4208 $as_echo_n "(cached) " >&6
4209 else
4210 if test -n "$AWK"; then
4211 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4212 else
4213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4214 for as_dir in $PATH
4216 IFS=$as_save_IFS
4217 test -z "$as_dir" && as_dir=.
4218 for ac_exec_ext in '' $ac_executable_extensions; do
4219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4220 ac_cv_prog_AWK="$ac_prog"
4221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4222 break 2
4224 done
4225 done
4226 IFS=$as_save_IFS
4230 AWK=$ac_cv_prog_AWK
4231 if test -n "$AWK"; then
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4233 $as_echo "$AWK" >&6; }
4234 else
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4236 $as_echo "no" >&6; }
4240 test -n "$AWK" && break
4241 done
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4244 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4245 set x ${MAKE-make}
4246 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4247 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4248 $as_echo_n "(cached) " >&6
4249 else
4250 cat >conftest.make <<\_ACEOF
4251 SHELL = /bin/sh
4252 all:
4253 @echo '@@@%%%=$(MAKE)=@@@%%%'
4254 _ACEOF
4255 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4256 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4257 *@@@%%%=?*=@@@%%%*)
4258 eval ac_cv_prog_make_${ac_make}_set=yes;;
4260 eval ac_cv_prog_make_${ac_make}_set=no;;
4261 esac
4262 rm -f conftest.make
4264 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4266 $as_echo "yes" >&6; }
4267 SET_MAKE=
4268 else
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4270 $as_echo "no" >&6; }
4271 SET_MAKE="MAKE=${MAKE-make}"
4274 rm -rf .tst 2>/dev/null
4275 mkdir .tst 2>/dev/null
4276 if test -d .tst; then
4277 am__leading_dot=.
4278 else
4279 am__leading_dot=_
4281 rmdir .tst 2>/dev/null
4283 DEPDIR="${am__leading_dot}deps"
4285 ac_config_commands="$ac_config_commands depfiles"
4288 am_make=${MAKE-make}
4289 cat > confinc << 'END'
4290 am__doit:
4291 @echo this is the am__doit target
4292 .PHONY: am__doit
4294 # If we don't find an include directive, just comment out the code.
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4296 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4297 am__include="#"
4298 am__quote=
4299 _am_result=none
4300 # First try GNU make style include.
4301 echo "include confinc" > confmf
4302 # Ignore all kinds of additional output from `make'.
4303 case `$am_make -s -f confmf 2> /dev/null` in #(
4304 *the\ am__doit\ target*)
4305 am__include=include
4306 am__quote=
4307 _am_result=GNU
4309 esac
4310 # Now try BSD make style include.
4311 if test "$am__include" = "#"; then
4312 echo '.include "confinc"' > confmf
4313 case `$am_make -s -f confmf 2> /dev/null` in #(
4314 *the\ am__doit\ target*)
4315 am__include=.include
4316 am__quote="\""
4317 _am_result=BSD
4319 esac
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4324 $as_echo "$_am_result" >&6; }
4325 rm -f confinc confmf
4327 # Check whether --enable-dependency-tracking was given.
4328 if test "${enable_dependency_tracking+set}" = set; then :
4329 enableval=$enable_dependency_tracking;
4332 if test "x$enable_dependency_tracking" != xno; then
4333 am_depcomp="$ac_aux_dir/depcomp"
4334 AMDEPBACKSLASH='\'
4335 am__nodep='_no'
4337 if test "x$enable_dependency_tracking" != xno; then
4338 AMDEP_TRUE=
4339 AMDEP_FALSE='#'
4340 else
4341 AMDEP_TRUE='#'
4342 AMDEP_FALSE=
4346 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4347 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4348 # is not polluted with repeated "-I."
4349 am__isrc=' -I$(srcdir)'
4350 # test to see if srcdir already configured
4351 if test -f $srcdir/config.status; then
4352 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4356 # test whether we have cygpath
4357 if test -z "$CYGPATH_W"; then
4358 if (cygpath --version) >/dev/null 2>/dev/null; then
4359 CYGPATH_W='cygpath -w'
4360 else
4361 CYGPATH_W=echo
4366 # Define the identity of the package.
4367 PACKAGE='libvtv'
4368 VERSION='1.0'
4371 cat >>confdefs.h <<_ACEOF
4372 #define PACKAGE "$PACKAGE"
4373 _ACEOF
4376 cat >>confdefs.h <<_ACEOF
4377 #define VERSION "$VERSION"
4378 _ACEOF
4380 # Some tools Automake needs.
4382 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4385 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4388 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4391 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4394 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4396 # We need awk for the "check" target. The system "awk" is bad on
4397 # some platforms.
4398 # Always define AMTAR for backward compatibility. Yes, it's still used
4399 # in the wild :-( We should find a proper way to deprecate it ...
4400 AMTAR='$${TAR-tar}'
4402 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4407 depcc="$CC" am_compiler_list=
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4410 $as_echo_n "checking dependency style of $depcc... " >&6; }
4411 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4412 $as_echo_n "(cached) " >&6
4413 else
4414 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4415 # We make a subdir and do the tests there. Otherwise we can end up
4416 # making bogus files that we don't know about and never remove. For
4417 # instance it was reported that on HP-UX the gcc test will end up
4418 # making a dummy file named `D' -- because `-MD' means `put the output
4419 # in D'.
4420 rm -rf conftest.dir
4421 mkdir conftest.dir
4422 # Copy depcomp to subdir because otherwise we won't find it if we're
4423 # using a relative directory.
4424 cp "$am_depcomp" conftest.dir
4425 cd conftest.dir
4426 # We will build objects and dependencies in a subdirectory because
4427 # it helps to detect inapplicable dependency modes. For instance
4428 # both Tru64's cc and ICC support -MD to output dependencies as a
4429 # side effect of compilation, but ICC will put the dependencies in
4430 # the current directory while Tru64 will put them in the object
4431 # directory.
4432 mkdir sub
4434 am_cv_CC_dependencies_compiler_type=none
4435 if test "$am_compiler_list" = ""; then
4436 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4438 am__universal=false
4439 case " $depcc " in #(
4440 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4441 esac
4443 for depmode in $am_compiler_list; do
4444 # Setup a source with many dependencies, because some compilers
4445 # like to wrap large dependency lists on column 80 (with \), and
4446 # we should not choose a depcomp mode which is confused by this.
4448 # We need to recreate these files for each test, as the compiler may
4449 # overwrite some of them when testing with obscure command lines.
4450 # This happens at least with the AIX C compiler.
4451 : > sub/conftest.c
4452 for i in 1 2 3 4 5 6; do
4453 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4454 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4455 # Solaris 8's {/usr,}/bin/sh.
4456 touch sub/conftst$i.h
4457 done
4458 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4460 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4461 # mode. It turns out that the SunPro C++ compiler does not properly
4462 # handle `-M -o', and we need to detect this. Also, some Intel
4463 # versions had trouble with output in subdirs
4464 am__obj=sub/conftest.${OBJEXT-o}
4465 am__minus_obj="-o $am__obj"
4466 case $depmode in
4467 gcc)
4468 # This depmode causes a compiler race in universal mode.
4469 test "$am__universal" = false || continue
4471 nosideeffect)
4472 # after this tag, mechanisms are not by side-effect, so they'll
4473 # only be used when explicitly requested
4474 if test "x$enable_dependency_tracking" = xyes; then
4475 continue
4476 else
4477 break
4480 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4481 # This compiler won't grok `-c -o', but also, the minuso test has
4482 # not run yet. These depmodes are late enough in the game, and
4483 # so weak that their functioning should not be impacted.
4484 am__obj=conftest.${OBJEXT-o}
4485 am__minus_obj=
4487 none) break ;;
4488 esac
4489 if depmode=$depmode \
4490 source=sub/conftest.c object=$am__obj \
4491 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4492 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4493 >/dev/null 2>conftest.err &&
4494 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4495 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4496 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4497 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4498 # icc doesn't choke on unknown options, it will just issue warnings
4499 # or remarks (even with -Werror). So we grep stderr for any message
4500 # that says an option was ignored or not supported.
4501 # When given -MP, icc 7.0 and 7.1 complain thusly:
4502 # icc: Command line warning: ignoring option '-M'; no argument required
4503 # The diagnosis changed in icc 8.0:
4504 # icc: Command line remark: option '-MP' not supported
4505 if (grep 'ignoring option' conftest.err ||
4506 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4507 am_cv_CC_dependencies_compiler_type=$depmode
4508 break
4511 done
4513 cd ..
4514 rm -rf conftest.dir
4515 else
4516 am_cv_CC_dependencies_compiler_type=none
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4521 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4522 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4525 test "x$enable_dependency_tracking" != xno \
4526 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4527 am__fastdepCC_TRUE=
4528 am__fastdepCC_FALSE='#'
4529 else
4530 am__fastdepCC_TRUE='#'
4531 am__fastdepCC_FALSE=
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4538 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4539 # Check whether --enable-maintainer-mode was given.
4540 if test "${enable_maintainer_mode+set}" = set; then :
4541 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4542 else
4543 USE_MAINTAINER_MODE=no
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4547 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4548 if test $USE_MAINTAINER_MODE = yes; then
4549 MAINTAINER_MODE_TRUE=
4550 MAINTAINER_MODE_FALSE='#'
4551 else
4552 MAINTAINER_MODE_TRUE='#'
4553 MAINTAINER_MODE_FALSE=
4556 MAINT=$MAINTAINER_MODE_TRUE
4562 # These need to be absolute paths, yet at the same time need to
4563 # canonicalize only relative paths, because then amd will not unmount
4564 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
4565 libvtv_builddir=`${PWDCMD-pwd}`
4566 case $srcdir in
4567 \\/$* | ?:\\/*) libvtv_srcdir=${srcdir} ;;
4568 *) libvtv_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
4569 esac
4570 toplevel_builddir=${libvtv_builddir}/..
4571 toplevel_srcdir=${libvtv_srcdir}/..
4578 # Calculate toolexeclibdir
4579 # Also toolexecdir, though it's only used in toolexeclibdir
4580 case ${version_specific_libs} in
4581 yes)
4582 # Need the gcc compiler version to know where to install libraries
4583 # and header files if --enable-version-specific-runtime-libs option
4584 # is selected.
4585 toolexecdir='$(libdir)/gcc/$(target_alias)'
4586 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
4589 if test -n "$with_cross_host" &&
4590 test x"$with_cross_host" != x"no"; then
4591 # Install a library built with a cross compiler in tooldir, not libdir.
4592 toolexecdir='$(exec_prefix)/$(target_alias)'
4593 toolexeclibdir='$(toolexecdir)/lib'
4594 else
4595 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
4596 toolexeclibdir='$(libdir)'
4598 multi_os_directory=`$CC -print-multi-os-directory`
4599 case $multi_os_directory in
4600 .) ;; # Avoid trailing /.
4601 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
4602 esac
4604 esac
4609 for ac_func in __secure_getenv
4610 do :
4611 ac_fn_c_check_func "$LINENO" "__secure_getenv" "ac_cv_func___secure_getenv"
4612 if test "x$ac_cv_func___secure_getenv" = x""yes; then :
4613 cat >>confdefs.h <<_ACEOF
4614 #define HAVE___SECURE_GETENV 1
4615 _ACEOF
4618 done
4622 for ac_func in secure_getenv
4623 do :
4624 ac_fn_c_check_func "$LINENO" "secure_getenv" "ac_cv_func_secure_getenv"
4625 if test "x$ac_cv_func_secure_getenv" = x""yes; then :
4626 cat >>confdefs.h <<_ACEOF
4627 #define HAVE_SECURE_GETENV 1
4628 _ACEOF
4631 done
4634 for ac_func in getexecname __fortify_fail
4635 do :
4636 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4637 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4638 eval as_val=\$$as_ac_var
4639 if test "x$as_val" = x""yes; then :
4640 cat >>confdefs.h <<_ACEOF
4641 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4642 _ACEOF
4645 done
4648 # Check for programs.
4651 ac_ext=c
4652 ac_cpp='$CPP $CPPFLAGS'
4653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4656 if test -n "$ac_tool_prefix"; then
4657 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4658 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4660 $as_echo_n "checking for $ac_word... " >&6; }
4661 if test "${ac_cv_prog_CC+set}" = set; then :
4662 $as_echo_n "(cached) " >&6
4663 else
4664 if test -n "$CC"; then
4665 ac_cv_prog_CC="$CC" # Let the user override the test.
4666 else
4667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4668 for as_dir in $PATH
4670 IFS=$as_save_IFS
4671 test -z "$as_dir" && as_dir=.
4672 for ac_exec_ext in '' $ac_executable_extensions; do
4673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4674 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4676 break 2
4678 done
4679 done
4680 IFS=$as_save_IFS
4684 CC=$ac_cv_prog_CC
4685 if test -n "$CC"; then
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4687 $as_echo "$CC" >&6; }
4688 else
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4690 $as_echo "no" >&6; }
4695 if test -z "$ac_cv_prog_CC"; then
4696 ac_ct_CC=$CC
4697 # Extract the first word of "gcc", so it can be a program name with args.
4698 set dummy gcc; ac_word=$2
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4700 $as_echo_n "checking for $ac_word... " >&6; }
4701 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4702 $as_echo_n "(cached) " >&6
4703 else
4704 if test -n "$ac_ct_CC"; then
4705 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4706 else
4707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4708 for as_dir in $PATH
4710 IFS=$as_save_IFS
4711 test -z "$as_dir" && as_dir=.
4712 for ac_exec_ext in '' $ac_executable_extensions; do
4713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4714 ac_cv_prog_ac_ct_CC="gcc"
4715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4716 break 2
4718 done
4719 done
4720 IFS=$as_save_IFS
4724 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4725 if test -n "$ac_ct_CC"; then
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4727 $as_echo "$ac_ct_CC" >&6; }
4728 else
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4730 $as_echo "no" >&6; }
4733 if test "x$ac_ct_CC" = x; then
4734 CC=""
4735 else
4736 case $cross_compiling:$ac_tool_warned in
4737 yes:)
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4739 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4740 ac_tool_warned=yes ;;
4741 esac
4742 CC=$ac_ct_CC
4744 else
4745 CC="$ac_cv_prog_CC"
4748 if test -z "$CC"; then
4749 if test -n "$ac_tool_prefix"; then
4750 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4751 set dummy ${ac_tool_prefix}cc; ac_word=$2
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4753 $as_echo_n "checking for $ac_word... " >&6; }
4754 if test "${ac_cv_prog_CC+set}" = set; then :
4755 $as_echo_n "(cached) " >&6
4756 else
4757 if test -n "$CC"; then
4758 ac_cv_prog_CC="$CC" # Let the user override the test.
4759 else
4760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4761 for as_dir in $PATH
4763 IFS=$as_save_IFS
4764 test -z "$as_dir" && as_dir=.
4765 for ac_exec_ext in '' $ac_executable_extensions; do
4766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4767 ac_cv_prog_CC="${ac_tool_prefix}cc"
4768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4769 break 2
4771 done
4772 done
4773 IFS=$as_save_IFS
4777 CC=$ac_cv_prog_CC
4778 if test -n "$CC"; then
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4780 $as_echo "$CC" >&6; }
4781 else
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4783 $as_echo "no" >&6; }
4789 if test -z "$CC"; then
4790 # Extract the first word of "cc", so it can be a program name with args.
4791 set dummy cc; 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 ac_prog_rejected=no
4801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4802 for as_dir in $PATH
4804 IFS=$as_save_IFS
4805 test -z "$as_dir" && as_dir=.
4806 for ac_exec_ext in '' $ac_executable_extensions; do
4807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4808 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4809 ac_prog_rejected=yes
4810 continue
4812 ac_cv_prog_CC="cc"
4813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4814 break 2
4816 done
4817 done
4818 IFS=$as_save_IFS
4820 if test $ac_prog_rejected = yes; then
4821 # We found a bogon in the path, so make sure we never use it.
4822 set dummy $ac_cv_prog_CC
4823 shift
4824 if test $# != 0; then
4825 # We chose a different compiler from the bogus one.
4826 # However, it has the same basename, so the bogon will be chosen
4827 # first if we set CC to just the basename; use the full file name.
4828 shift
4829 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4834 CC=$ac_cv_prog_CC
4835 if test -n "$CC"; then
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4837 $as_echo "$CC" >&6; }
4838 else
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4840 $as_echo "no" >&6; }
4845 if test -z "$CC"; then
4846 if test -n "$ac_tool_prefix"; then
4847 for ac_prog in cl.exe
4849 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4850 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4852 $as_echo_n "checking for $ac_word... " >&6; }
4853 if test "${ac_cv_prog_CC+set}" = set; then :
4854 $as_echo_n "(cached) " >&6
4855 else
4856 if test -n "$CC"; then
4857 ac_cv_prog_CC="$CC" # Let the user override the test.
4858 else
4859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4860 for as_dir in $PATH
4862 IFS=$as_save_IFS
4863 test -z "$as_dir" && as_dir=.
4864 for ac_exec_ext in '' $ac_executable_extensions; do
4865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4866 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4868 break 2
4870 done
4871 done
4872 IFS=$as_save_IFS
4876 CC=$ac_cv_prog_CC
4877 if test -n "$CC"; then
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4879 $as_echo "$CC" >&6; }
4880 else
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4882 $as_echo "no" >&6; }
4886 test -n "$CC" && break
4887 done
4889 if test -z "$CC"; then
4890 ac_ct_CC=$CC
4891 for ac_prog in cl.exe
4893 # Extract the first word of "$ac_prog", so it can be a program name with args.
4894 set dummy $ac_prog; ac_word=$2
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4896 $as_echo_n "checking for $ac_word... " >&6; }
4897 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4898 $as_echo_n "(cached) " >&6
4899 else
4900 if test -n "$ac_ct_CC"; then
4901 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4902 else
4903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4904 for as_dir in $PATH
4906 IFS=$as_save_IFS
4907 test -z "$as_dir" && as_dir=.
4908 for ac_exec_ext in '' $ac_executable_extensions; do
4909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4910 ac_cv_prog_ac_ct_CC="$ac_prog"
4911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4912 break 2
4914 done
4915 done
4916 IFS=$as_save_IFS
4920 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4921 if test -n "$ac_ct_CC"; then
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4923 $as_echo "$ac_ct_CC" >&6; }
4924 else
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4926 $as_echo "no" >&6; }
4930 test -n "$ac_ct_CC" && break
4931 done
4933 if test "x$ac_ct_CC" = x; then
4934 CC=""
4935 else
4936 case $cross_compiling:$ac_tool_warned in
4937 yes:)
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4939 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4940 ac_tool_warned=yes ;;
4941 esac
4942 CC=$ac_ct_CC
4949 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4950 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4951 as_fn_error "no acceptable C compiler found in \$PATH
4952 See \`config.log' for more details." "$LINENO" 5; }
4954 # Provide some information about the compiler.
4955 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4956 set X $ac_compile
4957 ac_compiler=$2
4958 for ac_option in --version -v -V -qversion; do
4959 { { ac_try="$ac_compiler $ac_option >&5"
4960 case "(($ac_try" in
4961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4962 *) ac_try_echo=$ac_try;;
4963 esac
4964 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4965 $as_echo "$ac_try_echo"; } >&5
4966 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4967 ac_status=$?
4968 if test -s conftest.err; then
4969 sed '10a\
4970 ... rest of stderr output deleted ...
4971 10q' conftest.err >conftest.er1
4972 cat conftest.er1 >&5
4973 rm -f conftest.er1 conftest.err
4975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4976 test $ac_status = 0; }
4977 done
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4980 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4981 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4982 $as_echo_n "(cached) " >&6
4983 else
4984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4985 /* end confdefs.h. */
4988 main ()
4990 #ifndef __GNUC__
4991 choke me
4992 #endif
4995 return 0;
4997 _ACEOF
4998 if ac_fn_c_try_compile "$LINENO"; then :
4999 ac_compiler_gnu=yes
5000 else
5001 ac_compiler_gnu=no
5003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5004 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5008 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5009 if test $ac_compiler_gnu = yes; then
5010 GCC=yes
5011 else
5012 GCC=
5014 ac_test_CFLAGS=${CFLAGS+set}
5015 ac_save_CFLAGS=$CFLAGS
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5017 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5018 if test "${ac_cv_prog_cc_g+set}" = set; then :
5019 $as_echo_n "(cached) " >&6
5020 else
5021 ac_save_c_werror_flag=$ac_c_werror_flag
5022 ac_c_werror_flag=yes
5023 ac_cv_prog_cc_g=no
5024 CFLAGS="-g"
5025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5026 /* end confdefs.h. */
5029 main ()
5033 return 0;
5035 _ACEOF
5036 if ac_fn_c_try_compile "$LINENO"; then :
5037 ac_cv_prog_cc_g=yes
5038 else
5039 CFLAGS=""
5040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5041 /* end confdefs.h. */
5044 main ()
5048 return 0;
5050 _ACEOF
5051 if ac_fn_c_try_compile "$LINENO"; then :
5053 else
5054 ac_c_werror_flag=$ac_save_c_werror_flag
5055 CFLAGS="-g"
5056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5057 /* end confdefs.h. */
5060 main ()
5064 return 0;
5066 _ACEOF
5067 if ac_fn_c_try_compile "$LINENO"; then :
5068 ac_cv_prog_cc_g=yes
5070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5075 ac_c_werror_flag=$ac_save_c_werror_flag
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5078 $as_echo "$ac_cv_prog_cc_g" >&6; }
5079 if test "$ac_test_CFLAGS" = set; then
5080 CFLAGS=$ac_save_CFLAGS
5081 elif test $ac_cv_prog_cc_g = yes; then
5082 if test "$GCC" = yes; then
5083 CFLAGS="-g -O2"
5084 else
5085 CFLAGS="-g"
5087 else
5088 if test "$GCC" = yes; then
5089 CFLAGS="-O2"
5090 else
5091 CFLAGS=
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5095 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5096 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5097 $as_echo_n "(cached) " >&6
5098 else
5099 ac_cv_prog_cc_c89=no
5100 ac_save_CC=$CC
5101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5102 /* end confdefs.h. */
5103 #include <stdarg.h>
5104 #include <stdio.h>
5105 #include <sys/types.h>
5106 #include <sys/stat.h>
5107 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5108 struct buf { int x; };
5109 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5110 static char *e (p, i)
5111 char **p;
5112 int i;
5114 return p[i];
5116 static char *f (char * (*g) (char **, int), char **p, ...)
5118 char *s;
5119 va_list v;
5120 va_start (v,p);
5121 s = g (p, va_arg (v,int));
5122 va_end (v);
5123 return s;
5126 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5127 function prototypes and stuff, but not '\xHH' hex character constants.
5128 These don't provoke an error unfortunately, instead are silently treated
5129 as 'x'. The following induces an error, until -std is added to get
5130 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5131 array size at least. It's necessary to write '\x00'==0 to get something
5132 that's true only with -std. */
5133 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5135 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5136 inside strings and character constants. */
5137 #define FOO(x) 'x'
5138 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5140 int test (int i, double x);
5141 struct s1 {int (*f) (int a);};
5142 struct s2 {int (*f) (double a);};
5143 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5144 int argc;
5145 char **argv;
5147 main ()
5149 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5151 return 0;
5153 _ACEOF
5154 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5155 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5157 CC="$ac_save_CC $ac_arg"
5158 if ac_fn_c_try_compile "$LINENO"; then :
5159 ac_cv_prog_cc_c89=$ac_arg
5161 rm -f core conftest.err conftest.$ac_objext
5162 test "x$ac_cv_prog_cc_c89" != "xno" && break
5163 done
5164 rm -f conftest.$ac_ext
5165 CC=$ac_save_CC
5168 # AC_CACHE_VAL
5169 case "x$ac_cv_prog_cc_c89" in
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5172 $as_echo "none needed" >&6; } ;;
5173 xno)
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5175 $as_echo "unsupported" >&6; } ;;
5177 CC="$CC $ac_cv_prog_cc_c89"
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5179 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5180 esac
5181 if test "x$ac_cv_prog_cc_c89" != xno; then :
5185 ac_ext=c
5186 ac_cpp='$CPP $CPPFLAGS'
5187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5191 ac_ext=cpp
5192 ac_cpp='$CXXCPP $CPPFLAGS'
5193 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5194 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5195 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5196 if test -z "$CXX"; then
5197 if test -n "$CCC"; then
5198 CXX=$CCC
5199 else
5200 if test -n "$ac_tool_prefix"; then
5201 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5203 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5204 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5206 $as_echo_n "checking for $ac_word... " >&6; }
5207 if test "${ac_cv_prog_CXX+set}" = set; then :
5208 $as_echo_n "(cached) " >&6
5209 else
5210 if test -n "$CXX"; then
5211 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5212 else
5213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5214 for as_dir in $PATH
5216 IFS=$as_save_IFS
5217 test -z "$as_dir" && as_dir=.
5218 for ac_exec_ext in '' $ac_executable_extensions; do
5219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5220 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5222 break 2
5224 done
5225 done
5226 IFS=$as_save_IFS
5230 CXX=$ac_cv_prog_CXX
5231 if test -n "$CXX"; then
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5233 $as_echo "$CXX" >&6; }
5234 else
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5236 $as_echo "no" >&6; }
5240 test -n "$CXX" && break
5241 done
5243 if test -z "$CXX"; then
5244 ac_ct_CXX=$CXX
5245 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5247 # Extract the first word of "$ac_prog", so it can be a program name with args.
5248 set dummy $ac_prog; ac_word=$2
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5250 $as_echo_n "checking for $ac_word... " >&6; }
5251 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
5252 $as_echo_n "(cached) " >&6
5253 else
5254 if test -n "$ac_ct_CXX"; then
5255 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5256 else
5257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5258 for as_dir in $PATH
5260 IFS=$as_save_IFS
5261 test -z "$as_dir" && as_dir=.
5262 for ac_exec_ext in '' $ac_executable_extensions; do
5263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5264 ac_cv_prog_ac_ct_CXX="$ac_prog"
5265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5266 break 2
5268 done
5269 done
5270 IFS=$as_save_IFS
5274 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5275 if test -n "$ac_ct_CXX"; then
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5277 $as_echo "$ac_ct_CXX" >&6; }
5278 else
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5280 $as_echo "no" >&6; }
5284 test -n "$ac_ct_CXX" && break
5285 done
5287 if test "x$ac_ct_CXX" = x; then
5288 CXX="g++"
5289 else
5290 case $cross_compiling:$ac_tool_warned in
5291 yes:)
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5293 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5294 ac_tool_warned=yes ;;
5295 esac
5296 CXX=$ac_ct_CXX
5302 # Provide some information about the compiler.
5303 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5304 set X $ac_compile
5305 ac_compiler=$2
5306 for ac_option in --version -v -V -qversion; do
5307 { { ac_try="$ac_compiler $ac_option >&5"
5308 case "(($ac_try" in
5309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5310 *) ac_try_echo=$ac_try;;
5311 esac
5312 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5313 $as_echo "$ac_try_echo"; } >&5
5314 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5315 ac_status=$?
5316 if test -s conftest.err; then
5317 sed '10a\
5318 ... rest of stderr output deleted ...
5319 10q' conftest.err >conftest.er1
5320 cat conftest.er1 >&5
5321 rm -f conftest.er1 conftest.err
5323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5324 test $ac_status = 0; }
5325 done
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5328 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5329 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
5330 $as_echo_n "(cached) " >&6
5331 else
5332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5333 /* end confdefs.h. */
5336 main ()
5338 #ifndef __GNUC__
5339 choke me
5340 #endif
5343 return 0;
5345 _ACEOF
5346 if ac_fn_cxx_try_compile "$LINENO"; then :
5347 ac_compiler_gnu=yes
5348 else
5349 ac_compiler_gnu=no
5351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5352 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5356 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5357 if test $ac_compiler_gnu = yes; then
5358 GXX=yes
5359 else
5360 GXX=
5362 ac_test_CXXFLAGS=${CXXFLAGS+set}
5363 ac_save_CXXFLAGS=$CXXFLAGS
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5365 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5366 if test "${ac_cv_prog_cxx_g+set}" = set; then :
5367 $as_echo_n "(cached) " >&6
5368 else
5369 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5370 ac_cxx_werror_flag=yes
5371 ac_cv_prog_cxx_g=no
5372 CXXFLAGS="-g"
5373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5374 /* end confdefs.h. */
5377 main ()
5381 return 0;
5383 _ACEOF
5384 if ac_fn_cxx_try_compile "$LINENO"; then :
5385 ac_cv_prog_cxx_g=yes
5386 else
5387 CXXFLAGS=""
5388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5389 /* end confdefs.h. */
5392 main ()
5396 return 0;
5398 _ACEOF
5399 if ac_fn_cxx_try_compile "$LINENO"; then :
5401 else
5402 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5403 CXXFLAGS="-g"
5404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5405 /* end confdefs.h. */
5408 main ()
5412 return 0;
5414 _ACEOF
5415 if ac_fn_cxx_try_compile "$LINENO"; then :
5416 ac_cv_prog_cxx_g=yes
5418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5423 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5426 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5427 if test "$ac_test_CXXFLAGS" = set; then
5428 CXXFLAGS=$ac_save_CXXFLAGS
5429 elif test $ac_cv_prog_cxx_g = yes; then
5430 if test "$GXX" = yes; then
5431 CXXFLAGS="-g -O2"
5432 else
5433 CXXFLAGS="-g"
5435 else
5436 if test "$GXX" = yes; then
5437 CXXFLAGS="-O2"
5438 else
5439 CXXFLAGS=
5442 ac_ext=c
5443 ac_cpp='$CPP $CPPFLAGS'
5444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5448 depcc="$CXX" am_compiler_list=
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5451 $as_echo_n "checking dependency style of $depcc... " >&6; }
5452 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
5453 $as_echo_n "(cached) " >&6
5454 else
5455 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5456 # We make a subdir and do the tests there. Otherwise we can end up
5457 # making bogus files that we don't know about and never remove. For
5458 # instance it was reported that on HP-UX the gcc test will end up
5459 # making a dummy file named `D' -- because `-MD' means `put the output
5460 # in D'.
5461 rm -rf conftest.dir
5462 mkdir conftest.dir
5463 # Copy depcomp to subdir because otherwise we won't find it if we're
5464 # using a relative directory.
5465 cp "$am_depcomp" conftest.dir
5466 cd conftest.dir
5467 # We will build objects and dependencies in a subdirectory because
5468 # it helps to detect inapplicable dependency modes. For instance
5469 # both Tru64's cc and ICC support -MD to output dependencies as a
5470 # side effect of compilation, but ICC will put the dependencies in
5471 # the current directory while Tru64 will put them in the object
5472 # directory.
5473 mkdir sub
5475 am_cv_CXX_dependencies_compiler_type=none
5476 if test "$am_compiler_list" = ""; then
5477 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5479 am__universal=false
5480 case " $depcc " in #(
5481 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5482 esac
5484 for depmode in $am_compiler_list; do
5485 # Setup a source with many dependencies, because some compilers
5486 # like to wrap large dependency lists on column 80 (with \), and
5487 # we should not choose a depcomp mode which is confused by this.
5489 # We need to recreate these files for each test, as the compiler may
5490 # overwrite some of them when testing with obscure command lines.
5491 # This happens at least with the AIX C compiler.
5492 : > sub/conftest.c
5493 for i in 1 2 3 4 5 6; do
5494 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5495 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5496 # Solaris 8's {/usr,}/bin/sh.
5497 touch sub/conftst$i.h
5498 done
5499 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5501 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5502 # mode. It turns out that the SunPro C++ compiler does not properly
5503 # handle `-M -o', and we need to detect this. Also, some Intel
5504 # versions had trouble with output in subdirs
5505 am__obj=sub/conftest.${OBJEXT-o}
5506 am__minus_obj="-o $am__obj"
5507 case $depmode in
5508 gcc)
5509 # This depmode causes a compiler race in universal mode.
5510 test "$am__universal" = false || continue
5512 nosideeffect)
5513 # after this tag, mechanisms are not by side-effect, so they'll
5514 # only be used when explicitly requested
5515 if test "x$enable_dependency_tracking" = xyes; then
5516 continue
5517 else
5518 break
5521 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5522 # This compiler won't grok `-c -o', but also, the minuso test has
5523 # not run yet. These depmodes are late enough in the game, and
5524 # so weak that their functioning should not be impacted.
5525 am__obj=conftest.${OBJEXT-o}
5526 am__minus_obj=
5528 none) break ;;
5529 esac
5530 if depmode=$depmode \
5531 source=sub/conftest.c object=$am__obj \
5532 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5533 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5534 >/dev/null 2>conftest.err &&
5535 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5536 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5537 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5538 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5539 # icc doesn't choke on unknown options, it will just issue warnings
5540 # or remarks (even with -Werror). So we grep stderr for any message
5541 # that says an option was ignored or not supported.
5542 # When given -MP, icc 7.0 and 7.1 complain thusly:
5543 # icc: Command line warning: ignoring option '-M'; no argument required
5544 # The diagnosis changed in icc 8.0:
5545 # icc: Command line remark: option '-MP' not supported
5546 if (grep 'ignoring option' conftest.err ||
5547 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5548 am_cv_CXX_dependencies_compiler_type=$depmode
5549 break
5552 done
5554 cd ..
5555 rm -rf conftest.dir
5556 else
5557 am_cv_CXX_dependencies_compiler_type=none
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5562 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5563 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5566 test "x$enable_dependency_tracking" != xno \
5567 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5568 am__fastdepCXX_TRUE=
5569 am__fastdepCXX_FALSE='#'
5570 else
5571 am__fastdepCXX_TRUE='#'
5572 am__fastdepCXX_FALSE=
5578 if test "x$CC" != xcc; then
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5580 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5581 else
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5583 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5585 set dummy $CC; ac_cc=`$as_echo "$2" |
5586 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5587 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5588 $as_echo_n "(cached) " >&6
5589 else
5590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5591 /* end confdefs.h. */
5594 main ()
5598 return 0;
5600 _ACEOF
5601 # Make sure it works both with $CC and with simple cc.
5602 # We do the test twice because some compilers refuse to overwrite an
5603 # existing .o file with -o, though they will create one.
5604 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5605 rm -f conftest2.*
5606 if { { case "(($ac_try" in
5607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5608 *) ac_try_echo=$ac_try;;
5609 esac
5610 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5611 $as_echo "$ac_try_echo"; } >&5
5612 (eval "$ac_try") 2>&5
5613 ac_status=$?
5614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5615 test $ac_status = 0; } &&
5616 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5618 *) ac_try_echo=$ac_try;;
5619 esac
5620 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5621 $as_echo "$ac_try_echo"; } >&5
5622 (eval "$ac_try") 2>&5
5623 ac_status=$?
5624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5625 test $ac_status = 0; };
5626 then
5627 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5628 if test "x$CC" != xcc; then
5629 # Test first that cc exists at all.
5630 if { ac_try='cc -c conftest.$ac_ext >&5'
5631 { { case "(($ac_try" in
5632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5633 *) ac_try_echo=$ac_try;;
5634 esac
5635 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5636 $as_echo "$ac_try_echo"; } >&5
5637 (eval "$ac_try") 2>&5
5638 ac_status=$?
5639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5640 test $ac_status = 0; }; }; then
5641 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5642 rm -f conftest2.*
5643 if { { case "(($ac_try" in
5644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5645 *) ac_try_echo=$ac_try;;
5646 esac
5647 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5648 $as_echo "$ac_try_echo"; } >&5
5649 (eval "$ac_try") 2>&5
5650 ac_status=$?
5651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5652 test $ac_status = 0; } &&
5653 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5655 *) ac_try_echo=$ac_try;;
5656 esac
5657 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5658 $as_echo "$ac_try_echo"; } >&5
5659 (eval "$ac_try") 2>&5
5660 ac_status=$?
5661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5662 test $ac_status = 0; };
5663 then
5664 # cc works too.
5666 else
5667 # cc exists but doesn't like -o.
5668 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5672 else
5673 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5675 rm -f core conftest*
5678 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5680 $as_echo "yes" >&6; }
5681 else
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5683 $as_echo "no" >&6; }
5685 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5689 # FIXME: we rely on the cache variable name because
5690 # there is no other way.
5691 set dummy $CC
5692 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5693 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5694 if test "$am_t" != yes; then
5695 # Losing compiler, so override with the script.
5696 # FIXME: It is wrong to rewrite CC.
5697 # But if we don't then we get into trouble of one sort or another.
5698 # A longer-term fix would be to have automake use am__CC in this case,
5699 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5700 CC="$am_aux_dir/compile $CC"
5708 # Newer automakes demand CCAS and CCASFLAGS.
5709 : ${CCAS='$(CC)'}
5710 : ${CCASFLAGS='$(CFLAGS)'}
5714 if test -n "$ac_tool_prefix"; then
5715 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5716 set dummy ${ac_tool_prefix}as; ac_word=$2
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5718 $as_echo_n "checking for $ac_word... " >&6; }
5719 if test "${ac_cv_prog_AS+set}" = set; then :
5720 $as_echo_n "(cached) " >&6
5721 else
5722 if test -n "$AS"; then
5723 ac_cv_prog_AS="$AS" # Let the user override the test.
5724 else
5725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5726 for as_dir in $PATH
5728 IFS=$as_save_IFS
5729 test -z "$as_dir" && as_dir=.
5730 for ac_exec_ext in '' $ac_executable_extensions; do
5731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5732 ac_cv_prog_AS="${ac_tool_prefix}as"
5733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5734 break 2
5736 done
5737 done
5738 IFS=$as_save_IFS
5742 AS=$ac_cv_prog_AS
5743 if test -n "$AS"; then
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5745 $as_echo "$AS" >&6; }
5746 else
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5748 $as_echo "no" >&6; }
5753 if test -z "$ac_cv_prog_AS"; then
5754 ac_ct_AS=$AS
5755 # Extract the first word of "as", so it can be a program name with args.
5756 set dummy as; ac_word=$2
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5758 $as_echo_n "checking for $ac_word... " >&6; }
5759 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
5760 $as_echo_n "(cached) " >&6
5761 else
5762 if test -n "$ac_ct_AS"; then
5763 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5764 else
5765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5766 for as_dir in $PATH
5768 IFS=$as_save_IFS
5769 test -z "$as_dir" && as_dir=.
5770 for ac_exec_ext in '' $ac_executable_extensions; do
5771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5772 ac_cv_prog_ac_ct_AS="as"
5773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5774 break 2
5776 done
5777 done
5778 IFS=$as_save_IFS
5782 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5783 if test -n "$ac_ct_AS"; then
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5785 $as_echo "$ac_ct_AS" >&6; }
5786 else
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5788 $as_echo "no" >&6; }
5791 if test "x$ac_ct_AS" = x; then
5792 AS=""
5793 else
5794 case $cross_compiling:$ac_tool_warned in
5795 yes:)
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5797 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5798 ac_tool_warned=yes ;;
5799 esac
5800 AS=$ac_ct_AS
5802 else
5803 AS="$ac_cv_prog_AS"
5806 if test -n "$ac_tool_prefix"; then
5807 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5808 set dummy ${ac_tool_prefix}ar; ac_word=$2
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5810 $as_echo_n "checking for $ac_word... " >&6; }
5811 if test "${ac_cv_prog_AR+set}" = set; then :
5812 $as_echo_n "(cached) " >&6
5813 else
5814 if test -n "$AR"; then
5815 ac_cv_prog_AR="$AR" # Let the user override the test.
5816 else
5817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5818 for as_dir in $PATH
5820 IFS=$as_save_IFS
5821 test -z "$as_dir" && as_dir=.
5822 for ac_exec_ext in '' $ac_executable_extensions; do
5823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5824 ac_cv_prog_AR="${ac_tool_prefix}ar"
5825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5826 break 2
5828 done
5829 done
5830 IFS=$as_save_IFS
5834 AR=$ac_cv_prog_AR
5835 if test -n "$AR"; then
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5837 $as_echo "$AR" >&6; }
5838 else
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5840 $as_echo "no" >&6; }
5845 if test -z "$ac_cv_prog_AR"; then
5846 ac_ct_AR=$AR
5847 # Extract the first word of "ar", so it can be a program name with args.
5848 set dummy ar; ac_word=$2
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5850 $as_echo_n "checking for $ac_word... " >&6; }
5851 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5852 $as_echo_n "(cached) " >&6
5853 else
5854 if test -n "$ac_ct_AR"; then
5855 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5856 else
5857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5858 for as_dir in $PATH
5860 IFS=$as_save_IFS
5861 test -z "$as_dir" && as_dir=.
5862 for ac_exec_ext in '' $ac_executable_extensions; do
5863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5864 ac_cv_prog_ac_ct_AR="ar"
5865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5866 break 2
5868 done
5869 done
5870 IFS=$as_save_IFS
5874 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5875 if test -n "$ac_ct_AR"; then
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5877 $as_echo "$ac_ct_AR" >&6; }
5878 else
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5880 $as_echo "no" >&6; }
5883 if test "x$ac_ct_AR" = x; then
5884 AR=""
5885 else
5886 case $cross_compiling:$ac_tool_warned in
5887 yes:)
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5889 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5890 ac_tool_warned=yes ;;
5891 esac
5892 AR=$ac_ct_AR
5894 else
5895 AR="$ac_cv_prog_AR"
5898 if test -n "$ac_tool_prefix"; then
5899 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5900 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5902 $as_echo_n "checking for $ac_word... " >&6; }
5903 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5904 $as_echo_n "(cached) " >&6
5905 else
5906 if test -n "$RANLIB"; then
5907 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5908 else
5909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5910 for as_dir in $PATH
5912 IFS=$as_save_IFS
5913 test -z "$as_dir" && as_dir=.
5914 for ac_exec_ext in '' $ac_executable_extensions; do
5915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5916 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5918 break 2
5920 done
5921 done
5922 IFS=$as_save_IFS
5926 RANLIB=$ac_cv_prog_RANLIB
5927 if test -n "$RANLIB"; then
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5929 $as_echo "$RANLIB" >&6; }
5930 else
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5932 $as_echo "no" >&6; }
5937 if test -z "$ac_cv_prog_RANLIB"; then
5938 ac_ct_RANLIB=$RANLIB
5939 # Extract the first word of "ranlib", so it can be a program name with args.
5940 set dummy ranlib; ac_word=$2
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5942 $as_echo_n "checking for $ac_word... " >&6; }
5943 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5944 $as_echo_n "(cached) " >&6
5945 else
5946 if test -n "$ac_ct_RANLIB"; then
5947 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5948 else
5949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5950 for as_dir in $PATH
5952 IFS=$as_save_IFS
5953 test -z "$as_dir" && as_dir=.
5954 for ac_exec_ext in '' $ac_executable_extensions; do
5955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5956 ac_cv_prog_ac_ct_RANLIB="ranlib"
5957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5958 break 2
5960 done
5961 done
5962 IFS=$as_save_IFS
5966 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5967 if test -n "$ac_ct_RANLIB"; then
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5969 $as_echo "$ac_ct_RANLIB" >&6; }
5970 else
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5972 $as_echo "no" >&6; }
5975 if test "x$ac_ct_RANLIB" = x; then
5976 RANLIB=":"
5977 else
5978 case $cross_compiling:$ac_tool_warned in
5979 yes:)
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5981 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5982 ac_tool_warned=yes ;;
5983 esac
5984 RANLIB=$ac_ct_RANLIB
5986 else
5987 RANLIB="$ac_cv_prog_RANLIB"
5991 # Configure libtool
5992 enable_dlopen=yes
5996 case `pwd` in
5997 *\ * | *\ *)
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5999 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6000 esac
6004 macro_version='2.2.7a'
6005 macro_revision='1.3134'
6019 ltmain="$ac_aux_dir/ltmain.sh"
6021 # Backslashify metacharacters that are still active within
6022 # double-quoted strings.
6023 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6025 # Same as above, but do not quote variable references.
6026 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6028 # Sed substitution to delay expansion of an escaped shell variable in a
6029 # double_quote_subst'ed string.
6030 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6032 # Sed substitution to delay expansion of an escaped single quote.
6033 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6035 # Sed substitution to avoid accidental globbing in evaled expressions
6036 no_glob_subst='s/\*/\\\*/g'
6038 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6039 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6040 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6043 $as_echo_n "checking how to print strings... " >&6; }
6044 # Test print first, because it will be a builtin if present.
6045 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6046 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6047 ECHO='print -r --'
6048 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6049 ECHO='printf %s\n'
6050 else
6051 # Use this function as a fallback that always works.
6052 func_fallback_echo ()
6054 eval 'cat <<_LTECHO_EOF
6056 _LTECHO_EOF'
6058 ECHO='func_fallback_echo'
6061 # func_echo_all arg...
6062 # Invoke $ECHO with all args, space-separated.
6063 func_echo_all ()
6065 $ECHO ""
6068 case "$ECHO" in
6069 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6070 $as_echo "printf" >&6; } ;;
6071 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6072 $as_echo "print -r" >&6; } ;;
6073 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6074 $as_echo "cat" >&6; } ;;
6075 esac
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6091 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6092 if test "${ac_cv_path_SED+set}" = set; then :
6093 $as_echo_n "(cached) " >&6
6094 else
6095 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6096 for ac_i in 1 2 3 4 5 6 7; do
6097 ac_script="$ac_script$as_nl$ac_script"
6098 done
6099 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6100 { ac_script=; unset ac_script;}
6101 if test -z "$SED"; then
6102 ac_path_SED_found=false
6103 # Loop through the user's path and test for each of PROGNAME-LIST
6104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6105 for as_dir in $PATH
6107 IFS=$as_save_IFS
6108 test -z "$as_dir" && as_dir=.
6109 for ac_prog in sed gsed; do
6110 for ac_exec_ext in '' $ac_executable_extensions; do
6111 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6112 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6113 # Check for GNU ac_path_SED and select it if it is found.
6114 # Check for GNU $ac_path_SED
6115 case `"$ac_path_SED" --version 2>&1` in
6116 *GNU*)
6117 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6119 ac_count=0
6120 $as_echo_n 0123456789 >"conftest.in"
6121 while :
6123 cat "conftest.in" "conftest.in" >"conftest.tmp"
6124 mv "conftest.tmp" "conftest.in"
6125 cp "conftest.in" "conftest.nl"
6126 $as_echo '' >> "conftest.nl"
6127 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6128 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6129 as_fn_arith $ac_count + 1 && ac_count=$as_val
6130 if test $ac_count -gt ${ac_path_SED_max-0}; then
6131 # Best one so far, save it but keep looking for a better one
6132 ac_cv_path_SED="$ac_path_SED"
6133 ac_path_SED_max=$ac_count
6135 # 10*(2^10) chars as input seems more than enough
6136 test $ac_count -gt 10 && break
6137 done
6138 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6139 esac
6141 $ac_path_SED_found && break 3
6142 done
6143 done
6144 done
6145 IFS=$as_save_IFS
6146 if test -z "$ac_cv_path_SED"; then
6147 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6149 else
6150 ac_cv_path_SED=$SED
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6155 $as_echo "$ac_cv_path_SED" >&6; }
6156 SED="$ac_cv_path_SED"
6157 rm -f conftest.sed
6159 test -z "$SED" && SED=sed
6160 Xsed="$SED -e 1s/^X//"
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6173 $as_echo_n "checking for fgrep... " >&6; }
6174 if test "${ac_cv_path_FGREP+set}" = set; then :
6175 $as_echo_n "(cached) " >&6
6176 else
6177 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6178 then ac_cv_path_FGREP="$GREP -F"
6179 else
6180 if test -z "$FGREP"; then
6181 ac_path_FGREP_found=false
6182 # Loop through the user's path and test for each of PROGNAME-LIST
6183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6184 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6186 IFS=$as_save_IFS
6187 test -z "$as_dir" && as_dir=.
6188 for ac_prog in fgrep; do
6189 for ac_exec_ext in '' $ac_executable_extensions; do
6190 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6191 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6192 # Check for GNU ac_path_FGREP and select it if it is found.
6193 # Check for GNU $ac_path_FGREP
6194 case `"$ac_path_FGREP" --version 2>&1` in
6195 *GNU*)
6196 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6198 ac_count=0
6199 $as_echo_n 0123456789 >"conftest.in"
6200 while :
6202 cat "conftest.in" "conftest.in" >"conftest.tmp"
6203 mv "conftest.tmp" "conftest.in"
6204 cp "conftest.in" "conftest.nl"
6205 $as_echo 'FGREP' >> "conftest.nl"
6206 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6207 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6208 as_fn_arith $ac_count + 1 && ac_count=$as_val
6209 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6210 # Best one so far, save it but keep looking for a better one
6211 ac_cv_path_FGREP="$ac_path_FGREP"
6212 ac_path_FGREP_max=$ac_count
6214 # 10*(2^10) chars as input seems more than enough
6215 test $ac_count -gt 10 && break
6216 done
6217 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6218 esac
6220 $ac_path_FGREP_found && break 3
6221 done
6222 done
6223 done
6224 IFS=$as_save_IFS
6225 if test -z "$ac_cv_path_FGREP"; then
6226 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6228 else
6229 ac_cv_path_FGREP=$FGREP
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6235 $as_echo "$ac_cv_path_FGREP" >&6; }
6236 FGREP="$ac_cv_path_FGREP"
6239 test -z "$GREP" && GREP=grep
6259 # Check whether --with-gnu-ld was given.
6260 if test "${with_gnu_ld+set}" = set; then :
6261 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6262 else
6263 with_gnu_ld=no
6266 ac_prog=ld
6267 if test "$GCC" = yes; then
6268 # Check if gcc -print-prog-name=ld gives a path.
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6270 $as_echo_n "checking for ld used by $CC... " >&6; }
6271 case $host in
6272 *-*-mingw*)
6273 # gcc leaves a trailing carriage return which upsets mingw
6274 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6276 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6277 esac
6278 case $ac_prog in
6279 # Accept absolute paths.
6280 [\\/]* | ?:[\\/]*)
6281 re_direlt='/[^/][^/]*/\.\./'
6282 # Canonicalize the pathname of ld
6283 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6284 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6285 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6286 done
6287 test -z "$LD" && LD="$ac_prog"
6290 # If it fails, then pretend we aren't using GCC.
6291 ac_prog=ld
6294 # If it is relative, then search for the first ld in PATH.
6295 with_gnu_ld=unknown
6297 esac
6298 elif test "$with_gnu_ld" = yes; then
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6300 $as_echo_n "checking for GNU ld... " >&6; }
6301 else
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6303 $as_echo_n "checking for non-GNU ld... " >&6; }
6305 if test "${lt_cv_path_LD+set}" = set; then :
6306 $as_echo_n "(cached) " >&6
6307 else
6308 if test -z "$LD"; then
6309 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6310 for ac_dir in $PATH; do
6311 IFS="$lt_save_ifs"
6312 test -z "$ac_dir" && ac_dir=.
6313 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6314 lt_cv_path_LD="$ac_dir/$ac_prog"
6315 # Check to see if the program is GNU ld. I'd rather use --version,
6316 # but apparently some variants of GNU ld only accept -v.
6317 # Break only if it was the GNU/non-GNU ld that we prefer.
6318 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6319 *GNU* | *'with BFD'*)
6320 test "$with_gnu_ld" != no && break
6323 test "$with_gnu_ld" != yes && break
6325 esac
6327 done
6328 IFS="$lt_save_ifs"
6329 else
6330 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6334 LD="$lt_cv_path_LD"
6335 if test -n "$LD"; then
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6337 $as_echo "$LD" >&6; }
6338 else
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6340 $as_echo "no" >&6; }
6342 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6344 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6345 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6346 $as_echo_n "(cached) " >&6
6347 else
6348 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6349 case `$LD -v 2>&1 </dev/null` in
6350 *GNU* | *'with BFD'*)
6351 lt_cv_prog_gnu_ld=yes
6354 lt_cv_prog_gnu_ld=no
6356 esac
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6359 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6360 with_gnu_ld=$lt_cv_prog_gnu_ld
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6371 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6372 if test "${lt_cv_path_NM+set}" = set; then :
6373 $as_echo_n "(cached) " >&6
6374 else
6375 if test -n "$NM"; then
6376 # Let the user override the test.
6377 lt_cv_path_NM="$NM"
6378 else
6379 lt_nm_to_check="${ac_tool_prefix}nm"
6380 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6381 lt_nm_to_check="$lt_nm_to_check nm"
6383 for lt_tmp_nm in $lt_nm_to_check; do
6384 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6385 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6386 IFS="$lt_save_ifs"
6387 test -z "$ac_dir" && ac_dir=.
6388 tmp_nm="$ac_dir/$lt_tmp_nm"
6389 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6390 # Check to see if the nm accepts a BSD-compat flag.
6391 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6392 # nm: unknown option "B" ignored
6393 # Tru64's nm complains that /dev/null is an invalid object file
6394 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6395 */dev/null* | *'Invalid file or object type'*)
6396 lt_cv_path_NM="$tmp_nm -B"
6397 break
6400 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6401 */dev/null*)
6402 lt_cv_path_NM="$tmp_nm -p"
6403 break
6406 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6407 continue # so that we can try to find one that supports BSD flags
6409 esac
6411 esac
6413 done
6414 IFS="$lt_save_ifs"
6415 done
6416 : ${lt_cv_path_NM=no}
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6420 $as_echo "$lt_cv_path_NM" >&6; }
6421 if test "$lt_cv_path_NM" != "no"; then
6422 NM="$lt_cv_path_NM"
6423 else
6424 # Didn't find any BSD compatible name lister, look for dumpbin.
6425 if test -n "$DUMPBIN"; then :
6426 # Let the user override the test.
6427 else
6428 if test -n "$ac_tool_prefix"; then
6429 for ac_prog in dumpbin "link -dump"
6431 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6432 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6434 $as_echo_n "checking for $ac_word... " >&6; }
6435 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6436 $as_echo_n "(cached) " >&6
6437 else
6438 if test -n "$DUMPBIN"; then
6439 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6440 else
6441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6442 for as_dir in $PATH
6444 IFS=$as_save_IFS
6445 test -z "$as_dir" && as_dir=.
6446 for ac_exec_ext in '' $ac_executable_extensions; do
6447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6448 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6450 break 2
6452 done
6453 done
6454 IFS=$as_save_IFS
6458 DUMPBIN=$ac_cv_prog_DUMPBIN
6459 if test -n "$DUMPBIN"; then
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6461 $as_echo "$DUMPBIN" >&6; }
6462 else
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6464 $as_echo "no" >&6; }
6468 test -n "$DUMPBIN" && break
6469 done
6471 if test -z "$DUMPBIN"; then
6472 ac_ct_DUMPBIN=$DUMPBIN
6473 for ac_prog in dumpbin "link -dump"
6475 # Extract the first word of "$ac_prog", so it can be a program name with args.
6476 set dummy $ac_prog; ac_word=$2
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6478 $as_echo_n "checking for $ac_word... " >&6; }
6479 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6480 $as_echo_n "(cached) " >&6
6481 else
6482 if test -n "$ac_ct_DUMPBIN"; then
6483 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6484 else
6485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6486 for as_dir in $PATH
6488 IFS=$as_save_IFS
6489 test -z "$as_dir" && as_dir=.
6490 for ac_exec_ext in '' $ac_executable_extensions; do
6491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6492 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6494 break 2
6496 done
6497 done
6498 IFS=$as_save_IFS
6502 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6503 if test -n "$ac_ct_DUMPBIN"; then
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6505 $as_echo "$ac_ct_DUMPBIN" >&6; }
6506 else
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6508 $as_echo "no" >&6; }
6512 test -n "$ac_ct_DUMPBIN" && break
6513 done
6515 if test "x$ac_ct_DUMPBIN" = x; then
6516 DUMPBIN=":"
6517 else
6518 case $cross_compiling:$ac_tool_warned in
6519 yes:)
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6521 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6522 ac_tool_warned=yes ;;
6523 esac
6524 DUMPBIN=$ac_ct_DUMPBIN
6528 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6529 *COFF*)
6530 DUMPBIN="$DUMPBIN -symbols"
6533 DUMPBIN=:
6535 esac
6538 if test "$DUMPBIN" != ":"; then
6539 NM="$DUMPBIN"
6542 test -z "$NM" && NM=nm
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6550 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6551 if test "${lt_cv_nm_interface+set}" = set; then :
6552 $as_echo_n "(cached) " >&6
6553 else
6554 lt_cv_nm_interface="BSD nm"
6555 echo "int some_variable = 0;" > conftest.$ac_ext
6556 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6557 (eval "$ac_compile" 2>conftest.err)
6558 cat conftest.err >&5
6559 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6560 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6561 cat conftest.err >&5
6562 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6563 cat conftest.out >&5
6564 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6565 lt_cv_nm_interface="MS dumpbin"
6567 rm -f conftest*
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6570 $as_echo "$lt_cv_nm_interface" >&6; }
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6573 $as_echo_n "checking whether ln -s works... " >&6; }
6574 LN_S=$as_ln_s
6575 if test "$LN_S" = "ln -s"; then
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6577 $as_echo "yes" >&6; }
6578 else
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6580 $as_echo "no, using $LN_S" >&6; }
6583 # find the maximum length of command line arguments
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6585 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6586 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6587 $as_echo_n "(cached) " >&6
6588 else
6590 teststring="ABCD"
6592 case $build_os in
6593 msdosdjgpp*)
6594 # On DJGPP, this test can blow up pretty badly due to problems in libc
6595 # (any single argument exceeding 2000 bytes causes a buffer overrun
6596 # during glob expansion). Even if it were fixed, the result of this
6597 # check would be larger than it should be.
6598 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6601 gnu*)
6602 # Under GNU Hurd, this test is not required because there is
6603 # no limit to the length of command line arguments.
6604 # Libtool will interpret -1 as no limit whatsoever
6605 lt_cv_sys_max_cmd_len=-1;
6608 cygwin* | mingw* | cegcc*)
6609 # On Win9x/ME, this test blows up -- it succeeds, but takes
6610 # about 5 minutes as the teststring grows exponentially.
6611 # Worse, since 9x/ME are not pre-emptively multitasking,
6612 # you end up with a "frozen" computer, even though with patience
6613 # the test eventually succeeds (with a max line length of 256k).
6614 # Instead, let's just punt: use the minimum linelength reported by
6615 # all of the supported platforms: 8192 (on NT/2K/XP).
6616 lt_cv_sys_max_cmd_len=8192;
6619 mint*)
6620 # On MiNT this can take a long time and run out of memory.
6621 lt_cv_sys_max_cmd_len=8192;
6624 amigaos*)
6625 # On AmigaOS with pdksh, this test takes hours, literally.
6626 # So we just punt and use a minimum line length of 8192.
6627 lt_cv_sys_max_cmd_len=8192;
6630 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6631 # This has been around since 386BSD, at least. Likely further.
6632 if test -x /sbin/sysctl; then
6633 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6634 elif test -x /usr/sbin/sysctl; then
6635 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6636 else
6637 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6639 # And add a safety zone
6640 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6641 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6644 interix*)
6645 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6646 lt_cv_sys_max_cmd_len=196608
6649 osf*)
6650 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6651 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6652 # nice to cause kernel panics so lets avoid the loop below.
6653 # First set a reasonable default.
6654 lt_cv_sys_max_cmd_len=16384
6656 if test -x /sbin/sysconfig; then
6657 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6658 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6659 esac
6662 sco3.2v5*)
6663 lt_cv_sys_max_cmd_len=102400
6665 sysv5* | sco5v6* | sysv4.2uw2*)
6666 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6667 if test -n "$kargmax"; then
6668 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6669 else
6670 lt_cv_sys_max_cmd_len=32768
6674 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6675 if test -n "$lt_cv_sys_max_cmd_len"; then
6676 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6677 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6678 else
6679 # Make teststring a little bigger before we do anything with it.
6680 # a 1K string should be a reasonable start.
6681 for i in 1 2 3 4 5 6 7 8 ; do
6682 teststring=$teststring$teststring
6683 done
6684 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6685 # If test is not a shell built-in, we'll probably end up computing a
6686 # maximum length that is only half of the actual maximum length, but
6687 # we can't tell.
6688 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6689 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6690 test $i != 17 # 1/2 MB should be enough
6692 i=`expr $i + 1`
6693 teststring=$teststring$teststring
6694 done
6695 # Only check the string length outside the loop.
6696 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6697 teststring=
6698 # Add a significant safety factor because C++ compilers can tack on
6699 # massive amounts of additional arguments before passing them to the
6700 # linker. It appears as though 1/2 is a usable value.
6701 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6704 esac
6708 if test -n $lt_cv_sys_max_cmd_len ; then
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6710 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6711 else
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6713 $as_echo "none" >&6; }
6715 max_cmd_len=$lt_cv_sys_max_cmd_len
6722 : ${CP="cp -f"}
6723 : ${MV="mv -f"}
6724 : ${RM="rm -f"}
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6727 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6728 # Try some XSI features
6729 xsi_shell=no
6730 ( _lt_dummy="a/b/c"
6731 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6732 = c,a/b,, \
6733 && eval 'test $(( 1 + 1 )) -eq 2 \
6734 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6735 && xsi_shell=yes
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6737 $as_echo "$xsi_shell" >&6; }
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6741 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6742 lt_shell_append=no
6743 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6744 >/dev/null 2>&1 \
6745 && lt_shell_append=yes
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6747 $as_echo "$lt_shell_append" >&6; }
6750 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6751 lt_unset=unset
6752 else
6753 lt_unset=false
6760 # test EBCDIC or ASCII
6761 case `echo X|tr X '\101'` in
6762 A) # ASCII based system
6763 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6764 lt_SP2NL='tr \040 \012'
6765 lt_NL2SP='tr \015\012 \040\040'
6767 *) # EBCDIC based system
6768 lt_SP2NL='tr \100 \n'
6769 lt_NL2SP='tr \r\n \100\100'
6771 esac
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6782 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6783 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6784 $as_echo_n "(cached) " >&6
6785 else
6786 lt_cv_ld_reload_flag='-r'
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6789 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6790 reload_flag=$lt_cv_ld_reload_flag
6791 case $reload_flag in
6792 "" | " "*) ;;
6793 *) reload_flag=" $reload_flag" ;;
6794 esac
6795 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6796 case $host_os in
6797 darwin*)
6798 if test "$GCC" = yes; then
6799 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6800 else
6801 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6804 esac
6814 if test -n "$ac_tool_prefix"; then
6815 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6816 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6818 $as_echo_n "checking for $ac_word... " >&6; }
6819 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6820 $as_echo_n "(cached) " >&6
6821 else
6822 if test -n "$OBJDUMP"; then
6823 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6824 else
6825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6826 for as_dir in $PATH
6828 IFS=$as_save_IFS
6829 test -z "$as_dir" && as_dir=.
6830 for ac_exec_ext in '' $ac_executable_extensions; do
6831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6832 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6834 break 2
6836 done
6837 done
6838 IFS=$as_save_IFS
6842 OBJDUMP=$ac_cv_prog_OBJDUMP
6843 if test -n "$OBJDUMP"; then
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6845 $as_echo "$OBJDUMP" >&6; }
6846 else
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6848 $as_echo "no" >&6; }
6853 if test -z "$ac_cv_prog_OBJDUMP"; then
6854 ac_ct_OBJDUMP=$OBJDUMP
6855 # Extract the first word of "objdump", so it can be a program name with args.
6856 set dummy objdump; ac_word=$2
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6858 $as_echo_n "checking for $ac_word... " >&6; }
6859 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6860 $as_echo_n "(cached) " >&6
6861 else
6862 if test -n "$ac_ct_OBJDUMP"; then
6863 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6864 else
6865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6866 for as_dir in $PATH
6868 IFS=$as_save_IFS
6869 test -z "$as_dir" && as_dir=.
6870 for ac_exec_ext in '' $ac_executable_extensions; do
6871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6872 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6874 break 2
6876 done
6877 done
6878 IFS=$as_save_IFS
6882 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6883 if test -n "$ac_ct_OBJDUMP"; then
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6885 $as_echo "$ac_ct_OBJDUMP" >&6; }
6886 else
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6888 $as_echo "no" >&6; }
6891 if test "x$ac_ct_OBJDUMP" = x; then
6892 OBJDUMP="false"
6893 else
6894 case $cross_compiling:$ac_tool_warned in
6895 yes:)
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6897 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6898 ac_tool_warned=yes ;;
6899 esac
6900 OBJDUMP=$ac_ct_OBJDUMP
6902 else
6903 OBJDUMP="$ac_cv_prog_OBJDUMP"
6906 test -z "$OBJDUMP" && OBJDUMP=objdump
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6917 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6918 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6919 $as_echo_n "(cached) " >&6
6920 else
6921 lt_cv_file_magic_cmd='$MAGIC_CMD'
6922 lt_cv_file_magic_test_file=
6923 lt_cv_deplibs_check_method='unknown'
6924 # Need to set the preceding variable on all platforms that support
6925 # interlibrary dependencies.
6926 # 'none' -- dependencies not supported.
6927 # `unknown' -- same as none, but documents that we really don't know.
6928 # 'pass_all' -- all dependencies passed with no checks.
6929 # 'test_compile' -- check by making test program.
6930 # 'file_magic [[regex]]' -- check by looking for files in library path
6931 # which responds to the $file_magic_cmd with a given extended regex.
6932 # If you have `file' or equivalent on your system and you're not sure
6933 # whether `pass_all' will *always* work, you probably want this one.
6935 case $host_os in
6936 aix[4-9]*)
6937 lt_cv_deplibs_check_method=pass_all
6940 beos*)
6941 lt_cv_deplibs_check_method=pass_all
6944 bsdi[45]*)
6945 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6946 lt_cv_file_magic_cmd='/usr/bin/file -L'
6947 lt_cv_file_magic_test_file=/shlib/libc.so
6950 cygwin*)
6951 # func_win32_libid is a shell function defined in ltmain.sh
6952 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6953 lt_cv_file_magic_cmd='func_win32_libid'
6956 mingw* | pw32*)
6957 # Base MSYS/MinGW do not provide the 'file' command needed by
6958 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6959 # unless we find 'file', for example because we are cross-compiling.
6960 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6961 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6962 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6963 lt_cv_file_magic_cmd='func_win32_libid'
6964 else
6965 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6966 lt_cv_file_magic_cmd='$OBJDUMP -f'
6970 cegcc*)
6971 # use the weaker test based on 'objdump'. See mingw*.
6972 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6973 lt_cv_file_magic_cmd='$OBJDUMP -f'
6976 darwin* | rhapsody*)
6977 lt_cv_deplibs_check_method=pass_all
6980 freebsd* | dragonfly*)
6981 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6982 case $host_cpu in
6983 i*86 )
6984 # Not sure whether the presence of OpenBSD here was a mistake.
6985 # Let's accept both of them until this is cleared up.
6986 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6987 lt_cv_file_magic_cmd=/usr/bin/file
6988 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6990 esac
6991 else
6992 lt_cv_deplibs_check_method=pass_all
6996 gnu*)
6997 lt_cv_deplibs_check_method=pass_all
7000 haiku*)
7001 lt_cv_deplibs_check_method=pass_all
7004 hpux10.20* | hpux11*)
7005 lt_cv_file_magic_cmd=/usr/bin/file
7006 case $host_cpu in
7007 ia64*)
7008 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7009 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7011 hppa*64*)
7012 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]'
7013 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7016 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7017 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7019 esac
7022 interix[3-9]*)
7023 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7024 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7027 irix5* | irix6* | nonstopux*)
7028 case $LD in
7029 *-32|*"-32 ") libmagic=32-bit;;
7030 *-n32|*"-n32 ") libmagic=N32;;
7031 *-64|*"-64 ") libmagic=64-bit;;
7032 *) libmagic=never-match;;
7033 esac
7034 lt_cv_deplibs_check_method=pass_all
7037 # This must be Linux ELF.
7038 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7039 lt_cv_deplibs_check_method=pass_all
7042 netbsd*)
7043 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7044 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7045 else
7046 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7050 newos6*)
7051 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7052 lt_cv_file_magic_cmd=/usr/bin/file
7053 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7056 *nto* | *qnx*)
7057 lt_cv_deplibs_check_method=pass_all
7060 openbsd*)
7061 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7062 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7063 else
7064 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7068 osf3* | osf4* | osf5*)
7069 lt_cv_deplibs_check_method=pass_all
7072 rdos*)
7073 lt_cv_deplibs_check_method=pass_all
7076 solaris*)
7077 lt_cv_deplibs_check_method=pass_all
7080 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7081 lt_cv_deplibs_check_method=pass_all
7084 sysv4 | sysv4.3*)
7085 case $host_vendor in
7086 motorola)
7087 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]'
7088 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7090 ncr)
7091 lt_cv_deplibs_check_method=pass_all
7093 sequent)
7094 lt_cv_file_magic_cmd='/bin/file'
7095 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7097 sni)
7098 lt_cv_file_magic_cmd='/bin/file'
7099 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7100 lt_cv_file_magic_test_file=/lib/libc.so
7102 siemens)
7103 lt_cv_deplibs_check_method=pass_all
7106 lt_cv_deplibs_check_method=pass_all
7108 esac
7111 tpf*)
7112 lt_cv_deplibs_check_method=pass_all
7114 esac
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7118 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7119 file_magic_cmd=$lt_cv_file_magic_cmd
7120 deplibs_check_method=$lt_cv_deplibs_check_method
7121 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7134 if test -n "$ac_tool_prefix"; then
7135 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7136 set dummy ${ac_tool_prefix}ar; ac_word=$2
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7138 $as_echo_n "checking for $ac_word... " >&6; }
7139 if test "${ac_cv_prog_AR+set}" = set; then :
7140 $as_echo_n "(cached) " >&6
7141 else
7142 if test -n "$AR"; then
7143 ac_cv_prog_AR="$AR" # Let the user override the test.
7144 else
7145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7146 for as_dir in $PATH
7148 IFS=$as_save_IFS
7149 test -z "$as_dir" && as_dir=.
7150 for ac_exec_ext in '' $ac_executable_extensions; do
7151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7152 ac_cv_prog_AR="${ac_tool_prefix}ar"
7153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7154 break 2
7156 done
7157 done
7158 IFS=$as_save_IFS
7162 AR=$ac_cv_prog_AR
7163 if test -n "$AR"; then
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7165 $as_echo "$AR" >&6; }
7166 else
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7168 $as_echo "no" >&6; }
7173 if test -z "$ac_cv_prog_AR"; then
7174 ac_ct_AR=$AR
7175 # Extract the first word of "ar", so it can be a program name with args.
7176 set dummy ar; ac_word=$2
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7178 $as_echo_n "checking for $ac_word... " >&6; }
7179 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7180 $as_echo_n "(cached) " >&6
7181 else
7182 if test -n "$ac_ct_AR"; then
7183 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7184 else
7185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7186 for as_dir in $PATH
7188 IFS=$as_save_IFS
7189 test -z "$as_dir" && as_dir=.
7190 for ac_exec_ext in '' $ac_executable_extensions; do
7191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7192 ac_cv_prog_ac_ct_AR="ar"
7193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7194 break 2
7196 done
7197 done
7198 IFS=$as_save_IFS
7202 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7203 if test -n "$ac_ct_AR"; then
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7205 $as_echo "$ac_ct_AR" >&6; }
7206 else
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7208 $as_echo "no" >&6; }
7211 if test "x$ac_ct_AR" = x; then
7212 AR="false"
7213 else
7214 case $cross_compiling:$ac_tool_warned in
7215 yes:)
7216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7217 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7218 ac_tool_warned=yes ;;
7219 esac
7220 AR=$ac_ct_AR
7222 else
7223 AR="$ac_cv_prog_AR"
7226 test -z "$AR" && AR=ar
7227 test -z "$AR_FLAGS" && AR_FLAGS=cru
7239 if test -n "$ac_tool_prefix"; then
7240 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7241 set dummy ${ac_tool_prefix}strip; ac_word=$2
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7243 $as_echo_n "checking for $ac_word... " >&6; }
7244 if test "${ac_cv_prog_STRIP+set}" = set; then :
7245 $as_echo_n "(cached) " >&6
7246 else
7247 if test -n "$STRIP"; then
7248 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7249 else
7250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7251 for as_dir in $PATH
7253 IFS=$as_save_IFS
7254 test -z "$as_dir" && as_dir=.
7255 for ac_exec_ext in '' $ac_executable_extensions; do
7256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7257 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7259 break 2
7261 done
7262 done
7263 IFS=$as_save_IFS
7267 STRIP=$ac_cv_prog_STRIP
7268 if test -n "$STRIP"; then
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7270 $as_echo "$STRIP" >&6; }
7271 else
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7273 $as_echo "no" >&6; }
7278 if test -z "$ac_cv_prog_STRIP"; then
7279 ac_ct_STRIP=$STRIP
7280 # Extract the first word of "strip", so it can be a program name with args.
7281 set dummy strip; ac_word=$2
7282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7283 $as_echo_n "checking for $ac_word... " >&6; }
7284 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7285 $as_echo_n "(cached) " >&6
7286 else
7287 if test -n "$ac_ct_STRIP"; then
7288 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7289 else
7290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7291 for as_dir in $PATH
7293 IFS=$as_save_IFS
7294 test -z "$as_dir" && as_dir=.
7295 for ac_exec_ext in '' $ac_executable_extensions; do
7296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7297 ac_cv_prog_ac_ct_STRIP="strip"
7298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7299 break 2
7301 done
7302 done
7303 IFS=$as_save_IFS
7307 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7308 if test -n "$ac_ct_STRIP"; then
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7310 $as_echo "$ac_ct_STRIP" >&6; }
7311 else
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7313 $as_echo "no" >&6; }
7316 if test "x$ac_ct_STRIP" = x; then
7317 STRIP=":"
7318 else
7319 case $cross_compiling:$ac_tool_warned in
7320 yes:)
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7322 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7323 ac_tool_warned=yes ;;
7324 esac
7325 STRIP=$ac_ct_STRIP
7327 else
7328 STRIP="$ac_cv_prog_STRIP"
7331 test -z "$STRIP" && STRIP=:
7338 if test -n "$ac_tool_prefix"; then
7339 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7340 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7342 $as_echo_n "checking for $ac_word... " >&6; }
7343 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7344 $as_echo_n "(cached) " >&6
7345 else
7346 if test -n "$RANLIB"; then
7347 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7348 else
7349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7350 for as_dir in $PATH
7352 IFS=$as_save_IFS
7353 test -z "$as_dir" && as_dir=.
7354 for ac_exec_ext in '' $ac_executable_extensions; do
7355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7356 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7358 break 2
7360 done
7361 done
7362 IFS=$as_save_IFS
7366 RANLIB=$ac_cv_prog_RANLIB
7367 if test -n "$RANLIB"; then
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7369 $as_echo "$RANLIB" >&6; }
7370 else
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7372 $as_echo "no" >&6; }
7377 if test -z "$ac_cv_prog_RANLIB"; then
7378 ac_ct_RANLIB=$RANLIB
7379 # Extract the first word of "ranlib", so it can be a program name with args.
7380 set dummy ranlib; ac_word=$2
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7382 $as_echo_n "checking for $ac_word... " >&6; }
7383 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7384 $as_echo_n "(cached) " >&6
7385 else
7386 if test -n "$ac_ct_RANLIB"; then
7387 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7388 else
7389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7390 for as_dir in $PATH
7392 IFS=$as_save_IFS
7393 test -z "$as_dir" && as_dir=.
7394 for ac_exec_ext in '' $ac_executable_extensions; do
7395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7396 ac_cv_prog_ac_ct_RANLIB="ranlib"
7397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7398 break 2
7400 done
7401 done
7402 IFS=$as_save_IFS
7406 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7407 if test -n "$ac_ct_RANLIB"; then
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7409 $as_echo "$ac_ct_RANLIB" >&6; }
7410 else
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7412 $as_echo "no" >&6; }
7415 if test "x$ac_ct_RANLIB" = x; then
7416 RANLIB=":"
7417 else
7418 case $cross_compiling:$ac_tool_warned in
7419 yes:)
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7421 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7422 ac_tool_warned=yes ;;
7423 esac
7424 RANLIB=$ac_ct_RANLIB
7426 else
7427 RANLIB="$ac_cv_prog_RANLIB"
7430 test -z "$RANLIB" && RANLIB=:
7437 # Determine commands to create old-style static archives.
7438 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7439 old_postinstall_cmds='chmod 644 $oldlib'
7440 old_postuninstall_cmds=
7442 if test -n "$RANLIB"; then
7443 case $host_os in
7444 openbsd*)
7445 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7448 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7450 esac
7451 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7454 case $host_os in
7455 darwin*)
7456 lock_old_archive_extraction=yes ;;
7458 lock_old_archive_extraction=no ;;
7459 esac
7499 # If no C compiler was specified, use CC.
7500 LTCC=${LTCC-"$CC"}
7502 # If no C compiler flags were specified, use CFLAGS.
7503 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7505 # Allow CC to be a program name with arguments.
7506 compiler=$CC
7509 # Check for command to grab the raw symbol name followed by C symbol from nm.
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7511 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7512 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7513 $as_echo_n "(cached) " >&6
7514 else
7516 # These are sane defaults that work on at least a few old systems.
7517 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7519 # Character class describing NM global symbol codes.
7520 symcode='[BCDEGRST]'
7522 # Regexp to match symbols that can be accessed directly from C.
7523 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7525 # Define system-specific variables.
7526 case $host_os in
7527 aix*)
7528 symcode='[BCDT]'
7530 cygwin* | mingw* | pw32* | cegcc*)
7531 symcode='[ABCDGISTW]'
7533 hpux*)
7534 if test "$host_cpu" = ia64; then
7535 symcode='[ABCDEGRST]'
7538 irix* | nonstopux*)
7539 symcode='[BCDEGRST]'
7541 osf*)
7542 symcode='[BCDEGQRST]'
7544 solaris*)
7545 symcode='[BDRT]'
7547 sco3.2v5*)
7548 symcode='[DT]'
7550 sysv4.2uw2*)
7551 symcode='[DT]'
7553 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7554 symcode='[ABDT]'
7556 sysv4)
7557 symcode='[DFNSTU]'
7559 esac
7561 # If we're using GNU nm, then use its standard symbol codes.
7562 case `$NM -V 2>&1` in
7563 *GNU* | *'with BFD'*)
7564 symcode='[ABCDGIRSTW]' ;;
7565 esac
7567 # Transform an extracted symbol line into a proper C declaration.
7568 # Some systems (esp. on ia64) link data and code symbols differently,
7569 # so use this general approach.
7570 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7572 # Transform an extracted symbol line into symbol name and symbol address
7573 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7574 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'"
7576 # Handle CRLF in mingw tool chain
7577 opt_cr=
7578 case $build_os in
7579 mingw*)
7580 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7582 esac
7584 # Try without a prefix underscore, then with it.
7585 for ac_symprfx in "" "_"; do
7587 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7588 symxfrm="\\1 $ac_symprfx\\2 \\2"
7590 # Write the raw and C identifiers.
7591 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7592 # Fake it for dumpbin and say T for any non-static function
7593 # and D for any global variable.
7594 # Also find C++ and __fastcall symbols from MSVC++,
7595 # which start with @ or ?.
7596 lt_cv_sys_global_symbol_pipe="$AWK '"\
7597 " {last_section=section; section=\$ 3};"\
7598 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7599 " \$ 0!~/External *\|/{next};"\
7600 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7601 " {if(hide[section]) next};"\
7602 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7603 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7604 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7605 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7606 " ' prfx=^$ac_symprfx"
7607 else
7608 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7611 # Check to see that the pipe works correctly.
7612 pipe_works=no
7614 rm -f conftest*
7615 cat > conftest.$ac_ext <<_LT_EOF
7616 #ifdef __cplusplus
7617 extern "C" {
7618 #endif
7619 char nm_test_var;
7620 void nm_test_func(void);
7621 void nm_test_func(void){}
7622 #ifdef __cplusplus
7624 #endif
7625 int main(){nm_test_var='a';nm_test_func();return(0);}
7626 _LT_EOF
7628 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7629 (eval $ac_compile) 2>&5
7630 ac_status=$?
7631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7632 test $ac_status = 0; }; then
7633 # Now try to grab the symbols.
7634 nlist=conftest.nm
7635 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7636 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7637 ac_status=$?
7638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7639 test $ac_status = 0; } && test -s "$nlist"; then
7640 # Try sorting and uniquifying the output.
7641 if sort "$nlist" | uniq > "$nlist"T; then
7642 mv -f "$nlist"T "$nlist"
7643 else
7644 rm -f "$nlist"T
7647 # Make sure that we snagged all the symbols we need.
7648 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7649 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7650 cat <<_LT_EOF > conftest.$ac_ext
7651 #ifdef __cplusplus
7652 extern "C" {
7653 #endif
7655 _LT_EOF
7656 # Now generate the symbol file.
7657 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7659 cat <<_LT_EOF >> conftest.$ac_ext
7661 /* The mapping between symbol names and symbols. */
7662 const struct {
7663 const char *name;
7664 void *address;
7666 lt__PROGRAM__LTX_preloaded_symbols[] =
7668 { "@PROGRAM@", (void *) 0 },
7669 _LT_EOF
7670 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7671 cat <<\_LT_EOF >> conftest.$ac_ext
7672 {0, (void *) 0}
7675 /* This works around a problem in FreeBSD linker */
7676 #ifdef FREEBSD_WORKAROUND
7677 static const void *lt_preloaded_setup() {
7678 return lt__PROGRAM__LTX_preloaded_symbols;
7680 #endif
7682 #ifdef __cplusplus
7684 #endif
7685 _LT_EOF
7686 # Now try linking the two files.
7687 mv conftest.$ac_objext conftstm.$ac_objext
7688 lt_save_LIBS="$LIBS"
7689 lt_save_CFLAGS="$CFLAGS"
7690 LIBS="conftstm.$ac_objext"
7691 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7692 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7693 (eval $ac_link) 2>&5
7694 ac_status=$?
7695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7696 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7697 pipe_works=yes
7699 LIBS="$lt_save_LIBS"
7700 CFLAGS="$lt_save_CFLAGS"
7701 else
7702 echo "cannot find nm_test_func in $nlist" >&5
7704 else
7705 echo "cannot find nm_test_var in $nlist" >&5
7707 else
7708 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7710 else
7711 echo "$progname: failed program was:" >&5
7712 cat conftest.$ac_ext >&5
7714 rm -rf conftest* conftst*
7716 # Do not use the global_symbol_pipe unless it works.
7717 if test "$pipe_works" = yes; then
7718 break
7719 else
7720 lt_cv_sys_global_symbol_pipe=
7722 done
7726 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7727 lt_cv_sys_global_symbol_to_cdecl=
7729 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7731 $as_echo "failed" >&6; }
7732 else
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7734 $as_echo "ok" >&6; }
7758 # Check whether --enable-libtool-lock was given.
7759 if test "${enable_libtool_lock+set}" = set; then :
7760 enableval=$enable_libtool_lock;
7763 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7765 # Some flags need to be propagated to the compiler or linker for good
7766 # libtool support.
7767 case $host in
7768 ia64-*-hpux*)
7769 # Find out which ABI we are using.
7770 echo 'int i;' > conftest.$ac_ext
7771 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7772 (eval $ac_compile) 2>&5
7773 ac_status=$?
7774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7775 test $ac_status = 0; }; then
7776 case `/usr/bin/file conftest.$ac_objext` in
7777 *ELF-32*)
7778 HPUX_IA64_MODE="32"
7780 *ELF-64*)
7781 HPUX_IA64_MODE="64"
7783 esac
7785 rm -rf conftest*
7787 *-*-irix6*)
7788 # Find out which ABI we are using.
7789 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7790 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7791 (eval $ac_compile) 2>&5
7792 ac_status=$?
7793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7794 test $ac_status = 0; }; then
7795 if test "$lt_cv_prog_gnu_ld" = yes; then
7796 case `/usr/bin/file conftest.$ac_objext` in
7797 *32-bit*)
7798 LD="${LD-ld} -melf32bsmip"
7800 *N32*)
7801 LD="${LD-ld} -melf32bmipn32"
7803 *64-bit*)
7804 LD="${LD-ld} -melf64bmip"
7806 esac
7807 else
7808 case `/usr/bin/file conftest.$ac_objext` in
7809 *32-bit*)
7810 LD="${LD-ld} -32"
7812 *N32*)
7813 LD="${LD-ld} -n32"
7815 *64-bit*)
7816 LD="${LD-ld} -64"
7818 esac
7821 rm -rf conftest*
7824 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7825 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7826 # Find out which ABI we are using.
7827 echo 'int i;' > conftest.$ac_ext
7828 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7829 (eval $ac_compile) 2>&5
7830 ac_status=$?
7831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7832 test $ac_status = 0; }; then
7833 case `/usr/bin/file conftest.o` in
7834 *32-bit*)
7835 case $host in
7836 x86_64-*kfreebsd*-gnu)
7837 LD="${LD-ld} -m elf_i386_fbsd"
7839 x86_64-*linux*)
7840 case `/usr/bin/file conftest.o` in
7841 *x86-64*)
7842 LD="${LD-ld} -m elf32_x86_64"
7845 LD="${LD-ld} -m elf_i386"
7847 esac
7849 powerpc64le-*linux*)
7850 LD="${LD-ld} -m elf32lppclinux"
7852 powerpc64-*linux*)
7853 LD="${LD-ld} -m elf32ppclinux"
7855 s390x-*linux*)
7856 LD="${LD-ld} -m elf_s390"
7858 sparc64-*linux*)
7859 LD="${LD-ld} -m elf32_sparc"
7861 esac
7863 *64-bit*)
7864 case $host in
7865 x86_64-*kfreebsd*-gnu)
7866 LD="${LD-ld} -m elf_x86_64_fbsd"
7868 x86_64-*linux*)
7869 LD="${LD-ld} -m elf_x86_64"
7871 powerpcle-*linux*)
7872 LD="${LD-ld} -m elf64lppc"
7874 powerpc-*linux*)
7875 LD="${LD-ld} -m elf64ppc"
7877 s390*-*linux*|s390*-*tpf*)
7878 LD="${LD-ld} -m elf64_s390"
7880 sparc*-*linux*)
7881 LD="${LD-ld} -m elf64_sparc"
7883 esac
7885 esac
7887 rm -rf conftest*
7890 *-*-sco3.2v5*)
7891 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7892 SAVE_CFLAGS="$CFLAGS"
7893 CFLAGS="$CFLAGS -belf"
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7895 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7896 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7897 $as_echo_n "(cached) " >&6
7898 else
7899 ac_ext=c
7900 ac_cpp='$CPP $CPPFLAGS'
7901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7906 /* end confdefs.h. */
7909 main ()
7913 return 0;
7915 _ACEOF
7916 if ac_fn_c_try_link "$LINENO"; then :
7917 lt_cv_cc_needs_belf=yes
7918 else
7919 lt_cv_cc_needs_belf=no
7921 rm -f core conftest.err conftest.$ac_objext \
7922 conftest$ac_exeext conftest.$ac_ext
7923 ac_ext=c
7924 ac_cpp='$CPP $CPPFLAGS'
7925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7931 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7932 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7933 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7934 CFLAGS="$SAVE_CFLAGS"
7937 sparc*-*solaris*)
7938 # Find out which ABI we are using.
7939 echo 'int i;' > conftest.$ac_ext
7940 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7941 (eval $ac_compile) 2>&5
7942 ac_status=$?
7943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7944 test $ac_status = 0; }; then
7945 case `/usr/bin/file conftest.o` in
7946 *64-bit*)
7947 case $lt_cv_prog_gnu_ld in
7948 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7950 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7951 LD="${LD-ld} -64"
7954 esac
7956 esac
7958 rm -rf conftest*
7960 esac
7962 need_locks="$enable_libtool_lock"
7965 case $host_os in
7966 rhapsody* | darwin*)
7967 if test -n "$ac_tool_prefix"; then
7968 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7969 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7971 $as_echo_n "checking for $ac_word... " >&6; }
7972 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7973 $as_echo_n "(cached) " >&6
7974 else
7975 if test -n "$DSYMUTIL"; then
7976 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7977 else
7978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7979 for as_dir in $PATH
7981 IFS=$as_save_IFS
7982 test -z "$as_dir" && as_dir=.
7983 for ac_exec_ext in '' $ac_executable_extensions; do
7984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7985 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7987 break 2
7989 done
7990 done
7991 IFS=$as_save_IFS
7995 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7996 if test -n "$DSYMUTIL"; then
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7998 $as_echo "$DSYMUTIL" >&6; }
7999 else
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8001 $as_echo "no" >&6; }
8006 if test -z "$ac_cv_prog_DSYMUTIL"; then
8007 ac_ct_DSYMUTIL=$DSYMUTIL
8008 # Extract the first word of "dsymutil", so it can be a program name with args.
8009 set dummy dsymutil; ac_word=$2
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8011 $as_echo_n "checking for $ac_word... " >&6; }
8012 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8013 $as_echo_n "(cached) " >&6
8014 else
8015 if test -n "$ac_ct_DSYMUTIL"; then
8016 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8017 else
8018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8019 for as_dir in $PATH
8021 IFS=$as_save_IFS
8022 test -z "$as_dir" && as_dir=.
8023 for ac_exec_ext in '' $ac_executable_extensions; do
8024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8025 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8027 break 2
8029 done
8030 done
8031 IFS=$as_save_IFS
8035 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8036 if test -n "$ac_ct_DSYMUTIL"; then
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8038 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8039 else
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8041 $as_echo "no" >&6; }
8044 if test "x$ac_ct_DSYMUTIL" = x; then
8045 DSYMUTIL=":"
8046 else
8047 case $cross_compiling:$ac_tool_warned in
8048 yes:)
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8050 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8051 ac_tool_warned=yes ;;
8052 esac
8053 DSYMUTIL=$ac_ct_DSYMUTIL
8055 else
8056 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8059 if test -n "$ac_tool_prefix"; then
8060 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8061 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8063 $as_echo_n "checking for $ac_word... " >&6; }
8064 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
8065 $as_echo_n "(cached) " >&6
8066 else
8067 if test -n "$NMEDIT"; then
8068 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8069 else
8070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8071 for as_dir in $PATH
8073 IFS=$as_save_IFS
8074 test -z "$as_dir" && as_dir=.
8075 for ac_exec_ext in '' $ac_executable_extensions; do
8076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8077 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8079 break 2
8081 done
8082 done
8083 IFS=$as_save_IFS
8087 NMEDIT=$ac_cv_prog_NMEDIT
8088 if test -n "$NMEDIT"; then
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8090 $as_echo "$NMEDIT" >&6; }
8091 else
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8093 $as_echo "no" >&6; }
8098 if test -z "$ac_cv_prog_NMEDIT"; then
8099 ac_ct_NMEDIT=$NMEDIT
8100 # Extract the first word of "nmedit", so it can be a program name with args.
8101 set dummy nmedit; ac_word=$2
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8103 $as_echo_n "checking for $ac_word... " >&6; }
8104 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
8105 $as_echo_n "(cached) " >&6
8106 else
8107 if test -n "$ac_ct_NMEDIT"; then
8108 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8109 else
8110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8111 for as_dir in $PATH
8113 IFS=$as_save_IFS
8114 test -z "$as_dir" && as_dir=.
8115 for ac_exec_ext in '' $ac_executable_extensions; do
8116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8117 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8119 break 2
8121 done
8122 done
8123 IFS=$as_save_IFS
8127 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8128 if test -n "$ac_ct_NMEDIT"; then
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8130 $as_echo "$ac_ct_NMEDIT" >&6; }
8131 else
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8133 $as_echo "no" >&6; }
8136 if test "x$ac_ct_NMEDIT" = x; then
8137 NMEDIT=":"
8138 else
8139 case $cross_compiling:$ac_tool_warned in
8140 yes:)
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8142 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8143 ac_tool_warned=yes ;;
8144 esac
8145 NMEDIT=$ac_ct_NMEDIT
8147 else
8148 NMEDIT="$ac_cv_prog_NMEDIT"
8151 if test -n "$ac_tool_prefix"; then
8152 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8153 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8155 $as_echo_n "checking for $ac_word... " >&6; }
8156 if test "${ac_cv_prog_LIPO+set}" = set; then :
8157 $as_echo_n "(cached) " >&6
8158 else
8159 if test -n "$LIPO"; then
8160 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8161 else
8162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8163 for as_dir in $PATH
8165 IFS=$as_save_IFS
8166 test -z "$as_dir" && as_dir=.
8167 for ac_exec_ext in '' $ac_executable_extensions; do
8168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8169 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8171 break 2
8173 done
8174 done
8175 IFS=$as_save_IFS
8179 LIPO=$ac_cv_prog_LIPO
8180 if test -n "$LIPO"; then
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8182 $as_echo "$LIPO" >&6; }
8183 else
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8185 $as_echo "no" >&6; }
8190 if test -z "$ac_cv_prog_LIPO"; then
8191 ac_ct_LIPO=$LIPO
8192 # Extract the first word of "lipo", so it can be a program name with args.
8193 set dummy lipo; ac_word=$2
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8195 $as_echo_n "checking for $ac_word... " >&6; }
8196 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8197 $as_echo_n "(cached) " >&6
8198 else
8199 if test -n "$ac_ct_LIPO"; then
8200 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8201 else
8202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8203 for as_dir in $PATH
8205 IFS=$as_save_IFS
8206 test -z "$as_dir" && as_dir=.
8207 for ac_exec_ext in '' $ac_executable_extensions; do
8208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8209 ac_cv_prog_ac_ct_LIPO="lipo"
8210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8211 break 2
8213 done
8214 done
8215 IFS=$as_save_IFS
8219 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8220 if test -n "$ac_ct_LIPO"; then
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8222 $as_echo "$ac_ct_LIPO" >&6; }
8223 else
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8225 $as_echo "no" >&6; }
8228 if test "x$ac_ct_LIPO" = x; then
8229 LIPO=":"
8230 else
8231 case $cross_compiling:$ac_tool_warned in
8232 yes:)
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8234 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8235 ac_tool_warned=yes ;;
8236 esac
8237 LIPO=$ac_ct_LIPO
8239 else
8240 LIPO="$ac_cv_prog_LIPO"
8243 if test -n "$ac_tool_prefix"; then
8244 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8245 set dummy ${ac_tool_prefix}otool; ac_word=$2
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8247 $as_echo_n "checking for $ac_word... " >&6; }
8248 if test "${ac_cv_prog_OTOOL+set}" = set; then :
8249 $as_echo_n "(cached) " >&6
8250 else
8251 if test -n "$OTOOL"; then
8252 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8253 else
8254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8255 for as_dir in $PATH
8257 IFS=$as_save_IFS
8258 test -z "$as_dir" && as_dir=.
8259 for ac_exec_ext in '' $ac_executable_extensions; do
8260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8261 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8263 break 2
8265 done
8266 done
8267 IFS=$as_save_IFS
8271 OTOOL=$ac_cv_prog_OTOOL
8272 if test -n "$OTOOL"; then
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8274 $as_echo "$OTOOL" >&6; }
8275 else
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8277 $as_echo "no" >&6; }
8282 if test -z "$ac_cv_prog_OTOOL"; then
8283 ac_ct_OTOOL=$OTOOL
8284 # Extract the first word of "otool", so it can be a program name with args.
8285 set dummy otool; ac_word=$2
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8287 $as_echo_n "checking for $ac_word... " >&6; }
8288 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8289 $as_echo_n "(cached) " >&6
8290 else
8291 if test -n "$ac_ct_OTOOL"; then
8292 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8293 else
8294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8295 for as_dir in $PATH
8297 IFS=$as_save_IFS
8298 test -z "$as_dir" && as_dir=.
8299 for ac_exec_ext in '' $ac_executable_extensions; do
8300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8301 ac_cv_prog_ac_ct_OTOOL="otool"
8302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8303 break 2
8305 done
8306 done
8307 IFS=$as_save_IFS
8311 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8312 if test -n "$ac_ct_OTOOL"; then
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8314 $as_echo "$ac_ct_OTOOL" >&6; }
8315 else
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8317 $as_echo "no" >&6; }
8320 if test "x$ac_ct_OTOOL" = x; then
8321 OTOOL=":"
8322 else
8323 case $cross_compiling:$ac_tool_warned in
8324 yes:)
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8326 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8327 ac_tool_warned=yes ;;
8328 esac
8329 OTOOL=$ac_ct_OTOOL
8331 else
8332 OTOOL="$ac_cv_prog_OTOOL"
8335 if test -n "$ac_tool_prefix"; then
8336 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8337 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8339 $as_echo_n "checking for $ac_word... " >&6; }
8340 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8341 $as_echo_n "(cached) " >&6
8342 else
8343 if test -n "$OTOOL64"; then
8344 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8345 else
8346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8347 for as_dir in $PATH
8349 IFS=$as_save_IFS
8350 test -z "$as_dir" && as_dir=.
8351 for ac_exec_ext in '' $ac_executable_extensions; do
8352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8353 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8355 break 2
8357 done
8358 done
8359 IFS=$as_save_IFS
8363 OTOOL64=$ac_cv_prog_OTOOL64
8364 if test -n "$OTOOL64"; then
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8366 $as_echo "$OTOOL64" >&6; }
8367 else
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8369 $as_echo "no" >&6; }
8374 if test -z "$ac_cv_prog_OTOOL64"; then
8375 ac_ct_OTOOL64=$OTOOL64
8376 # Extract the first word of "otool64", so it can be a program name with args.
8377 set dummy otool64; ac_word=$2
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8379 $as_echo_n "checking for $ac_word... " >&6; }
8380 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8381 $as_echo_n "(cached) " >&6
8382 else
8383 if test -n "$ac_ct_OTOOL64"; then
8384 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8385 else
8386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8387 for as_dir in $PATH
8389 IFS=$as_save_IFS
8390 test -z "$as_dir" && as_dir=.
8391 for ac_exec_ext in '' $ac_executable_extensions; do
8392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8393 ac_cv_prog_ac_ct_OTOOL64="otool64"
8394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8395 break 2
8397 done
8398 done
8399 IFS=$as_save_IFS
8403 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8404 if test -n "$ac_ct_OTOOL64"; then
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8406 $as_echo "$ac_ct_OTOOL64" >&6; }
8407 else
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8409 $as_echo "no" >&6; }
8412 if test "x$ac_ct_OTOOL64" = x; then
8413 OTOOL64=":"
8414 else
8415 case $cross_compiling:$ac_tool_warned in
8416 yes:)
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8418 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8419 ac_tool_warned=yes ;;
8420 esac
8421 OTOOL64=$ac_ct_OTOOL64
8423 else
8424 OTOOL64="$ac_cv_prog_OTOOL64"
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8454 $as_echo_n "checking for -single_module linker flag... " >&6; }
8455 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8456 $as_echo_n "(cached) " >&6
8457 else
8458 lt_cv_apple_cc_single_mod=no
8459 if test -z "${LT_MULTI_MODULE}"; then
8460 # By default we will add the -single_module flag. You can override
8461 # by either setting the environment variable LT_MULTI_MODULE
8462 # non-empty at configure time, or by adding -multi_module to the
8463 # link flags.
8464 rm -rf libconftest.dylib*
8465 echo "int foo(void){return 1;}" > conftest.c
8466 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8467 -dynamiclib -Wl,-single_module conftest.c" >&5
8468 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8469 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8470 _lt_result=$?
8471 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8472 lt_cv_apple_cc_single_mod=yes
8473 else
8474 cat conftest.err >&5
8476 rm -rf libconftest.dylib*
8477 rm -f conftest.*
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8481 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8483 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8484 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8485 $as_echo_n "(cached) " >&6
8486 else
8487 lt_cv_ld_exported_symbols_list=no
8488 save_LDFLAGS=$LDFLAGS
8489 echo "_main" > conftest.sym
8490 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8492 /* end confdefs.h. */
8495 main ()
8499 return 0;
8501 _ACEOF
8502 if ac_fn_c_try_link "$LINENO"; then :
8503 lt_cv_ld_exported_symbols_list=yes
8504 else
8505 lt_cv_ld_exported_symbols_list=no
8507 rm -f core conftest.err conftest.$ac_objext \
8508 conftest$ac_exeext conftest.$ac_ext
8509 LDFLAGS="$save_LDFLAGS"
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8513 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8515 $as_echo_n "checking for -force_load linker flag... " >&6; }
8516 if test "${lt_cv_ld_force_load+set}" = set; then :
8517 $as_echo_n "(cached) " >&6
8518 else
8519 lt_cv_ld_force_load=no
8520 cat > conftest.c << _LT_EOF
8521 int forced_loaded() { return 2;}
8522 _LT_EOF
8523 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8524 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8525 echo "$AR cru libconftest.a conftest.o" >&5
8526 $AR cru libconftest.a conftest.o 2>&5
8527 cat > conftest.c << _LT_EOF
8528 int main() { return 0;}
8529 _LT_EOF
8530 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8531 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8532 _lt_result=$?
8533 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8534 lt_cv_ld_force_load=yes
8535 else
8536 cat conftest.err >&5
8538 rm -f conftest.err libconftest.a conftest conftest.c
8539 rm -rf conftest.dSYM
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8543 $as_echo "$lt_cv_ld_force_load" >&6; }
8544 case $host_os in
8545 rhapsody* | darwin1.[012])
8546 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8547 darwin1.*)
8548 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8549 darwin*) # darwin 5.x on
8550 # if running on 10.5 or later, the deployment target defaults
8551 # to the OS version, if on x86, and 10.4, the deployment
8552 # target defaults to 10.4. Don't you love it?
8553 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8554 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8555 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8556 10.[012][,.]*)
8557 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8558 10.*)
8559 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8560 esac
8562 esac
8563 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8564 _lt_dar_single_mod='$single_module'
8566 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8567 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8568 else
8569 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8571 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8572 _lt_dsymutil='~$DSYMUTIL $lib || :'
8573 else
8574 _lt_dsymutil=
8577 esac
8579 for ac_header in dlfcn.h
8580 do :
8581 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8583 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8584 cat >>confdefs.h <<_ACEOF
8585 #define HAVE_DLFCN_H 1
8586 _ACEOF
8590 done
8597 # Set options
8602 enable_win32_dll=no
8605 # Check whether --enable-shared was given.
8606 if test "${enable_shared+set}" = set; then :
8607 enableval=$enable_shared; p=${PACKAGE-default}
8608 case $enableval in
8609 yes) enable_shared=yes ;;
8610 no) enable_shared=no ;;
8612 enable_shared=no
8613 # Look at the argument we got. We use all the common list separators.
8614 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8615 for pkg in $enableval; do
8616 IFS="$lt_save_ifs"
8617 if test "X$pkg" = "X$p"; then
8618 enable_shared=yes
8620 done
8621 IFS="$lt_save_ifs"
8623 esac
8624 else
8625 enable_shared=yes
8636 # Check whether --enable-static was given.
8637 if test "${enable_static+set}" = set; then :
8638 enableval=$enable_static; p=${PACKAGE-default}
8639 case $enableval in
8640 yes) enable_static=yes ;;
8641 no) enable_static=no ;;
8643 enable_static=no
8644 # Look at the argument we got. We use all the common list separators.
8645 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8646 for pkg in $enableval; do
8647 IFS="$lt_save_ifs"
8648 if test "X$pkg" = "X$p"; then
8649 enable_static=yes
8651 done
8652 IFS="$lt_save_ifs"
8654 esac
8655 else
8656 enable_static=yes
8668 # Check whether --with-pic was given.
8669 if test "${with_pic+set}" = set; then :
8670 withval=$with_pic; pic_mode="$withval"
8671 else
8672 pic_mode=default
8676 test -z "$pic_mode" && pic_mode=default
8684 # Check whether --enable-fast-install was given.
8685 if test "${enable_fast_install+set}" = set; then :
8686 enableval=$enable_fast_install; p=${PACKAGE-default}
8687 case $enableval in
8688 yes) enable_fast_install=yes ;;
8689 no) enable_fast_install=no ;;
8691 enable_fast_install=no
8692 # Look at the argument we got. We use all the common list separators.
8693 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8694 for pkg in $enableval; do
8695 IFS="$lt_save_ifs"
8696 if test "X$pkg" = "X$p"; then
8697 enable_fast_install=yes
8699 done
8700 IFS="$lt_save_ifs"
8702 esac
8703 else
8704 enable_fast_install=yes
8717 # This can be used to rebuild libtool when needed
8718 LIBTOOL_DEPS="$ltmain"
8720 # Always use our own libtool.
8721 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8748 test -z "$LN_S" && LN_S="ln -s"
8763 if test -n "${ZSH_VERSION+set}" ; then
8764 setopt NO_GLOB_SUBST
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8768 $as_echo_n "checking for objdir... " >&6; }
8769 if test "${lt_cv_objdir+set}" = set; then :
8770 $as_echo_n "(cached) " >&6
8771 else
8772 rm -f .libs 2>/dev/null
8773 mkdir .libs 2>/dev/null
8774 if test -d .libs; then
8775 lt_cv_objdir=.libs
8776 else
8777 # MS-DOS does not allow filenames that begin with a dot.
8778 lt_cv_objdir=_libs
8780 rmdir .libs 2>/dev/null
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8783 $as_echo "$lt_cv_objdir" >&6; }
8784 objdir=$lt_cv_objdir
8790 cat >>confdefs.h <<_ACEOF
8791 #define LT_OBJDIR "$lt_cv_objdir/"
8792 _ACEOF
8797 case $host_os in
8798 aix3*)
8799 # AIX sometimes has problems with the GCC collect2 program. For some
8800 # reason, if we set the COLLECT_NAMES environment variable, the problems
8801 # vanish in a puff of smoke.
8802 if test "X${COLLECT_NAMES+set}" != Xset; then
8803 COLLECT_NAMES=
8804 export COLLECT_NAMES
8807 esac
8809 # Global variables:
8810 ofile=libtool
8811 can_build_shared=yes
8813 # All known linkers require a `.a' archive for static linking (except MSVC,
8814 # which needs '.lib').
8815 libext=a
8817 with_gnu_ld="$lt_cv_prog_gnu_ld"
8819 old_CC="$CC"
8820 old_CFLAGS="$CFLAGS"
8822 # Set sane defaults for various variables
8823 test -z "$CC" && CC=cc
8824 test -z "$LTCC" && LTCC=$CC
8825 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8826 test -z "$LD" && LD=ld
8827 test -z "$ac_objext" && ac_objext=o
8829 for cc_temp in $compiler""; do
8830 case $cc_temp in
8831 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8832 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8833 \-*) ;;
8834 *) break;;
8835 esac
8836 done
8837 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8840 # Only perform the check for file, if the check method requires it
8841 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8842 case $deplibs_check_method in
8843 file_magic*)
8844 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8846 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8847 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8848 $as_echo_n "(cached) " >&6
8849 else
8850 case $MAGIC_CMD in
8851 [\\/*] | ?:[\\/]*)
8852 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8855 lt_save_MAGIC_CMD="$MAGIC_CMD"
8856 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8857 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8858 for ac_dir in $ac_dummy; do
8859 IFS="$lt_save_ifs"
8860 test -z "$ac_dir" && ac_dir=.
8861 if test -f $ac_dir/${ac_tool_prefix}file; then
8862 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8863 if test -n "$file_magic_test_file"; then
8864 case $deplibs_check_method in
8865 "file_magic "*)
8866 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8867 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8868 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8869 $EGREP "$file_magic_regex" > /dev/null; then
8871 else
8872 cat <<_LT_EOF 1>&2
8874 *** Warning: the command libtool uses to detect shared libraries,
8875 *** $file_magic_cmd, produces output that libtool cannot recognize.
8876 *** The result is that libtool may fail to recognize shared libraries
8877 *** as such. This will affect the creation of libtool libraries that
8878 *** depend on shared libraries, but programs linked with such libtool
8879 *** libraries will work regardless of this problem. Nevertheless, you
8880 *** may want to report the problem to your system manager and/or to
8881 *** bug-libtool@gnu.org
8883 _LT_EOF
8884 fi ;;
8885 esac
8887 break
8889 done
8890 IFS="$lt_save_ifs"
8891 MAGIC_CMD="$lt_save_MAGIC_CMD"
8893 esac
8896 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8897 if test -n "$MAGIC_CMD"; then
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8899 $as_echo "$MAGIC_CMD" >&6; }
8900 else
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8902 $as_echo "no" >&6; }
8909 if test -z "$lt_cv_path_MAGIC_CMD"; then
8910 if test -n "$ac_tool_prefix"; then
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8912 $as_echo_n "checking for file... " >&6; }
8913 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8914 $as_echo_n "(cached) " >&6
8915 else
8916 case $MAGIC_CMD in
8917 [\\/*] | ?:[\\/]*)
8918 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8921 lt_save_MAGIC_CMD="$MAGIC_CMD"
8922 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8923 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8924 for ac_dir in $ac_dummy; do
8925 IFS="$lt_save_ifs"
8926 test -z "$ac_dir" && ac_dir=.
8927 if test -f $ac_dir/file; then
8928 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8929 if test -n "$file_magic_test_file"; then
8930 case $deplibs_check_method in
8931 "file_magic "*)
8932 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8933 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8934 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8935 $EGREP "$file_magic_regex" > /dev/null; then
8937 else
8938 cat <<_LT_EOF 1>&2
8940 *** Warning: the command libtool uses to detect shared libraries,
8941 *** $file_magic_cmd, produces output that libtool cannot recognize.
8942 *** The result is that libtool may fail to recognize shared libraries
8943 *** as such. This will affect the creation of libtool libraries that
8944 *** depend on shared libraries, but programs linked with such libtool
8945 *** libraries will work regardless of this problem. Nevertheless, you
8946 *** may want to report the problem to your system manager and/or to
8947 *** bug-libtool@gnu.org
8949 _LT_EOF
8950 fi ;;
8951 esac
8953 break
8955 done
8956 IFS="$lt_save_ifs"
8957 MAGIC_CMD="$lt_save_MAGIC_CMD"
8959 esac
8962 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8963 if test -n "$MAGIC_CMD"; then
8964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8965 $as_echo "$MAGIC_CMD" >&6; }
8966 else
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8968 $as_echo "no" >&6; }
8972 else
8973 MAGIC_CMD=:
8979 esac
8981 # Use C for the default configuration in the libtool script
8983 lt_save_CC="$CC"
8984 ac_ext=c
8985 ac_cpp='$CPP $CPPFLAGS'
8986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8991 # Source file extension for C test sources.
8992 ac_ext=c
8994 # Object file extension for compiled C test sources.
8995 objext=o
8996 objext=$objext
8998 # Code to be used in simple compile tests
8999 lt_simple_compile_test_code="int some_variable = 0;"
9001 # Code to be used in simple link tests
9002 lt_simple_link_test_code='int main(){return(0);}'
9010 # If no C compiler was specified, use CC.
9011 LTCC=${LTCC-"$CC"}
9013 # If no C compiler flags were specified, use CFLAGS.
9014 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9016 # Allow CC to be a program name with arguments.
9017 compiler=$CC
9019 # Save the default compiler, since it gets overwritten when the other
9020 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9021 compiler_DEFAULT=$CC
9023 # save warnings/boilerplate of simple test code
9024 ac_outfile=conftest.$ac_objext
9025 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9026 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9027 _lt_compiler_boilerplate=`cat conftest.err`
9028 $RM conftest*
9030 ac_outfile=conftest.$ac_objext
9031 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9032 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9033 _lt_linker_boilerplate=`cat conftest.err`
9034 $RM -r conftest*
9037 ## CAVEAT EMPTOR:
9038 ## There is no encapsulation within the following macros, do not change
9039 ## the running order or otherwise move them around unless you know exactly
9040 ## what you are doing...
9041 if test -n "$compiler"; then
9043 lt_prog_compiler_no_builtin_flag=
9045 if test "$GCC" = yes; then
9046 case $cc_basename in
9047 nvcc*)
9048 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9050 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9051 esac
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9054 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9055 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9056 $as_echo_n "(cached) " >&6
9057 else
9058 lt_cv_prog_compiler_rtti_exceptions=no
9059 ac_outfile=conftest.$ac_objext
9060 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9061 lt_compiler_flag="-fno-rtti -fno-exceptions"
9062 # Insert the option either (1) after the last *FLAGS variable, or
9063 # (2) before a word containing "conftest.", or (3) at the end.
9064 # Note that $ac_compile itself does not contain backslashes and begins
9065 # with a dollar sign (not a hyphen), so the echo should work correctly.
9066 # The option is referenced via a variable to avoid confusing sed.
9067 lt_compile=`echo "$ac_compile" | $SED \
9068 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9069 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9070 -e 's:$: $lt_compiler_flag:'`
9071 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9072 (eval "$lt_compile" 2>conftest.err)
9073 ac_status=$?
9074 cat conftest.err >&5
9075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9076 if (exit $ac_status) && test -s "$ac_outfile"; then
9077 # The compiler can only warn and ignore the option if not recognized
9078 # So say no if there are warnings other than the usual output.
9079 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9080 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9081 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9082 lt_cv_prog_compiler_rtti_exceptions=yes
9085 $RM conftest*
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9089 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9091 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9092 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9093 else
9104 lt_prog_compiler_wl=
9105 lt_prog_compiler_pic=
9106 lt_prog_compiler_static=
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9109 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9111 if test "$GCC" = yes; then
9112 lt_prog_compiler_wl='-Wl,'
9113 lt_prog_compiler_static='-static'
9115 case $host_os in
9116 aix*)
9117 # All AIX code is PIC.
9118 if test "$host_cpu" = ia64; then
9119 # AIX 5 now supports IA64 processor
9120 lt_prog_compiler_static='-Bstatic'
9122 lt_prog_compiler_pic='-fPIC'
9125 amigaos*)
9126 case $host_cpu in
9127 powerpc)
9128 # see comment about AmigaOS4 .so support
9129 lt_prog_compiler_pic='-fPIC'
9131 m68k)
9132 # FIXME: we need at least 68020 code to build shared libraries, but
9133 # adding the `-m68020' flag to GCC prevents building anything better,
9134 # like `-m68040'.
9135 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9137 esac
9140 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9141 # PIC is the default for these OSes.
9144 mingw* | cygwin* | pw32* | os2* | cegcc*)
9145 # This hack is so that the source file can tell whether it is being
9146 # built for inclusion in a dll (and should export symbols for example).
9147 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9148 # (--disable-auto-import) libraries
9149 lt_prog_compiler_pic='-DDLL_EXPORT'
9152 darwin* | rhapsody*)
9153 # PIC is the default on this platform
9154 # Common symbols not allowed in MH_DYLIB files
9155 lt_prog_compiler_pic='-fno-common'
9158 haiku*)
9159 # PIC is the default for Haiku.
9160 # The "-static" flag exists, but is broken.
9161 lt_prog_compiler_static=
9164 hpux*)
9165 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9166 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9167 # sets the default TLS model and affects inlining.
9168 case $host_cpu in
9169 hppa*64*)
9170 # +Z the default
9173 lt_prog_compiler_pic='-fPIC'
9175 esac
9178 interix[3-9]*)
9179 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9180 # Instead, we relocate shared libraries at runtime.
9183 msdosdjgpp*)
9184 # Just because we use GCC doesn't mean we suddenly get shared libraries
9185 # on systems that don't support them.
9186 lt_prog_compiler_can_build_shared=no
9187 enable_shared=no
9190 *nto* | *qnx*)
9191 # QNX uses GNU C++, but need to define -shared option too, otherwise
9192 # it will coredump.
9193 lt_prog_compiler_pic='-fPIC -shared'
9196 sysv4*MP*)
9197 if test -d /usr/nec; then
9198 lt_prog_compiler_pic=-Kconform_pic
9203 lt_prog_compiler_pic='-fPIC'
9205 esac
9207 case $cc_basename in
9208 nvcc*) # Cuda Compiler Driver 2.2
9209 lt_prog_compiler_wl='-Xlinker '
9210 lt_prog_compiler_pic='-Xcompiler -fPIC'
9212 esac
9213 else
9214 # PORTME Check for flag to pass linker flags through the system compiler.
9215 case $host_os in
9216 aix*)
9217 lt_prog_compiler_wl='-Wl,'
9218 if test "$host_cpu" = ia64; then
9219 # AIX 5 now supports IA64 processor
9220 lt_prog_compiler_static='-Bstatic'
9221 else
9222 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9226 mingw* | cygwin* | pw32* | os2* | cegcc*)
9227 # This hack is so that the source file can tell whether it is being
9228 # built for inclusion in a dll (and should export symbols for example).
9229 lt_prog_compiler_pic='-DDLL_EXPORT'
9232 hpux9* | hpux10* | hpux11*)
9233 lt_prog_compiler_wl='-Wl,'
9234 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9235 # not for PA HP-UX.
9236 case $host_cpu in
9237 hppa*64*|ia64*)
9238 # +Z the default
9241 lt_prog_compiler_pic='+Z'
9243 esac
9244 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9245 lt_prog_compiler_static='${wl}-a ${wl}archive'
9248 irix5* | irix6* | nonstopux*)
9249 lt_prog_compiler_wl='-Wl,'
9250 # PIC (with -KPIC) is the default.
9251 lt_prog_compiler_static='-non_shared'
9254 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9255 case $cc_basename in
9256 # old Intel for x86_64 which still supported -KPIC.
9257 ecc*)
9258 lt_prog_compiler_wl='-Wl,'
9259 lt_prog_compiler_pic='-KPIC'
9260 lt_prog_compiler_static='-static'
9262 # icc used to be incompatible with GCC.
9263 # ICC 10 doesn't accept -KPIC any more.
9264 icc* | ifort*)
9265 lt_prog_compiler_wl='-Wl,'
9266 lt_prog_compiler_pic='-fPIC'
9267 lt_prog_compiler_static='-static'
9269 # Lahey Fortran 8.1.
9270 lf95*)
9271 lt_prog_compiler_wl='-Wl,'
9272 lt_prog_compiler_pic='--shared'
9273 lt_prog_compiler_static='--static'
9275 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9276 # Portland Group compilers (*not* the Pentium gcc compiler,
9277 # which looks to be a dead project)
9278 lt_prog_compiler_wl='-Wl,'
9279 lt_prog_compiler_pic='-fpic'
9280 lt_prog_compiler_static='-Bstatic'
9282 ccc*)
9283 lt_prog_compiler_wl='-Wl,'
9284 # All Alpha code is PIC.
9285 lt_prog_compiler_static='-non_shared'
9287 xl* | bgxl* | bgf* | mpixl*)
9288 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9289 lt_prog_compiler_wl='-Wl,'
9290 lt_prog_compiler_pic='-qpic'
9291 lt_prog_compiler_static='-qstaticlink'
9294 case `$CC -V 2>&1 | sed 5q` in
9295 *Sun\ F* | *Sun*Fortran*)
9296 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9297 lt_prog_compiler_pic='-KPIC'
9298 lt_prog_compiler_static='-Bstatic'
9299 lt_prog_compiler_wl=''
9301 *Sun\ C*)
9302 # Sun C 5.9
9303 lt_prog_compiler_pic='-KPIC'
9304 lt_prog_compiler_static='-Bstatic'
9305 lt_prog_compiler_wl='-Wl,'
9307 esac
9309 esac
9312 newsos6)
9313 lt_prog_compiler_pic='-KPIC'
9314 lt_prog_compiler_static='-Bstatic'
9317 *nto* | *qnx*)
9318 # QNX uses GNU C++, but need to define -shared option too, otherwise
9319 # it will coredump.
9320 lt_prog_compiler_pic='-fPIC -shared'
9323 osf3* | osf4* | osf5*)
9324 lt_prog_compiler_wl='-Wl,'
9325 # All OSF/1 code is PIC.
9326 lt_prog_compiler_static='-non_shared'
9329 rdos*)
9330 lt_prog_compiler_static='-non_shared'
9333 solaris*)
9334 lt_prog_compiler_pic='-KPIC'
9335 lt_prog_compiler_static='-Bstatic'
9336 case $cc_basename in
9337 f77* | f90* | f95*)
9338 lt_prog_compiler_wl='-Qoption ld ';;
9340 lt_prog_compiler_wl='-Wl,';;
9341 esac
9344 sunos4*)
9345 lt_prog_compiler_wl='-Qoption ld '
9346 lt_prog_compiler_pic='-PIC'
9347 lt_prog_compiler_static='-Bstatic'
9350 sysv4 | sysv4.2uw2* | sysv4.3*)
9351 lt_prog_compiler_wl='-Wl,'
9352 lt_prog_compiler_pic='-KPIC'
9353 lt_prog_compiler_static='-Bstatic'
9356 sysv4*MP*)
9357 if test -d /usr/nec ;then
9358 lt_prog_compiler_pic='-Kconform_pic'
9359 lt_prog_compiler_static='-Bstatic'
9363 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9364 lt_prog_compiler_wl='-Wl,'
9365 lt_prog_compiler_pic='-KPIC'
9366 lt_prog_compiler_static='-Bstatic'
9369 unicos*)
9370 lt_prog_compiler_wl='-Wl,'
9371 lt_prog_compiler_can_build_shared=no
9374 uts4*)
9375 lt_prog_compiler_pic='-pic'
9376 lt_prog_compiler_static='-Bstatic'
9380 lt_prog_compiler_can_build_shared=no
9382 esac
9385 case $host_os in
9386 # For platforms which do not support PIC, -DPIC is meaningless:
9387 *djgpp*)
9388 lt_prog_compiler_pic=
9391 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9393 esac
9394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9395 $as_echo "$lt_prog_compiler_pic" >&6; }
9403 # Check to make sure the PIC flag actually works.
9405 if test -n "$lt_prog_compiler_pic"; then
9406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9407 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9408 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9409 $as_echo_n "(cached) " >&6
9410 else
9411 lt_cv_prog_compiler_pic_works=no
9412 ac_outfile=conftest.$ac_objext
9413 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9414 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9415 # Insert the option either (1) after the last *FLAGS variable, or
9416 # (2) before a word containing "conftest.", or (3) at the end.
9417 # Note that $ac_compile itself does not contain backslashes and begins
9418 # with a dollar sign (not a hyphen), so the echo should work correctly.
9419 # The option is referenced via a variable to avoid confusing sed.
9420 lt_compile=`echo "$ac_compile" | $SED \
9421 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9422 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9423 -e 's:$: $lt_compiler_flag:'`
9424 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9425 (eval "$lt_compile" 2>conftest.err)
9426 ac_status=$?
9427 cat conftest.err >&5
9428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9429 if (exit $ac_status) && test -s "$ac_outfile"; then
9430 # The compiler can only warn and ignore the option if not recognized
9431 # So say no if there are warnings other than the usual output.
9432 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9433 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9434 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9435 lt_cv_prog_compiler_pic_works=yes
9438 $RM conftest*
9441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9442 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9444 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9445 case $lt_prog_compiler_pic in
9446 "" | " "*) ;;
9447 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9448 esac
9449 else
9450 lt_prog_compiler_pic=
9451 lt_prog_compiler_can_build_shared=no
9462 # Check to make sure the static flag actually works.
9464 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9466 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9467 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9468 $as_echo_n "(cached) " >&6
9469 else
9470 lt_cv_prog_compiler_static_works=no
9471 save_LDFLAGS="$LDFLAGS"
9472 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9473 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9474 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9475 # The linker can only warn and ignore the option if not recognized
9476 # So say no if there are warnings
9477 if test -s conftest.err; then
9478 # Append any errors to the config.log.
9479 cat conftest.err 1>&5
9480 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9481 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9482 if diff conftest.exp conftest.er2 >/dev/null; then
9483 lt_cv_prog_compiler_static_works=yes
9485 else
9486 lt_cv_prog_compiler_static_works=yes
9489 $RM -r conftest*
9490 LDFLAGS="$save_LDFLAGS"
9493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9494 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9496 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9498 else
9499 lt_prog_compiler_static=
9508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9509 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9510 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9511 $as_echo_n "(cached) " >&6
9512 else
9513 lt_cv_prog_compiler_c_o=no
9514 $RM -r conftest 2>/dev/null
9515 mkdir conftest
9516 cd conftest
9517 mkdir out
9518 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9520 lt_compiler_flag="-o out/conftest2.$ac_objext"
9521 # Insert the option either (1) after the last *FLAGS variable, or
9522 # (2) before a word containing "conftest.", or (3) at the end.
9523 # Note that $ac_compile itself does not contain backslashes and begins
9524 # with a dollar sign (not a hyphen), so the echo should work correctly.
9525 lt_compile=`echo "$ac_compile" | $SED \
9526 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9527 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9528 -e 's:$: $lt_compiler_flag:'`
9529 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9530 (eval "$lt_compile" 2>out/conftest.err)
9531 ac_status=$?
9532 cat out/conftest.err >&5
9533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9534 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9535 then
9536 # The compiler can only warn and ignore the option if not recognized
9537 # So say no if there are warnings
9538 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9539 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9540 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9541 lt_cv_prog_compiler_c_o=yes
9544 chmod u+w . 2>&5
9545 $RM conftest*
9546 # SGI C++ compiler will create directory out/ii_files/ for
9547 # template instantiation
9548 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9549 $RM out/* && rmdir out
9550 cd ..
9551 $RM -r conftest
9552 $RM conftest*
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9556 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9564 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9565 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9566 $as_echo_n "(cached) " >&6
9567 else
9568 lt_cv_prog_compiler_c_o=no
9569 $RM -r conftest 2>/dev/null
9570 mkdir conftest
9571 cd conftest
9572 mkdir out
9573 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9575 lt_compiler_flag="-o out/conftest2.$ac_objext"
9576 # Insert the option either (1) after the last *FLAGS variable, or
9577 # (2) before a word containing "conftest.", or (3) at the end.
9578 # Note that $ac_compile itself does not contain backslashes and begins
9579 # with a dollar sign (not a hyphen), so the echo should work correctly.
9580 lt_compile=`echo "$ac_compile" | $SED \
9581 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9582 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9583 -e 's:$: $lt_compiler_flag:'`
9584 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9585 (eval "$lt_compile" 2>out/conftest.err)
9586 ac_status=$?
9587 cat out/conftest.err >&5
9588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9589 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9590 then
9591 # The compiler can only warn and ignore the option if not recognized
9592 # So say no if there are warnings
9593 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9594 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9595 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9596 lt_cv_prog_compiler_c_o=yes
9599 chmod u+w . 2>&5
9600 $RM conftest*
9601 # SGI C++ compiler will create directory out/ii_files/ for
9602 # template instantiation
9603 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9604 $RM out/* && rmdir out
9605 cd ..
9606 $RM -r conftest
9607 $RM conftest*
9610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9611 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9616 hard_links="nottested"
9617 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9618 # do not overwrite the value of need_locks provided by the user
9619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9620 $as_echo_n "checking if we can lock with hard links... " >&6; }
9621 hard_links=yes
9622 $RM conftest*
9623 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9624 touch conftest.a
9625 ln conftest.a conftest.b 2>&5 || hard_links=no
9626 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9628 $as_echo "$hard_links" >&6; }
9629 if test "$hard_links" = no; then
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9631 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9632 need_locks=warn
9634 else
9635 need_locks=no
9643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9644 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9646 runpath_var=
9647 allow_undefined_flag=
9648 always_export_symbols=no
9649 archive_cmds=
9650 archive_expsym_cmds=
9651 compiler_needs_object=no
9652 enable_shared_with_static_runtimes=no
9653 export_dynamic_flag_spec=
9654 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9655 hardcode_automatic=no
9656 hardcode_direct=no
9657 hardcode_direct_absolute=no
9658 hardcode_libdir_flag_spec=
9659 hardcode_libdir_flag_spec_ld=
9660 hardcode_libdir_separator=
9661 hardcode_minus_L=no
9662 hardcode_shlibpath_var=unsupported
9663 inherit_rpath=no
9664 link_all_deplibs=unknown
9665 module_cmds=
9666 module_expsym_cmds=
9667 old_archive_from_new_cmds=
9668 old_archive_from_expsyms_cmds=
9669 thread_safe_flag_spec=
9670 whole_archive_flag_spec=
9671 # include_expsyms should be a list of space-separated symbols to be *always*
9672 # included in the symbol list
9673 include_expsyms=
9674 # exclude_expsyms can be an extended regexp of symbols to exclude
9675 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9676 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9677 # as well as any symbol that contains `d'.
9678 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9679 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9680 # platforms (ab)use it in PIC code, but their linkers get confused if
9681 # the symbol is explicitly referenced. Since portable code cannot
9682 # rely on this symbol name, it's probably fine to never include it in
9683 # preloaded symbol tables.
9684 # Exclude shared library initialization/finalization symbols.
9685 extract_expsyms_cmds=
9687 case $host_os in
9688 cygwin* | mingw* | pw32* | cegcc*)
9689 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9690 # When not using gcc, we currently assume that we are using
9691 # Microsoft Visual C++.
9692 if test "$GCC" != yes; then
9693 with_gnu_ld=no
9696 interix*)
9697 # we just hope/assume this is gcc and not c89 (= MSVC++)
9698 with_gnu_ld=yes
9700 openbsd*)
9701 with_gnu_ld=no
9703 esac
9705 ld_shlibs=yes
9707 # On some targets, GNU ld is compatible enough with the native linker
9708 # that we're better off using the native interface for both.
9709 lt_use_gnu_ld_interface=no
9710 if test "$with_gnu_ld" = yes; then
9711 case $host_os in
9712 aix*)
9713 # The AIX port of GNU ld has always aspired to compatibility
9714 # with the native linker. However, as the warning in the GNU ld
9715 # block says, versions before 2.19.5* couldn't really create working
9716 # shared libraries, regardless of the interface used.
9717 case `$LD -v 2>&1` in
9718 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9719 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9720 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9722 lt_use_gnu_ld_interface=yes
9724 esac
9727 lt_use_gnu_ld_interface=yes
9729 esac
9732 if test "$lt_use_gnu_ld_interface" = yes; then
9733 # If archive_cmds runs LD, not CC, wlarc should be empty
9734 wlarc='${wl}'
9736 # Set some defaults for GNU ld with shared library support. These
9737 # are reset later if shared libraries are not supported. Putting them
9738 # here allows them to be overridden if necessary.
9739 runpath_var=LD_RUN_PATH
9740 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9741 export_dynamic_flag_spec='${wl}--export-dynamic'
9742 # ancient GNU ld didn't support --whole-archive et. al.
9743 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9744 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9745 else
9746 whole_archive_flag_spec=
9748 supports_anon_versioning=no
9749 case `$LD -v 2>&1` in
9750 *GNU\ gold*) supports_anon_versioning=yes ;;
9751 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9752 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9753 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9754 *\ 2.11.*) ;; # other 2.11 versions
9755 *) supports_anon_versioning=yes ;;
9756 esac
9758 # See if GNU ld supports shared libraries.
9759 case $host_os in
9760 aix[3-9]*)
9761 # On AIX/PPC, the GNU linker is very broken
9762 if test "$host_cpu" != ia64; then
9763 ld_shlibs=no
9764 cat <<_LT_EOF 1>&2
9766 *** Warning: the GNU linker, at least up to release 2.19, is reported
9767 *** to be unable to reliably create shared libraries on AIX.
9768 *** Therefore, libtool is disabling shared libraries support. If you
9769 *** really care for shared libraries, you may want to install binutils
9770 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9771 *** You will then need to restart the configuration process.
9773 _LT_EOF
9777 amigaos*)
9778 case $host_cpu in
9779 powerpc)
9780 # see comment about AmigaOS4 .so support
9781 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9782 archive_expsym_cmds=''
9784 m68k)
9785 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)'
9786 hardcode_libdir_flag_spec='-L$libdir'
9787 hardcode_minus_L=yes
9789 esac
9792 beos*)
9793 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9794 allow_undefined_flag=unsupported
9795 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9796 # support --undefined. This deserves some investigation. FIXME
9797 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9798 else
9799 ld_shlibs=no
9803 cygwin* | mingw* | pw32* | cegcc*)
9804 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9805 # as there is no search path for DLLs.
9806 hardcode_libdir_flag_spec='-L$libdir'
9807 export_dynamic_flag_spec='${wl}--export-all-symbols'
9808 allow_undefined_flag=unsupported
9809 always_export_symbols=no
9810 enable_shared_with_static_runtimes=yes
9811 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9813 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9814 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9815 # If the export-symbols file already is a .def file (1st line
9816 # is EXPORTS), use it as is; otherwise, prepend...
9817 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9818 cp $export_symbols $output_objdir/$soname.def;
9819 else
9820 echo EXPORTS > $output_objdir/$soname.def;
9821 cat $export_symbols >> $output_objdir/$soname.def;
9823 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9824 else
9825 ld_shlibs=no
9829 haiku*)
9830 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9831 link_all_deplibs=yes
9834 interix[3-9]*)
9835 hardcode_direct=no
9836 hardcode_shlibpath_var=no
9837 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9838 export_dynamic_flag_spec='${wl}-E'
9839 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9840 # Instead, shared libraries are loaded at an image base (0x10000000 by
9841 # default) and relocated if they conflict, which is a slow very memory
9842 # consuming and fragmenting process. To avoid this, we pick a random,
9843 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9844 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9845 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9846 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'
9849 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9850 tmp_diet=no
9851 if test "$host_os" = linux-dietlibc; then
9852 case $cc_basename in
9853 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9854 esac
9856 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9857 && test "$tmp_diet" = no
9858 then
9859 tmp_addflag=' $pic_flag'
9860 tmp_sharedflag='-shared'
9861 case $cc_basename,$host_cpu in
9862 pgcc*) # Portland Group C compiler
9863 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'
9864 tmp_addflag=' $pic_flag'
9866 pgf77* | pgf90* | pgf95* | pgfortran*)
9867 # Portland Group f77 and f90 compilers
9868 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'
9869 tmp_addflag=' $pic_flag -Mnomain' ;;
9870 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9871 tmp_addflag=' -i_dynamic' ;;
9872 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9873 tmp_addflag=' -i_dynamic -nofor_main' ;;
9874 ifc* | ifort*) # Intel Fortran compiler
9875 tmp_addflag=' -nofor_main' ;;
9876 lf95*) # Lahey Fortran 8.1
9877 whole_archive_flag_spec=
9878 tmp_sharedflag='--shared' ;;
9879 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9880 tmp_sharedflag='-qmkshrobj'
9881 tmp_addflag= ;;
9882 nvcc*) # Cuda Compiler Driver 2.2
9883 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'
9884 compiler_needs_object=yes
9886 esac
9887 case `$CC -V 2>&1 | sed 5q` in
9888 *Sun\ C*) # Sun C 5.9
9889 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'
9890 compiler_needs_object=yes
9891 tmp_sharedflag='-G' ;;
9892 *Sun\ F*) # Sun Fortran 8.3
9893 tmp_sharedflag='-G' ;;
9894 esac
9895 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9897 if test "x$supports_anon_versioning" = xyes; then
9898 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9899 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9900 echo "local: *; };" >> $output_objdir/$libname.ver~
9901 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9904 case $cc_basename in
9905 xlf* | bgf* | bgxlf* | mpixlf*)
9906 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9907 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9908 hardcode_libdir_flag_spec=
9909 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9910 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9911 if test "x$supports_anon_versioning" = xyes; then
9912 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9913 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9914 echo "local: *; };" >> $output_objdir/$libname.ver~
9915 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9918 esac
9919 else
9920 ld_shlibs=no
9924 netbsd*)
9925 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9926 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9927 wlarc=
9928 else
9929 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9930 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9934 solaris*)
9935 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9936 ld_shlibs=no
9937 cat <<_LT_EOF 1>&2
9939 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9940 *** create shared libraries on Solaris systems. Therefore, libtool
9941 *** is disabling shared libraries support. We urge you to upgrade GNU
9942 *** binutils to release 2.9.1 or newer. Another option is to modify
9943 *** your PATH or compiler configuration so that the native linker is
9944 *** used, and then restart.
9946 _LT_EOF
9947 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9948 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9949 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9950 else
9951 ld_shlibs=no
9955 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9956 case `$LD -v 2>&1` in
9957 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9958 ld_shlibs=no
9959 cat <<_LT_EOF 1>&2
9961 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9962 *** reliably create shared libraries on SCO systems. Therefore, libtool
9963 *** is disabling shared libraries support. We urge you to upgrade GNU
9964 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9965 *** your PATH or compiler configuration so that the native linker is
9966 *** used, and then restart.
9968 _LT_EOF
9971 # For security reasons, it is highly recommended that you always
9972 # use absolute paths for naming shared libraries, and exclude the
9973 # DT_RUNPATH tag from executables and libraries. But doing so
9974 # requires that you compile everything twice, which is a pain.
9975 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9976 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9977 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9978 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9979 else
9980 ld_shlibs=no
9983 esac
9986 sunos4*)
9987 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9988 wlarc=
9989 hardcode_direct=yes
9990 hardcode_shlibpath_var=no
9994 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9995 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9996 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9997 else
9998 ld_shlibs=no
10001 esac
10003 if test "$ld_shlibs" = no; then
10004 runpath_var=
10005 hardcode_libdir_flag_spec=
10006 export_dynamic_flag_spec=
10007 whole_archive_flag_spec=
10009 else
10010 # PORTME fill in a description of your system's linker (not GNU ld)
10011 case $host_os in
10012 aix3*)
10013 allow_undefined_flag=unsupported
10014 always_export_symbols=yes
10015 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'
10016 # Note: this linker hardcodes the directories in LIBPATH if there
10017 # are no directories specified by -L.
10018 hardcode_minus_L=yes
10019 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10020 # Neither direct hardcoding nor static linking is supported with a
10021 # broken collect2.
10022 hardcode_direct=unsupported
10026 aix[4-9]*)
10027 if test "$host_cpu" = ia64; then
10028 # On IA64, the linker does run time linking by default, so we don't
10029 # have to do anything special.
10030 aix_use_runtimelinking=no
10031 exp_sym_flag='-Bexport'
10032 no_entry_flag=""
10033 else
10034 # If we're using GNU nm, then we don't want the "-C" option.
10035 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10036 # Also, AIX nm treats weak defined symbols like other global
10037 # defined symbols, whereas GNU nm marks them as "W".
10038 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10039 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'
10040 else
10041 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10043 aix_use_runtimelinking=no
10045 # Test if we are trying to use run time linking or normal
10046 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10047 # need to do runtime linking.
10048 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10049 for ld_flag in $LDFLAGS; do
10050 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10051 aix_use_runtimelinking=yes
10052 break
10054 done
10056 esac
10058 exp_sym_flag='-bexport'
10059 no_entry_flag='-bnoentry'
10062 # When large executables or shared objects are built, AIX ld can
10063 # have problems creating the table of contents. If linking a library
10064 # or program results in "error TOC overflow" add -mminimal-toc to
10065 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10066 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10068 archive_cmds=''
10069 hardcode_direct=yes
10070 hardcode_direct_absolute=yes
10071 hardcode_libdir_separator=':'
10072 link_all_deplibs=yes
10073 file_list_spec='${wl}-f,'
10075 if test "$GCC" = yes; then
10076 case $host_os in aix4.[012]|aix4.[012].*)
10077 # We only want to do this on AIX 4.2 and lower, the check
10078 # below for broken collect2 doesn't work under 4.3+
10079 collect2name=`${CC} -print-prog-name=collect2`
10080 if test -f "$collect2name" &&
10081 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10082 then
10083 # We have reworked collect2
10085 else
10086 # We have old collect2
10087 hardcode_direct=unsupported
10088 # It fails to find uninstalled libraries when the uninstalled
10089 # path is not listed in the libpath. Setting hardcode_minus_L
10090 # to unsupported forces relinking
10091 hardcode_minus_L=yes
10092 hardcode_libdir_flag_spec='-L$libdir'
10093 hardcode_libdir_separator=
10096 esac
10097 shared_flag='-shared'
10098 if test "$aix_use_runtimelinking" = yes; then
10099 shared_flag="$shared_flag "'${wl}-G'
10101 else
10102 # not using gcc
10103 if test "$host_cpu" = ia64; then
10104 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10105 # chokes on -Wl,-G. The following line is correct:
10106 shared_flag='-G'
10107 else
10108 if test "$aix_use_runtimelinking" = yes; then
10109 shared_flag='${wl}-G'
10110 else
10111 shared_flag='${wl}-bM:SRE'
10116 export_dynamic_flag_spec='${wl}-bexpall'
10117 # It seems that -bexpall does not export symbols beginning with
10118 # underscore (_), so it is better to generate a list of symbols to export.
10119 always_export_symbols=yes
10120 if test "$aix_use_runtimelinking" = yes; then
10121 # Warning - without using the other runtime loading flags (-brtl),
10122 # -berok will link without error, but may produce a broken library.
10123 allow_undefined_flag='-berok'
10124 # Determine the default libpath from the value encoded in an
10125 # empty executable.
10126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10127 /* end confdefs.h. */
10130 main ()
10134 return 0;
10136 _ACEOF
10137 if ac_fn_c_try_link "$LINENO"; then :
10139 lt_aix_libpath_sed='
10140 /Import File Strings/,/^$/ {
10141 /^0/ {
10142 s/^0 *\(.*\)$/\1/
10146 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10147 # Check for a 64-bit object if we didn't find anything.
10148 if test -z "$aix_libpath"; then
10149 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10152 rm -f core conftest.err conftest.$ac_objext \
10153 conftest$ac_exeext conftest.$ac_ext
10154 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10156 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10157 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"
10158 else
10159 if test "$host_cpu" = ia64; then
10160 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10161 allow_undefined_flag="-z nodefs"
10162 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"
10163 else
10164 # Determine the default libpath from the value encoded in an
10165 # empty executable.
10166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10167 /* end confdefs.h. */
10170 main ()
10174 return 0;
10176 _ACEOF
10177 if ac_fn_c_try_link "$LINENO"; then :
10179 lt_aix_libpath_sed='
10180 /Import File Strings/,/^$/ {
10181 /^0/ {
10182 s/^0 *\(.*\)$/\1/
10186 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10187 # Check for a 64-bit object if we didn't find anything.
10188 if test -z "$aix_libpath"; then
10189 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10192 rm -f core conftest.err conftest.$ac_objext \
10193 conftest$ac_exeext conftest.$ac_ext
10194 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10196 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10197 # Warning - without using the other run time loading flags,
10198 # -berok will link without error, but may produce a broken library.
10199 no_undefined_flag=' ${wl}-bernotok'
10200 allow_undefined_flag=' ${wl}-berok'
10201 if test "$with_gnu_ld" = yes; then
10202 # We only use this code for GNU lds that support --whole-archive.
10203 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10204 else
10205 # Exported symbols can be pulled into shared objects from archives
10206 whole_archive_flag_spec='$convenience'
10208 archive_cmds_need_lc=yes
10209 # This is similar to how AIX traditionally builds its shared libraries.
10210 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'
10215 amigaos*)
10216 case $host_cpu in
10217 powerpc)
10218 # see comment about AmigaOS4 .so support
10219 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10220 archive_expsym_cmds=''
10222 m68k)
10223 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)'
10224 hardcode_libdir_flag_spec='-L$libdir'
10225 hardcode_minus_L=yes
10227 esac
10230 bsdi[45]*)
10231 export_dynamic_flag_spec=-rdynamic
10234 cygwin* | mingw* | pw32* | cegcc*)
10235 # When not using gcc, we currently assume that we are using
10236 # Microsoft Visual C++.
10237 # hardcode_libdir_flag_spec is actually meaningless, as there is
10238 # no search path for DLLs.
10239 hardcode_libdir_flag_spec=' '
10240 allow_undefined_flag=unsupported
10241 # Tell ltmain to make .lib files, not .a files.
10242 libext=lib
10243 # Tell ltmain to make .dll files, not .so files.
10244 shrext_cmds=".dll"
10245 # FIXME: Setting linknames here is a bad hack.
10246 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10247 # The linker will automatically build a .lib file if we build a DLL.
10248 old_archive_from_new_cmds='true'
10249 # FIXME: Should let the user specify the lib program.
10250 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10251 fix_srcfile_path='`cygpath -w "$srcfile"`'
10252 enable_shared_with_static_runtimes=yes
10255 darwin* | rhapsody*)
10258 archive_cmds_need_lc=no
10259 hardcode_direct=no
10260 hardcode_automatic=yes
10261 hardcode_shlibpath_var=unsupported
10262 if test "$lt_cv_ld_force_load" = "yes"; then
10263 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\"`'
10264 else
10265 whole_archive_flag_spec=''
10267 link_all_deplibs=yes
10268 allow_undefined_flag="$_lt_dar_allow_undefined"
10269 case $cc_basename in
10270 ifort*) _lt_dar_can_shared=yes ;;
10271 *) _lt_dar_can_shared=$GCC ;;
10272 esac
10273 if test "$_lt_dar_can_shared" = "yes"; then
10274 output_verbose_link_cmd=func_echo_all
10275 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10276 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10277 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}"
10278 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}"
10280 else
10281 ld_shlibs=no
10286 dgux*)
10287 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10288 hardcode_libdir_flag_spec='-L$libdir'
10289 hardcode_shlibpath_var=no
10292 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10293 # support. Future versions do this automatically, but an explicit c++rt0.o
10294 # does not break anything, and helps significantly (at the cost of a little
10295 # extra space).
10296 freebsd2.2*)
10297 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10298 hardcode_libdir_flag_spec='-R$libdir'
10299 hardcode_direct=yes
10300 hardcode_shlibpath_var=no
10303 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10304 freebsd2.*)
10305 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10306 hardcode_direct=yes
10307 hardcode_minus_L=yes
10308 hardcode_shlibpath_var=no
10311 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10312 freebsd* | dragonfly*)
10313 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10314 hardcode_libdir_flag_spec='-R$libdir'
10315 hardcode_direct=yes
10316 hardcode_shlibpath_var=no
10319 hpux9*)
10320 if test "$GCC" = yes; then
10321 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'
10322 else
10323 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'
10325 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10326 hardcode_libdir_separator=:
10327 hardcode_direct=yes
10329 # hardcode_minus_L: Not really in the search PATH,
10330 # but as the default location of the library.
10331 hardcode_minus_L=yes
10332 export_dynamic_flag_spec='${wl}-E'
10335 hpux10*)
10336 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10337 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10338 else
10339 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10341 if test "$with_gnu_ld" = no; then
10342 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10343 hardcode_libdir_flag_spec_ld='+b $libdir'
10344 hardcode_libdir_separator=:
10345 hardcode_direct=yes
10346 hardcode_direct_absolute=yes
10347 export_dynamic_flag_spec='${wl}-E'
10348 # hardcode_minus_L: Not really in the search PATH,
10349 # but as the default location of the library.
10350 hardcode_minus_L=yes
10354 hpux11*)
10355 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10356 case $host_cpu in
10357 hppa*64*)
10358 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10360 ia64*)
10361 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10364 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10366 esac
10367 else
10368 case $host_cpu in
10369 hppa*64*)
10370 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10372 ia64*)
10373 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10377 # Older versions of the 11.00 compiler do not understand -b yet
10378 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10380 $as_echo_n "checking if $CC understands -b... " >&6; }
10381 if test "${lt_cv_prog_compiler__b+set}" = set; then :
10382 $as_echo_n "(cached) " >&6
10383 else
10384 lt_cv_prog_compiler__b=no
10385 save_LDFLAGS="$LDFLAGS"
10386 LDFLAGS="$LDFLAGS -b"
10387 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10388 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10389 # The linker can only warn and ignore the option if not recognized
10390 # So say no if there are warnings
10391 if test -s conftest.err; then
10392 # Append any errors to the config.log.
10393 cat conftest.err 1>&5
10394 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10395 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10396 if diff conftest.exp conftest.er2 >/dev/null; then
10397 lt_cv_prog_compiler__b=yes
10399 else
10400 lt_cv_prog_compiler__b=yes
10403 $RM -r conftest*
10404 LDFLAGS="$save_LDFLAGS"
10407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10408 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10410 if test x"$lt_cv_prog_compiler__b" = xyes; then
10411 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10412 else
10413 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10417 esac
10419 if test "$with_gnu_ld" = no; then
10420 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10421 hardcode_libdir_separator=:
10423 case $host_cpu in
10424 hppa*64*|ia64*)
10425 hardcode_direct=no
10426 hardcode_shlibpath_var=no
10429 hardcode_direct=yes
10430 hardcode_direct_absolute=yes
10431 export_dynamic_flag_spec='${wl}-E'
10433 # hardcode_minus_L: Not really in the search PATH,
10434 # but as the default location of the library.
10435 hardcode_minus_L=yes
10437 esac
10441 irix5* | irix6* | nonstopux*)
10442 if test "$GCC" = yes; then
10443 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'
10444 # Try to use the -exported_symbol ld option, if it does not
10445 # work, assume that -exports_file does not work either and
10446 # implicitly export all symbols.
10447 save_LDFLAGS="$LDFLAGS"
10448 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10450 /* end confdefs.h. */
10451 int foo(void) {}
10452 _ACEOF
10453 if ac_fn_c_try_link "$LINENO"; then :
10454 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'
10457 rm -f core conftest.err conftest.$ac_objext \
10458 conftest$ac_exeext conftest.$ac_ext
10459 LDFLAGS="$save_LDFLAGS"
10460 else
10461 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'
10462 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'
10464 archive_cmds_need_lc='no'
10465 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10466 hardcode_libdir_separator=:
10467 inherit_rpath=yes
10468 link_all_deplibs=yes
10471 netbsd*)
10472 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10473 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10474 else
10475 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10477 hardcode_libdir_flag_spec='-R$libdir'
10478 hardcode_direct=yes
10479 hardcode_shlibpath_var=no
10482 newsos6)
10483 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10484 hardcode_direct=yes
10485 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10486 hardcode_libdir_separator=:
10487 hardcode_shlibpath_var=no
10490 *nto* | *qnx*)
10493 openbsd*)
10494 if test -f /usr/libexec/ld.so; then
10495 hardcode_direct=yes
10496 hardcode_shlibpath_var=no
10497 hardcode_direct_absolute=yes
10498 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10499 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10500 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10501 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10502 export_dynamic_flag_spec='${wl}-E'
10503 else
10504 case $host_os in
10505 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10506 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10507 hardcode_libdir_flag_spec='-R$libdir'
10510 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10511 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10513 esac
10515 else
10516 ld_shlibs=no
10520 os2*)
10521 hardcode_libdir_flag_spec='-L$libdir'
10522 hardcode_minus_L=yes
10523 allow_undefined_flag=unsupported
10524 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'
10525 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10528 osf3*)
10529 if test "$GCC" = yes; then
10530 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10531 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'
10532 else
10533 allow_undefined_flag=' -expect_unresolved \*'
10534 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'
10536 archive_cmds_need_lc='no'
10537 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10538 hardcode_libdir_separator=:
10541 osf4* | osf5*) # as osf3* with the addition of -msym flag
10542 if test "$GCC" = yes; then
10543 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10544 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'
10545 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10546 else
10547 allow_undefined_flag=' -expect_unresolved \*'
10548 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'
10549 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~
10550 $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'
10552 # Both c and cxx compiler support -rpath directly
10553 hardcode_libdir_flag_spec='-rpath $libdir'
10555 archive_cmds_need_lc='no'
10556 hardcode_libdir_separator=:
10559 solaris*)
10560 no_undefined_flag=' -z defs'
10561 if test "$GCC" = yes; then
10562 wlarc='${wl}'
10563 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10564 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10565 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10566 else
10567 case `$CC -V 2>&1` in
10568 *"Compilers 5.0"*)
10569 wlarc=''
10570 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10571 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10572 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10575 wlarc='${wl}'
10576 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10577 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10578 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10580 esac
10582 hardcode_libdir_flag_spec='-R$libdir'
10583 hardcode_shlibpath_var=no
10584 case $host_os in
10585 solaris2.[0-5] | solaris2.[0-5].*) ;;
10587 # The compiler driver will combine and reorder linker options,
10588 # but understands `-z linker_flag'. GCC discards it without `$wl',
10589 # but is careful enough not to reorder.
10590 # Supported since Solaris 2.6 (maybe 2.5.1?)
10591 if test "$GCC" = yes; then
10592 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10593 else
10594 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10597 esac
10598 link_all_deplibs=yes
10601 sunos4*)
10602 if test "x$host_vendor" = xsequent; then
10603 # Use $CC to link under sequent, because it throws in some extra .o
10604 # files that make .init and .fini sections work.
10605 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10606 else
10607 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10609 hardcode_libdir_flag_spec='-L$libdir'
10610 hardcode_direct=yes
10611 hardcode_minus_L=yes
10612 hardcode_shlibpath_var=no
10615 sysv4)
10616 case $host_vendor in
10617 sni)
10618 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10619 hardcode_direct=yes # is this really true???
10621 siemens)
10622 ## LD is ld it makes a PLAMLIB
10623 ## CC just makes a GrossModule.
10624 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10625 reload_cmds='$CC -r -o $output$reload_objs'
10626 hardcode_direct=no
10628 motorola)
10629 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10630 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10632 esac
10633 runpath_var='LD_RUN_PATH'
10634 hardcode_shlibpath_var=no
10637 sysv4.3*)
10638 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10639 hardcode_shlibpath_var=no
10640 export_dynamic_flag_spec='-Bexport'
10643 sysv4*MP*)
10644 if test -d /usr/nec; then
10645 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10646 hardcode_shlibpath_var=no
10647 runpath_var=LD_RUN_PATH
10648 hardcode_runpath_var=yes
10649 ld_shlibs=yes
10653 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10654 no_undefined_flag='${wl}-z,text'
10655 archive_cmds_need_lc=no
10656 hardcode_shlibpath_var=no
10657 runpath_var='LD_RUN_PATH'
10659 if test "$GCC" = yes; then
10660 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10661 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10662 else
10663 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10664 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10668 sysv5* | sco3.2v5* | sco5v6*)
10669 # Note: We can NOT use -z defs as we might desire, because we do not
10670 # link with -lc, and that would cause any symbols used from libc to
10671 # always be unresolved, which means just about no library would
10672 # ever link correctly. If we're not using GNU ld we use -z text
10673 # though, which does catch some bad symbols but isn't as heavy-handed
10674 # as -z defs.
10675 no_undefined_flag='${wl}-z,text'
10676 allow_undefined_flag='${wl}-z,nodefs'
10677 archive_cmds_need_lc=no
10678 hardcode_shlibpath_var=no
10679 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10680 hardcode_libdir_separator=':'
10681 link_all_deplibs=yes
10682 export_dynamic_flag_spec='${wl}-Bexport'
10683 runpath_var='LD_RUN_PATH'
10685 if test "$GCC" = yes; then
10686 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10687 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10688 else
10689 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10690 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10694 uts4*)
10695 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10696 hardcode_libdir_flag_spec='-L$libdir'
10697 hardcode_shlibpath_var=no
10701 ld_shlibs=no
10703 esac
10705 if test x$host_vendor = xsni; then
10706 case $host in
10707 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10708 export_dynamic_flag_spec='${wl}-Blargedynsym'
10710 esac
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10715 $as_echo "$ld_shlibs" >&6; }
10716 test "$ld_shlibs" = no && can_build_shared=no
10718 with_gnu_ld=$with_gnu_ld
10735 # Do we need to explicitly link libc?
10737 case "x$archive_cmds_need_lc" in
10738 x|xyes)
10739 # Assume -lc should be added
10740 archive_cmds_need_lc=yes
10742 if test "$enable_shared" = yes && test "$GCC" = yes; then
10743 case $archive_cmds in
10744 *'~'*)
10745 # FIXME: we may have to deal with multi-command sequences.
10747 '$CC '*)
10748 # Test whether the compiler implicitly links with -lc since on some
10749 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10750 # to ld, don't add -lc before -lgcc.
10751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10752 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10753 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10754 $as_echo_n "(cached) " >&6
10755 else
10756 $RM conftest*
10757 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10759 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10760 (eval $ac_compile) 2>&5
10761 ac_status=$?
10762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10763 test $ac_status = 0; } 2>conftest.err; then
10764 soname=conftest
10765 lib=conftest
10766 libobjs=conftest.$ac_objext
10767 deplibs=
10768 wl=$lt_prog_compiler_wl
10769 pic_flag=$lt_prog_compiler_pic
10770 compiler_flags=-v
10771 linker_flags=-v
10772 verstring=
10773 output_objdir=.
10774 libname=conftest
10775 lt_save_allow_undefined_flag=$allow_undefined_flag
10776 allow_undefined_flag=
10777 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10778 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10779 ac_status=$?
10780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10781 test $ac_status = 0; }
10782 then
10783 lt_cv_archive_cmds_need_lc=no
10784 else
10785 lt_cv_archive_cmds_need_lc=yes
10787 allow_undefined_flag=$lt_save_allow_undefined_flag
10788 else
10789 cat conftest.err 1>&5
10791 $RM conftest*
10794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10795 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10796 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10798 esac
10801 esac
10959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10960 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10962 if test "$GCC" = yes; then
10963 case $host_os in
10964 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10965 *) lt_awk_arg="/^libraries:/" ;;
10966 esac
10967 case $host_os in
10968 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10969 *) lt_sed_strip_eq="s,=/,/,g" ;;
10970 esac
10971 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10972 case $lt_search_path_spec in
10973 *\;*)
10974 # if the path contains ";" then we assume it to be the separator
10975 # otherwise default to the standard path separator (i.e. ":") - it is
10976 # assumed that no part of a normal pathname contains ";" but that should
10977 # okay in the real world where ";" in dirpaths is itself problematic.
10978 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10981 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10983 esac
10984 # Ok, now we have the path, separated by spaces, we can step through it
10985 # and add multilib dir if necessary.
10986 lt_tmp_lt_search_path_spec=
10987 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10988 for lt_sys_path in $lt_search_path_spec; do
10989 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10990 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10991 else
10992 test -d "$lt_sys_path" && \
10993 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10995 done
10996 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10997 BEGIN {RS=" "; FS="/|\n";} {
10998 lt_foo="";
10999 lt_count=0;
11000 for (lt_i = NF; lt_i > 0; lt_i--) {
11001 if ($lt_i != "" && $lt_i != ".") {
11002 if ($lt_i == "..") {
11003 lt_count++;
11004 } else {
11005 if (lt_count == 0) {
11006 lt_foo="/" $lt_i lt_foo;
11007 } else {
11008 lt_count--;
11013 if (lt_foo != "") { lt_freq[lt_foo]++; }
11014 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11016 # AWK program above erroneously prepends '/' to C:/dos/paths
11017 # for these hosts.
11018 case $host_os in
11019 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11020 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11021 esac
11022 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11023 else
11024 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11026 library_names_spec=
11027 libname_spec='lib$name'
11028 soname_spec=
11029 shrext_cmds=".so"
11030 postinstall_cmds=
11031 postuninstall_cmds=
11032 finish_cmds=
11033 finish_eval=
11034 shlibpath_var=
11035 shlibpath_overrides_runpath=unknown
11036 version_type=none
11037 dynamic_linker="$host_os ld.so"
11038 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11039 need_lib_prefix=unknown
11040 hardcode_into_libs=no
11042 # when you set need_version to no, make sure it does not cause -set_version
11043 # flags to be left without arguments
11044 need_version=unknown
11046 case $host_os in
11047 aix3*)
11048 version_type=linux
11049 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11050 shlibpath_var=LIBPATH
11052 # AIX 3 has no versioning support, so we append a major version to the name.
11053 soname_spec='${libname}${release}${shared_ext}$major'
11056 aix[4-9]*)
11057 version_type=linux
11058 need_lib_prefix=no
11059 need_version=no
11060 hardcode_into_libs=yes
11061 if test "$host_cpu" = ia64; then
11062 # AIX 5 supports IA64
11063 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11064 shlibpath_var=LD_LIBRARY_PATH
11065 else
11066 # With GCC up to 2.95.x, collect2 would create an import file
11067 # for dependence libraries. The import file would start with
11068 # the line `#! .'. This would cause the generated library to
11069 # depend on `.', always an invalid library. This was fixed in
11070 # development snapshots of GCC prior to 3.0.
11071 case $host_os in
11072 aix4 | aix4.[01] | aix4.[01].*)
11073 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11074 echo ' yes '
11075 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11077 else
11078 can_build_shared=no
11081 esac
11082 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11083 # soname into executable. Probably we can add versioning support to
11084 # collect2, so additional links can be useful in future.
11085 if test "$aix_use_runtimelinking" = yes; then
11086 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11087 # instead of lib<name>.a to let people know that these are not
11088 # typical AIX shared libraries.
11089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11090 else
11091 # We preserve .a as extension for shared libraries through AIX4.2
11092 # and later when we are not doing run time linking.
11093 library_names_spec='${libname}${release}.a $libname.a'
11094 soname_spec='${libname}${release}${shared_ext}$major'
11096 shlibpath_var=LIBPATH
11100 amigaos*)
11101 case $host_cpu in
11102 powerpc)
11103 # Since July 2007 AmigaOS4 officially supports .so libraries.
11104 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11107 m68k)
11108 library_names_spec='$libname.ixlibrary $libname.a'
11109 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11110 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'
11112 esac
11115 beos*)
11116 library_names_spec='${libname}${shared_ext}'
11117 dynamic_linker="$host_os ld.so"
11118 shlibpath_var=LIBRARY_PATH
11121 bsdi[45]*)
11122 version_type=linux
11123 need_version=no
11124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11125 soname_spec='${libname}${release}${shared_ext}$major'
11126 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11127 shlibpath_var=LD_LIBRARY_PATH
11128 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11129 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11130 # the default ld.so.conf also contains /usr/contrib/lib and
11131 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11132 # libtool to hard-code these into programs
11135 cygwin* | mingw* | pw32* | cegcc*)
11136 version_type=windows
11137 shrext_cmds=".dll"
11138 need_version=no
11139 need_lib_prefix=no
11141 case $GCC,$host_os in
11142 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11143 library_names_spec='$libname.dll.a'
11144 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11145 postinstall_cmds='base_file=`basename \${file}`~
11146 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11147 dldir=$destdir/`dirname \$dlpath`~
11148 test -d \$dldir || mkdir -p \$dldir~
11149 $install_prog $dir/$dlname \$dldir/$dlname~
11150 chmod a+x \$dldir/$dlname~
11151 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11152 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11154 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11155 dlpath=$dir/\$dldll~
11156 $RM \$dlpath'
11157 shlibpath_overrides_runpath=yes
11159 case $host_os in
11160 cygwin*)
11161 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11162 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11164 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11166 mingw* | cegcc*)
11167 # MinGW DLLs use traditional 'lib' prefix
11168 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11170 pw32*)
11171 # pw32 DLLs use 'pw' prefix rather than 'lib'
11172 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11174 esac
11178 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11180 esac
11181 dynamic_linker='Win32 ld.exe'
11182 # FIXME: first we should search . and the directory the executable is in
11183 shlibpath_var=PATH
11186 darwin* | rhapsody*)
11187 dynamic_linker="$host_os dyld"
11188 version_type=darwin
11189 need_lib_prefix=no
11190 need_version=no
11191 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11192 soname_spec='${libname}${release}${major}$shared_ext'
11193 shlibpath_overrides_runpath=yes
11194 shlibpath_var=DYLD_LIBRARY_PATH
11195 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11197 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11198 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11201 dgux*)
11202 version_type=linux
11203 need_lib_prefix=no
11204 need_version=no
11205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11206 soname_spec='${libname}${release}${shared_ext}$major'
11207 shlibpath_var=LD_LIBRARY_PATH
11210 freebsd* | dragonfly*)
11211 # DragonFly does not have aout. When/if they implement a new
11212 # versioning mechanism, adjust this.
11213 if test -x /usr/bin/objformat; then
11214 objformat=`/usr/bin/objformat`
11215 else
11216 case $host_os in
11217 freebsd[23].*) objformat=aout ;;
11218 *) objformat=elf ;;
11219 esac
11221 version_type=freebsd-$objformat
11222 case $version_type in
11223 freebsd-elf*)
11224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11225 need_version=no
11226 need_lib_prefix=no
11228 freebsd-*)
11229 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11230 need_version=yes
11232 esac
11233 shlibpath_var=LD_LIBRARY_PATH
11234 case $host_os in
11235 freebsd2.*)
11236 shlibpath_overrides_runpath=yes
11238 freebsd3.[01]* | freebsdelf3.[01]*)
11239 shlibpath_overrides_runpath=yes
11240 hardcode_into_libs=yes
11242 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11243 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11244 shlibpath_overrides_runpath=no
11245 hardcode_into_libs=yes
11247 *) # from 4.6 on, and DragonFly
11248 shlibpath_overrides_runpath=yes
11249 hardcode_into_libs=yes
11251 esac
11254 gnu*)
11255 version_type=linux
11256 need_lib_prefix=no
11257 need_version=no
11258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11259 soname_spec='${libname}${release}${shared_ext}$major'
11260 shlibpath_var=LD_LIBRARY_PATH
11261 hardcode_into_libs=yes
11264 haiku*)
11265 version_type=linux
11266 need_lib_prefix=no
11267 need_version=no
11268 dynamic_linker="$host_os runtime_loader"
11269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11270 soname_spec='${libname}${release}${shared_ext}$major'
11271 shlibpath_var=LIBRARY_PATH
11272 shlibpath_overrides_runpath=yes
11273 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11274 hardcode_into_libs=yes
11277 hpux9* | hpux10* | hpux11*)
11278 # Give a soname corresponding to the major version so that dld.sl refuses to
11279 # link against other versions.
11280 version_type=sunos
11281 need_lib_prefix=no
11282 need_version=no
11283 case $host_cpu in
11284 ia64*)
11285 shrext_cmds='.so'
11286 hardcode_into_libs=yes
11287 dynamic_linker="$host_os dld.so"
11288 shlibpath_var=LD_LIBRARY_PATH
11289 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11291 soname_spec='${libname}${release}${shared_ext}$major'
11292 if test "X$HPUX_IA64_MODE" = X32; then
11293 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11294 else
11295 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11297 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11299 hppa*64*)
11300 shrext_cmds='.sl'
11301 hardcode_into_libs=yes
11302 dynamic_linker="$host_os dld.sl"
11303 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11304 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11306 soname_spec='${libname}${release}${shared_ext}$major'
11307 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11308 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11311 shrext_cmds='.sl'
11312 dynamic_linker="$host_os dld.sl"
11313 shlibpath_var=SHLIB_PATH
11314 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11316 soname_spec='${libname}${release}${shared_ext}$major'
11318 esac
11319 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11320 postinstall_cmds='chmod 555 $lib'
11321 # or fails outright, so override atomically:
11322 install_override_mode=555
11325 interix[3-9]*)
11326 version_type=linux
11327 need_lib_prefix=no
11328 need_version=no
11329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11330 soname_spec='${libname}${release}${shared_ext}$major'
11331 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11332 shlibpath_var=LD_LIBRARY_PATH
11333 shlibpath_overrides_runpath=no
11334 hardcode_into_libs=yes
11337 irix5* | irix6* | nonstopux*)
11338 case $host_os in
11339 nonstopux*) version_type=nonstopux ;;
11341 if test "$lt_cv_prog_gnu_ld" = yes; then
11342 version_type=linux
11343 else
11344 version_type=irix
11345 fi ;;
11346 esac
11347 need_lib_prefix=no
11348 need_version=no
11349 soname_spec='${libname}${release}${shared_ext}$major'
11350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11351 case $host_os in
11352 irix5* | nonstopux*)
11353 libsuff= shlibsuff=
11356 case $LD in # libtool.m4 will add one of these switches to LD
11357 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11358 libsuff= shlibsuff= libmagic=32-bit;;
11359 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11360 libsuff=32 shlibsuff=N32 libmagic=N32;;
11361 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11362 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11363 *) libsuff= shlibsuff= libmagic=never-match;;
11364 esac
11366 esac
11367 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11368 shlibpath_overrides_runpath=no
11369 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11370 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11371 hardcode_into_libs=yes
11374 # No shared lib support for Linux oldld, aout, or coff.
11375 linux*oldld* | linux*aout* | linux*coff*)
11376 dynamic_linker=no
11379 # This must be Linux ELF.
11380 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11381 version_type=linux
11382 need_lib_prefix=no
11383 need_version=no
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'
11386 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11387 shlibpath_var=LD_LIBRARY_PATH
11388 shlibpath_overrides_runpath=no
11390 # Some binutils ld are patched to set DT_RUNPATH
11391 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11392 $as_echo_n "(cached) " >&6
11393 else
11394 lt_cv_shlibpath_overrides_runpath=no
11395 save_LDFLAGS=$LDFLAGS
11396 save_libdir=$libdir
11397 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11398 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11400 /* end confdefs.h. */
11403 main ()
11407 return 0;
11409 _ACEOF
11410 if ac_fn_c_try_link "$LINENO"; then :
11411 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11412 lt_cv_shlibpath_overrides_runpath=yes
11415 rm -f core conftest.err conftest.$ac_objext \
11416 conftest$ac_exeext conftest.$ac_ext
11417 LDFLAGS=$save_LDFLAGS
11418 libdir=$save_libdir
11422 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11424 # This implies no fast_install, which is unacceptable.
11425 # Some rework will be needed to allow for fast_install
11426 # before this can be enabled.
11427 hardcode_into_libs=yes
11429 # Append ld.so.conf contents to the search path
11430 if test -f /etc/ld.so.conf; then
11431 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' ' '`
11432 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11435 # We used to test for /lib/ld.so.1 and disable shared libraries on
11436 # powerpc, because MkLinux only supported shared libraries with the
11437 # GNU dynamic linker. Since this was broken with cross compilers,
11438 # most powerpc-linux boxes support dynamic linking these days and
11439 # people can always --disable-shared, the test was removed, and we
11440 # assume the GNU/Linux dynamic linker is in use.
11441 dynamic_linker='GNU/Linux ld.so'
11444 netbsd*)
11445 version_type=sunos
11446 need_lib_prefix=no
11447 need_version=no
11448 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11450 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11451 dynamic_linker='NetBSD (a.out) ld.so'
11452 else
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 dynamic_linker='NetBSD ld.elf_so'
11457 shlibpath_var=LD_LIBRARY_PATH
11458 shlibpath_overrides_runpath=yes
11459 hardcode_into_libs=yes
11462 newsos6)
11463 version_type=linux
11464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11465 shlibpath_var=LD_LIBRARY_PATH
11466 shlibpath_overrides_runpath=yes
11469 *nto* | *qnx*)
11470 version_type=qnx
11471 need_lib_prefix=no
11472 need_version=no
11473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11474 soname_spec='${libname}${release}${shared_ext}$major'
11475 shlibpath_var=LD_LIBRARY_PATH
11476 shlibpath_overrides_runpath=no
11477 hardcode_into_libs=yes
11478 dynamic_linker='ldqnx.so'
11481 openbsd*)
11482 version_type=sunos
11483 sys_lib_dlsearch_path_spec="/usr/lib"
11484 need_lib_prefix=no
11485 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11486 case $host_os in
11487 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11488 *) need_version=no ;;
11489 esac
11490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11491 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11492 shlibpath_var=LD_LIBRARY_PATH
11493 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11494 case $host_os in
11495 openbsd2.[89] | openbsd2.[89].*)
11496 shlibpath_overrides_runpath=no
11499 shlibpath_overrides_runpath=yes
11501 esac
11502 else
11503 shlibpath_overrides_runpath=yes
11507 os2*)
11508 libname_spec='$name'
11509 shrext_cmds=".dll"
11510 need_lib_prefix=no
11511 library_names_spec='$libname${shared_ext} $libname.a'
11512 dynamic_linker='OS/2 ld.exe'
11513 shlibpath_var=LIBPATH
11516 osf3* | osf4* | osf5*)
11517 version_type=osf
11518 need_lib_prefix=no
11519 need_version=no
11520 soname_spec='${libname}${release}${shared_ext}$major'
11521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11522 shlibpath_var=LD_LIBRARY_PATH
11523 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11524 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11527 rdos*)
11528 dynamic_linker=no
11531 solaris*)
11532 version_type=linux
11533 need_lib_prefix=no
11534 need_version=no
11535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11536 soname_spec='${libname}${release}${shared_ext}$major'
11537 shlibpath_var=LD_LIBRARY_PATH
11538 shlibpath_overrides_runpath=yes
11539 hardcode_into_libs=yes
11540 # ldd complains unless libraries are executable
11541 postinstall_cmds='chmod +x $lib'
11544 sunos4*)
11545 version_type=sunos
11546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11547 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11548 shlibpath_var=LD_LIBRARY_PATH
11549 shlibpath_overrides_runpath=yes
11550 if test "$with_gnu_ld" = yes; then
11551 need_lib_prefix=no
11553 need_version=yes
11556 sysv4 | sysv4.3*)
11557 version_type=linux
11558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11559 soname_spec='${libname}${release}${shared_ext}$major'
11560 shlibpath_var=LD_LIBRARY_PATH
11561 case $host_vendor in
11562 sni)
11563 shlibpath_overrides_runpath=no
11564 need_lib_prefix=no
11565 runpath_var=LD_RUN_PATH
11567 siemens)
11568 need_lib_prefix=no
11570 motorola)
11571 need_lib_prefix=no
11572 need_version=no
11573 shlibpath_overrides_runpath=no
11574 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11576 esac
11579 sysv4*MP*)
11580 if test -d /usr/nec ;then
11581 version_type=linux
11582 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11583 soname_spec='$libname${shared_ext}.$major'
11584 shlibpath_var=LD_LIBRARY_PATH
11588 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11589 version_type=freebsd-elf
11590 need_lib_prefix=no
11591 need_version=no
11592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11593 soname_spec='${libname}${release}${shared_ext}$major'
11594 shlibpath_var=LD_LIBRARY_PATH
11595 shlibpath_overrides_runpath=yes
11596 hardcode_into_libs=yes
11597 if test "$with_gnu_ld" = yes; then
11598 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11599 else
11600 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11601 case $host_os in
11602 sco3.2v5*)
11603 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11605 esac
11607 sys_lib_dlsearch_path_spec='/usr/lib'
11610 tpf*)
11611 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11612 version_type=linux
11613 need_lib_prefix=no
11614 need_version=no
11615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11616 shlibpath_var=LD_LIBRARY_PATH
11617 shlibpath_overrides_runpath=no
11618 hardcode_into_libs=yes
11621 uts4*)
11622 version_type=linux
11623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11624 soname_spec='${libname}${release}${shared_ext}$major'
11625 shlibpath_var=LD_LIBRARY_PATH
11629 dynamic_linker=no
11631 esac
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11633 $as_echo "$dynamic_linker" >&6; }
11634 test "$dynamic_linker" = no && can_build_shared=no
11636 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11637 if test "$GCC" = yes; then
11638 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11641 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11642 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11644 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11645 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11740 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11741 hardcode_action=
11742 if test -n "$hardcode_libdir_flag_spec" ||
11743 test -n "$runpath_var" ||
11744 test "X$hardcode_automatic" = "Xyes" ; then
11746 # We can hardcode non-existent directories.
11747 if test "$hardcode_direct" != no &&
11748 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11749 # have to relink, otherwise we might link with an installed library
11750 # when we should be linking with a yet-to-be-installed one
11751 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11752 test "$hardcode_minus_L" != no; then
11753 # Linking always hardcodes the temporary library directory.
11754 hardcode_action=relink
11755 else
11756 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11757 hardcode_action=immediate
11759 else
11760 # We cannot hardcode anything, or else we can only hardcode existing
11761 # directories.
11762 hardcode_action=unsupported
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11765 $as_echo "$hardcode_action" >&6; }
11767 if test "$hardcode_action" = relink ||
11768 test "$inherit_rpath" = yes; then
11769 # Fast installation is not supported
11770 enable_fast_install=no
11771 elif test "$shlibpath_overrides_runpath" = yes ||
11772 test "$enable_shared" = no; then
11773 # Fast installation is not necessary
11774 enable_fast_install=needless
11782 if test "x$enable_dlopen" != xyes; then
11783 enable_dlopen=unknown
11784 enable_dlopen_self=unknown
11785 enable_dlopen_self_static=unknown
11786 else
11787 lt_cv_dlopen=no
11788 lt_cv_dlopen_libs=
11790 case $host_os in
11791 beos*)
11792 lt_cv_dlopen="load_add_on"
11793 lt_cv_dlopen_libs=
11794 lt_cv_dlopen_self=yes
11797 mingw* | pw32* | cegcc*)
11798 lt_cv_dlopen="LoadLibrary"
11799 lt_cv_dlopen_libs=
11802 cygwin*)
11803 lt_cv_dlopen="dlopen"
11804 lt_cv_dlopen_libs=
11807 darwin*)
11808 # if libdl is installed we need to link against it
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11810 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11811 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11812 $as_echo_n "(cached) " >&6
11813 else
11814 ac_check_lib_save_LIBS=$LIBS
11815 LIBS="-ldl $LIBS"
11816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11817 /* end confdefs.h. */
11819 /* Override any GCC internal prototype to avoid an error.
11820 Use char because int might match the return type of a GCC
11821 builtin and then its argument prototype would still apply. */
11822 #ifdef __cplusplus
11823 extern "C"
11824 #endif
11825 char dlopen ();
11827 main ()
11829 return dlopen ();
11831 return 0;
11833 _ACEOF
11834 if ac_fn_c_try_link "$LINENO"; then :
11835 ac_cv_lib_dl_dlopen=yes
11836 else
11837 ac_cv_lib_dl_dlopen=no
11839 rm -f core conftest.err conftest.$ac_objext \
11840 conftest$ac_exeext conftest.$ac_ext
11841 LIBS=$ac_check_lib_save_LIBS
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11844 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11845 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11846 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11847 else
11849 lt_cv_dlopen="dyld"
11850 lt_cv_dlopen_libs=
11851 lt_cv_dlopen_self=yes
11858 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11859 if test "x$ac_cv_func_shl_load" = x""yes; then :
11860 lt_cv_dlopen="shl_load"
11861 else
11862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11863 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11864 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11865 $as_echo_n "(cached) " >&6
11866 else
11867 ac_check_lib_save_LIBS=$LIBS
11868 LIBS="-ldld $LIBS"
11869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11870 /* end confdefs.h. */
11872 /* Override any GCC internal prototype to avoid an error.
11873 Use char because int might match the return type of a GCC
11874 builtin and then its argument prototype would still apply. */
11875 #ifdef __cplusplus
11876 extern "C"
11877 #endif
11878 char shl_load ();
11880 main ()
11882 return shl_load ();
11884 return 0;
11886 _ACEOF
11887 if ac_fn_c_try_link "$LINENO"; then :
11888 ac_cv_lib_dld_shl_load=yes
11889 else
11890 ac_cv_lib_dld_shl_load=no
11892 rm -f core conftest.err conftest.$ac_objext \
11893 conftest$ac_exeext conftest.$ac_ext
11894 LIBS=$ac_check_lib_save_LIBS
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11897 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11898 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11899 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11900 else
11901 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11902 if test "x$ac_cv_func_dlopen" = x""yes; then :
11903 lt_cv_dlopen="dlopen"
11904 else
11905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11906 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11907 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11908 $as_echo_n "(cached) " >&6
11909 else
11910 ac_check_lib_save_LIBS=$LIBS
11911 LIBS="-ldl $LIBS"
11912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11913 /* end confdefs.h. */
11915 /* Override any GCC internal prototype to avoid an error.
11916 Use char because int might match the return type of a GCC
11917 builtin and then its argument prototype would still apply. */
11918 #ifdef __cplusplus
11919 extern "C"
11920 #endif
11921 char dlopen ();
11923 main ()
11925 return dlopen ();
11927 return 0;
11929 _ACEOF
11930 if ac_fn_c_try_link "$LINENO"; then :
11931 ac_cv_lib_dl_dlopen=yes
11932 else
11933 ac_cv_lib_dl_dlopen=no
11935 rm -f core conftest.err conftest.$ac_objext \
11936 conftest$ac_exeext conftest.$ac_ext
11937 LIBS=$ac_check_lib_save_LIBS
11939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11940 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11941 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11942 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11943 else
11944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11945 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11946 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11947 $as_echo_n "(cached) " >&6
11948 else
11949 ac_check_lib_save_LIBS=$LIBS
11950 LIBS="-lsvld $LIBS"
11951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11952 /* end confdefs.h. */
11954 /* Override any GCC internal prototype to avoid an error.
11955 Use char because int might match the return type of a GCC
11956 builtin and then its argument prototype would still apply. */
11957 #ifdef __cplusplus
11958 extern "C"
11959 #endif
11960 char dlopen ();
11962 main ()
11964 return dlopen ();
11966 return 0;
11968 _ACEOF
11969 if ac_fn_c_try_link "$LINENO"; then :
11970 ac_cv_lib_svld_dlopen=yes
11971 else
11972 ac_cv_lib_svld_dlopen=no
11974 rm -f core conftest.err conftest.$ac_objext \
11975 conftest$ac_exeext conftest.$ac_ext
11976 LIBS=$ac_check_lib_save_LIBS
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11979 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11980 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11981 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11982 else
11983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11984 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11985 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11986 $as_echo_n "(cached) " >&6
11987 else
11988 ac_check_lib_save_LIBS=$LIBS
11989 LIBS="-ldld $LIBS"
11990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11991 /* end confdefs.h. */
11993 /* Override any GCC internal prototype to avoid an error.
11994 Use char because int might match the return type of a GCC
11995 builtin and then its argument prototype would still apply. */
11996 #ifdef __cplusplus
11997 extern "C"
11998 #endif
11999 char dld_link ();
12001 main ()
12003 return dld_link ();
12005 return 0;
12007 _ACEOF
12008 if ac_fn_c_try_link "$LINENO"; then :
12009 ac_cv_lib_dld_dld_link=yes
12010 else
12011 ac_cv_lib_dld_dld_link=no
12013 rm -f core conftest.err conftest.$ac_objext \
12014 conftest$ac_exeext conftest.$ac_ext
12015 LIBS=$ac_check_lib_save_LIBS
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12018 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12019 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
12020 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12039 esac
12041 if test "x$lt_cv_dlopen" != xno; then
12042 enable_dlopen=yes
12043 else
12044 enable_dlopen=no
12047 case $lt_cv_dlopen in
12048 dlopen)
12049 save_CPPFLAGS="$CPPFLAGS"
12050 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12052 save_LDFLAGS="$LDFLAGS"
12053 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12055 save_LIBS="$LIBS"
12056 LIBS="$lt_cv_dlopen_libs $LIBS"
12058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12059 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12060 if test "${lt_cv_dlopen_self+set}" = set; then :
12061 $as_echo_n "(cached) " >&6
12062 else
12063 if test "$cross_compiling" = yes; then :
12064 lt_cv_dlopen_self=cross
12065 else
12066 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12067 lt_status=$lt_dlunknown
12068 cat > conftest.$ac_ext <<_LT_EOF
12069 #line 12069 "configure"
12070 #include "confdefs.h"
12072 #if HAVE_DLFCN_H
12073 #include <dlfcn.h>
12074 #endif
12076 #include <stdio.h>
12078 #ifdef RTLD_GLOBAL
12079 # define LT_DLGLOBAL RTLD_GLOBAL
12080 #else
12081 # ifdef DL_GLOBAL
12082 # define LT_DLGLOBAL DL_GLOBAL
12083 # else
12084 # define LT_DLGLOBAL 0
12085 # endif
12086 #endif
12088 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12089 find out it does not work in some platform. */
12090 #ifndef LT_DLLAZY_OR_NOW
12091 # ifdef RTLD_LAZY
12092 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12093 # else
12094 # ifdef DL_LAZY
12095 # define LT_DLLAZY_OR_NOW DL_LAZY
12096 # else
12097 # ifdef RTLD_NOW
12098 # define LT_DLLAZY_OR_NOW RTLD_NOW
12099 # else
12100 # ifdef DL_NOW
12101 # define LT_DLLAZY_OR_NOW DL_NOW
12102 # else
12103 # define LT_DLLAZY_OR_NOW 0
12104 # endif
12105 # endif
12106 # endif
12107 # endif
12108 #endif
12110 /* When -fvisbility=hidden is used, assume the code has been annotated
12111 correspondingly for the symbols needed. */
12112 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12113 void fnord () __attribute__((visibility("default")));
12114 #endif
12116 void fnord () { int i=42; }
12117 int main ()
12119 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12120 int status = $lt_dlunknown;
12122 if (self)
12124 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12125 else
12127 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12128 else puts (dlerror ());
12130 /* dlclose (self); */
12132 else
12133 puts (dlerror ());
12135 return status;
12137 _LT_EOF
12138 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12139 (eval $ac_link) 2>&5
12140 ac_status=$?
12141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12142 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12143 (./conftest; exit; ) >&5 2>/dev/null
12144 lt_status=$?
12145 case x$lt_status in
12146 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12147 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12148 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12149 esac
12150 else :
12151 # compilation failed
12152 lt_cv_dlopen_self=no
12155 rm -fr conftest*
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12160 $as_echo "$lt_cv_dlopen_self" >&6; }
12162 if test "x$lt_cv_dlopen_self" = xyes; then
12163 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12165 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12166 if test "${lt_cv_dlopen_self_static+set}" = set; then :
12167 $as_echo_n "(cached) " >&6
12168 else
12169 if test "$cross_compiling" = yes; then :
12170 lt_cv_dlopen_self_static=cross
12171 else
12172 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12173 lt_status=$lt_dlunknown
12174 cat > conftest.$ac_ext <<_LT_EOF
12175 #line 12175 "configure"
12176 #include "confdefs.h"
12178 #if HAVE_DLFCN_H
12179 #include <dlfcn.h>
12180 #endif
12182 #include <stdio.h>
12184 #ifdef RTLD_GLOBAL
12185 # define LT_DLGLOBAL RTLD_GLOBAL
12186 #else
12187 # ifdef DL_GLOBAL
12188 # define LT_DLGLOBAL DL_GLOBAL
12189 # else
12190 # define LT_DLGLOBAL 0
12191 # endif
12192 #endif
12194 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12195 find out it does not work in some platform. */
12196 #ifndef LT_DLLAZY_OR_NOW
12197 # ifdef RTLD_LAZY
12198 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12199 # else
12200 # ifdef DL_LAZY
12201 # define LT_DLLAZY_OR_NOW DL_LAZY
12202 # else
12203 # ifdef RTLD_NOW
12204 # define LT_DLLAZY_OR_NOW RTLD_NOW
12205 # else
12206 # ifdef DL_NOW
12207 # define LT_DLLAZY_OR_NOW DL_NOW
12208 # else
12209 # define LT_DLLAZY_OR_NOW 0
12210 # endif
12211 # endif
12212 # endif
12213 # endif
12214 #endif
12216 /* When -fvisbility=hidden is used, assume the code has been annotated
12217 correspondingly for the symbols needed. */
12218 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12219 void fnord () __attribute__((visibility("default")));
12220 #endif
12222 void fnord () { int i=42; }
12223 int main ()
12225 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12226 int status = $lt_dlunknown;
12228 if (self)
12230 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12231 else
12233 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12234 else puts (dlerror ());
12236 /* dlclose (self); */
12238 else
12239 puts (dlerror ());
12241 return status;
12243 _LT_EOF
12244 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12245 (eval $ac_link) 2>&5
12246 ac_status=$?
12247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12248 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12249 (./conftest; exit; ) >&5 2>/dev/null
12250 lt_status=$?
12251 case x$lt_status in
12252 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12253 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12254 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12255 esac
12256 else :
12257 # compilation failed
12258 lt_cv_dlopen_self_static=no
12261 rm -fr conftest*
12265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12266 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12269 CPPFLAGS="$save_CPPFLAGS"
12270 LDFLAGS="$save_LDFLAGS"
12271 LIBS="$save_LIBS"
12273 esac
12275 case $lt_cv_dlopen_self in
12276 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12277 *) enable_dlopen_self=unknown ;;
12278 esac
12280 case $lt_cv_dlopen_self_static in
12281 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12282 *) enable_dlopen_self_static=unknown ;;
12283 esac
12302 striplib=
12303 old_striplib=
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12305 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12306 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12307 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12308 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12310 $as_echo "yes" >&6; }
12311 else
12312 # FIXME - insert some real tests, host_os isn't really good enough
12313 case $host_os in
12314 darwin*)
12315 if test -n "$STRIP" ; then
12316 striplib="$STRIP -x"
12317 old_striplib="$STRIP -S"
12318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12319 $as_echo "yes" >&6; }
12320 else
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12322 $as_echo "no" >&6; }
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12327 $as_echo "no" >&6; }
12329 esac
12343 # Report which library types will actually be built
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12345 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12347 $as_echo "$can_build_shared" >&6; }
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12350 $as_echo_n "checking whether to build shared libraries... " >&6; }
12351 test "$can_build_shared" = "no" && enable_shared=no
12353 # On AIX, shared libraries and static libraries use the same namespace, and
12354 # are all built from PIC.
12355 case $host_os in
12356 aix3*)
12357 test "$enable_shared" = yes && enable_static=no
12358 if test -n "$RANLIB"; then
12359 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12360 postinstall_cmds='$RANLIB $lib'
12364 aix[4-9]*)
12365 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12366 test "$enable_shared" = yes && enable_static=no
12369 esac
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12371 $as_echo "$enable_shared" >&6; }
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12374 $as_echo_n "checking whether to build static libraries... " >&6; }
12375 # Make sure either enable_shared or enable_static is yes.
12376 test "$enable_shared" = yes || enable_static=yes
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12378 $as_echo "$enable_static" >&6; }
12384 ac_ext=c
12385 ac_cpp='$CPP $CPPFLAGS'
12386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12390 CC="$lt_save_CC"
12392 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12393 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12394 (test "X$CXX" != "Xg++"))) ; then
12395 ac_ext=cpp
12396 ac_cpp='$CXXCPP $CPPFLAGS'
12397 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12398 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12399 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12401 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12402 if test -z "$CXXCPP"; then
12403 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
12404 $as_echo_n "(cached) " >&6
12405 else
12406 # Double quotes because CXXCPP needs to be expanded
12407 for CXXCPP in "$CXX -E" "/lib/cpp"
12409 ac_preproc_ok=false
12410 for ac_cxx_preproc_warn_flag in '' yes
12412 # Use a header file that comes with gcc, so configuring glibc
12413 # with a fresh cross-compiler works.
12414 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12415 # <limits.h> exists even on freestanding compilers.
12416 # On the NeXT, cc -E runs the code through the compiler's parser,
12417 # not just through cpp. "Syntax error" is here to catch this case.
12418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12419 /* end confdefs.h. */
12420 #ifdef __STDC__
12421 # include <limits.h>
12422 #else
12423 # include <assert.h>
12424 #endif
12425 Syntax error
12426 _ACEOF
12427 if ac_fn_cxx_try_cpp "$LINENO"; then :
12429 else
12430 # Broken: fails on valid input.
12431 continue
12433 rm -f conftest.err conftest.$ac_ext
12435 # OK, works on sane cases. Now check whether nonexistent headers
12436 # can be detected and how.
12437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12438 /* end confdefs.h. */
12439 #include <ac_nonexistent.h>
12440 _ACEOF
12441 if ac_fn_cxx_try_cpp "$LINENO"; then :
12442 # Broken: success on invalid input.
12443 continue
12444 else
12445 # Passes both tests.
12446 ac_preproc_ok=:
12447 break
12449 rm -f conftest.err conftest.$ac_ext
12451 done
12452 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12453 rm -f conftest.err conftest.$ac_ext
12454 if $ac_preproc_ok; then :
12455 break
12458 done
12459 ac_cv_prog_CXXCPP=$CXXCPP
12462 CXXCPP=$ac_cv_prog_CXXCPP
12463 else
12464 ac_cv_prog_CXXCPP=$CXXCPP
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12467 $as_echo "$CXXCPP" >&6; }
12468 ac_preproc_ok=false
12469 for ac_cxx_preproc_warn_flag in '' yes
12471 # Use a header file that comes with gcc, so configuring glibc
12472 # with a fresh cross-compiler works.
12473 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12474 # <limits.h> exists even on freestanding compilers.
12475 # On the NeXT, cc -E runs the code through the compiler's parser,
12476 # not just through cpp. "Syntax error" is here to catch this case.
12477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12478 /* end confdefs.h. */
12479 #ifdef __STDC__
12480 # include <limits.h>
12481 #else
12482 # include <assert.h>
12483 #endif
12484 Syntax error
12485 _ACEOF
12486 if ac_fn_cxx_try_cpp "$LINENO"; then :
12488 else
12489 # Broken: fails on valid input.
12490 continue
12492 rm -f conftest.err conftest.$ac_ext
12494 # OK, works on sane cases. Now check whether nonexistent headers
12495 # can be detected and how.
12496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12497 /* end confdefs.h. */
12498 #include <ac_nonexistent.h>
12499 _ACEOF
12500 if ac_fn_cxx_try_cpp "$LINENO"; then :
12501 # Broken: success on invalid input.
12502 continue
12503 else
12504 # Passes both tests.
12505 ac_preproc_ok=:
12506 break
12508 rm -f conftest.err conftest.$ac_ext
12510 done
12511 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12512 rm -f conftest.err conftest.$ac_ext
12513 if $ac_preproc_ok; then :
12515 else
12516 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12517 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12518 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
12519 See \`config.log' for more details." "$LINENO" 5; }
12522 ac_ext=c
12523 ac_cpp='$CPP $CPPFLAGS'
12524 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12525 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12526 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12528 else
12529 _lt_caught_CXX_error=yes
12532 ac_ext=cpp
12533 ac_cpp='$CXXCPP $CPPFLAGS'
12534 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12535 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12536 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12538 archive_cmds_need_lc_CXX=no
12539 allow_undefined_flag_CXX=
12540 always_export_symbols_CXX=no
12541 archive_expsym_cmds_CXX=
12542 compiler_needs_object_CXX=no
12543 export_dynamic_flag_spec_CXX=
12544 hardcode_direct_CXX=no
12545 hardcode_direct_absolute_CXX=no
12546 hardcode_libdir_flag_spec_CXX=
12547 hardcode_libdir_flag_spec_ld_CXX=
12548 hardcode_libdir_separator_CXX=
12549 hardcode_minus_L_CXX=no
12550 hardcode_shlibpath_var_CXX=unsupported
12551 hardcode_automatic_CXX=no
12552 inherit_rpath_CXX=no
12553 module_cmds_CXX=
12554 module_expsym_cmds_CXX=
12555 link_all_deplibs_CXX=unknown
12556 old_archive_cmds_CXX=$old_archive_cmds
12557 reload_flag_CXX=$reload_flag
12558 reload_cmds_CXX=$reload_cmds
12559 no_undefined_flag_CXX=
12560 whole_archive_flag_spec_CXX=
12561 enable_shared_with_static_runtimes_CXX=no
12563 # Source file extension for C++ test sources.
12564 ac_ext=cpp
12566 # Object file extension for compiled C++ test sources.
12567 objext=o
12568 objext_CXX=$objext
12570 # No sense in running all these tests if we already determined that
12571 # the CXX compiler isn't working. Some variables (like enable_shared)
12572 # are currently assumed to apply to all compilers on this platform,
12573 # and will be corrupted by setting them based on a non-working compiler.
12574 if test "$_lt_caught_CXX_error" != yes; then
12575 # Code to be used in simple compile tests
12576 lt_simple_compile_test_code="int some_variable = 0;"
12578 # Code to be used in simple link tests
12579 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12581 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12588 # If no C compiler was specified, use CC.
12589 LTCC=${LTCC-"$CC"}
12591 # If no C compiler flags were specified, use CFLAGS.
12592 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12594 # Allow CC to be a program name with arguments.
12595 compiler=$CC
12598 # save warnings/boilerplate of simple test code
12599 ac_outfile=conftest.$ac_objext
12600 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12601 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12602 _lt_compiler_boilerplate=`cat conftest.err`
12603 $RM conftest*
12605 ac_outfile=conftest.$ac_objext
12606 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12607 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12608 _lt_linker_boilerplate=`cat conftest.err`
12609 $RM -r conftest*
12612 # Allow CC to be a program name with arguments.
12613 lt_save_CC=$CC
12614 lt_save_LD=$LD
12615 lt_save_GCC=$GCC
12616 GCC=$GXX
12617 lt_save_with_gnu_ld=$with_gnu_ld
12618 lt_save_path_LD=$lt_cv_path_LD
12619 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12620 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12621 else
12622 $as_unset lt_cv_prog_gnu_ld
12624 if test -n "${lt_cv_path_LDCXX+set}"; then
12625 lt_cv_path_LD=$lt_cv_path_LDCXX
12626 else
12627 $as_unset lt_cv_path_LD
12629 test -z "${LDCXX+set}" || LD=$LDCXX
12630 CC=${CXX-"c++"}
12631 compiler=$CC
12632 compiler_CXX=$CC
12633 for cc_temp in $compiler""; do
12634 case $cc_temp in
12635 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12636 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12637 \-*) ;;
12638 *) break;;
12639 esac
12640 done
12641 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12644 if test -n "$compiler"; then
12645 # We don't want -fno-exception when compiling C++ code, so set the
12646 # no_builtin_flag separately
12647 if test "$GXX" = yes; then
12648 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12649 else
12650 lt_prog_compiler_no_builtin_flag_CXX=
12653 if test "$GXX" = yes; then
12654 # Set up default GNU C++ configuration
12658 # Check whether --with-gnu-ld was given.
12659 if test "${with_gnu_ld+set}" = set; then :
12660 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12661 else
12662 with_gnu_ld=no
12665 ac_prog=ld
12666 if test "$GCC" = yes; then
12667 # Check if gcc -print-prog-name=ld gives a path.
12668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12669 $as_echo_n "checking for ld used by $CC... " >&6; }
12670 case $host in
12671 *-*-mingw*)
12672 # gcc leaves a trailing carriage return which upsets mingw
12673 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12675 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12676 esac
12677 case $ac_prog in
12678 # Accept absolute paths.
12679 [\\/]* | ?:[\\/]*)
12680 re_direlt='/[^/][^/]*/\.\./'
12681 # Canonicalize the pathname of ld
12682 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12683 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12684 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12685 done
12686 test -z "$LD" && LD="$ac_prog"
12689 # If it fails, then pretend we aren't using GCC.
12690 ac_prog=ld
12693 # If it is relative, then search for the first ld in PATH.
12694 with_gnu_ld=unknown
12696 esac
12697 elif test "$with_gnu_ld" = yes; then
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12699 $as_echo_n "checking for GNU ld... " >&6; }
12700 else
12701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12702 $as_echo_n "checking for non-GNU ld... " >&6; }
12704 if test "${lt_cv_path_LD+set}" = set; then :
12705 $as_echo_n "(cached) " >&6
12706 else
12707 if test -z "$LD"; then
12708 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12709 for ac_dir in $PATH; do
12710 IFS="$lt_save_ifs"
12711 test -z "$ac_dir" && ac_dir=.
12712 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12713 lt_cv_path_LD="$ac_dir/$ac_prog"
12714 # Check to see if the program is GNU ld. I'd rather use --version,
12715 # but apparently some variants of GNU ld only accept -v.
12716 # Break only if it was the GNU/non-GNU ld that we prefer.
12717 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12718 *GNU* | *'with BFD'*)
12719 test "$with_gnu_ld" != no && break
12722 test "$with_gnu_ld" != yes && break
12724 esac
12726 done
12727 IFS="$lt_save_ifs"
12728 else
12729 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12733 LD="$lt_cv_path_LD"
12734 if test -n "$LD"; then
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12736 $as_echo "$LD" >&6; }
12737 else
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12739 $as_echo "no" >&6; }
12741 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12743 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12744 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12745 $as_echo_n "(cached) " >&6
12746 else
12747 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12748 case `$LD -v 2>&1 </dev/null` in
12749 *GNU* | *'with BFD'*)
12750 lt_cv_prog_gnu_ld=yes
12753 lt_cv_prog_gnu_ld=no
12755 esac
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12758 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12759 with_gnu_ld=$lt_cv_prog_gnu_ld
12767 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12768 # archiving commands below assume that GNU ld is being used.
12769 if test "$with_gnu_ld" = yes; then
12770 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12771 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'
12773 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12774 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12776 # If archive_cmds runs LD, not CC, wlarc should be empty
12777 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12778 # investigate it a little bit more. (MM)
12779 wlarc='${wl}'
12781 # ancient GNU ld didn't support --whole-archive et. al.
12782 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12783 $GREP 'no-whole-archive' > /dev/null; then
12784 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12785 else
12786 whole_archive_flag_spec_CXX=
12788 else
12789 with_gnu_ld=no
12790 wlarc=
12792 # A generic and very simple default shared library creation
12793 # command for GNU C++ for the case where it uses the native
12794 # linker, instead of GNU ld. If possible, this setting should
12795 # overridden to take advantage of the native linker features on
12796 # the platform it is being used on.
12797 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12800 # Commands to make compiler produce verbose output that lists
12801 # what "hidden" libraries, object files and flags are used when
12802 # linking a shared library.
12803 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12805 else
12806 GXX=no
12807 with_gnu_ld=no
12808 wlarc=
12811 # PORTME: fill in a description of your system's C++ link characteristics
12812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12813 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12814 ld_shlibs_CXX=yes
12815 case $host_os in
12816 aix3*)
12817 # FIXME: insert proper C++ library support
12818 ld_shlibs_CXX=no
12820 aix[4-9]*)
12821 if test "$host_cpu" = ia64; then
12822 # On IA64, the linker does run time linking by default, so we don't
12823 # have to do anything special.
12824 aix_use_runtimelinking=no
12825 exp_sym_flag='-Bexport'
12826 no_entry_flag=""
12827 else
12828 aix_use_runtimelinking=no
12830 # Test if we are trying to use run time linking or normal
12831 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12832 # need to do runtime linking.
12833 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12834 for ld_flag in $LDFLAGS; do
12835 case $ld_flag in
12836 *-brtl*)
12837 aix_use_runtimelinking=yes
12838 break
12840 esac
12841 done
12843 esac
12845 exp_sym_flag='-bexport'
12846 no_entry_flag='-bnoentry'
12849 # When large executables or shared objects are built, AIX ld can
12850 # have problems creating the table of contents. If linking a library
12851 # or program results in "error TOC overflow" add -mminimal-toc to
12852 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12853 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12855 archive_cmds_CXX=''
12856 hardcode_direct_CXX=yes
12857 hardcode_direct_absolute_CXX=yes
12858 hardcode_libdir_separator_CXX=':'
12859 link_all_deplibs_CXX=yes
12860 file_list_spec_CXX='${wl}-f,'
12862 if test "$GXX" = yes; then
12863 case $host_os in aix4.[012]|aix4.[012].*)
12864 # We only want to do this on AIX 4.2 and lower, the check
12865 # below for broken collect2 doesn't work under 4.3+
12866 collect2name=`${CC} -print-prog-name=collect2`
12867 if test -f "$collect2name" &&
12868 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12869 then
12870 # We have reworked collect2
12872 else
12873 # We have old collect2
12874 hardcode_direct_CXX=unsupported
12875 # It fails to find uninstalled libraries when the uninstalled
12876 # path is not listed in the libpath. Setting hardcode_minus_L
12877 # to unsupported forces relinking
12878 hardcode_minus_L_CXX=yes
12879 hardcode_libdir_flag_spec_CXX='-L$libdir'
12880 hardcode_libdir_separator_CXX=
12882 esac
12883 shared_flag='-shared'
12884 if test "$aix_use_runtimelinking" = yes; then
12885 shared_flag="$shared_flag "'${wl}-G'
12887 else
12888 # not using gcc
12889 if test "$host_cpu" = ia64; then
12890 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12891 # chokes on -Wl,-G. The following line is correct:
12892 shared_flag='-G'
12893 else
12894 if test "$aix_use_runtimelinking" = yes; then
12895 shared_flag='${wl}-G'
12896 else
12897 shared_flag='${wl}-bM:SRE'
12902 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12903 # It seems that -bexpall does not export symbols beginning with
12904 # underscore (_), so it is better to generate a list of symbols to
12905 # export.
12906 always_export_symbols_CXX=yes
12907 if test "$aix_use_runtimelinking" = yes; then
12908 # Warning - without using the other runtime loading flags (-brtl),
12909 # -berok will link without error, but may produce a broken library.
12910 allow_undefined_flag_CXX='-berok'
12911 # Determine the default libpath from the value encoded in an empty
12912 # executable.
12913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12914 /* end confdefs.h. */
12917 main ()
12921 return 0;
12923 _ACEOF
12924 if ac_fn_cxx_try_link "$LINENO"; then :
12926 lt_aix_libpath_sed='
12927 /Import File Strings/,/^$/ {
12928 /^0/ {
12929 s/^0 *\(.*\)$/\1/
12933 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12934 # Check for a 64-bit object if we didn't find anything.
12935 if test -z "$aix_libpath"; then
12936 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12939 rm -f core conftest.err conftest.$ac_objext \
12940 conftest$ac_exeext conftest.$ac_ext
12941 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12943 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12945 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"
12946 else
12947 if test "$host_cpu" = ia64; then
12948 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12949 allow_undefined_flag_CXX="-z nodefs"
12950 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"
12951 else
12952 # Determine the default libpath from the value encoded in an
12953 # empty executable.
12954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12955 /* end confdefs.h. */
12958 main ()
12962 return 0;
12964 _ACEOF
12965 if ac_fn_cxx_try_link "$LINENO"; then :
12967 lt_aix_libpath_sed='
12968 /Import File Strings/,/^$/ {
12969 /^0/ {
12970 s/^0 *\(.*\)$/\1/
12974 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12975 # Check for a 64-bit object if we didn't find anything.
12976 if test -z "$aix_libpath"; then
12977 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12980 rm -f core conftest.err conftest.$ac_objext \
12981 conftest$ac_exeext conftest.$ac_ext
12982 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12984 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12985 # Warning - without using the other run time loading flags,
12986 # -berok will link without error, but may produce a broken library.
12987 no_undefined_flag_CXX=' ${wl}-bernotok'
12988 allow_undefined_flag_CXX=' ${wl}-berok'
12989 if test "$with_gnu_ld" = yes; then
12990 # We only use this code for GNU lds that support --whole-archive.
12991 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12992 else
12993 # Exported symbols can be pulled into shared objects from archives
12994 whole_archive_flag_spec_CXX='$convenience'
12996 archive_cmds_need_lc_CXX=yes
12997 # This is similar to how AIX traditionally builds its shared
12998 # libraries.
12999 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'
13004 beos*)
13005 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13006 allow_undefined_flag_CXX=unsupported
13007 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13008 # support --undefined. This deserves some investigation. FIXME
13009 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13010 else
13011 ld_shlibs_CXX=no
13015 chorus*)
13016 case $cc_basename in
13018 # FIXME: insert proper C++ library support
13019 ld_shlibs_CXX=no
13021 esac
13024 cygwin* | mingw* | pw32* | cegcc*)
13025 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13026 # as there is no search path for DLLs.
13027 hardcode_libdir_flag_spec_CXX='-L$libdir'
13028 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13029 allow_undefined_flag_CXX=unsupported
13030 always_export_symbols_CXX=no
13031 enable_shared_with_static_runtimes_CXX=yes
13033 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13034 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'
13035 # If the export-symbols file already is a .def file (1st line
13036 # is EXPORTS), use it as is; otherwise, prepend...
13037 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13038 cp $export_symbols $output_objdir/$soname.def;
13039 else
13040 echo EXPORTS > $output_objdir/$soname.def;
13041 cat $export_symbols >> $output_objdir/$soname.def;
13043 $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'
13044 else
13045 ld_shlibs_CXX=no
13048 darwin* | rhapsody*)
13051 archive_cmds_need_lc_CXX=no
13052 hardcode_direct_CXX=no
13053 hardcode_automatic_CXX=yes
13054 hardcode_shlibpath_var_CXX=unsupported
13055 if test "$lt_cv_ld_force_load" = "yes"; then
13056 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\"`'
13057 else
13058 whole_archive_flag_spec_CXX=''
13060 link_all_deplibs_CXX=yes
13061 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13062 case $cc_basename in
13063 ifort*) _lt_dar_can_shared=yes ;;
13064 *) _lt_dar_can_shared=$GCC ;;
13065 esac
13066 if test "$_lt_dar_can_shared" = "yes"; then
13067 output_verbose_link_cmd=func_echo_all
13068 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}"
13069 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13070 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}"
13071 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}"
13072 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13073 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}"
13074 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}"
13077 else
13078 ld_shlibs_CXX=no
13083 dgux*)
13084 case $cc_basename in
13085 ec++*)
13086 # FIXME: insert proper C++ library support
13087 ld_shlibs_CXX=no
13089 ghcx*)
13090 # Green Hills C++ Compiler
13091 # FIXME: insert proper C++ library support
13092 ld_shlibs_CXX=no
13095 # FIXME: insert proper C++ library support
13096 ld_shlibs_CXX=no
13098 esac
13101 freebsd2.*)
13102 # C++ shared libraries reported to be fairly broken before
13103 # switch to ELF
13104 ld_shlibs_CXX=no
13107 freebsd-elf*)
13108 archive_cmds_need_lc_CXX=no
13111 freebsd* | dragonfly*)
13112 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13113 # conventions
13114 ld_shlibs_CXX=yes
13117 gnu*)
13120 haiku*)
13121 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13122 link_all_deplibs_CXX=yes
13125 hpux9*)
13126 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13127 hardcode_libdir_separator_CXX=:
13128 export_dynamic_flag_spec_CXX='${wl}-E'
13129 hardcode_direct_CXX=yes
13130 hardcode_minus_L_CXX=yes # Not in the search PATH,
13131 # but as the default
13132 # location of the library.
13134 case $cc_basename in
13135 CC*)
13136 # FIXME: insert proper C++ library support
13137 ld_shlibs_CXX=no
13139 aCC*)
13140 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'
13141 # Commands to make compiler produce verbose output that lists
13142 # what "hidden" libraries, object files and flags are used when
13143 # linking a shared library.
13145 # There doesn't appear to be a way to prevent this compiler from
13146 # explicitly linking system object files so we need to strip them
13147 # from the output so that they don't get included in the library
13148 # dependencies.
13149 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"'
13152 if test "$GXX" = yes; then
13153 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'
13154 else
13155 # FIXME: insert proper C++ library support
13156 ld_shlibs_CXX=no
13159 esac
13162 hpux10*|hpux11*)
13163 if test $with_gnu_ld = no; then
13164 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13165 hardcode_libdir_separator_CXX=:
13167 case $host_cpu in
13168 hppa*64*|ia64*)
13171 export_dynamic_flag_spec_CXX='${wl}-E'
13173 esac
13175 case $host_cpu in
13176 hppa*64*|ia64*)
13177 hardcode_direct_CXX=no
13178 hardcode_shlibpath_var_CXX=no
13181 hardcode_direct_CXX=yes
13182 hardcode_direct_absolute_CXX=yes
13183 hardcode_minus_L_CXX=yes # Not in the search PATH,
13184 # but as the default
13185 # location of the library.
13187 esac
13189 case $cc_basename in
13190 CC*)
13191 # FIXME: insert proper C++ library support
13192 ld_shlibs_CXX=no
13194 aCC*)
13195 case $host_cpu in
13196 hppa*64*)
13197 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13199 ia64*)
13200 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13203 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13205 esac
13206 # Commands to make compiler produce verbose output that lists
13207 # what "hidden" libraries, object files and flags are used when
13208 # linking a shared library.
13210 # There doesn't appear to be a way to prevent this compiler from
13211 # explicitly linking system object files so we need to strip them
13212 # from the output so that they don't get included in the library
13213 # dependencies.
13214 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"'
13217 if test "$GXX" = yes; then
13218 if test $with_gnu_ld = no; then
13219 case $host_cpu in
13220 hppa*64*)
13221 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13223 ia64*)
13224 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13227 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'
13229 esac
13231 else
13232 # FIXME: insert proper C++ library support
13233 ld_shlibs_CXX=no
13236 esac
13239 interix[3-9]*)
13240 hardcode_direct_CXX=no
13241 hardcode_shlibpath_var_CXX=no
13242 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13243 export_dynamic_flag_spec_CXX='${wl}-E'
13244 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13245 # Instead, shared libraries are loaded at an image base (0x10000000 by
13246 # default) and relocated if they conflict, which is a slow very memory
13247 # consuming and fragmenting process. To avoid this, we pick a random,
13248 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13249 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13250 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'
13251 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'
13253 irix5* | irix6*)
13254 case $cc_basename in
13255 CC*)
13256 # SGI C++
13257 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'
13259 # Archives containing C++ object files must be created using
13260 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13261 # necessary to make sure instantiated templates are included
13262 # in the archive.
13263 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13266 if test "$GXX" = yes; then
13267 if test "$with_gnu_ld" = no; then
13268 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'
13269 else
13270 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'
13273 link_all_deplibs_CXX=yes
13275 esac
13276 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13277 hardcode_libdir_separator_CXX=:
13278 inherit_rpath_CXX=yes
13281 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13282 case $cc_basename in
13283 KCC*)
13284 # Kuck and Associates, Inc. (KAI) C++ Compiler
13286 # KCC will only create a shared library if the output file
13287 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13288 # to its proper name (with version) after linking.
13289 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'
13290 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'
13291 # Commands to make compiler produce verbose output that lists
13292 # what "hidden" libraries, object files and flags are used when
13293 # linking a shared library.
13295 # There doesn't appear to be a way to prevent this compiler from
13296 # explicitly linking system object files so we need to strip them
13297 # from the output so that they don't get included in the library
13298 # dependencies.
13299 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"'
13301 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13302 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13304 # Archives containing C++ object files must be created using
13305 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13306 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13308 icpc* | ecpc* )
13309 # Intel C++
13310 with_gnu_ld=yes
13311 # version 8.0 and above of icpc choke on multiply defined symbols
13312 # if we add $predep_objects and $postdep_objects, however 7.1 and
13313 # earlier do not add the objects themselves.
13314 case `$CC -V 2>&1` in
13315 *"Version 7."*)
13316 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13317 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'
13319 *) # Version 8.0 or newer
13320 tmp_idyn=
13321 case $host_cpu in
13322 ia64*) tmp_idyn=' -i_dynamic';;
13323 esac
13324 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13325 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'
13327 esac
13328 archive_cmds_need_lc_CXX=no
13329 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13330 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13331 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13333 pgCC* | pgcpp*)
13334 # Portland Group C++ compiler
13335 case `$CC -V` in
13336 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13337 prelink_cmds_CXX='tpldir=Template.dir~
13338 rm -rf $tpldir~
13339 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13340 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13341 old_archive_cmds_CXX='tpldir=Template.dir~
13342 rm -rf $tpldir~
13343 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13344 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13345 $RANLIB $oldlib'
13346 archive_cmds_CXX='tpldir=Template.dir~
13347 rm -rf $tpldir~
13348 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13349 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13350 archive_expsym_cmds_CXX='tpldir=Template.dir~
13351 rm -rf $tpldir~
13352 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13353 $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'
13355 *) # Version 6 and above use weak symbols
13356 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13357 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'
13359 esac
13361 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13362 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13363 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'
13365 cxx*)
13366 # Compaq C++
13367 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13368 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'
13370 runpath_var=LD_RUN_PATH
13371 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13372 hardcode_libdir_separator_CXX=:
13374 # Commands to make compiler produce verbose output that lists
13375 # what "hidden" libraries, object files and flags are used when
13376 # linking a shared library.
13378 # There doesn't appear to be a way to prevent this compiler from
13379 # explicitly linking system object files so we need to strip them
13380 # from the output so that they don't get included in the library
13381 # dependencies.
13382 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'
13384 xl* | mpixl* | bgxl*)
13385 # IBM XL 8.0 on PPC, with GNU ld
13386 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13387 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13388 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13389 if test "x$supports_anon_versioning" = xyes; then
13390 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13391 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13392 echo "local: *; };" >> $output_objdir/$libname.ver~
13393 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13397 case `$CC -V 2>&1 | sed 5q` in
13398 *Sun\ C*)
13399 # Sun C++ 5.9
13400 no_undefined_flag_CXX=' -zdefs'
13401 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13402 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'
13403 hardcode_libdir_flag_spec_CXX='-R$libdir'
13404 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'
13405 compiler_needs_object_CXX=yes
13407 # Not sure whether something based on
13408 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13409 # would be better.
13410 output_verbose_link_cmd='func_echo_all'
13412 # Archives containing C++ object files must be created using
13413 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13414 # necessary to make sure instantiated templates are included
13415 # in the archive.
13416 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13418 esac
13420 esac
13423 lynxos*)
13424 # FIXME: insert proper C++ library support
13425 ld_shlibs_CXX=no
13428 m88k*)
13429 # FIXME: insert proper C++ library support
13430 ld_shlibs_CXX=no
13433 mvs*)
13434 case $cc_basename in
13435 cxx*)
13436 # FIXME: insert proper C++ library support
13437 ld_shlibs_CXX=no
13440 # FIXME: insert proper C++ library support
13441 ld_shlibs_CXX=no
13443 esac
13446 netbsd*)
13447 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13448 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13449 wlarc=
13450 hardcode_libdir_flag_spec_CXX='-R$libdir'
13451 hardcode_direct_CXX=yes
13452 hardcode_shlibpath_var_CXX=no
13454 # Workaround some broken pre-1.5 toolchains
13455 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13458 *nto* | *qnx*)
13459 ld_shlibs_CXX=yes
13462 openbsd2*)
13463 # C++ shared libraries are fairly broken
13464 ld_shlibs_CXX=no
13467 openbsd*)
13468 if test -f /usr/libexec/ld.so; then
13469 hardcode_direct_CXX=yes
13470 hardcode_shlibpath_var_CXX=no
13471 hardcode_direct_absolute_CXX=yes
13472 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13473 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13474 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13475 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13476 export_dynamic_flag_spec_CXX='${wl}-E'
13477 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13479 output_verbose_link_cmd=func_echo_all
13480 else
13481 ld_shlibs_CXX=no
13485 osf3* | osf4* | osf5*)
13486 case $cc_basename in
13487 KCC*)
13488 # Kuck and Associates, Inc. (KAI) C++ Compiler
13490 # KCC will only create a shared library if the output file
13491 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13492 # to its proper name (with version) after linking.
13493 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'
13495 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13496 hardcode_libdir_separator_CXX=:
13498 # Archives containing C++ object files must be created using
13499 # the KAI C++ compiler.
13500 case $host in
13501 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13502 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13503 esac
13505 RCC*)
13506 # Rational C++ 2.4.1
13507 # FIXME: insert proper C++ library support
13508 ld_shlibs_CXX=no
13510 cxx*)
13511 case $host in
13512 osf3*)
13513 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13514 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'
13515 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13518 allow_undefined_flag_CXX=' -expect_unresolved \*'
13519 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'
13520 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13521 echo "-hidden">> $lib.exp~
13522 $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~
13523 $RM $lib.exp'
13524 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13526 esac
13528 hardcode_libdir_separator_CXX=:
13530 # Commands to make compiler produce verbose output that lists
13531 # what "hidden" libraries, object files and flags are used when
13532 # linking a shared library.
13534 # There doesn't appear to be a way to prevent this compiler from
13535 # explicitly linking system object files so we need to strip them
13536 # from the output so that they don't get included in the library
13537 # dependencies.
13538 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"'
13541 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13542 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13543 case $host in
13544 osf3*)
13545 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'
13548 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'
13550 esac
13552 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13553 hardcode_libdir_separator_CXX=:
13555 # Commands to make compiler produce verbose output that lists
13556 # what "hidden" libraries, object files and flags are used when
13557 # linking a shared library.
13558 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13560 else
13561 # FIXME: insert proper C++ library support
13562 ld_shlibs_CXX=no
13565 esac
13568 psos*)
13569 # FIXME: insert proper C++ library support
13570 ld_shlibs_CXX=no
13573 sunos4*)
13574 case $cc_basename in
13575 CC*)
13576 # Sun C++ 4.x
13577 # FIXME: insert proper C++ library support
13578 ld_shlibs_CXX=no
13580 lcc*)
13581 # Lucid
13582 # FIXME: insert proper C++ library support
13583 ld_shlibs_CXX=no
13586 # FIXME: insert proper C++ library support
13587 ld_shlibs_CXX=no
13589 esac
13592 solaris*)
13593 case $cc_basename in
13594 CC*)
13595 # Sun C++ 4.2, 5.x and Centerline C++
13596 archive_cmds_need_lc_CXX=yes
13597 no_undefined_flag_CXX=' -zdefs'
13598 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13599 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13600 $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'
13602 hardcode_libdir_flag_spec_CXX='-R$libdir'
13603 hardcode_shlibpath_var_CXX=no
13604 case $host_os in
13605 solaris2.[0-5] | solaris2.[0-5].*) ;;
13607 # The compiler driver will combine and reorder linker options,
13608 # but understands `-z linker_flag'.
13609 # Supported since Solaris 2.6 (maybe 2.5.1?)
13610 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13612 esac
13613 link_all_deplibs_CXX=yes
13615 output_verbose_link_cmd='func_echo_all'
13617 # Archives containing C++ object files must be created using
13618 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13619 # necessary to make sure instantiated templates are included
13620 # in the archive.
13621 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13623 gcx*)
13624 # Green Hills C++ Compiler
13625 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13627 # The C++ compiler must be used to create the archive.
13628 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13631 # GNU C++ compiler with Solaris linker
13632 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13633 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13634 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13635 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13636 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13637 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13639 # Commands to make compiler produce verbose output that lists
13640 # what "hidden" libraries, object files and flags are used when
13641 # linking a shared library.
13642 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13643 else
13644 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13645 # platform.
13646 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13647 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13648 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13650 # Commands to make compiler produce verbose output that lists
13651 # what "hidden" libraries, object files and flags are used when
13652 # linking a shared library.
13653 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13656 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13657 case $host_os in
13658 solaris2.[0-5] | solaris2.[0-5].*) ;;
13660 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13662 esac
13665 esac
13668 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13669 no_undefined_flag_CXX='${wl}-z,text'
13670 archive_cmds_need_lc_CXX=no
13671 hardcode_shlibpath_var_CXX=no
13672 runpath_var='LD_RUN_PATH'
13674 case $cc_basename in
13675 CC*)
13676 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13677 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13680 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13681 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13683 esac
13686 sysv5* | sco3.2v5* | sco5v6*)
13687 # Note: We can NOT use -z defs as we might desire, because we do not
13688 # link with -lc, and that would cause any symbols used from libc to
13689 # always be unresolved, which means just about no library would
13690 # ever link correctly. If we're not using GNU ld we use -z text
13691 # though, which does catch some bad symbols but isn't as heavy-handed
13692 # as -z defs.
13693 no_undefined_flag_CXX='${wl}-z,text'
13694 allow_undefined_flag_CXX='${wl}-z,nodefs'
13695 archive_cmds_need_lc_CXX=no
13696 hardcode_shlibpath_var_CXX=no
13697 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13698 hardcode_libdir_separator_CXX=':'
13699 link_all_deplibs_CXX=yes
13700 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13701 runpath_var='LD_RUN_PATH'
13703 case $cc_basename in
13704 CC*)
13705 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13706 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13707 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13708 '"$old_archive_cmds_CXX"
13709 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13710 '"$reload_cmds_CXX"
13713 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13714 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13716 esac
13719 tandem*)
13720 case $cc_basename in
13721 NCC*)
13722 # NonStop-UX NCC 3.20
13723 # FIXME: insert proper C++ library support
13724 ld_shlibs_CXX=no
13727 # FIXME: insert proper C++ library support
13728 ld_shlibs_CXX=no
13730 esac
13733 vxworks*)
13734 # FIXME: insert proper C++ library support
13735 ld_shlibs_CXX=no
13739 # FIXME: insert proper C++ library support
13740 ld_shlibs_CXX=no
13742 esac
13744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13745 $as_echo "$ld_shlibs_CXX" >&6; }
13746 test "$ld_shlibs_CXX" = no && can_build_shared=no
13748 GCC_CXX="$GXX"
13749 LD_CXX="$LD"
13751 ## CAVEAT EMPTOR:
13752 ## There is no encapsulation within the following macros, do not change
13753 ## the running order or otherwise move them around unless you know exactly
13754 ## what you are doing...
13755 # Dependencies to place before and after the object being linked:
13756 predep_objects_CXX=
13757 postdep_objects_CXX=
13758 predeps_CXX=
13759 postdeps_CXX=
13760 compiler_lib_search_path_CXX=
13762 cat > conftest.$ac_ext <<_LT_EOF
13763 class Foo
13765 public:
13766 Foo (void) { a = 0; }
13767 private:
13768 int a;
13770 _LT_EOF
13772 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13773 (eval $ac_compile) 2>&5
13774 ac_status=$?
13775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13776 test $ac_status = 0; }; then
13777 # Parse the compiler output and extract the necessary
13778 # objects, libraries and library flags.
13780 # Sentinel used to keep track of whether or not we are before
13781 # the conftest object file.
13782 pre_test_object_deps_done=no
13784 for p in `eval "$output_verbose_link_cmd"`; do
13785 case $p in
13787 -L* | -R* | -l*)
13788 # Some compilers place space between "-{L,R}" and the path.
13789 # Remove the space.
13790 if test $p = "-L" ||
13791 test $p = "-R"; then
13792 prev=$p
13793 continue
13794 else
13795 prev=
13798 if test "$pre_test_object_deps_done" = no; then
13799 case $p in
13800 -L* | -R*)
13801 # Internal compiler library paths should come after those
13802 # provided the user. The postdeps already come after the
13803 # user supplied libs so there is no need to process them.
13804 if test -z "$compiler_lib_search_path_CXX"; then
13805 compiler_lib_search_path_CXX="${prev}${p}"
13806 else
13807 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13810 # The "-l" case would never come before the object being
13811 # linked, so don't bother handling this case.
13812 esac
13813 else
13814 if test -z "$postdeps_CXX"; then
13815 postdeps_CXX="${prev}${p}"
13816 else
13817 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13822 *.$objext)
13823 # This assumes that the test object file only shows up
13824 # once in the compiler output.
13825 if test "$p" = "conftest.$objext"; then
13826 pre_test_object_deps_done=yes
13827 continue
13830 if test "$pre_test_object_deps_done" = no; then
13831 if test -z "$predep_objects_CXX"; then
13832 predep_objects_CXX="$p"
13833 else
13834 predep_objects_CXX="$predep_objects_CXX $p"
13836 else
13837 if test -z "$postdep_objects_CXX"; then
13838 postdep_objects_CXX="$p"
13839 else
13840 postdep_objects_CXX="$postdep_objects_CXX $p"
13845 *) ;; # Ignore the rest.
13847 esac
13848 done
13850 # Clean up.
13851 rm -f a.out a.exe
13852 else
13853 echo "libtool.m4: error: problem compiling CXX test program"
13856 $RM -f confest.$objext
13858 # PORTME: override above test on systems where it is broken
13859 case $host_os in
13860 interix[3-9]*)
13861 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13862 # hack all around it, let's just trust "g++" to DTRT.
13863 predep_objects_CXX=
13864 postdep_objects_CXX=
13865 postdeps_CXX=
13868 linux*)
13869 case `$CC -V 2>&1 | sed 5q` in
13870 *Sun\ C*)
13871 # Sun C++ 5.9
13873 # The more standards-conforming stlport4 library is
13874 # incompatible with the Cstd library. Avoid specifying
13875 # it if it's in CXXFLAGS. Ignore libCrun as
13876 # -library=stlport4 depends on it.
13877 case " $CXX $CXXFLAGS " in
13878 *" -library=stlport4 "*)
13879 solaris_use_stlport4=yes
13881 esac
13883 if test "$solaris_use_stlport4" != yes; then
13884 postdeps_CXX='-library=Cstd -library=Crun'
13887 esac
13890 solaris*)
13891 case $cc_basename in
13892 CC*)
13893 # The more standards-conforming stlport4 library is
13894 # incompatible with the Cstd library. Avoid specifying
13895 # it if it's in CXXFLAGS. Ignore libCrun as
13896 # -library=stlport4 depends on it.
13897 case " $CXX $CXXFLAGS " in
13898 *" -library=stlport4 "*)
13899 solaris_use_stlport4=yes
13901 esac
13903 # Adding this requires a known-good setup of shared libraries for
13904 # Sun compiler versions before 5.6, else PIC objects from an old
13905 # archive will be linked into the output, leading to subtle bugs.
13906 if test "$solaris_use_stlport4" != yes; then
13907 postdeps_CXX='-library=Cstd -library=Crun'
13910 esac
13912 esac
13915 case " $postdeps_CXX " in
13916 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13917 esac
13918 compiler_lib_search_dirs_CXX=
13919 if test -n "${compiler_lib_search_path_CXX}"; then
13920 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13953 lt_prog_compiler_wl_CXX=
13954 lt_prog_compiler_pic_CXX=
13955 lt_prog_compiler_static_CXX=
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13958 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13960 # C++ specific cases for pic, static, wl, etc.
13961 if test "$GXX" = yes; then
13962 lt_prog_compiler_wl_CXX='-Wl,'
13963 lt_prog_compiler_static_CXX='-static'
13965 case $host_os in
13966 aix*)
13967 # All AIX code is PIC.
13968 if test "$host_cpu" = ia64; then
13969 # AIX 5 now supports IA64 processor
13970 lt_prog_compiler_static_CXX='-Bstatic'
13972 lt_prog_compiler_pic_CXX='-fPIC'
13975 amigaos*)
13976 case $host_cpu in
13977 powerpc)
13978 # see comment about AmigaOS4 .so support
13979 lt_prog_compiler_pic_CXX='-fPIC'
13981 m68k)
13982 # FIXME: we need at least 68020 code to build shared libraries, but
13983 # adding the `-m68020' flag to GCC prevents building anything better,
13984 # like `-m68040'.
13985 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13987 esac
13990 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13991 # PIC is the default for these OSes.
13993 mingw* | cygwin* | os2* | pw32* | cegcc*)
13994 # This hack is so that the source file can tell whether it is being
13995 # built for inclusion in a dll (and should export symbols for example).
13996 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13997 # (--disable-auto-import) libraries
13998 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14000 darwin* | rhapsody*)
14001 # PIC is the default on this platform
14002 # Common symbols not allowed in MH_DYLIB files
14003 lt_prog_compiler_pic_CXX='-fno-common'
14005 *djgpp*)
14006 # DJGPP does not support shared libraries at all
14007 lt_prog_compiler_pic_CXX=
14009 haiku*)
14010 # PIC is the default for Haiku.
14011 # The "-static" flag exists, but is broken.
14012 lt_prog_compiler_static_CXX=
14014 interix[3-9]*)
14015 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14016 # Instead, we relocate shared libraries at runtime.
14018 sysv4*MP*)
14019 if test -d /usr/nec; then
14020 lt_prog_compiler_pic_CXX=-Kconform_pic
14023 hpux*)
14024 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14025 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14026 # sets the default TLS model and affects inlining.
14027 case $host_cpu in
14028 hppa*64*)
14031 lt_prog_compiler_pic_CXX='-fPIC'
14033 esac
14035 *qnx* | *nto*)
14036 # QNX uses GNU C++, but need to define -shared option too, otherwise
14037 # it will coredump.
14038 lt_prog_compiler_pic_CXX='-fPIC -shared'
14041 lt_prog_compiler_pic_CXX='-fPIC'
14043 esac
14044 else
14045 case $host_os in
14046 aix[4-9]*)
14047 # All AIX code is PIC.
14048 if test "$host_cpu" = ia64; then
14049 # AIX 5 now supports IA64 processor
14050 lt_prog_compiler_static_CXX='-Bstatic'
14051 else
14052 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14055 chorus*)
14056 case $cc_basename in
14057 cxch68*)
14058 # Green Hills C++ Compiler
14059 # _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"
14061 esac
14063 dgux*)
14064 case $cc_basename in
14065 ec++*)
14066 lt_prog_compiler_pic_CXX='-KPIC'
14068 ghcx*)
14069 # Green Hills C++ Compiler
14070 lt_prog_compiler_pic_CXX='-pic'
14074 esac
14076 freebsd* | dragonfly*)
14077 # FreeBSD uses GNU C++
14079 hpux9* | hpux10* | hpux11*)
14080 case $cc_basename in
14081 CC*)
14082 lt_prog_compiler_wl_CXX='-Wl,'
14083 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14084 if test "$host_cpu" != ia64; then
14085 lt_prog_compiler_pic_CXX='+Z'
14088 aCC*)
14089 lt_prog_compiler_wl_CXX='-Wl,'
14090 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14091 case $host_cpu in
14092 hppa*64*|ia64*)
14093 # +Z the default
14096 lt_prog_compiler_pic_CXX='+Z'
14098 esac
14102 esac
14104 interix*)
14105 # This is c89, which is MS Visual C++ (no shared libs)
14106 # Anyone wants to do a port?
14108 irix5* | irix6* | nonstopux*)
14109 case $cc_basename in
14110 CC*)
14111 lt_prog_compiler_wl_CXX='-Wl,'
14112 lt_prog_compiler_static_CXX='-non_shared'
14113 # CC pic flag -KPIC is the default.
14117 esac
14119 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14120 case $cc_basename in
14121 KCC*)
14122 # KAI C++ Compiler
14123 lt_prog_compiler_wl_CXX='--backend -Wl,'
14124 lt_prog_compiler_pic_CXX='-fPIC'
14126 ecpc* )
14127 # old Intel C++ for x86_64 which still supported -KPIC.
14128 lt_prog_compiler_wl_CXX='-Wl,'
14129 lt_prog_compiler_pic_CXX='-KPIC'
14130 lt_prog_compiler_static_CXX='-static'
14132 icpc* )
14133 # Intel C++, used to be incompatible with GCC.
14134 # ICC 10 doesn't accept -KPIC any more.
14135 lt_prog_compiler_wl_CXX='-Wl,'
14136 lt_prog_compiler_pic_CXX='-fPIC'
14137 lt_prog_compiler_static_CXX='-static'
14139 pgCC* | pgcpp*)
14140 # Portland Group C++ compiler
14141 lt_prog_compiler_wl_CXX='-Wl,'
14142 lt_prog_compiler_pic_CXX='-fpic'
14143 lt_prog_compiler_static_CXX='-Bstatic'
14145 cxx*)
14146 # Compaq C++
14147 # Make sure the PIC flag is empty. It appears that all Alpha
14148 # Linux and Compaq Tru64 Unix objects are PIC.
14149 lt_prog_compiler_pic_CXX=
14150 lt_prog_compiler_static_CXX='-non_shared'
14152 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14153 # IBM XL 8.0, 9.0 on PPC and BlueGene
14154 lt_prog_compiler_wl_CXX='-Wl,'
14155 lt_prog_compiler_pic_CXX='-qpic'
14156 lt_prog_compiler_static_CXX='-qstaticlink'
14159 case `$CC -V 2>&1 | sed 5q` in
14160 *Sun\ C*)
14161 # Sun C++ 5.9
14162 lt_prog_compiler_pic_CXX='-KPIC'
14163 lt_prog_compiler_static_CXX='-Bstatic'
14164 lt_prog_compiler_wl_CXX='-Qoption ld '
14166 esac
14168 esac
14170 lynxos*)
14172 m88k*)
14174 mvs*)
14175 case $cc_basename in
14176 cxx*)
14177 lt_prog_compiler_pic_CXX='-W c,exportall'
14181 esac
14183 netbsd*)
14185 *qnx* | *nto*)
14186 # QNX uses GNU C++, but need to define -shared option too, otherwise
14187 # it will coredump.
14188 lt_prog_compiler_pic_CXX='-fPIC -shared'
14190 osf3* | osf4* | osf5*)
14191 case $cc_basename in
14192 KCC*)
14193 lt_prog_compiler_wl_CXX='--backend -Wl,'
14195 RCC*)
14196 # Rational C++ 2.4.1
14197 lt_prog_compiler_pic_CXX='-pic'
14199 cxx*)
14200 # Digital/Compaq C++
14201 lt_prog_compiler_wl_CXX='-Wl,'
14202 # Make sure the PIC flag is empty. It appears that all Alpha
14203 # Linux and Compaq Tru64 Unix objects are PIC.
14204 lt_prog_compiler_pic_CXX=
14205 lt_prog_compiler_static_CXX='-non_shared'
14209 esac
14211 psos*)
14213 solaris*)
14214 case $cc_basename in
14215 CC*)
14216 # Sun C++ 4.2, 5.x and Centerline C++
14217 lt_prog_compiler_pic_CXX='-KPIC'
14218 lt_prog_compiler_static_CXX='-Bstatic'
14219 lt_prog_compiler_wl_CXX='-Qoption ld '
14221 gcx*)
14222 # Green Hills C++ Compiler
14223 lt_prog_compiler_pic_CXX='-PIC'
14227 esac
14229 sunos4*)
14230 case $cc_basename in
14231 CC*)
14232 # Sun C++ 4.x
14233 lt_prog_compiler_pic_CXX='-pic'
14234 lt_prog_compiler_static_CXX='-Bstatic'
14236 lcc*)
14237 # Lucid
14238 lt_prog_compiler_pic_CXX='-pic'
14242 esac
14244 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14245 case $cc_basename in
14246 CC*)
14247 lt_prog_compiler_wl_CXX='-Wl,'
14248 lt_prog_compiler_pic_CXX='-KPIC'
14249 lt_prog_compiler_static_CXX='-Bstatic'
14251 esac
14253 tandem*)
14254 case $cc_basename in
14255 NCC*)
14256 # NonStop-UX NCC 3.20
14257 lt_prog_compiler_pic_CXX='-KPIC'
14261 esac
14263 vxworks*)
14266 lt_prog_compiler_can_build_shared_CXX=no
14268 esac
14271 case $host_os in
14272 # For platforms which do not support PIC, -DPIC is meaningless:
14273 *djgpp*)
14274 lt_prog_compiler_pic_CXX=
14277 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14279 esac
14280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14281 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14286 # Check to make sure the PIC flag actually works.
14288 if test -n "$lt_prog_compiler_pic_CXX"; then
14289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14290 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14291 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
14292 $as_echo_n "(cached) " >&6
14293 else
14294 lt_cv_prog_compiler_pic_works_CXX=no
14295 ac_outfile=conftest.$ac_objext
14296 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14297 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14298 # Insert the option either (1) after the last *FLAGS variable, or
14299 # (2) before a word containing "conftest.", or (3) at the end.
14300 # Note that $ac_compile itself does not contain backslashes and begins
14301 # with a dollar sign (not a hyphen), so the echo should work correctly.
14302 # The option is referenced via a variable to avoid confusing sed.
14303 lt_compile=`echo "$ac_compile" | $SED \
14304 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14305 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14306 -e 's:$: $lt_compiler_flag:'`
14307 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14308 (eval "$lt_compile" 2>conftest.err)
14309 ac_status=$?
14310 cat conftest.err >&5
14311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14312 if (exit $ac_status) && test -s "$ac_outfile"; then
14313 # The compiler can only warn and ignore the option if not recognized
14314 # So say no if there are warnings other than the usual output.
14315 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14316 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14317 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14318 lt_cv_prog_compiler_pic_works_CXX=yes
14321 $RM conftest*
14324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14325 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14327 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14328 case $lt_prog_compiler_pic_CXX in
14329 "" | " "*) ;;
14330 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14331 esac
14332 else
14333 lt_prog_compiler_pic_CXX=
14334 lt_prog_compiler_can_build_shared_CXX=no
14342 # Check to make sure the static flag actually works.
14344 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14346 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14347 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
14348 $as_echo_n "(cached) " >&6
14349 else
14350 lt_cv_prog_compiler_static_works_CXX=no
14351 save_LDFLAGS="$LDFLAGS"
14352 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14353 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14354 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14355 # The linker can only warn and ignore the option if not recognized
14356 # So say no if there are warnings
14357 if test -s conftest.err; then
14358 # Append any errors to the config.log.
14359 cat conftest.err 1>&5
14360 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14361 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14362 if diff conftest.exp conftest.er2 >/dev/null; then
14363 lt_cv_prog_compiler_static_works_CXX=yes
14365 else
14366 lt_cv_prog_compiler_static_works_CXX=yes
14369 $RM -r conftest*
14370 LDFLAGS="$save_LDFLAGS"
14373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14374 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14376 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14378 else
14379 lt_prog_compiler_static_CXX=
14385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14386 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14387 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14388 $as_echo_n "(cached) " >&6
14389 else
14390 lt_cv_prog_compiler_c_o_CXX=no
14391 $RM -r conftest 2>/dev/null
14392 mkdir conftest
14393 cd conftest
14394 mkdir out
14395 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14397 lt_compiler_flag="-o out/conftest2.$ac_objext"
14398 # Insert the option either (1) after the last *FLAGS variable, or
14399 # (2) before a word containing "conftest.", or (3) at the end.
14400 # Note that $ac_compile itself does not contain backslashes and begins
14401 # with a dollar sign (not a hyphen), so the echo should work correctly.
14402 lt_compile=`echo "$ac_compile" | $SED \
14403 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14404 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14405 -e 's:$: $lt_compiler_flag:'`
14406 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14407 (eval "$lt_compile" 2>out/conftest.err)
14408 ac_status=$?
14409 cat out/conftest.err >&5
14410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14411 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14412 then
14413 # The compiler can only warn and ignore the option if not recognized
14414 # So say no if there are warnings
14415 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14416 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14417 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14418 lt_cv_prog_compiler_c_o_CXX=yes
14421 chmod u+w . 2>&5
14422 $RM conftest*
14423 # SGI C++ compiler will create directory out/ii_files/ for
14424 # template instantiation
14425 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14426 $RM out/* && rmdir out
14427 cd ..
14428 $RM -r conftest
14429 $RM conftest*
14432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14433 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14438 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14439 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14440 $as_echo_n "(cached) " >&6
14441 else
14442 lt_cv_prog_compiler_c_o_CXX=no
14443 $RM -r conftest 2>/dev/null
14444 mkdir conftest
14445 cd conftest
14446 mkdir out
14447 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14449 lt_compiler_flag="-o out/conftest2.$ac_objext"
14450 # Insert the option either (1) after the last *FLAGS variable, or
14451 # (2) before a word containing "conftest.", or (3) at the end.
14452 # Note that $ac_compile itself does not contain backslashes and begins
14453 # with a dollar sign (not a hyphen), so the echo should work correctly.
14454 lt_compile=`echo "$ac_compile" | $SED \
14455 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14456 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14457 -e 's:$: $lt_compiler_flag:'`
14458 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14459 (eval "$lt_compile" 2>out/conftest.err)
14460 ac_status=$?
14461 cat out/conftest.err >&5
14462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14463 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14464 then
14465 # The compiler can only warn and ignore the option if not recognized
14466 # So say no if there are warnings
14467 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14468 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14469 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14470 lt_cv_prog_compiler_c_o_CXX=yes
14473 chmod u+w . 2>&5
14474 $RM conftest*
14475 # SGI C++ compiler will create directory out/ii_files/ for
14476 # template instantiation
14477 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14478 $RM out/* && rmdir out
14479 cd ..
14480 $RM -r conftest
14481 $RM conftest*
14484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14485 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14490 hard_links="nottested"
14491 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14492 # do not overwrite the value of need_locks provided by the user
14493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14494 $as_echo_n "checking if we can lock with hard links... " >&6; }
14495 hard_links=yes
14496 $RM conftest*
14497 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14498 touch conftest.a
14499 ln conftest.a conftest.b 2>&5 || hard_links=no
14500 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14502 $as_echo "$hard_links" >&6; }
14503 if test "$hard_links" = no; then
14504 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14505 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14506 need_locks=warn
14508 else
14509 need_locks=no
14514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14515 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14517 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14518 case $host_os in
14519 aix[4-9]*)
14520 # If we're using GNU nm, then we don't want the "-C" option.
14521 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14522 # Also, AIX nm treats weak defined symbols like other global defined
14523 # symbols, whereas GNU nm marks them as "W".
14524 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14525 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'
14526 else
14527 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14530 pw32*)
14531 export_symbols_cmds_CXX="$ltdll_cmds"
14533 cygwin* | mingw* | cegcc*)
14534 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'
14537 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14539 esac
14540 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14543 $as_echo "$ld_shlibs_CXX" >&6; }
14544 test "$ld_shlibs_CXX" = no && can_build_shared=no
14546 with_gnu_ld_CXX=$with_gnu_ld
14554 # Do we need to explicitly link libc?
14556 case "x$archive_cmds_need_lc_CXX" in
14557 x|xyes)
14558 # Assume -lc should be added
14559 archive_cmds_need_lc_CXX=yes
14561 if test "$enable_shared" = yes && test "$GCC" = yes; then
14562 case $archive_cmds_CXX in
14563 *'~'*)
14564 # FIXME: we may have to deal with multi-command sequences.
14566 '$CC '*)
14567 # Test whether the compiler implicitly links with -lc since on some
14568 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14569 # to ld, don't add -lc before -lgcc.
14570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14571 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14572 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
14573 $as_echo_n "(cached) " >&6
14574 else
14575 $RM conftest*
14576 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14578 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14579 (eval $ac_compile) 2>&5
14580 ac_status=$?
14581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14582 test $ac_status = 0; } 2>conftest.err; then
14583 soname=conftest
14584 lib=conftest
14585 libobjs=conftest.$ac_objext
14586 deplibs=
14587 wl=$lt_prog_compiler_wl_CXX
14588 pic_flag=$lt_prog_compiler_pic_CXX
14589 compiler_flags=-v
14590 linker_flags=-v
14591 verstring=
14592 output_objdir=.
14593 libname=conftest
14594 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14595 allow_undefined_flag_CXX=
14596 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14597 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14598 ac_status=$?
14599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14600 test $ac_status = 0; }
14601 then
14602 lt_cv_archive_cmds_need_lc_CXX=no
14603 else
14604 lt_cv_archive_cmds_need_lc_CXX=yes
14606 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14607 else
14608 cat conftest.err 1>&5
14610 $RM conftest*
14613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14614 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14615 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14617 esac
14620 esac
14685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14686 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14688 library_names_spec=
14689 libname_spec='lib$name'
14690 soname_spec=
14691 shrext_cmds=".so"
14692 postinstall_cmds=
14693 postuninstall_cmds=
14694 finish_cmds=
14695 finish_eval=
14696 shlibpath_var=
14697 shlibpath_overrides_runpath=unknown
14698 version_type=none
14699 dynamic_linker="$host_os ld.so"
14700 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14701 need_lib_prefix=unknown
14702 hardcode_into_libs=no
14704 # when you set need_version to no, make sure it does not cause -set_version
14705 # flags to be left without arguments
14706 need_version=unknown
14708 case $host_os in
14709 aix3*)
14710 version_type=linux
14711 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14712 shlibpath_var=LIBPATH
14714 # AIX 3 has no versioning support, so we append a major version to the name.
14715 soname_spec='${libname}${release}${shared_ext}$major'
14718 aix[4-9]*)
14719 version_type=linux
14720 need_lib_prefix=no
14721 need_version=no
14722 hardcode_into_libs=yes
14723 if test "$host_cpu" = ia64; then
14724 # AIX 5 supports IA64
14725 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14726 shlibpath_var=LD_LIBRARY_PATH
14727 else
14728 # With GCC up to 2.95.x, collect2 would create an import file
14729 # for dependence libraries. The import file would start with
14730 # the line `#! .'. This would cause the generated library to
14731 # depend on `.', always an invalid library. This was fixed in
14732 # development snapshots of GCC prior to 3.0.
14733 case $host_os in
14734 aix4 | aix4.[01] | aix4.[01].*)
14735 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14736 echo ' yes '
14737 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14739 else
14740 can_build_shared=no
14743 esac
14744 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14745 # soname into executable. Probably we can add versioning support to
14746 # collect2, so additional links can be useful in future.
14747 if test "$aix_use_runtimelinking" = yes; then
14748 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14749 # instead of lib<name>.a to let people know that these are not
14750 # typical AIX shared libraries.
14751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14752 else
14753 # We preserve .a as extension for shared libraries through AIX4.2
14754 # and later when we are not doing run time linking.
14755 library_names_spec='${libname}${release}.a $libname.a'
14756 soname_spec='${libname}${release}${shared_ext}$major'
14758 shlibpath_var=LIBPATH
14762 amigaos*)
14763 case $host_cpu in
14764 powerpc)
14765 # Since July 2007 AmigaOS4 officially supports .so libraries.
14766 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14769 m68k)
14770 library_names_spec='$libname.ixlibrary $libname.a'
14771 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14772 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'
14774 esac
14777 beos*)
14778 library_names_spec='${libname}${shared_ext}'
14779 dynamic_linker="$host_os ld.so"
14780 shlibpath_var=LIBRARY_PATH
14783 bsdi[45]*)
14784 version_type=linux
14785 need_version=no
14786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14787 soname_spec='${libname}${release}${shared_ext}$major'
14788 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14789 shlibpath_var=LD_LIBRARY_PATH
14790 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14791 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14792 # the default ld.so.conf also contains /usr/contrib/lib and
14793 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14794 # libtool to hard-code these into programs
14797 cygwin* | mingw* | pw32* | cegcc*)
14798 version_type=windows
14799 shrext_cmds=".dll"
14800 need_version=no
14801 need_lib_prefix=no
14803 case $GCC,$host_os in
14804 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14805 library_names_spec='$libname.dll.a'
14806 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14807 postinstall_cmds='base_file=`basename \${file}`~
14808 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14809 dldir=$destdir/`dirname \$dlpath`~
14810 test -d \$dldir || mkdir -p \$dldir~
14811 $install_prog $dir/$dlname \$dldir/$dlname~
14812 chmod a+x \$dldir/$dlname~
14813 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14814 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14816 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14817 dlpath=$dir/\$dldll~
14818 $RM \$dlpath'
14819 shlibpath_overrides_runpath=yes
14821 case $host_os in
14822 cygwin*)
14823 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14824 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14827 mingw* | cegcc*)
14828 # MinGW DLLs use traditional 'lib' prefix
14829 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14831 pw32*)
14832 # pw32 DLLs use 'pw' prefix rather than 'lib'
14833 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14835 esac
14839 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14841 esac
14842 dynamic_linker='Win32 ld.exe'
14843 # FIXME: first we should search . and the directory the executable is in
14844 shlibpath_var=PATH
14847 darwin* | rhapsody*)
14848 dynamic_linker="$host_os dyld"
14849 version_type=darwin
14850 need_lib_prefix=no
14851 need_version=no
14852 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14853 soname_spec='${libname}${release}${major}$shared_ext'
14854 shlibpath_overrides_runpath=yes
14855 shlibpath_var=DYLD_LIBRARY_PATH
14856 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14858 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14861 dgux*)
14862 version_type=linux
14863 need_lib_prefix=no
14864 need_version=no
14865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14866 soname_spec='${libname}${release}${shared_ext}$major'
14867 shlibpath_var=LD_LIBRARY_PATH
14870 freebsd* | dragonfly*)
14871 # DragonFly does not have aout. When/if they implement a new
14872 # versioning mechanism, adjust this.
14873 if test -x /usr/bin/objformat; then
14874 objformat=`/usr/bin/objformat`
14875 else
14876 case $host_os in
14877 freebsd[23].*) objformat=aout ;;
14878 *) objformat=elf ;;
14879 esac
14881 version_type=freebsd-$objformat
14882 case $version_type in
14883 freebsd-elf*)
14884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14885 need_version=no
14886 need_lib_prefix=no
14888 freebsd-*)
14889 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14890 need_version=yes
14892 esac
14893 shlibpath_var=LD_LIBRARY_PATH
14894 case $host_os in
14895 freebsd2.*)
14896 shlibpath_overrides_runpath=yes
14898 freebsd3.[01]* | freebsdelf3.[01]*)
14899 shlibpath_overrides_runpath=yes
14900 hardcode_into_libs=yes
14902 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14903 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14904 shlibpath_overrides_runpath=no
14905 hardcode_into_libs=yes
14907 *) # from 4.6 on, and DragonFly
14908 shlibpath_overrides_runpath=yes
14909 hardcode_into_libs=yes
14911 esac
14914 gnu*)
14915 version_type=linux
14916 need_lib_prefix=no
14917 need_version=no
14918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14919 soname_spec='${libname}${release}${shared_ext}$major'
14920 shlibpath_var=LD_LIBRARY_PATH
14921 hardcode_into_libs=yes
14924 haiku*)
14925 version_type=linux
14926 need_lib_prefix=no
14927 need_version=no
14928 dynamic_linker="$host_os runtime_loader"
14929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14930 soname_spec='${libname}${release}${shared_ext}$major'
14931 shlibpath_var=LIBRARY_PATH
14932 shlibpath_overrides_runpath=yes
14933 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14934 hardcode_into_libs=yes
14937 hpux9* | hpux10* | hpux11*)
14938 # Give a soname corresponding to the major version so that dld.sl refuses to
14939 # link against other versions.
14940 version_type=sunos
14941 need_lib_prefix=no
14942 need_version=no
14943 case $host_cpu in
14944 ia64*)
14945 shrext_cmds='.so'
14946 hardcode_into_libs=yes
14947 dynamic_linker="$host_os dld.so"
14948 shlibpath_var=LD_LIBRARY_PATH
14949 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14951 soname_spec='${libname}${release}${shared_ext}$major'
14952 if test "X$HPUX_IA64_MODE" = X32; then
14953 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14954 else
14955 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14957 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14959 hppa*64*)
14960 shrext_cmds='.sl'
14961 hardcode_into_libs=yes
14962 dynamic_linker="$host_os dld.sl"
14963 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14964 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14966 soname_spec='${libname}${release}${shared_ext}$major'
14967 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14968 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14971 shrext_cmds='.sl'
14972 dynamic_linker="$host_os dld.sl"
14973 shlibpath_var=SHLIB_PATH
14974 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14976 soname_spec='${libname}${release}${shared_ext}$major'
14978 esac
14979 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14980 postinstall_cmds='chmod 555 $lib'
14981 # or fails outright, so override atomically:
14982 install_override_mode=555
14985 interix[3-9]*)
14986 version_type=linux
14987 need_lib_prefix=no
14988 need_version=no
14989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14990 soname_spec='${libname}${release}${shared_ext}$major'
14991 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14992 shlibpath_var=LD_LIBRARY_PATH
14993 shlibpath_overrides_runpath=no
14994 hardcode_into_libs=yes
14997 irix5* | irix6* | nonstopux*)
14998 case $host_os in
14999 nonstopux*) version_type=nonstopux ;;
15001 if test "$lt_cv_prog_gnu_ld" = yes; then
15002 version_type=linux
15003 else
15004 version_type=irix
15005 fi ;;
15006 esac
15007 need_lib_prefix=no
15008 need_version=no
15009 soname_spec='${libname}${release}${shared_ext}$major'
15010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15011 case $host_os in
15012 irix5* | nonstopux*)
15013 libsuff= shlibsuff=
15016 case $LD in # libtool.m4 will add one of these switches to LD
15017 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15018 libsuff= shlibsuff= libmagic=32-bit;;
15019 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15020 libsuff=32 shlibsuff=N32 libmagic=N32;;
15021 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15022 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15023 *) libsuff= shlibsuff= libmagic=never-match;;
15024 esac
15026 esac
15027 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15028 shlibpath_overrides_runpath=no
15029 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15030 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15031 hardcode_into_libs=yes
15034 # No shared lib support for Linux oldld, aout, or coff.
15035 linux*oldld* | linux*aout* | linux*coff*)
15036 dynamic_linker=no
15039 # This must be Linux ELF.
15040 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15041 version_type=linux
15042 need_lib_prefix=no
15043 need_version=no
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'
15046 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15047 shlibpath_var=LD_LIBRARY_PATH
15048 shlibpath_overrides_runpath=no
15050 # Some binutils ld are patched to set DT_RUNPATH
15051 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
15052 $as_echo_n "(cached) " >&6
15053 else
15054 lt_cv_shlibpath_overrides_runpath=no
15055 save_LDFLAGS=$LDFLAGS
15056 save_libdir=$libdir
15057 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15058 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15060 /* end confdefs.h. */
15063 main ()
15067 return 0;
15069 _ACEOF
15070 if ac_fn_cxx_try_link "$LINENO"; then :
15071 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15072 lt_cv_shlibpath_overrides_runpath=yes
15075 rm -f core conftest.err conftest.$ac_objext \
15076 conftest$ac_exeext conftest.$ac_ext
15077 LDFLAGS=$save_LDFLAGS
15078 libdir=$save_libdir
15082 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15084 # This implies no fast_install, which is unacceptable.
15085 # Some rework will be needed to allow for fast_install
15086 # before this can be enabled.
15087 hardcode_into_libs=yes
15089 # Append ld.so.conf contents to the search path
15090 if test -f /etc/ld.so.conf; then
15091 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' ' '`
15092 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15095 # We used to test for /lib/ld.so.1 and disable shared libraries on
15096 # powerpc, because MkLinux only supported shared libraries with the
15097 # GNU dynamic linker. Since this was broken with cross compilers,
15098 # most powerpc-linux boxes support dynamic linking these days and
15099 # people can always --disable-shared, the test was removed, and we
15100 # assume the GNU/Linux dynamic linker is in use.
15101 dynamic_linker='GNU/Linux ld.so'
15104 netbsd*)
15105 version_type=sunos
15106 need_lib_prefix=no
15107 need_version=no
15108 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15110 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15111 dynamic_linker='NetBSD (a.out) ld.so'
15112 else
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 dynamic_linker='NetBSD ld.elf_so'
15117 shlibpath_var=LD_LIBRARY_PATH
15118 shlibpath_overrides_runpath=yes
15119 hardcode_into_libs=yes
15122 newsos6)
15123 version_type=linux
15124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15125 shlibpath_var=LD_LIBRARY_PATH
15126 shlibpath_overrides_runpath=yes
15129 *nto* | *qnx*)
15130 version_type=qnx
15131 need_lib_prefix=no
15132 need_version=no
15133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15134 soname_spec='${libname}${release}${shared_ext}$major'
15135 shlibpath_var=LD_LIBRARY_PATH
15136 shlibpath_overrides_runpath=no
15137 hardcode_into_libs=yes
15138 dynamic_linker='ldqnx.so'
15141 openbsd*)
15142 version_type=sunos
15143 sys_lib_dlsearch_path_spec="/usr/lib"
15144 need_lib_prefix=no
15145 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15146 case $host_os in
15147 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15148 *) need_version=no ;;
15149 esac
15150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15151 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15152 shlibpath_var=LD_LIBRARY_PATH
15153 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15154 case $host_os in
15155 openbsd2.[89] | openbsd2.[89].*)
15156 shlibpath_overrides_runpath=no
15159 shlibpath_overrides_runpath=yes
15161 esac
15162 else
15163 shlibpath_overrides_runpath=yes
15167 os2*)
15168 libname_spec='$name'
15169 shrext_cmds=".dll"
15170 need_lib_prefix=no
15171 library_names_spec='$libname${shared_ext} $libname.a'
15172 dynamic_linker='OS/2 ld.exe'
15173 shlibpath_var=LIBPATH
15176 osf3* | osf4* | osf5*)
15177 version_type=osf
15178 need_lib_prefix=no
15179 need_version=no
15180 soname_spec='${libname}${release}${shared_ext}$major'
15181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15182 shlibpath_var=LD_LIBRARY_PATH
15183 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15184 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15187 rdos*)
15188 dynamic_linker=no
15191 solaris*)
15192 version_type=linux
15193 need_lib_prefix=no
15194 need_version=no
15195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15196 soname_spec='${libname}${release}${shared_ext}$major'
15197 shlibpath_var=LD_LIBRARY_PATH
15198 shlibpath_overrides_runpath=yes
15199 hardcode_into_libs=yes
15200 # ldd complains unless libraries are executable
15201 postinstall_cmds='chmod +x $lib'
15204 sunos4*)
15205 version_type=sunos
15206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15207 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15208 shlibpath_var=LD_LIBRARY_PATH
15209 shlibpath_overrides_runpath=yes
15210 if test "$with_gnu_ld" = yes; then
15211 need_lib_prefix=no
15213 need_version=yes
15216 sysv4 | sysv4.3*)
15217 version_type=linux
15218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15219 soname_spec='${libname}${release}${shared_ext}$major'
15220 shlibpath_var=LD_LIBRARY_PATH
15221 case $host_vendor in
15222 sni)
15223 shlibpath_overrides_runpath=no
15224 need_lib_prefix=no
15225 runpath_var=LD_RUN_PATH
15227 siemens)
15228 need_lib_prefix=no
15230 motorola)
15231 need_lib_prefix=no
15232 need_version=no
15233 shlibpath_overrides_runpath=no
15234 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15236 esac
15239 sysv4*MP*)
15240 if test -d /usr/nec ;then
15241 version_type=linux
15242 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15243 soname_spec='$libname${shared_ext}.$major'
15244 shlibpath_var=LD_LIBRARY_PATH
15248 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15249 version_type=freebsd-elf
15250 need_lib_prefix=no
15251 need_version=no
15252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15253 soname_spec='${libname}${release}${shared_ext}$major'
15254 shlibpath_var=LD_LIBRARY_PATH
15255 shlibpath_overrides_runpath=yes
15256 hardcode_into_libs=yes
15257 if test "$with_gnu_ld" = yes; then
15258 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15259 else
15260 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15261 case $host_os in
15262 sco3.2v5*)
15263 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15265 esac
15267 sys_lib_dlsearch_path_spec='/usr/lib'
15270 tpf*)
15271 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15272 version_type=linux
15273 need_lib_prefix=no
15274 need_version=no
15275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15276 shlibpath_var=LD_LIBRARY_PATH
15277 shlibpath_overrides_runpath=no
15278 hardcode_into_libs=yes
15281 uts4*)
15282 version_type=linux
15283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15284 soname_spec='${libname}${release}${shared_ext}$major'
15285 shlibpath_var=LD_LIBRARY_PATH
15289 dynamic_linker=no
15291 esac
15292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15293 $as_echo "$dynamic_linker" >&6; }
15294 test "$dynamic_linker" = no && can_build_shared=no
15296 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15297 if test "$GCC" = yes; then
15298 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15301 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15302 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15304 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15305 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15346 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15347 hardcode_action_CXX=
15348 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15349 test -n "$runpath_var_CXX" ||
15350 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15352 # We can hardcode non-existent directories.
15353 if test "$hardcode_direct_CXX" != no &&
15354 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15355 # have to relink, otherwise we might link with an installed library
15356 # when we should be linking with a yet-to-be-installed one
15357 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15358 test "$hardcode_minus_L_CXX" != no; then
15359 # Linking always hardcodes the temporary library directory.
15360 hardcode_action_CXX=relink
15361 else
15362 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15363 hardcode_action_CXX=immediate
15365 else
15366 # We cannot hardcode anything, or else we can only hardcode existing
15367 # directories.
15368 hardcode_action_CXX=unsupported
15370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15371 $as_echo "$hardcode_action_CXX" >&6; }
15373 if test "$hardcode_action_CXX" = relink ||
15374 test "$inherit_rpath_CXX" = yes; then
15375 # Fast installation is not supported
15376 enable_fast_install=no
15377 elif test "$shlibpath_overrides_runpath" = yes ||
15378 test "$enable_shared" = no; then
15379 # Fast installation is not necessary
15380 enable_fast_install=needless
15389 fi # test -n "$compiler"
15391 CC=$lt_save_CC
15392 LDCXX=$LD
15393 LD=$lt_save_LD
15394 GCC=$lt_save_GCC
15395 with_gnu_ld=$lt_save_with_gnu_ld
15396 lt_cv_path_LDCXX=$lt_cv_path_LD
15397 lt_cv_path_LD=$lt_save_path_LD
15398 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15399 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15400 fi # test "$_lt_caught_CXX_error" != yes
15402 ac_ext=c
15403 ac_cpp='$CPP $CPPFLAGS'
15404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15420 ac_config_commands="$ac_config_commands libtool"
15425 # Only expand once:
15431 case $host in
15432 *-cygwin* | *-mingw*)
15433 # 'host' will be top-level target in the case of a target lib,
15434 # we must compare to with_cross_host to decide if this is a native
15435 # or cross-compiler and select where to install dlls appropriately.
15436 if test -n "$with_cross_host" &&
15437 test x"$with_cross_host" != x"no"; then
15438 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
15439 else
15440 lt_host_flags='-no-undefined -bindir "$(bindir)"';
15444 lt_host_flags=
15446 esac
15453 # For libtool versioning info, format is CURRENT:REVISION:AGE
15454 libtool_VERSION=1:0:0
15457 XCFLAGS="-D_GNU_SOURCE -Wall -Wextra -fno-exceptions"
15460 if test "${multilib}" = "yes"; then
15461 multilib_arg="--enable-multilib"
15462 else
15463 multilib_arg=
15466 ac_config_files="$ac_config_files Makefile"
15469 if test "x$VTV_SUPPORTED" = "xyes"; then
15470 ac_config_files="$ac_config_files testsuite/Makefile"
15474 case "$target_os" in
15475 cygwin*|mingw32*)
15476 vtv_cygmin="yes"
15479 vtv_cygmin="no"
15481 esac
15483 if test $vtv_cygmin = yes; then
15484 VTV_CYGMIN_TRUE=
15485 VTV_CYGMIN_FALSE='#'
15486 else
15487 VTV_CYGMIN_TRUE='#'
15488 VTV_CYGMIN_FALSE=
15492 for ac_func in _obstack_begin
15493 do :
15494 ac_fn_c_check_func "$LINENO" "_obstack_begin" "ac_cv_func__obstack_begin"
15495 if test "x$ac_cv_func__obstack_begin" = x""yes; then :
15496 cat >>confdefs.h <<_ACEOF
15497 #define HAVE__OBSTACK_BEGIN 1
15498 _ACEOF
15501 done
15503 if test $ac_cv_func__obstack_begin = no; then
15504 VTV_NO_OBSTACK_TRUE=
15505 VTV_NO_OBSTACK_FALSE='#'
15506 else
15507 VTV_NO_OBSTACK_TRUE='#'
15508 VTV_NO_OBSTACK_FALSE=
15512 # Determine what GCC version number to use in filesystem paths.
15514 get_gcc_base_ver="cat"
15516 # Check whether --with-gcc-major-version-only was given.
15517 if test "${with_gcc_major_version_only+set}" = set; then :
15518 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
15519 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*\$\$/\1/'"
15527 cat >confcache <<\_ACEOF
15528 # This file is a shell script that caches the results of configure
15529 # tests run on this system so they can be shared between configure
15530 # scripts and configure runs, see configure's option --config-cache.
15531 # It is not useful on other systems. If it contains results you don't
15532 # want to keep, you may remove or edit it.
15534 # config.status only pays attention to the cache file if you give it
15535 # the --recheck option to rerun configure.
15537 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15538 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15539 # following values.
15541 _ACEOF
15543 # The following way of writing the cache mishandles newlines in values,
15544 # but we know of no workaround that is simple, portable, and efficient.
15545 # So, we kill variables containing newlines.
15546 # Ultrix sh set writes to stderr and can't be redirected directly,
15547 # and sets the high bit in the cache file unless we assign to the vars.
15549 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15550 eval ac_val=\$$ac_var
15551 case $ac_val in #(
15552 *${as_nl}*)
15553 case $ac_var in #(
15554 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15555 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15556 esac
15557 case $ac_var in #(
15558 _ | IFS | as_nl) ;; #(
15559 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15560 *) { eval $ac_var=; unset $ac_var;} ;;
15561 esac ;;
15562 esac
15563 done
15565 (set) 2>&1 |
15566 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15567 *${as_nl}ac_space=\ *)
15568 # `set' does not quote correctly, so add quotes: double-quote
15569 # substitution turns \\\\ into \\, and sed turns \\ into \.
15570 sed -n \
15571 "s/'/'\\\\''/g;
15572 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15573 ;; #(
15575 # `set' quotes correctly as required by POSIX, so do not add quotes.
15576 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15578 esac |
15579 sort
15581 sed '
15582 /^ac_cv_env_/b end
15583 t clear
15584 :clear
15585 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15586 t end
15587 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15588 :end' >>confcache
15589 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15590 if test -w "$cache_file"; then
15591 test "x$cache_file" != "x/dev/null" &&
15592 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15593 $as_echo "$as_me: updating cache $cache_file" >&6;}
15594 cat confcache >$cache_file
15595 else
15596 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15597 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15600 rm -f confcache
15602 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15603 # Let make expand exec_prefix.
15604 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15606 # Transform confdefs.h into DEFS.
15607 # Protect against shell expansion while executing Makefile rules.
15608 # Protect against Makefile macro expansion.
15610 # If the first sed substitution is executed (which looks for macros that
15611 # take arguments), then branch to the quote section. Otherwise,
15612 # look for a macro that doesn't take arguments.
15613 ac_script='
15614 :mline
15615 /\\$/{
15617 s,\\\n,,
15618 b mline
15620 t clear
15621 :clear
15622 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
15623 t quote
15624 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
15625 t quote
15626 b any
15627 :quote
15628 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15629 s/\[/\\&/g
15630 s/\]/\\&/g
15631 s/\$/$$/g
15633 :any
15636 s/^\n//
15637 s/\n/ /g
15641 DEFS=`sed -n "$ac_script" confdefs.h`
15644 ac_libobjs=
15645 ac_ltlibobjs=
15646 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15647 # 1. Remove the extension, and $U if already installed.
15648 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15649 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15650 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15651 # will be set to the directory where LIBOBJS objects are built.
15652 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15653 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15654 done
15655 LIBOBJS=$ac_libobjs
15657 LTLIBOBJS=$ac_ltlibobjs
15660 if test -z "${ENABLE_VTABLE_VERIFY_TRUE}" && test -z "${ENABLE_VTABLE_VERIFY_FALSE}"; then
15661 as_fn_error "conditional \"ENABLE_VTABLE_VERIFY\" was never defined.
15662 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15664 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15665 as_fn_error "conditional \"AMDEP\" was never defined.
15666 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15668 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15669 as_fn_error "conditional \"am__fastdepCC\" was never defined.
15670 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15672 if test -n "$EXEEXT"; then
15673 am__EXEEXT_TRUE=
15674 am__EXEEXT_FALSE='#'
15675 else
15676 am__EXEEXT_TRUE='#'
15677 am__EXEEXT_FALSE=
15680 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15681 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15682 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15684 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15685 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
15686 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15688 if test -z "${VTV_CYGMIN_TRUE}" && test -z "${VTV_CYGMIN_FALSE}"; then
15689 as_fn_error "conditional \"VTV_CYGMIN\" was never defined.
15690 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15692 if test -z "${VTV_NO_OBSTACK_TRUE}" && test -z "${VTV_NO_OBSTACK_FALSE}"; then
15693 as_fn_error "conditional \"VTV_NO_OBSTACK\" was never defined.
15694 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15697 : ${CONFIG_STATUS=./config.status}
15698 ac_write_fail=0
15699 ac_clean_files_save=$ac_clean_files
15700 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15701 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15702 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15703 as_write_fail=0
15704 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15705 #! $SHELL
15706 # Generated by $as_me.
15707 # Run this file to recreate the current configuration.
15708 # Compiler output produced by configure, useful for debugging
15709 # configure, is in config.log if it exists.
15711 debug=false
15712 ac_cs_recheck=false
15713 ac_cs_silent=false
15715 SHELL=\${CONFIG_SHELL-$SHELL}
15716 export SHELL
15717 _ASEOF
15718 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15719 ## -------------------- ##
15720 ## M4sh Initialization. ##
15721 ## -------------------- ##
15723 # Be more Bourne compatible
15724 DUALCASE=1; export DUALCASE # for MKS sh
15725 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15726 emulate sh
15727 NULLCMD=:
15728 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15729 # is contrary to our usage. Disable this feature.
15730 alias -g '${1+"$@"}'='"$@"'
15731 setopt NO_GLOB_SUBST
15732 else
15733 case `(set -o) 2>/dev/null` in #(
15734 *posix*) :
15735 set -o posix ;; #(
15736 *) :
15738 esac
15742 as_nl='
15744 export as_nl
15745 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15746 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15747 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15748 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15749 # Prefer a ksh shell builtin over an external printf program on Solaris,
15750 # but without wasting forks for bash or zsh.
15751 if test -z "$BASH_VERSION$ZSH_VERSION" \
15752 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15753 as_echo='print -r --'
15754 as_echo_n='print -rn --'
15755 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15756 as_echo='printf %s\n'
15757 as_echo_n='printf %s'
15758 else
15759 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15760 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15761 as_echo_n='/usr/ucb/echo -n'
15762 else
15763 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15764 as_echo_n_body='eval
15765 arg=$1;
15766 case $arg in #(
15767 *"$as_nl"*)
15768 expr "X$arg" : "X\\(.*\\)$as_nl";
15769 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15770 esac;
15771 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15773 export as_echo_n_body
15774 as_echo_n='sh -c $as_echo_n_body as_echo'
15776 export as_echo_body
15777 as_echo='sh -c $as_echo_body as_echo'
15780 # The user is always right.
15781 if test "${PATH_SEPARATOR+set}" != set; then
15782 PATH_SEPARATOR=:
15783 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15784 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15785 PATH_SEPARATOR=';'
15790 # IFS
15791 # We need space, tab and new line, in precisely that order. Quoting is
15792 # there to prevent editors from complaining about space-tab.
15793 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15794 # splitting by setting IFS to empty value.)
15795 IFS=" "" $as_nl"
15797 # Find who we are. Look in the path if we contain no directory separator.
15798 case $0 in #((
15799 *[\\/]* ) as_myself=$0 ;;
15800 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15801 for as_dir in $PATH
15803 IFS=$as_save_IFS
15804 test -z "$as_dir" && as_dir=.
15805 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15806 done
15807 IFS=$as_save_IFS
15810 esac
15811 # We did not find ourselves, most probably we were run as `sh COMMAND'
15812 # in which case we are not to be found in the path.
15813 if test "x$as_myself" = x; then
15814 as_myself=$0
15816 if test ! -f "$as_myself"; then
15817 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15818 exit 1
15821 # Unset variables that we do not need and which cause bugs (e.g. in
15822 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15823 # suppresses any "Segmentation fault" message there. '((' could
15824 # trigger a bug in pdksh 5.2.14.
15825 for as_var in BASH_ENV ENV MAIL MAILPATH
15826 do eval test x\${$as_var+set} = xset \
15827 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15828 done
15829 PS1='$ '
15830 PS2='> '
15831 PS4='+ '
15833 # NLS nuisances.
15834 LC_ALL=C
15835 export LC_ALL
15836 LANGUAGE=C
15837 export LANGUAGE
15839 # CDPATH.
15840 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15843 # as_fn_error ERROR [LINENO LOG_FD]
15844 # ---------------------------------
15845 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15846 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15847 # script with status $?, using 1 if that was 0.
15848 as_fn_error ()
15850 as_status=$?; test $as_status -eq 0 && as_status=1
15851 if test "$3"; then
15852 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15853 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15855 $as_echo "$as_me: error: $1" >&2
15856 as_fn_exit $as_status
15857 } # as_fn_error
15860 # as_fn_set_status STATUS
15861 # -----------------------
15862 # Set $? to STATUS, without forking.
15863 as_fn_set_status ()
15865 return $1
15866 } # as_fn_set_status
15868 # as_fn_exit STATUS
15869 # -----------------
15870 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15871 as_fn_exit ()
15873 set +e
15874 as_fn_set_status $1
15875 exit $1
15876 } # as_fn_exit
15878 # as_fn_unset VAR
15879 # ---------------
15880 # Portably unset VAR.
15881 as_fn_unset ()
15883 { eval $1=; unset $1;}
15885 as_unset=as_fn_unset
15886 # as_fn_append VAR VALUE
15887 # ----------------------
15888 # Append the text in VALUE to the end of the definition contained in VAR. Take
15889 # advantage of any shell optimizations that allow amortized linear growth over
15890 # repeated appends, instead of the typical quadratic growth present in naive
15891 # implementations.
15892 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15893 eval 'as_fn_append ()
15895 eval $1+=\$2
15897 else
15898 as_fn_append ()
15900 eval $1=\$$1\$2
15902 fi # as_fn_append
15904 # as_fn_arith ARG...
15905 # ------------------
15906 # Perform arithmetic evaluation on the ARGs, and store the result in the
15907 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15908 # must be portable across $(()) and expr.
15909 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15910 eval 'as_fn_arith ()
15912 as_val=$(( $* ))
15914 else
15915 as_fn_arith ()
15917 as_val=`expr "$@" || test $? -eq 1`
15919 fi # as_fn_arith
15922 if expr a : '\(a\)' >/dev/null 2>&1 &&
15923 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15924 as_expr=expr
15925 else
15926 as_expr=false
15929 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15930 as_basename=basename
15931 else
15932 as_basename=false
15935 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15936 as_dirname=dirname
15937 else
15938 as_dirname=false
15941 as_me=`$as_basename -- "$0" ||
15942 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15943 X"$0" : 'X\(//\)$' \| \
15944 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15945 $as_echo X/"$0" |
15946 sed '/^.*\/\([^/][^/]*\)\/*$/{
15947 s//\1/
15950 /^X\/\(\/\/\)$/{
15951 s//\1/
15954 /^X\/\(\/\).*/{
15955 s//\1/
15958 s/.*/./; q'`
15960 # Avoid depending upon Character Ranges.
15961 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15962 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15963 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15964 as_cr_digits='0123456789'
15965 as_cr_alnum=$as_cr_Letters$as_cr_digits
15967 ECHO_C= ECHO_N= ECHO_T=
15968 case `echo -n x` in #(((((
15969 -n*)
15970 case `echo 'xy\c'` in
15971 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15972 xy) ECHO_C='\c';;
15973 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15974 ECHO_T=' ';;
15975 esac;;
15977 ECHO_N='-n';;
15978 esac
15980 rm -f conf$$ conf$$.exe conf$$.file
15981 if test -d conf$$.dir; then
15982 rm -f conf$$.dir/conf$$.file
15983 else
15984 rm -f conf$$.dir
15985 mkdir conf$$.dir 2>/dev/null
15987 if (echo >conf$$.file) 2>/dev/null; then
15988 if ln -s conf$$.file conf$$ 2>/dev/null; then
15989 as_ln_s='ln -s'
15990 # ... but there are two gotchas:
15991 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15992 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15993 # In both cases, we have to default to `cp -p'.
15994 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15995 as_ln_s='cp -p'
15996 elif ln conf$$.file conf$$ 2>/dev/null; then
15997 as_ln_s=ln
15998 else
15999 as_ln_s='cp -p'
16001 else
16002 as_ln_s='cp -p'
16004 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16005 rmdir conf$$.dir 2>/dev/null
16008 # as_fn_mkdir_p
16009 # -------------
16010 # Create "$as_dir" as a directory, including parents if necessary.
16011 as_fn_mkdir_p ()
16014 case $as_dir in #(
16015 -*) as_dir=./$as_dir;;
16016 esac
16017 test -d "$as_dir" || eval $as_mkdir_p || {
16018 as_dirs=
16019 while :; do
16020 case $as_dir in #(
16021 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16022 *) as_qdir=$as_dir;;
16023 esac
16024 as_dirs="'$as_qdir' $as_dirs"
16025 as_dir=`$as_dirname -- "$as_dir" ||
16026 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16027 X"$as_dir" : 'X\(//\)[^/]' \| \
16028 X"$as_dir" : 'X\(//\)$' \| \
16029 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16030 $as_echo X"$as_dir" |
16031 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16032 s//\1/
16035 /^X\(\/\/\)[^/].*/{
16036 s//\1/
16039 /^X\(\/\/\)$/{
16040 s//\1/
16043 /^X\(\/\).*/{
16044 s//\1/
16047 s/.*/./; q'`
16048 test -d "$as_dir" && break
16049 done
16050 test -z "$as_dirs" || eval "mkdir $as_dirs"
16051 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16054 } # as_fn_mkdir_p
16055 if mkdir -p . 2>/dev/null; then
16056 as_mkdir_p='mkdir -p "$as_dir"'
16057 else
16058 test -d ./-p && rmdir ./-p
16059 as_mkdir_p=false
16062 if test -x / >/dev/null 2>&1; then
16063 as_test_x='test -x'
16064 else
16065 if ls -dL / >/dev/null 2>&1; then
16066 as_ls_L_option=L
16067 else
16068 as_ls_L_option=
16070 as_test_x='
16071 eval sh -c '\''
16072 if test -d "$1"; then
16073 test -d "$1/.";
16074 else
16075 case $1 in #(
16076 -*)set "./$1";;
16077 esac;
16078 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16079 ???[sx]*):;;*)false;;esac;fi
16080 '\'' sh
16083 as_executable_p=$as_test_x
16085 # Sed expression to map a string onto a valid CPP name.
16086 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16088 # Sed expression to map a string onto a valid variable name.
16089 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16092 exec 6>&1
16093 ## ----------------------------------- ##
16094 ## Main body of $CONFIG_STATUS script. ##
16095 ## ----------------------------------- ##
16096 _ASEOF
16097 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16099 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16100 # Save the log message, to keep $0 and so on meaningful, and to
16101 # report actual input values of CONFIG_FILES etc. instead of their
16102 # values after options handling.
16103 ac_log="
16104 This file was extended by GNU Vtable Verification Runtime Library $as_me 1.0, which was
16105 generated by GNU Autoconf 2.64. Invocation command line was
16107 CONFIG_FILES = $CONFIG_FILES
16108 CONFIG_HEADERS = $CONFIG_HEADERS
16109 CONFIG_LINKS = $CONFIG_LINKS
16110 CONFIG_COMMANDS = $CONFIG_COMMANDS
16111 $ $0 $@
16113 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16116 _ACEOF
16118 case $ac_config_files in *"
16119 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16120 esac
16124 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16125 # Files that config.status was made for.
16126 config_files="$ac_config_files"
16127 config_commands="$ac_config_commands"
16129 _ACEOF
16131 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16132 ac_cs_usage="\
16133 \`$as_me' instantiates files and other configuration actions
16134 from templates according to the current configuration. Unless the files
16135 and actions are specified as TAGs, all are instantiated by default.
16137 Usage: $0 [OPTION]... [TAG]...
16139 -h, --help print this help, then exit
16140 -V, --version print version number and configuration settings, then exit
16141 -q, --quiet, --silent
16142 do not print progress messages
16143 -d, --debug don't remove temporary files
16144 --recheck update $as_me by reconfiguring in the same conditions
16145 --file=FILE[:TEMPLATE]
16146 instantiate the configuration file FILE
16148 Configuration files:
16149 $config_files
16151 Configuration commands:
16152 $config_commands
16154 Report bugs to the package provider.
16155 GNU Vtable Verification Runtime Library home page: <http://www.gnu.org/software/libvtv/>.
16156 General help using GNU software: <http://www.gnu.org/gethelp/>."
16158 _ACEOF
16159 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16160 ac_cs_version="\\
16161 GNU Vtable Verification Runtime Library config.status 1.0
16162 configured by $0, generated by GNU Autoconf 2.64,
16163 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16165 Copyright (C) 2009 Free Software Foundation, Inc.
16166 This config.status script is free software; the Free Software Foundation
16167 gives unlimited permission to copy, distribute and modify it."
16169 ac_pwd='$ac_pwd'
16170 srcdir='$srcdir'
16171 INSTALL='$INSTALL'
16172 MKDIR_P='$MKDIR_P'
16173 AWK='$AWK'
16174 test -n "\$AWK" || AWK=awk
16175 _ACEOF
16177 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16178 # The default lists apply if the user does not specify any file.
16179 ac_need_defaults=:
16180 while test $# != 0
16182 case $1 in
16183 --*=*)
16184 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16185 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16186 ac_shift=:
16189 ac_option=$1
16190 ac_optarg=$2
16191 ac_shift=shift
16193 esac
16195 case $ac_option in
16196 # Handling of the options.
16197 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16198 ac_cs_recheck=: ;;
16199 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16200 $as_echo "$ac_cs_version"; exit ;;
16201 --debug | --debu | --deb | --de | --d | -d )
16202 debug=: ;;
16203 --file | --fil | --fi | --f )
16204 $ac_shift
16205 case $ac_optarg in
16206 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16207 esac
16208 as_fn_append CONFIG_FILES " '$ac_optarg'"
16209 ac_need_defaults=false;;
16210 --he | --h | --help | --hel | -h )
16211 $as_echo "$ac_cs_usage"; exit ;;
16212 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16213 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16214 ac_cs_silent=: ;;
16216 # This is an error.
16217 -*) as_fn_error "unrecognized option: \`$1'
16218 Try \`$0 --help' for more information." ;;
16220 *) as_fn_append ac_config_targets " $1"
16221 ac_need_defaults=false ;;
16223 esac
16224 shift
16225 done
16227 ac_configure_extra_args=
16229 if $ac_cs_silent; then
16230 exec 6>/dev/null
16231 ac_configure_extra_args="$ac_configure_extra_args --silent"
16234 _ACEOF
16235 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16236 if \$ac_cs_recheck; then
16237 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16238 shift
16239 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16240 CONFIG_SHELL='$SHELL'
16241 export CONFIG_SHELL
16242 exec "\$@"
16245 _ACEOF
16246 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16247 exec 5>>config.log
16249 echo
16250 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16251 ## Running $as_me. ##
16252 _ASBOX
16253 $as_echo "$ac_log"
16254 } >&5
16256 _ACEOF
16257 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16259 # INIT-COMMANDS
16262 srcdir="$srcdir"
16263 host="$host"
16264 target="$target"
16265 with_multisubdir="$with_multisubdir"
16266 with_multisrctop="$with_multisrctop"
16267 with_target_subdir="$with_target_subdir"
16268 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16269 multi_basedir="$multi_basedir"
16270 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16271 CC="$CC"
16272 CXX="$CXX"
16273 GFORTRAN="$GFORTRAN"
16274 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16277 # The HP-UX ksh and POSIX shell print the target directory to stdout
16278 # if CDPATH is set.
16279 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16281 sed_quote_subst='$sed_quote_subst'
16282 double_quote_subst='$double_quote_subst'
16283 delay_variable_subst='$delay_variable_subst'
16284 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16285 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16286 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16287 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16288 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16289 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16290 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16291 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16292 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16293 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16294 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16295 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16296 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16297 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16298 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16299 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16300 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16301 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16302 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16303 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16304 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16305 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16306 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16307 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16308 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16309 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16310 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16311 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16312 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16313 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16314 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16315 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16316 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16317 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16318 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16319 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16320 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16321 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16322 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16323 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16324 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16325 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16326 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16327 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16328 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16329 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16330 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16331 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16332 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"`'
16333 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16334 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16335 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16336 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16337 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16338 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16339 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16340 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16341 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16342 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16343 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16344 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16345 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16346 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16347 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16348 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16349 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16350 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16351 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16352 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16353 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16354 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16355 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16356 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16357 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16358 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16359 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16360 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16361 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16362 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16363 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16364 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16365 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16366 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16367 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16368 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16369 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16370 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16371 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16372 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16373 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16374 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16375 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16376 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16377 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16378 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16379 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16380 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16381 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16382 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16383 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16384 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16385 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16386 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16387 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16388 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16389 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16390 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16391 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16392 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16393 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16394 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16395 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16396 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16397 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16398 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16399 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16400 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16401 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16402 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16403 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16404 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
16405 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
16406 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
16407 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
16408 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
16409 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
16410 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
16411 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
16412 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16413 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16414 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
16415 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
16416 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
16417 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
16418 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
16419 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
16420 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
16421 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
16422 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
16423 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16424 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16425 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
16426 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16427 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16428 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16429 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16430 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16431 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16432 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
16433 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16434 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16435 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16436 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
16437 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
16438 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
16439 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
16440 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
16441 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
16442 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
16443 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
16444 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
16445 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
16446 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
16447 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16448 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16449 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16450 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16451 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
16452 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
16453 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
16454 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16455 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16456 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
16457 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
16458 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
16460 LTCC='$LTCC'
16461 LTCFLAGS='$LTCFLAGS'
16462 compiler='$compiler_DEFAULT'
16464 # A function that is used when there is no print builtin or printf.
16465 func_fallback_echo ()
16467 eval 'cat <<_LTECHO_EOF
16469 _LTECHO_EOF'
16472 # Quote evaled strings.
16473 for var in SHELL \
16474 ECHO \
16475 SED \
16476 GREP \
16477 EGREP \
16478 FGREP \
16479 LD \
16480 NM \
16481 LN_S \
16482 lt_SP2NL \
16483 lt_NL2SP \
16484 reload_flag \
16485 OBJDUMP \
16486 deplibs_check_method \
16487 file_magic_cmd \
16488 AR \
16489 AR_FLAGS \
16490 STRIP \
16491 RANLIB \
16492 CC \
16493 CFLAGS \
16494 compiler \
16495 lt_cv_sys_global_symbol_pipe \
16496 lt_cv_sys_global_symbol_to_cdecl \
16497 lt_cv_sys_global_symbol_to_c_name_address \
16498 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16499 lt_prog_compiler_no_builtin_flag \
16500 lt_prog_compiler_wl \
16501 lt_prog_compiler_pic \
16502 lt_prog_compiler_static \
16503 lt_cv_prog_compiler_c_o \
16504 need_locks \
16505 DSYMUTIL \
16506 NMEDIT \
16507 LIPO \
16508 OTOOL \
16509 OTOOL64 \
16510 shrext_cmds \
16511 export_dynamic_flag_spec \
16512 whole_archive_flag_spec \
16513 compiler_needs_object \
16514 with_gnu_ld \
16515 allow_undefined_flag \
16516 no_undefined_flag \
16517 hardcode_libdir_flag_spec \
16518 hardcode_libdir_flag_spec_ld \
16519 hardcode_libdir_separator \
16520 fix_srcfile_path \
16521 exclude_expsyms \
16522 include_expsyms \
16523 file_list_spec \
16524 variables_saved_for_relink \
16525 libname_spec \
16526 library_names_spec \
16527 soname_spec \
16528 install_override_mode \
16529 finish_eval \
16530 old_striplib \
16531 striplib \
16532 compiler_lib_search_dirs \
16533 predep_objects \
16534 postdep_objects \
16535 predeps \
16536 postdeps \
16537 compiler_lib_search_path \
16538 LD_CXX \
16539 reload_flag_CXX \
16540 compiler_CXX \
16541 lt_prog_compiler_no_builtin_flag_CXX \
16542 lt_prog_compiler_wl_CXX \
16543 lt_prog_compiler_pic_CXX \
16544 lt_prog_compiler_static_CXX \
16545 lt_cv_prog_compiler_c_o_CXX \
16546 export_dynamic_flag_spec_CXX \
16547 whole_archive_flag_spec_CXX \
16548 compiler_needs_object_CXX \
16549 with_gnu_ld_CXX \
16550 allow_undefined_flag_CXX \
16551 no_undefined_flag_CXX \
16552 hardcode_libdir_flag_spec_CXX \
16553 hardcode_libdir_flag_spec_ld_CXX \
16554 hardcode_libdir_separator_CXX \
16555 fix_srcfile_path_CXX \
16556 exclude_expsyms_CXX \
16557 include_expsyms_CXX \
16558 file_list_spec_CXX \
16559 compiler_lib_search_dirs_CXX \
16560 predep_objects_CXX \
16561 postdep_objects_CXX \
16562 predeps_CXX \
16563 postdeps_CXX \
16564 compiler_lib_search_path_CXX; do
16565 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16566 *[\\\\\\\`\\"\\\$]*)
16567 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16570 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16572 esac
16573 done
16575 # Double-quote double-evaled strings.
16576 for var in reload_cmds \
16577 old_postinstall_cmds \
16578 old_postuninstall_cmds \
16579 old_archive_cmds \
16580 extract_expsyms_cmds \
16581 old_archive_from_new_cmds \
16582 old_archive_from_expsyms_cmds \
16583 archive_cmds \
16584 archive_expsym_cmds \
16585 module_cmds \
16586 module_expsym_cmds \
16587 export_symbols_cmds \
16588 prelink_cmds \
16589 postinstall_cmds \
16590 postuninstall_cmds \
16591 finish_cmds \
16592 sys_lib_search_path_spec \
16593 sys_lib_dlsearch_path_spec \
16594 reload_cmds_CXX \
16595 old_archive_cmds_CXX \
16596 old_archive_from_new_cmds_CXX \
16597 old_archive_from_expsyms_cmds_CXX \
16598 archive_cmds_CXX \
16599 archive_expsym_cmds_CXX \
16600 module_cmds_CXX \
16601 module_expsym_cmds_CXX \
16602 export_symbols_cmds_CXX \
16603 prelink_cmds_CXX; do
16604 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16605 *[\\\\\\\`\\"\\\$]*)
16606 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16609 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16611 esac
16612 done
16614 ac_aux_dir='$ac_aux_dir'
16615 xsi_shell='$xsi_shell'
16616 lt_shell_append='$lt_shell_append'
16618 # See if we are running on zsh, and set the options which allow our
16619 # commands through without removal of \ escapes INIT.
16620 if test -n "\${ZSH_VERSION+set}" ; then
16621 setopt NO_GLOB_SUBST
16625 PACKAGE='$PACKAGE'
16626 VERSION='$VERSION'
16627 TIMESTAMP='$TIMESTAMP'
16628 RM='$RM'
16629 ofile='$ofile'
16636 _ACEOF
16638 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16640 # Handling of arguments.
16641 for ac_config_target in $ac_config_targets
16643 case $ac_config_target in
16644 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16645 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16646 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16647 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16648 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16650 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16651 esac
16652 done
16655 # If the user did not use the arguments to specify the items to instantiate,
16656 # then the envvar interface is used. Set only those that are not.
16657 # We use the long form for the default assignment because of an extremely
16658 # bizarre bug on SunOS 4.1.3.
16659 if $ac_need_defaults; then
16660 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16661 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16664 # Have a temporary directory for convenience. Make it in the build tree
16665 # simply because there is no reason against having it here, and in addition,
16666 # creating and moving files from /tmp can sometimes cause problems.
16667 # Hook for its removal unless debugging.
16668 # Note that there is a small window in which the directory will not be cleaned:
16669 # after its creation but before its name has been assigned to `$tmp'.
16670 $debug ||
16672 tmp=
16673 trap 'exit_status=$?
16674 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16676 trap 'as_fn_exit 1' 1 2 13 15
16678 # Create a (secure) tmp directory for tmp files.
16681 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16682 test -n "$tmp" && test -d "$tmp"
16683 } ||
16685 tmp=./conf$$-$RANDOM
16686 (umask 077 && mkdir "$tmp")
16687 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16689 # Set up the scripts for CONFIG_FILES section.
16690 # No need to generate them if there are no CONFIG_FILES.
16691 # This happens for instance with `./config.status config.h'.
16692 if test -n "$CONFIG_FILES"; then
16695 ac_cr=`echo X | tr X '\015'`
16696 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16697 # But we know of no other shell where ac_cr would be empty at this
16698 # point, so we can use a bashism as a fallback.
16699 if test "x$ac_cr" = x; then
16700 eval ac_cr=\$\'\\r\'
16702 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16703 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16704 ac_cs_awk_cr='\r'
16705 else
16706 ac_cs_awk_cr=$ac_cr
16709 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16710 _ACEOF
16714 echo "cat >conf$$subs.awk <<_ACEOF" &&
16715 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16716 echo "_ACEOF"
16717 } >conf$$subs.sh ||
16718 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16719 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16720 ac_delim='%!_!# '
16721 for ac_last_try in false false false false false :; do
16722 . ./conf$$subs.sh ||
16723 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16725 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16726 if test $ac_delim_n = $ac_delim_num; then
16727 break
16728 elif $ac_last_try; then
16729 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16730 else
16731 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16733 done
16734 rm -f conf$$subs.sh
16736 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16737 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16738 _ACEOF
16739 sed -n '
16741 s/^/S["/; s/!.*/"]=/
16744 s/^[^!]*!//
16745 :repl
16746 t repl
16747 s/'"$ac_delim"'$//
16748 t delim
16751 s/\(.\{148\}\).*/\1/
16752 t more1
16753 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16756 b repl
16757 :more1
16758 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16761 s/.\{148\}//
16762 t nl
16763 :delim
16765 s/\(.\{148\}\).*/\1/
16766 t more2
16767 s/["\\]/\\&/g; s/^/"/; s/$/"/
16770 :more2
16771 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16774 s/.\{148\}//
16775 t delim
16776 ' <conf$$subs.awk | sed '
16777 /^[^""]/{
16779 s/\n//
16781 ' >>$CONFIG_STATUS || ac_write_fail=1
16782 rm -f conf$$subs.awk
16783 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16784 _ACAWK
16785 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16786 for (key in S) S_is_set[key] = 1
16787 FS = "\a"
16791 line = $ 0
16792 nfields = split(line, field, "@")
16793 substed = 0
16794 len = length(field[1])
16795 for (i = 2; i < nfields; i++) {
16796 key = field[i]
16797 keylen = length(key)
16798 if (S_is_set[key]) {
16799 value = S[key]
16800 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16801 len += length(value) + length(field[++i])
16802 substed = 1
16803 } else
16804 len += 1 + keylen
16807 print line
16810 _ACAWK
16811 _ACEOF
16812 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16813 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16814 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16815 else
16817 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16818 || as_fn_error "could not setup config files machinery" "$LINENO" 5
16819 _ACEOF
16821 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16822 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16823 # trailing colons and then remove the whole line if VPATH becomes empty
16824 # (actually we leave an empty line to preserve line numbers).
16825 if test "x$srcdir" = x.; then
16826 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16827 s/:*\$(srcdir):*/:/
16828 s/:*\${srcdir}:*/:/
16829 s/:*@srcdir@:*/:/
16830 s/^\([^=]*=[ ]*\):*/\1/
16831 s/:*$//
16832 s/^[^=]*=[ ]*$//
16836 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16837 fi # test -n "$CONFIG_FILES"
16840 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
16841 shift
16842 for ac_tag
16844 case $ac_tag in
16845 :[FHLC]) ac_mode=$ac_tag; continue;;
16846 esac
16847 case $ac_mode$ac_tag in
16848 :[FHL]*:*);;
16849 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16850 :[FH]-) ac_tag=-:-;;
16851 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16852 esac
16853 ac_save_IFS=$IFS
16854 IFS=:
16855 set x $ac_tag
16856 IFS=$ac_save_IFS
16857 shift
16858 ac_file=$1
16859 shift
16861 case $ac_mode in
16862 :L) ac_source=$1;;
16863 :[FH])
16864 ac_file_inputs=
16865 for ac_f
16867 case $ac_f in
16868 -) ac_f="$tmp/stdin";;
16869 *) # Look for the file first in the build tree, then in the source tree
16870 # (if the path is not absolute). The absolute path cannot be DOS-style,
16871 # because $ac_f cannot contain `:'.
16872 test -f "$ac_f" ||
16873 case $ac_f in
16874 [\\/$]*) false;;
16875 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16876 esac ||
16877 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16878 esac
16879 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16880 as_fn_append ac_file_inputs " '$ac_f'"
16881 done
16883 # Let's still pretend it is `configure' which instantiates (i.e., don't
16884 # use $as_me), people would be surprised to read:
16885 # /* config.h. Generated by config.status. */
16886 configure_input='Generated from '`
16887 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16888 `' by configure.'
16889 if test x"$ac_file" != x-; then
16890 configure_input="$ac_file. $configure_input"
16891 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16892 $as_echo "$as_me: creating $ac_file" >&6;}
16894 # Neutralize special characters interpreted by sed in replacement strings.
16895 case $configure_input in #(
16896 *\&* | *\|* | *\\* )
16897 ac_sed_conf_input=`$as_echo "$configure_input" |
16898 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16899 *) ac_sed_conf_input=$configure_input;;
16900 esac
16902 case $ac_tag in
16903 *:-:* | *:-) cat >"$tmp/stdin" \
16904 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16905 esac
16907 esac
16909 ac_dir=`$as_dirname -- "$ac_file" ||
16910 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16911 X"$ac_file" : 'X\(//\)[^/]' \| \
16912 X"$ac_file" : 'X\(//\)$' \| \
16913 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16914 $as_echo X"$ac_file" |
16915 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16916 s//\1/
16919 /^X\(\/\/\)[^/].*/{
16920 s//\1/
16923 /^X\(\/\/\)$/{
16924 s//\1/
16927 /^X\(\/\).*/{
16928 s//\1/
16931 s/.*/./; q'`
16932 as_dir="$ac_dir"; as_fn_mkdir_p
16933 ac_builddir=.
16935 case "$ac_dir" in
16936 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16938 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16939 # A ".." for each directory in $ac_dir_suffix.
16940 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16941 case $ac_top_builddir_sub in
16942 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16943 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16944 esac ;;
16945 esac
16946 ac_abs_top_builddir=$ac_pwd
16947 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16948 # for backward compatibility:
16949 ac_top_builddir=$ac_top_build_prefix
16951 case $srcdir in
16952 .) # We are building in place.
16953 ac_srcdir=.
16954 ac_top_srcdir=$ac_top_builddir_sub
16955 ac_abs_top_srcdir=$ac_pwd ;;
16956 [\\/]* | ?:[\\/]* ) # Absolute name.
16957 ac_srcdir=$srcdir$ac_dir_suffix;
16958 ac_top_srcdir=$srcdir
16959 ac_abs_top_srcdir=$srcdir ;;
16960 *) # Relative name.
16961 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16962 ac_top_srcdir=$ac_top_build_prefix$srcdir
16963 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16964 esac
16965 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16968 case $ac_mode in
16971 # CONFIG_FILE
16974 case $INSTALL in
16975 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16976 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16977 esac
16978 ac_MKDIR_P=$MKDIR_P
16979 case $MKDIR_P in
16980 [\\/$]* | ?:[\\/]* ) ;;
16981 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16982 esac
16983 _ACEOF
16985 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16986 # If the template does not know about datarootdir, expand it.
16987 # FIXME: This hack should be removed a few years after 2.60.
16988 ac_datarootdir_hack=; ac_datarootdir_seen=
16989 ac_sed_dataroot='
16990 /datarootdir/ {
16994 /@datadir@/p
16995 /@docdir@/p
16996 /@infodir@/p
16997 /@localedir@/p
16998 /@mandir@/p'
16999 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17000 *datarootdir*) ac_datarootdir_seen=yes;;
17001 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17003 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17004 _ACEOF
17005 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17006 ac_datarootdir_hack='
17007 s&@datadir@&$datadir&g
17008 s&@docdir@&$docdir&g
17009 s&@infodir@&$infodir&g
17010 s&@localedir@&$localedir&g
17011 s&@mandir@&$mandir&g
17012 s&\\\${datarootdir}&$datarootdir&g' ;;
17013 esac
17014 _ACEOF
17016 # Neutralize VPATH when `$srcdir' = `.'.
17017 # Shell code in configure.ac might set extrasub.
17018 # FIXME: do we really want to maintain this feature?
17019 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17020 ac_sed_extra="$ac_vpsub
17021 $extrasub
17022 _ACEOF
17023 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17025 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17026 s|@configure_input@|$ac_sed_conf_input|;t t
17027 s&@top_builddir@&$ac_top_builddir_sub&;t t
17028 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17029 s&@srcdir@&$ac_srcdir&;t t
17030 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17031 s&@top_srcdir@&$ac_top_srcdir&;t t
17032 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17033 s&@builddir@&$ac_builddir&;t t
17034 s&@abs_builddir@&$ac_abs_builddir&;t t
17035 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17036 s&@INSTALL@&$ac_INSTALL&;t t
17037 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17038 $ac_datarootdir_hack
17040 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17041 || as_fn_error "could not create $ac_file" "$LINENO" 5
17043 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17044 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17045 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17047 which seems to be undefined. Please make sure it is defined." >&5
17048 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17049 which seems to be undefined. Please make sure it is defined." >&2;}
17051 rm -f "$tmp/stdin"
17052 case $ac_file in
17053 -) cat "$tmp/out" && rm -f "$tmp/out";;
17054 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17055 esac \
17056 || as_fn_error "could not create $ac_file" "$LINENO" 5
17060 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17061 $as_echo "$as_me: executing $ac_file commands" >&6;}
17063 esac
17066 case $ac_file$ac_mode in
17067 "default-1":C)
17068 # Only add multilib support code if we just rebuilt the top-level
17069 # Makefile.
17070 case " $CONFIG_FILES " in
17071 *" Makefile "*)
17072 ac_file=Makefile . ${multi_basedir}/config-ml.in
17074 esac ;;
17075 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17076 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17077 # are listed without --file. Let's play safe and only enable the eval
17078 # if we detect the quoting.
17079 case $CONFIG_FILES in
17080 *\'*) eval set x "$CONFIG_FILES" ;;
17081 *) set x $CONFIG_FILES ;;
17082 esac
17083 shift
17084 for mf
17086 # Strip MF so we end up with the name of the file.
17087 mf=`echo "$mf" | sed -e 's/:.*$//'`
17088 # Check whether this is an Automake generated Makefile or not.
17089 # We used to match only the files named `Makefile.in', but
17090 # some people rename them; so instead we look at the file content.
17091 # Grep'ing the first line is not enough: some people post-process
17092 # each Makefile.in and add a new line on top of each file to say so.
17093 # Grep'ing the whole file is not good either: AIX grep has a line
17094 # limit of 2048, but all sed's we know have understand at least 4000.
17095 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17096 dirpart=`$as_dirname -- "$mf" ||
17097 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17098 X"$mf" : 'X\(//\)[^/]' \| \
17099 X"$mf" : 'X\(//\)$' \| \
17100 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17101 $as_echo X"$mf" |
17102 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17103 s//\1/
17106 /^X\(\/\/\)[^/].*/{
17107 s//\1/
17110 /^X\(\/\/\)$/{
17111 s//\1/
17114 /^X\(\/\).*/{
17115 s//\1/
17118 s/.*/./; q'`
17119 else
17120 continue
17122 # Extract the definition of DEPDIR, am__include, and am__quote
17123 # from the Makefile without running `make'.
17124 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17125 test -z "$DEPDIR" && continue
17126 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17127 test -z "am__include" && continue
17128 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17129 # When using ansi2knr, U may be empty or an underscore; expand it
17130 U=`sed -n 's/^U = //p' < "$mf"`
17131 # Find all dependency output files, they are included files with
17132 # $(DEPDIR) in their names. We invoke sed twice because it is the
17133 # simplest approach to changing $(DEPDIR) to its actual value in the
17134 # expansion.
17135 for file in `sed -n "
17136 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17137 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17138 # Make sure the directory exists.
17139 test -f "$dirpart/$file" && continue
17140 fdir=`$as_dirname -- "$file" ||
17141 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17142 X"$file" : 'X\(//\)[^/]' \| \
17143 X"$file" : 'X\(//\)$' \| \
17144 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17145 $as_echo X"$file" |
17146 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17147 s//\1/
17150 /^X\(\/\/\)[^/].*/{
17151 s//\1/
17154 /^X\(\/\/\)$/{
17155 s//\1/
17158 /^X\(\/\).*/{
17159 s//\1/
17162 s/.*/./; q'`
17163 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17164 # echo "creating $dirpart/$file"
17165 echo '# dummy' > "$dirpart/$file"
17166 done
17167 done
17170 "libtool":C)
17172 # See if we are running on zsh, and set the options which allow our
17173 # commands through without removal of \ escapes.
17174 if test -n "${ZSH_VERSION+set}" ; then
17175 setopt NO_GLOB_SUBST
17178 cfgfile="${ofile}T"
17179 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17180 $RM "$cfgfile"
17182 cat <<_LT_EOF >> "$cfgfile"
17183 #! $SHELL
17185 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17186 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17187 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17188 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17190 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17191 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17192 # Written by Gordon Matzigkeit, 1996
17194 # This file is part of GNU Libtool.
17196 # GNU Libtool is free software; you can redistribute it and/or
17197 # modify it under the terms of the GNU General Public License as
17198 # published by the Free Software Foundation; either version 2 of
17199 # the License, or (at your option) any later version.
17201 # As a special exception to the GNU General Public License,
17202 # if you distribute this file as part of a program or library that
17203 # is built using GNU Libtool, you may include this file under the
17204 # same distribution terms that you use for the rest of that program.
17206 # GNU Libtool is distributed in the hope that it will be useful,
17207 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17208 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17209 # GNU General Public License for more details.
17211 # You should have received a copy of the GNU General Public License
17212 # along with GNU Libtool; see the file COPYING. If not, a copy
17213 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17214 # obtained by writing to the Free Software Foundation, Inc.,
17215 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17218 # The names of the tagged configurations supported by this script.
17219 available_tags="CXX "
17221 # ### BEGIN LIBTOOL CONFIG
17223 # Which release of libtool.m4 was used?
17224 macro_version=$macro_version
17225 macro_revision=$macro_revision
17227 # Whether or not to build shared libraries.
17228 build_libtool_libs=$enable_shared
17230 # Whether or not to build static libraries.
17231 build_old_libs=$enable_static
17233 # What type of objects to build.
17234 pic_mode=$pic_mode
17236 # Whether or not to optimize for fast installation.
17237 fast_install=$enable_fast_install
17239 # Shell to use when invoking shell scripts.
17240 SHELL=$lt_SHELL
17242 # An echo program that protects backslashes.
17243 ECHO=$lt_ECHO
17245 # The host system.
17246 host_alias=$host_alias
17247 host=$host
17248 host_os=$host_os
17250 # The build system.
17251 build_alias=$build_alias
17252 build=$build
17253 build_os=$build_os
17255 # A sed program that does not truncate output.
17256 SED=$lt_SED
17258 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17259 Xsed="\$SED -e 1s/^X//"
17261 # A grep program that handles long lines.
17262 GREP=$lt_GREP
17264 # An ERE matcher.
17265 EGREP=$lt_EGREP
17267 # A literal string matcher.
17268 FGREP=$lt_FGREP
17270 # A BSD- or MS-compatible name lister.
17271 NM=$lt_NM
17273 # Whether we need soft or hard links.
17274 LN_S=$lt_LN_S
17276 # What is the maximum length of a command?
17277 max_cmd_len=$max_cmd_len
17279 # Object file suffix (normally "o").
17280 objext=$ac_objext
17282 # Executable file suffix (normally "").
17283 exeext=$exeext
17285 # whether the shell understands "unset".
17286 lt_unset=$lt_unset
17288 # turn spaces into newlines.
17289 SP2NL=$lt_lt_SP2NL
17291 # turn newlines into spaces.
17292 NL2SP=$lt_lt_NL2SP
17294 # An object symbol dumper.
17295 OBJDUMP=$lt_OBJDUMP
17297 # Method to check whether dependent libraries are shared objects.
17298 deplibs_check_method=$lt_deplibs_check_method
17300 # Command to use when deplibs_check_method == "file_magic".
17301 file_magic_cmd=$lt_file_magic_cmd
17303 # The archiver.
17304 AR=$lt_AR
17305 AR_FLAGS=$lt_AR_FLAGS
17307 # A symbol stripping program.
17308 STRIP=$lt_STRIP
17310 # Commands used to install an old-style archive.
17311 RANLIB=$lt_RANLIB
17312 old_postinstall_cmds=$lt_old_postinstall_cmds
17313 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17315 # Whether to use a lock for old archive extraction.
17316 lock_old_archive_extraction=$lock_old_archive_extraction
17318 # A C compiler.
17319 LTCC=$lt_CC
17321 # LTCC compiler flags.
17322 LTCFLAGS=$lt_CFLAGS
17324 # Take the output of nm and produce a listing of raw symbols and C names.
17325 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17327 # Transform the output of nm in a proper C declaration.
17328 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17330 # Transform the output of nm in a C name address pair.
17331 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17333 # Transform the output of nm in a C name address pair when lib prefix is needed.
17334 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17336 # The name of the directory that contains temporary libtool files.
17337 objdir=$objdir
17339 # Used to examine libraries when file_magic_cmd begins with "file".
17340 MAGIC_CMD=$MAGIC_CMD
17342 # Must we lock files when doing compilation?
17343 need_locks=$lt_need_locks
17345 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17346 DSYMUTIL=$lt_DSYMUTIL
17348 # Tool to change global to local symbols on Mac OS X.
17349 NMEDIT=$lt_NMEDIT
17351 # Tool to manipulate fat objects and archives on Mac OS X.
17352 LIPO=$lt_LIPO
17354 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17355 OTOOL=$lt_OTOOL
17357 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17358 OTOOL64=$lt_OTOOL64
17360 # Old archive suffix (normally "a").
17361 libext=$libext
17363 # Shared library suffix (normally ".so").
17364 shrext_cmds=$lt_shrext_cmds
17366 # The commands to extract the exported symbol list from a shared archive.
17367 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17369 # Variables whose values should be saved in libtool wrapper scripts and
17370 # restored at link time.
17371 variables_saved_for_relink=$lt_variables_saved_for_relink
17373 # Do we need the "lib" prefix for modules?
17374 need_lib_prefix=$need_lib_prefix
17376 # Do we need a version for libraries?
17377 need_version=$need_version
17379 # Library versioning type.
17380 version_type=$version_type
17382 # Shared library runtime path variable.
17383 runpath_var=$runpath_var
17385 # Shared library path variable.
17386 shlibpath_var=$shlibpath_var
17388 # Is shlibpath searched before the hard-coded library search path?
17389 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17391 # Format of library name prefix.
17392 libname_spec=$lt_libname_spec
17394 # List of archive names. First name is the real one, the rest are links.
17395 # The last name is the one that the linker finds with -lNAME
17396 library_names_spec=$lt_library_names_spec
17398 # The coded name of the library, if different from the real name.
17399 soname_spec=$lt_soname_spec
17401 # Permission mode override for installation of shared libraries.
17402 install_override_mode=$lt_install_override_mode
17404 # Command to use after installation of a shared archive.
17405 postinstall_cmds=$lt_postinstall_cmds
17407 # Command to use after uninstallation of a shared archive.
17408 postuninstall_cmds=$lt_postuninstall_cmds
17410 # Commands used to finish a libtool library installation in a directory.
17411 finish_cmds=$lt_finish_cmds
17413 # As "finish_cmds", except a single script fragment to be evaled but
17414 # not shown.
17415 finish_eval=$lt_finish_eval
17417 # Whether we should hardcode library paths into libraries.
17418 hardcode_into_libs=$hardcode_into_libs
17420 # Compile-time system search path for libraries.
17421 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17423 # Run-time system search path for libraries.
17424 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17426 # Whether dlopen is supported.
17427 dlopen_support=$enable_dlopen
17429 # Whether dlopen of programs is supported.
17430 dlopen_self=$enable_dlopen_self
17432 # Whether dlopen of statically linked programs is supported.
17433 dlopen_self_static=$enable_dlopen_self_static
17435 # Commands to strip libraries.
17436 old_striplib=$lt_old_striplib
17437 striplib=$lt_striplib
17440 # The linker used to build libraries.
17441 LD=$lt_LD
17443 # How to create reloadable object files.
17444 reload_flag=$lt_reload_flag
17445 reload_cmds=$lt_reload_cmds
17447 # Commands used to build an old-style archive.
17448 old_archive_cmds=$lt_old_archive_cmds
17450 # A language specific compiler.
17451 CC=$lt_compiler
17453 # Is the compiler the GNU compiler?
17454 with_gcc=$GCC
17456 # Compiler flag to turn off builtin functions.
17457 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17459 # How to pass a linker flag through the compiler.
17460 wl=$lt_lt_prog_compiler_wl
17462 # Additional compiler flags for building library objects.
17463 pic_flag=$lt_lt_prog_compiler_pic
17465 # Compiler flag to prevent dynamic linking.
17466 link_static_flag=$lt_lt_prog_compiler_static
17468 # Does compiler simultaneously support -c and -o options?
17469 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17471 # Whether or not to add -lc for building shared libraries.
17472 build_libtool_need_lc=$archive_cmds_need_lc
17474 # Whether or not to disallow shared libs when runtime libs are static.
17475 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17477 # Compiler flag to allow reflexive dlopens.
17478 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17480 # Compiler flag to generate shared objects directly from archives.
17481 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17483 # Whether the compiler copes with passing no objects directly.
17484 compiler_needs_object=$lt_compiler_needs_object
17486 # Create an old-style archive from a shared archive.
17487 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17489 # Create a temporary old-style archive to link instead of a shared archive.
17490 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17492 # Commands used to build a shared archive.
17493 archive_cmds=$lt_archive_cmds
17494 archive_expsym_cmds=$lt_archive_expsym_cmds
17496 # Commands used to build a loadable module if different from building
17497 # a shared archive.
17498 module_cmds=$lt_module_cmds
17499 module_expsym_cmds=$lt_module_expsym_cmds
17501 # Whether we are building with GNU ld or not.
17502 with_gnu_ld=$lt_with_gnu_ld
17504 # Flag that allows shared libraries with undefined symbols to be built.
17505 allow_undefined_flag=$lt_allow_undefined_flag
17507 # Flag that enforces no undefined symbols.
17508 no_undefined_flag=$lt_no_undefined_flag
17510 # Flag to hardcode \$libdir into a binary during linking.
17511 # This must work even if \$libdir does not exist
17512 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17514 # If ld is used when linking, flag to hardcode \$libdir into a binary
17515 # during linking. This must work even if \$libdir does not exist.
17516 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17518 # Whether we need a single "-rpath" flag with a separated argument.
17519 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17521 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17522 # DIR into the resulting binary.
17523 hardcode_direct=$hardcode_direct
17525 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17526 # DIR into the resulting binary and the resulting library dependency is
17527 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17528 # library is relocated.
17529 hardcode_direct_absolute=$hardcode_direct_absolute
17531 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17532 # into the resulting binary.
17533 hardcode_minus_L=$hardcode_minus_L
17535 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17536 # into the resulting binary.
17537 hardcode_shlibpath_var=$hardcode_shlibpath_var
17539 # Set to "yes" if building a shared library automatically hardcodes DIR
17540 # into the library and all subsequent libraries and executables linked
17541 # against it.
17542 hardcode_automatic=$hardcode_automatic
17544 # Set to yes if linker adds runtime paths of dependent libraries
17545 # to runtime path list.
17546 inherit_rpath=$inherit_rpath
17548 # Whether libtool must link a program against all its dependency libraries.
17549 link_all_deplibs=$link_all_deplibs
17551 # Fix the shell variable \$srcfile for the compiler.
17552 fix_srcfile_path=$lt_fix_srcfile_path
17554 # Set to "yes" if exported symbols are required.
17555 always_export_symbols=$always_export_symbols
17557 # The commands to list exported symbols.
17558 export_symbols_cmds=$lt_export_symbols_cmds
17560 # Symbols that should not be listed in the preloaded symbols.
17561 exclude_expsyms=$lt_exclude_expsyms
17563 # Symbols that must always be exported.
17564 include_expsyms=$lt_include_expsyms
17566 # Commands necessary for linking programs (against libraries) with templates.
17567 prelink_cmds=$lt_prelink_cmds
17569 # Specify filename containing input files.
17570 file_list_spec=$lt_file_list_spec
17572 # How to hardcode a shared library path into an executable.
17573 hardcode_action=$hardcode_action
17575 # The directories searched by this compiler when creating a shared library.
17576 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17578 # Dependencies to place before and after the objects being linked to
17579 # create a shared library.
17580 predep_objects=$lt_predep_objects
17581 postdep_objects=$lt_postdep_objects
17582 predeps=$lt_predeps
17583 postdeps=$lt_postdeps
17585 # The library search path used internally by the compiler when linking
17586 # a shared library.
17587 compiler_lib_search_path=$lt_compiler_lib_search_path
17589 # ### END LIBTOOL CONFIG
17591 _LT_EOF
17593 case $host_os in
17594 aix3*)
17595 cat <<\_LT_EOF >> "$cfgfile"
17596 # AIX sometimes has problems with the GCC collect2 program. For some
17597 # reason, if we set the COLLECT_NAMES environment variable, the problems
17598 # vanish in a puff of smoke.
17599 if test "X${COLLECT_NAMES+set}" != Xset; then
17600 COLLECT_NAMES=
17601 export COLLECT_NAMES
17603 _LT_EOF
17605 esac
17608 ltmain="$ac_aux_dir/ltmain.sh"
17611 # We use sed instead of cat because bash on DJGPP gets confused if
17612 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17613 # text mode, it properly converts lines to CR/LF. This bash problem
17614 # is reportedly fixed, but why not run on old versions too?
17615 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17616 || (rm -f "$cfgfile"; exit 1)
17618 case $xsi_shell in
17619 yes)
17620 cat << \_LT_EOF >> "$cfgfile"
17622 # func_dirname file append nondir_replacement
17623 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17624 # otherwise set result to NONDIR_REPLACEMENT.
17625 func_dirname ()
17627 case ${1} in
17628 */*) func_dirname_result="${1%/*}${2}" ;;
17629 * ) func_dirname_result="${3}" ;;
17630 esac
17633 # func_basename file
17634 func_basename ()
17636 func_basename_result="${1##*/}"
17639 # func_dirname_and_basename file append nondir_replacement
17640 # perform func_basename and func_dirname in a single function
17641 # call:
17642 # dirname: Compute the dirname of FILE. If nonempty,
17643 # add APPEND to the result, otherwise set result
17644 # to NONDIR_REPLACEMENT.
17645 # value returned in "$func_dirname_result"
17646 # basename: Compute filename of FILE.
17647 # value retuned in "$func_basename_result"
17648 # Implementation must be kept synchronized with func_dirname
17649 # and func_basename. For efficiency, we do not delegate to
17650 # those functions but instead duplicate the functionality here.
17651 func_dirname_and_basename ()
17653 case ${1} in
17654 */*) func_dirname_result="${1%/*}${2}" ;;
17655 * ) func_dirname_result="${3}" ;;
17656 esac
17657 func_basename_result="${1##*/}"
17660 # func_stripname prefix suffix name
17661 # strip PREFIX and SUFFIX off of NAME.
17662 # PREFIX and SUFFIX must not contain globbing or regex special
17663 # characters, hashes, percent signs, but SUFFIX may contain a leading
17664 # dot (in which case that matches only a dot).
17665 func_stripname ()
17667 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17668 # positional parameters, so assign one to ordinary parameter first.
17669 func_stripname_result=${3}
17670 func_stripname_result=${func_stripname_result#"${1}"}
17671 func_stripname_result=${func_stripname_result%"${2}"}
17674 # func_opt_split
17675 func_opt_split ()
17677 func_opt_split_opt=${1%%=*}
17678 func_opt_split_arg=${1#*=}
17681 # func_lo2o object
17682 func_lo2o ()
17684 case ${1} in
17685 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17686 *) func_lo2o_result=${1} ;;
17687 esac
17690 # func_xform libobj-or-source
17691 func_xform ()
17693 func_xform_result=${1%.*}.lo
17696 # func_arith arithmetic-term...
17697 func_arith ()
17699 func_arith_result=$(( $* ))
17702 # func_len string
17703 # STRING may not start with a hyphen.
17704 func_len ()
17706 func_len_result=${#1}
17709 _LT_EOF
17711 *) # Bourne compatible functions.
17712 cat << \_LT_EOF >> "$cfgfile"
17714 # func_dirname file append nondir_replacement
17715 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17716 # otherwise set result to NONDIR_REPLACEMENT.
17717 func_dirname ()
17719 # Extract subdirectory from the argument.
17720 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17721 if test "X$func_dirname_result" = "X${1}"; then
17722 func_dirname_result="${3}"
17723 else
17724 func_dirname_result="$func_dirname_result${2}"
17728 # func_basename file
17729 func_basename ()
17731 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17735 # func_stripname prefix suffix name
17736 # strip PREFIX and SUFFIX off of NAME.
17737 # PREFIX and SUFFIX must not contain globbing or regex special
17738 # characters, hashes, percent signs, but SUFFIX may contain a leading
17739 # dot (in which case that matches only a dot).
17740 # func_strip_suffix prefix name
17741 func_stripname ()
17743 case ${2} in
17744 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17745 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17746 esac
17749 # sed scripts:
17750 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17751 my_sed_long_arg='1s/^-[^=]*=//'
17753 # func_opt_split
17754 func_opt_split ()
17756 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17757 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17760 # func_lo2o object
17761 func_lo2o ()
17763 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17766 # func_xform libobj-or-source
17767 func_xform ()
17769 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17772 # func_arith arithmetic-term...
17773 func_arith ()
17775 func_arith_result=`expr "$@"`
17778 # func_len string
17779 # STRING may not start with a hyphen.
17780 func_len ()
17782 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17785 _LT_EOF
17786 esac
17788 case $lt_shell_append in
17789 yes)
17790 cat << \_LT_EOF >> "$cfgfile"
17792 # func_append var value
17793 # Append VALUE to the end of shell variable VAR.
17794 func_append ()
17796 eval "$1+=\$2"
17798 _LT_EOF
17801 cat << \_LT_EOF >> "$cfgfile"
17803 # func_append var value
17804 # Append VALUE to the end of shell variable VAR.
17805 func_append ()
17807 eval "$1=\$$1\$2"
17810 _LT_EOF
17812 esac
17815 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17816 || (rm -f "$cfgfile"; exit 1)
17818 mv -f "$cfgfile" "$ofile" ||
17819 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17820 chmod +x "$ofile"
17823 cat <<_LT_EOF >> "$ofile"
17825 # ### BEGIN LIBTOOL TAG CONFIG: CXX
17827 # The linker used to build libraries.
17828 LD=$lt_LD_CXX
17830 # How to create reloadable object files.
17831 reload_flag=$lt_reload_flag_CXX
17832 reload_cmds=$lt_reload_cmds_CXX
17834 # Commands used to build an old-style archive.
17835 old_archive_cmds=$lt_old_archive_cmds_CXX
17837 # A language specific compiler.
17838 CC=$lt_compiler_CXX
17840 # Is the compiler the GNU compiler?
17841 with_gcc=$GCC_CXX
17843 # Compiler flag to turn off builtin functions.
17844 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
17846 # How to pass a linker flag through the compiler.
17847 wl=$lt_lt_prog_compiler_wl_CXX
17849 # Additional compiler flags for building library objects.
17850 pic_flag=$lt_lt_prog_compiler_pic_CXX
17852 # Compiler flag to prevent dynamic linking.
17853 link_static_flag=$lt_lt_prog_compiler_static_CXX
17855 # Does compiler simultaneously support -c and -o options?
17856 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
17858 # Whether or not to add -lc for building shared libraries.
17859 build_libtool_need_lc=$archive_cmds_need_lc_CXX
17861 # Whether or not to disallow shared libs when runtime libs are static.
17862 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
17864 # Compiler flag to allow reflexive dlopens.
17865 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
17867 # Compiler flag to generate shared objects directly from archives.
17868 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
17870 # Whether the compiler copes with passing no objects directly.
17871 compiler_needs_object=$lt_compiler_needs_object_CXX
17873 # Create an old-style archive from a shared archive.
17874 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
17876 # Create a temporary old-style archive to link instead of a shared archive.
17877 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
17879 # Commands used to build a shared archive.
17880 archive_cmds=$lt_archive_cmds_CXX
17881 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
17883 # Commands used to build a loadable module if different from building
17884 # a shared archive.
17885 module_cmds=$lt_module_cmds_CXX
17886 module_expsym_cmds=$lt_module_expsym_cmds_CXX
17888 # Whether we are building with GNU ld or not.
17889 with_gnu_ld=$lt_with_gnu_ld_CXX
17891 # Flag that allows shared libraries with undefined symbols to be built.
17892 allow_undefined_flag=$lt_allow_undefined_flag_CXX
17894 # Flag that enforces no undefined symbols.
17895 no_undefined_flag=$lt_no_undefined_flag_CXX
17897 # Flag to hardcode \$libdir into a binary during linking.
17898 # This must work even if \$libdir does not exist
17899 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
17901 # If ld is used when linking, flag to hardcode \$libdir into a binary
17902 # during linking. This must work even if \$libdir does not exist.
17903 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
17905 # Whether we need a single "-rpath" flag with a separated argument.
17906 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
17908 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17909 # DIR into the resulting binary.
17910 hardcode_direct=$hardcode_direct_CXX
17912 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17913 # DIR into the resulting binary and the resulting library dependency is
17914 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17915 # library is relocated.
17916 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
17918 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17919 # into the resulting binary.
17920 hardcode_minus_L=$hardcode_minus_L_CXX
17922 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17923 # into the resulting binary.
17924 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
17926 # Set to "yes" if building a shared library automatically hardcodes DIR
17927 # into the library and all subsequent libraries and executables linked
17928 # against it.
17929 hardcode_automatic=$hardcode_automatic_CXX
17931 # Set to yes if linker adds runtime paths of dependent libraries
17932 # to runtime path list.
17933 inherit_rpath=$inherit_rpath_CXX
17935 # Whether libtool must link a program against all its dependency libraries.
17936 link_all_deplibs=$link_all_deplibs_CXX
17938 # Fix the shell variable \$srcfile for the compiler.
17939 fix_srcfile_path=$lt_fix_srcfile_path_CXX
17941 # Set to "yes" if exported symbols are required.
17942 always_export_symbols=$always_export_symbols_CXX
17944 # The commands to list exported symbols.
17945 export_symbols_cmds=$lt_export_symbols_cmds_CXX
17947 # Symbols that should not be listed in the preloaded symbols.
17948 exclude_expsyms=$lt_exclude_expsyms_CXX
17950 # Symbols that must always be exported.
17951 include_expsyms=$lt_include_expsyms_CXX
17953 # Commands necessary for linking programs (against libraries) with templates.
17954 prelink_cmds=$lt_prelink_cmds_CXX
17956 # Specify filename containing input files.
17957 file_list_spec=$lt_file_list_spec_CXX
17959 # How to hardcode a shared library path into an executable.
17960 hardcode_action=$hardcode_action_CXX
17962 # The directories searched by this compiler when creating a shared library.
17963 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
17965 # Dependencies to place before and after the objects being linked to
17966 # create a shared library.
17967 predep_objects=$lt_predep_objects_CXX
17968 postdep_objects=$lt_postdep_objects_CXX
17969 predeps=$lt_predeps_CXX
17970 postdeps=$lt_postdeps_CXX
17972 # The library search path used internally by the compiler when linking
17973 # a shared library.
17974 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
17976 # ### END LIBTOOL TAG CONFIG: CXX
17977 _LT_EOF
17980 "testsuite/Makefile":F) cat > vpsed$$ << \_EOF
17981 s!`test -f '$<' || echo '$(srcdir)/'`!!
17982 _EOF
17983 sed -f vpsed$$ $ac_file > tmp$$
17984 mv tmp$$ $ac_file
17985 rm vpsed$$
17986 echo 'MULTISUBDIR =' >> $ac_file
17987 ml_norecursion=yes
17988 . ${multi_basedir}/config-ml.in
17989 { ml_norecursion=; unset ml_norecursion;}
17992 esac
17993 done # for ac_tag
17996 as_fn_exit 0
17997 _ACEOF
17998 ac_clean_files=$ac_clean_files_save
18000 test $ac_write_fail = 0 ||
18001 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
18004 # configure is writing to config.log, and then calls config.status.
18005 # config.status does its own redirection, appending to config.log.
18006 # Unfortunately, on DOS this fails, as config.log is still kept open
18007 # by configure, so config.status won't be able to write to it; its
18008 # output is simply discarded. So we exec the FD to /dev/null,
18009 # effectively closing config.log, so it can be properly (re)opened and
18010 # appended to by config.status. When coming back to configure, we
18011 # need to make the FD available again.
18012 if test "$no_create" != yes; then
18013 ac_cs_success=:
18014 ac_config_status_args=
18015 test "$silent" = yes &&
18016 ac_config_status_args="$ac_config_status_args --quiet"
18017 exec 5>/dev/null
18018 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18019 exec 5>>config.log
18020 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18021 # would make configure fail if this is the last instruction.
18022 $ac_cs_success || as_fn_exit $?
18024 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18026 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}