* go.test/go-test.exp (go-gc-tests): Skip nilptr test on s390*.
[official-gcc.git] / libsanitizer / configure
blob9ded4cc7782cf5dec6665c9796d39ba4aaf53777
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for package-unused version-unused.
5 # Report bugs to <libsanitizer>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
36 as_nl='
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
150 esac
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166 else
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1
176 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
177 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
178 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
179 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180 PATH=/empty FPATH=/empty; export PATH FPATH
181 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
182 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
183 if (eval "$as_required") 2>/dev/null; then :
184 as_have_required=yes
185 else
186 as_have_required=no
188 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
190 else
191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
192 as_found=false
193 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
195 IFS=$as_save_IFS
196 test -z "$as_dir" && as_dir=.
197 as_found=:
198 case $as_dir in #(
200 for as_base in sh bash ksh sh5; do
201 # Try only shells that exist, to save several forks.
202 as_shell=$as_dir/$as_base
203 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
204 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 CONFIG_SHELL=$as_shell as_have_required=yes
206 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
207 break 2
210 done;;
211 esac
212 as_found=false
213 done
214 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
215 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
216 CONFIG_SHELL=$SHELL as_have_required=yes
217 fi; }
218 IFS=$as_save_IFS
221 if test "x$CONFIG_SHELL" != x; then :
222 # We cannot yet assume a decent shell, so we have to provide a
223 # neutralization value for shells without unset; and this also
224 # works around shells that cannot unset nonexistent variables.
225 BASH_ENV=/dev/null
226 ENV=/dev/null
227 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
228 export CONFIG_SHELL
229 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
232 if test x$as_have_required = xno; then :
233 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system."
235 if test x${ZSH_VERSION+set} = xset ; then
236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
238 else
239 $as_echo "$0: Please tell bug-autoconf@gnu.org and libsanitizer about
240 $0: your system, including any error possibly output before
241 $0: this message. Then install a modern shell, or manually
242 $0: run the script under such a shell if you do have one."
244 exit 1
248 SHELL=${CONFIG_SHELL-/bin/sh}
249 export SHELL
250 # Unset more variables known to interfere with behavior of common tools.
251 CLICOLOR_FORCE= GREP_OPTIONS=
252 unset CLICOLOR_FORCE GREP_OPTIONS
254 ## --------------------- ##
255 ## M4sh Shell Functions. ##
256 ## --------------------- ##
257 # as_fn_unset VAR
258 # ---------------
259 # Portably unset VAR.
260 as_fn_unset ()
262 { eval $1=; unset $1;}
264 as_unset=as_fn_unset
266 # as_fn_set_status STATUS
267 # -----------------------
268 # Set $? to STATUS, without forking.
269 as_fn_set_status ()
271 return $1
272 } # as_fn_set_status
274 # as_fn_exit STATUS
275 # -----------------
276 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
277 as_fn_exit ()
279 set +e
280 as_fn_set_status $1
281 exit $1
282 } # as_fn_exit
284 # as_fn_mkdir_p
285 # -------------
286 # Create "$as_dir" as a directory, including parents if necessary.
287 as_fn_mkdir_p ()
290 case $as_dir in #(
291 -*) as_dir=./$as_dir;;
292 esac
293 test -d "$as_dir" || eval $as_mkdir_p || {
294 as_dirs=
295 while :; do
296 case $as_dir in #(
297 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298 *) as_qdir=$as_dir;;
299 esac
300 as_dirs="'$as_qdir' $as_dirs"
301 as_dir=`$as_dirname -- "$as_dir" ||
302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303 X"$as_dir" : 'X\(//\)[^/]' \| \
304 X"$as_dir" : 'X\(//\)$' \| \
305 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306 $as_echo X"$as_dir" |
307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
308 s//\1/
311 /^X\(\/\/\)[^/].*/{
312 s//\1/
315 /^X\(\/\/\)$/{
316 s//\1/
319 /^X\(\/\).*/{
320 s//\1/
323 s/.*/./; q'`
324 test -d "$as_dir" && break
325 done
326 test -z "$as_dirs" || eval "mkdir $as_dirs"
327 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
330 } # as_fn_mkdir_p
331 # as_fn_append VAR VALUE
332 # ----------------------
333 # Append the text in VALUE to the end of the definition contained in VAR. Take
334 # advantage of any shell optimizations that allow amortized linear growth over
335 # repeated appends, instead of the typical quadratic growth present in naive
336 # implementations.
337 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
338 eval 'as_fn_append ()
340 eval $1+=\$2
342 else
343 as_fn_append ()
345 eval $1=\$$1\$2
347 fi # as_fn_append
349 # as_fn_arith ARG...
350 # ------------------
351 # Perform arithmetic evaluation on the ARGs, and store the result in the
352 # global $as_val. Take advantage of shells that can avoid forks. The arguments
353 # must be portable across $(()) and expr.
354 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
355 eval 'as_fn_arith ()
357 as_val=$(( $* ))
359 else
360 as_fn_arith ()
362 as_val=`expr "$@" || test $? -eq 1`
364 fi # as_fn_arith
367 # as_fn_error ERROR [LINENO LOG_FD]
368 # ---------------------------------
369 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371 # script with status $?, using 1 if that was 0.
372 as_fn_error ()
374 as_status=$?; test $as_status -eq 0 && as_status=1
375 if test "$3"; then
376 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
379 $as_echo "$as_me: error: $1" >&2
380 as_fn_exit $as_status
381 } # as_fn_error
383 if expr a : '\(a\)' >/dev/null 2>&1 &&
384 test "X`expr 00001 : '.*\(...\)'`" = X001; then
385 as_expr=expr
386 else
387 as_expr=false
390 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391 as_basename=basename
392 else
393 as_basename=false
396 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397 as_dirname=dirname
398 else
399 as_dirname=false
402 as_me=`$as_basename -- "$0" ||
403 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404 X"$0" : 'X\(//\)$' \| \
405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
406 $as_echo X/"$0" |
407 sed '/^.*\/\([^/][^/]*\)\/*$/{
408 s//\1/
411 /^X\/\(\/\/\)$/{
412 s//\1/
415 /^X\/\(\/\).*/{
416 s//\1/
419 s/.*/./; q'`
421 # Avoid depending upon Character Ranges.
422 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
423 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
425 as_cr_digits='0123456789'
426 as_cr_alnum=$as_cr_Letters$as_cr_digits
429 as_lineno_1=$LINENO as_lineno_1a=$LINENO
430 as_lineno_2=$LINENO as_lineno_2a=$LINENO
431 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
433 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
434 sed -n '
436 /[$]LINENO/=
437 ' <$as_myself |
438 sed '
439 s/[$]LINENO.*/&-/
440 t lineno
442 :lineno
444 :loop
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446 t loop
447 s/-\n.*//
448 ' >$as_me.lineno &&
449 chmod +x "$as_me.lineno" ||
450 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
452 # Don't try to exec as it changes $[0], causing all sort of problems
453 # (the dirname of $[0] is not the place where we might find the
454 # original and so on. Autoconf is especially sensitive to this).
455 . "./$as_me.lineno"
456 # Exit status is that of the last command.
457 exit
460 ECHO_C= ECHO_N= ECHO_T=
461 case `echo -n x` in #(((((
462 -n*)
463 case `echo 'xy\c'` in
464 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
465 xy) ECHO_C='\c';;
466 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
467 ECHO_T=' ';;
468 esac;;
470 ECHO_N='-n';;
471 esac
473 rm -f conf$$ conf$$.exe conf$$.file
474 if test -d conf$$.dir; then
475 rm -f conf$$.dir/conf$$.file
476 else
477 rm -f conf$$.dir
478 mkdir conf$$.dir 2>/dev/null
480 if (echo >conf$$.file) 2>/dev/null; then
481 if ln -s conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s='ln -s'
483 # ... but there are two gotchas:
484 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486 # In both cases, we have to default to `cp -p'.
487 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
488 as_ln_s='cp -p'
489 elif ln conf$$.file conf$$ 2>/dev/null; then
490 as_ln_s=ln
491 else
492 as_ln_s='cp -p'
494 else
495 as_ln_s='cp -p'
497 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498 rmdir conf$$.dir 2>/dev/null
500 if mkdir -p . 2>/dev/null; then
501 as_mkdir_p='mkdir -p "$as_dir"'
502 else
503 test -d ./-p && rmdir ./-p
504 as_mkdir_p=false
507 if test -x / >/dev/null 2>&1; then
508 as_test_x='test -x'
509 else
510 if ls -dL / >/dev/null 2>&1; then
511 as_ls_L_option=L
512 else
513 as_ls_L_option=
515 as_test_x='
516 eval sh -c '\''
517 if test -d "$1"; then
518 test -d "$1/.";
519 else
520 case $1 in #(
521 -*)set "./$1";;
522 esac;
523 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524 ???[sx]*):;;*)false;;esac;fi
525 '\'' sh
528 as_executable_p=$as_test_x
530 # Sed expression to map a string onto a valid CPP name.
531 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533 # Sed expression to map a string onto a valid variable name.
534 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
536 SHELL=${CONFIG_SHELL-/bin/sh}
539 exec 7<&0 </dev/null 6>&1
541 # Name of the host.
542 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
543 # so uname gets run too.
544 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547 # Initializations.
549 ac_default_prefix=/usr/local
550 ac_clean_files=
551 ac_config_libobj_dir=.
552 LIBOBJS=
553 cross_compiling=no
554 subdirs=
555 MFLAGS=
556 MAKEFLAGS=
558 # Identity of this package.
559 PACKAGE_NAME='package-unused'
560 PACKAGE_TARNAME='package-unused'
561 PACKAGE_VERSION='version-unused'
562 PACKAGE_STRING='package-unused version-unused'
563 PACKAGE_BUGREPORT='libsanitizer'
564 PACKAGE_URL=''
566 ac_unique_file="include/sanitizer/common_interface_defs.h"
567 # Factoring default headers for most tests.
568 ac_includes_default="\
569 #include <stdio.h>
570 #ifdef HAVE_SYS_TYPES_H
571 # include <sys/types.h>
572 #endif
573 #ifdef HAVE_SYS_STAT_H
574 # include <sys/stat.h>
575 #endif
576 #ifdef STDC_HEADERS
577 # include <stdlib.h>
578 # include <stddef.h>
579 #else
580 # ifdef HAVE_STDLIB_H
581 # include <stdlib.h>
582 # endif
583 #endif
584 #ifdef HAVE_STRING_H
585 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
586 # include <memory.h>
587 # endif
588 # include <string.h>
589 #endif
590 #ifdef HAVE_STRINGS_H
591 # include <strings.h>
592 #endif
593 #ifdef HAVE_INTTYPES_H
594 # include <inttypes.h>
595 #endif
596 #ifdef HAVE_STDINT_H
597 # include <stdint.h>
598 #endif
599 #ifdef HAVE_UNISTD_H
600 # include <unistd.h>
601 #endif"
603 ac_subst_vars='am__EXEEXT_FALSE
604 am__EXEEXT_TRUE
605 LTLIBOBJS
606 LIBOBJS
607 TSAN_TARGET_DEPENDENT_OBJECTS
608 LIBBACKTRACE_SUPPORTED_FALSE
609 LIBBACKTRACE_SUPPORTED_TRUE
610 BACKTRACE_SUPPORTS_THREADS
611 BACKTRACE_USES_MALLOC
612 ALLOC_FILE
613 VIEW_FILE
614 BACKTRACE_SUPPORTED
615 FORMAT_FILE
616 SANITIZER_SUPPORTED_FALSE
617 SANITIZER_SUPPORTED_TRUE
618 USING_MAC_INTERPOSE_FALSE
619 USING_MAC_INTERPOSE_TRUE
620 link_liblsan
621 link_libubsan
622 link_libtsan
623 link_libasan
624 LSAN_SUPPORTED_FALSE
625 LSAN_SUPPORTED_TRUE
626 TSAN_SUPPORTED_FALSE
627 TSAN_SUPPORTED_TRUE
628 enable_static
629 enable_shared
630 CXXCPP
631 OTOOL64
632 OTOOL
633 LIPO
634 NMEDIT
635 DSYMUTIL
637 OBJDUMP
638 LN_S
640 ac_ct_DUMPBIN
641 DUMPBIN
643 FGREP
645 LIBTOOL
646 RANLIB
647 am__fastdepCCAS_FALSE
648 am__fastdepCCAS_TRUE
649 CCASDEPMODE
650 CCASFLAGS
651 CCAS
652 am__fastdepCXX_FALSE
653 am__fastdepCXX_TRUE
654 CXXDEPMODE
655 ac_ct_CXX
656 CXXFLAGS
658 toolexeclibdir
659 toolexecdir
660 MAINT
661 MAINTAINER_MODE_FALSE
662 MAINTAINER_MODE_TRUE
663 am__fastdepCC_FALSE
664 am__fastdepCC_TRUE
665 CCDEPMODE
666 AMDEPBACKSLASH
667 AMDEP_FALSE
668 AMDEP_TRUE
669 am__quote
670 am__include
671 DEPDIR
672 am__untar
673 am__tar
674 AMTAR
675 am__leading_dot
676 SET_MAKE
678 mkdir_p
679 MKDIR_P
680 INSTALL_STRIP_PROGRAM
681 STRIP
682 install_sh
683 MAKEINFO
684 AUTOHEADER
685 AUTOMAKE
686 AUTOCONF
687 ACLOCAL
688 VERSION
689 PACKAGE
690 CYGPATH_W
691 am__isrc
692 INSTALL_DATA
693 INSTALL_SCRIPT
694 INSTALL_PROGRAM
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 EGREP
711 GREP
713 OBJEXT
714 EXEEXT
715 ac_ct_CC
716 CPPFLAGS
717 LDFLAGS
718 CFLAGS
720 multi_basedir
721 target_alias
722 host_alias
723 build_alias
724 LIBS
725 ECHO_T
726 ECHO_N
727 ECHO_C
728 DEFS
729 mandir
730 localedir
731 libdir
732 psdir
733 pdfdir
734 dvidir
735 htmldir
736 infodir
737 docdir
738 oldincludedir
739 includedir
740 localstatedir
741 sharedstatedir
742 sysconfdir
743 datadir
744 datarootdir
745 libexecdir
746 sbindir
747 bindir
748 program_transform_name
749 prefix
750 exec_prefix
751 PACKAGE_URL
752 PACKAGE_BUGREPORT
753 PACKAGE_STRING
754 PACKAGE_VERSION
755 PACKAGE_TARNAME
756 PACKAGE_NAME
757 PATH_SEPARATOR
758 SHELL'
759 ac_subst_files=''
760 ac_user_opts='
761 enable_option_checking
762 enable_multilib
763 enable_version_specific_runtime_libs
764 enable_dependency_tracking
765 enable_maintainer_mode
766 enable_shared
767 enable_static
768 with_pic
769 enable_fast_install
770 with_gnu_ld
771 enable_libtool_lock
773 ac_precious_vars='build_alias
774 host_alias
775 target_alias
777 CFLAGS
778 LDFLAGS
779 LIBS
780 CPPFLAGS
783 CXXFLAGS
785 CCAS
786 CCASFLAGS
787 CXXCPP'
790 # Initialize some variables set by options.
791 ac_init_help=
792 ac_init_version=false
793 ac_unrecognized_opts=
794 ac_unrecognized_sep=
795 # The variables have the same names as the options, with
796 # dashes changed to underlines.
797 cache_file=/dev/null
798 exec_prefix=NONE
799 no_create=
800 no_recursion=
801 prefix=NONE
802 program_prefix=NONE
803 program_suffix=NONE
804 program_transform_name=s,x,x,
805 silent=
806 site=
807 srcdir=
808 verbose=
809 x_includes=NONE
810 x_libraries=NONE
812 # Installation directory options.
813 # These are left unexpanded so users can "make install exec_prefix=/foo"
814 # and all the variables that are supposed to be based on exec_prefix
815 # by default will actually change.
816 # Use braces instead of parens because sh, perl, etc. also accept them.
817 # (The list follows the same order as the GNU Coding Standards.)
818 bindir='${exec_prefix}/bin'
819 sbindir='${exec_prefix}/sbin'
820 libexecdir='${exec_prefix}/libexec'
821 datarootdir='${prefix}/share'
822 datadir='${datarootdir}'
823 sysconfdir='${prefix}/etc'
824 sharedstatedir='${prefix}/com'
825 localstatedir='${prefix}/var'
826 includedir='${prefix}/include'
827 oldincludedir='/usr/include'
828 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
829 infodir='${datarootdir}/info'
830 htmldir='${docdir}'
831 dvidir='${docdir}'
832 pdfdir='${docdir}'
833 psdir='${docdir}'
834 libdir='${exec_prefix}/lib'
835 localedir='${datarootdir}/locale'
836 mandir='${datarootdir}/man'
838 ac_prev=
839 ac_dashdash=
840 for ac_option
842 # If the previous option needs an argument, assign it.
843 if test -n "$ac_prev"; then
844 eval $ac_prev=\$ac_option
845 ac_prev=
846 continue
849 case $ac_option in
850 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
851 *) ac_optarg=yes ;;
852 esac
854 # Accept the important Cygnus configure options, so we can diagnose typos.
856 case $ac_dashdash$ac_option in
858 ac_dashdash=yes ;;
860 -bindir | --bindir | --bindi | --bind | --bin | --bi)
861 ac_prev=bindir ;;
862 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
863 bindir=$ac_optarg ;;
865 -build | --build | --buil | --bui | --bu)
866 ac_prev=build_alias ;;
867 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
868 build_alias=$ac_optarg ;;
870 -cache-file | --cache-file | --cache-fil | --cache-fi \
871 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
872 ac_prev=cache_file ;;
873 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
874 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
875 cache_file=$ac_optarg ;;
877 --config-cache | -C)
878 cache_file=config.cache ;;
880 -datadir | --datadir | --datadi | --datad)
881 ac_prev=datadir ;;
882 -datadir=* | --datadir=* | --datadi=* | --datad=*)
883 datadir=$ac_optarg ;;
885 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
886 | --dataroo | --dataro | --datar)
887 ac_prev=datarootdir ;;
888 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
889 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
890 datarootdir=$ac_optarg ;;
892 -disable-* | --disable-*)
893 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
894 # Reject names that are not valid shell variable names.
895 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
896 as_fn_error "invalid feature name: $ac_useropt"
897 ac_useropt_orig=$ac_useropt
898 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
899 case $ac_user_opts in
901 "enable_$ac_useropt"
902 "*) ;;
903 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
904 ac_unrecognized_sep=', ';;
905 esac
906 eval enable_$ac_useropt=no ;;
908 -docdir | --docdir | --docdi | --doc | --do)
909 ac_prev=docdir ;;
910 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
911 docdir=$ac_optarg ;;
913 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
914 ac_prev=dvidir ;;
915 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
916 dvidir=$ac_optarg ;;
918 -enable-* | --enable-*)
919 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
920 # Reject names that are not valid shell variable names.
921 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
922 as_fn_error "invalid feature name: $ac_useropt"
923 ac_useropt_orig=$ac_useropt
924 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
925 case $ac_user_opts in
927 "enable_$ac_useropt"
928 "*) ;;
929 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
930 ac_unrecognized_sep=', ';;
931 esac
932 eval enable_$ac_useropt=\$ac_optarg ;;
934 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
935 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
936 | --exec | --exe | --ex)
937 ac_prev=exec_prefix ;;
938 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
939 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
940 | --exec=* | --exe=* | --ex=*)
941 exec_prefix=$ac_optarg ;;
943 -gas | --gas | --ga | --g)
944 # Obsolete; use --with-gas.
945 with_gas=yes ;;
947 -help | --help | --hel | --he | -h)
948 ac_init_help=long ;;
949 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
950 ac_init_help=recursive ;;
951 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
952 ac_init_help=short ;;
954 -host | --host | --hos | --ho)
955 ac_prev=host_alias ;;
956 -host=* | --host=* | --hos=* | --ho=*)
957 host_alias=$ac_optarg ;;
959 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
960 ac_prev=htmldir ;;
961 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
962 | --ht=*)
963 htmldir=$ac_optarg ;;
965 -includedir | --includedir | --includedi | --included | --include \
966 | --includ | --inclu | --incl | --inc)
967 ac_prev=includedir ;;
968 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
969 | --includ=* | --inclu=* | --incl=* | --inc=*)
970 includedir=$ac_optarg ;;
972 -infodir | --infodir | --infodi | --infod | --info | --inf)
973 ac_prev=infodir ;;
974 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
975 infodir=$ac_optarg ;;
977 -libdir | --libdir | --libdi | --libd)
978 ac_prev=libdir ;;
979 -libdir=* | --libdir=* | --libdi=* | --libd=*)
980 libdir=$ac_optarg ;;
982 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
983 | --libexe | --libex | --libe)
984 ac_prev=libexecdir ;;
985 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
986 | --libexe=* | --libex=* | --libe=*)
987 libexecdir=$ac_optarg ;;
989 -localedir | --localedir | --localedi | --localed | --locale)
990 ac_prev=localedir ;;
991 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
992 localedir=$ac_optarg ;;
994 -localstatedir | --localstatedir | --localstatedi | --localstated \
995 | --localstate | --localstat | --localsta | --localst | --locals)
996 ac_prev=localstatedir ;;
997 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
998 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
999 localstatedir=$ac_optarg ;;
1001 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1002 ac_prev=mandir ;;
1003 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1004 mandir=$ac_optarg ;;
1006 -nfp | --nfp | --nf)
1007 # Obsolete; use --without-fp.
1008 with_fp=no ;;
1010 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1011 | --no-cr | --no-c | -n)
1012 no_create=yes ;;
1014 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1015 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1016 no_recursion=yes ;;
1018 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1019 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1020 | --oldin | --oldi | --old | --ol | --o)
1021 ac_prev=oldincludedir ;;
1022 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1023 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1024 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1025 oldincludedir=$ac_optarg ;;
1027 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1028 ac_prev=prefix ;;
1029 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1030 prefix=$ac_optarg ;;
1032 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1033 | --program-pre | --program-pr | --program-p)
1034 ac_prev=program_prefix ;;
1035 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1036 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1037 program_prefix=$ac_optarg ;;
1039 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1040 | --program-suf | --program-su | --program-s)
1041 ac_prev=program_suffix ;;
1042 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1043 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1044 program_suffix=$ac_optarg ;;
1046 -program-transform-name | --program-transform-name \
1047 | --program-transform-nam | --program-transform-na \
1048 | --program-transform-n | --program-transform- \
1049 | --program-transform | --program-transfor \
1050 | --program-transfo | --program-transf \
1051 | --program-trans | --program-tran \
1052 | --progr-tra | --program-tr | --program-t)
1053 ac_prev=program_transform_name ;;
1054 -program-transform-name=* | --program-transform-name=* \
1055 | --program-transform-nam=* | --program-transform-na=* \
1056 | --program-transform-n=* | --program-transform-=* \
1057 | --program-transform=* | --program-transfor=* \
1058 | --program-transfo=* | --program-transf=* \
1059 | --program-trans=* | --program-tran=* \
1060 | --progr-tra=* | --program-tr=* | --program-t=*)
1061 program_transform_name=$ac_optarg ;;
1063 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1064 ac_prev=pdfdir ;;
1065 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1066 pdfdir=$ac_optarg ;;
1068 -psdir | --psdir | --psdi | --psd | --ps)
1069 ac_prev=psdir ;;
1070 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1071 psdir=$ac_optarg ;;
1073 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1074 | -silent | --silent | --silen | --sile | --sil)
1075 silent=yes ;;
1077 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1078 ac_prev=sbindir ;;
1079 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1080 | --sbi=* | --sb=*)
1081 sbindir=$ac_optarg ;;
1083 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1084 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1085 | --sharedst | --shareds | --shared | --share | --shar \
1086 | --sha | --sh)
1087 ac_prev=sharedstatedir ;;
1088 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1089 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1090 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1091 | --sha=* | --sh=*)
1092 sharedstatedir=$ac_optarg ;;
1094 -site | --site | --sit)
1095 ac_prev=site ;;
1096 -site=* | --site=* | --sit=*)
1097 site=$ac_optarg ;;
1099 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1100 ac_prev=srcdir ;;
1101 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1102 srcdir=$ac_optarg ;;
1104 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1105 | --syscon | --sysco | --sysc | --sys | --sy)
1106 ac_prev=sysconfdir ;;
1107 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1108 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1109 sysconfdir=$ac_optarg ;;
1111 -target | --target | --targe | --targ | --tar | --ta | --t)
1112 ac_prev=target_alias ;;
1113 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1114 target_alias=$ac_optarg ;;
1116 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1117 verbose=yes ;;
1119 -version | --version | --versio | --versi | --vers | -V)
1120 ac_init_version=: ;;
1122 -with-* | --with-*)
1123 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1124 # Reject names that are not valid shell variable names.
1125 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1126 as_fn_error "invalid package name: $ac_useropt"
1127 ac_useropt_orig=$ac_useropt
1128 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1129 case $ac_user_opts in
1131 "with_$ac_useropt"
1132 "*) ;;
1133 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1134 ac_unrecognized_sep=', ';;
1135 esac
1136 eval with_$ac_useropt=\$ac_optarg ;;
1138 -without-* | --without-*)
1139 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1140 # Reject names that are not valid shell variable names.
1141 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1142 as_fn_error "invalid package name: $ac_useropt"
1143 ac_useropt_orig=$ac_useropt
1144 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1145 case $ac_user_opts in
1147 "with_$ac_useropt"
1148 "*) ;;
1149 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1150 ac_unrecognized_sep=', ';;
1151 esac
1152 eval with_$ac_useropt=no ;;
1154 --x)
1155 # Obsolete; use --with-x.
1156 with_x=yes ;;
1158 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1159 | --x-incl | --x-inc | --x-in | --x-i)
1160 ac_prev=x_includes ;;
1161 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1162 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1163 x_includes=$ac_optarg ;;
1165 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1166 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1167 ac_prev=x_libraries ;;
1168 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1169 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1170 x_libraries=$ac_optarg ;;
1172 -*) as_fn_error "unrecognized option: \`$ac_option'
1173 Try \`$0 --help' for more information."
1176 *=*)
1177 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1178 # Reject names that are not valid shell variable names.
1179 case $ac_envvar in #(
1180 '' | [0-9]* | *[!_$as_cr_alnum]* )
1181 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1182 esac
1183 eval $ac_envvar=\$ac_optarg
1184 export $ac_envvar ;;
1187 # FIXME: should be removed in autoconf 3.0.
1188 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1189 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1190 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1191 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1194 esac
1195 done
1197 if test -n "$ac_prev"; then
1198 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1199 as_fn_error "missing argument to $ac_option"
1202 if test -n "$ac_unrecognized_opts"; then
1203 case $enable_option_checking in
1204 no) ;;
1205 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1206 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1207 esac
1210 # Check all directory arguments for consistency.
1211 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1212 datadir sysconfdir sharedstatedir localstatedir includedir \
1213 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1214 libdir localedir mandir
1216 eval ac_val=\$$ac_var
1217 # Remove trailing slashes.
1218 case $ac_val in
1219 */ )
1220 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1221 eval $ac_var=\$ac_val;;
1222 esac
1223 # Be sure to have absolute directory names.
1224 case $ac_val in
1225 [\\/$]* | ?:[\\/]* ) continue;;
1226 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1227 esac
1228 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1229 done
1231 # There might be people who depend on the old broken behavior: `$host'
1232 # used to hold the argument of --host etc.
1233 # FIXME: To remove some day.
1234 build=$build_alias
1235 host=$host_alias
1236 target=$target_alias
1238 # FIXME: To remove some day.
1239 if test "x$host_alias" != x; then
1240 if test "x$build_alias" = x; then
1241 cross_compiling=maybe
1242 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1243 If a cross compiler is detected then cross compile mode will be used." >&2
1244 elif test "x$build_alias" != "x$host_alias"; then
1245 cross_compiling=yes
1249 ac_tool_prefix=
1250 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1252 test "$silent" = yes && exec 6>/dev/null
1255 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1256 ac_ls_di=`ls -di .` &&
1257 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1258 as_fn_error "working directory cannot be determined"
1259 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1260 as_fn_error "pwd does not report name of working directory"
1263 # Find the source files, if location was not specified.
1264 if test -z "$srcdir"; then
1265 ac_srcdir_defaulted=yes
1266 # Try the directory containing this script, then the parent directory.
1267 ac_confdir=`$as_dirname -- "$as_myself" ||
1268 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1269 X"$as_myself" : 'X\(//\)[^/]' \| \
1270 X"$as_myself" : 'X\(//\)$' \| \
1271 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1272 $as_echo X"$as_myself" |
1273 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1274 s//\1/
1277 /^X\(\/\/\)[^/].*/{
1278 s//\1/
1281 /^X\(\/\/\)$/{
1282 s//\1/
1285 /^X\(\/\).*/{
1286 s//\1/
1289 s/.*/./; q'`
1290 srcdir=$ac_confdir
1291 if test ! -r "$srcdir/$ac_unique_file"; then
1292 srcdir=..
1294 else
1295 ac_srcdir_defaulted=no
1297 if test ! -r "$srcdir/$ac_unique_file"; then
1298 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1299 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1301 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1302 ac_abs_confdir=`(
1303 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1304 pwd)`
1305 # When building in place, set srcdir=.
1306 if test "$ac_abs_confdir" = "$ac_pwd"; then
1307 srcdir=.
1309 # Remove unnecessary trailing slashes from srcdir.
1310 # Double slashes in file names in object file debugging info
1311 # mess up M-x gdb in Emacs.
1312 case $srcdir in
1313 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1314 esac
1315 for ac_var in $ac_precious_vars; do
1316 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1317 eval ac_env_${ac_var}_value=\$${ac_var}
1318 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1319 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1320 done
1323 # Report the --help message.
1325 if test "$ac_init_help" = "long"; then
1326 # Omit some internal or obsolete options to make the list less imposing.
1327 # This message is too long to be a string in the A/UX 3.1 sh.
1328 cat <<_ACEOF
1329 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1331 Usage: $0 [OPTION]... [VAR=VALUE]...
1333 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1334 VAR=VALUE. See below for descriptions of some of the useful variables.
1336 Defaults for the options are specified in brackets.
1338 Configuration:
1339 -h, --help display this help and exit
1340 --help=short display options specific to this package
1341 --help=recursive display the short help of all the included packages
1342 -V, --version display version information and exit
1343 -q, --quiet, --silent do not print \`checking...' messages
1344 --cache-file=FILE cache test results in FILE [disabled]
1345 -C, --config-cache alias for \`--cache-file=config.cache'
1346 -n, --no-create do not create output files
1347 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1349 Installation directories:
1350 --prefix=PREFIX install architecture-independent files in PREFIX
1351 [$ac_default_prefix]
1352 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1353 [PREFIX]
1355 By default, \`make install' will install all the files in
1356 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1357 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1358 for instance \`--prefix=\$HOME'.
1360 For better control, use the options below.
1362 Fine tuning of the installation directories:
1363 --bindir=DIR user executables [EPREFIX/bin]
1364 --sbindir=DIR system admin executables [EPREFIX/sbin]
1365 --libexecdir=DIR program executables [EPREFIX/libexec]
1366 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1367 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1368 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1369 --libdir=DIR object code libraries [EPREFIX/lib]
1370 --includedir=DIR C header files [PREFIX/include]
1371 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1372 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1373 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1374 --infodir=DIR info documentation [DATAROOTDIR/info]
1375 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1376 --mandir=DIR man documentation [DATAROOTDIR/man]
1377 --docdir=DIR documentation root [DATAROOTDIR/doc/package-unused]
1378 --htmldir=DIR html documentation [DOCDIR]
1379 --dvidir=DIR dvi documentation [DOCDIR]
1380 --pdfdir=DIR pdf documentation [DOCDIR]
1381 --psdir=DIR ps documentation [DOCDIR]
1382 _ACEOF
1384 cat <<\_ACEOF
1386 Program names:
1387 --program-prefix=PREFIX prepend PREFIX to installed program names
1388 --program-suffix=SUFFIX append SUFFIX to installed program names
1389 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1391 System types:
1392 --build=BUILD configure for building on BUILD [guessed]
1393 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1394 --target=TARGET configure for building compilers for TARGET [HOST]
1395 _ACEOF
1398 if test -n "$ac_init_help"; then
1399 case $ac_init_help in
1400 short | recursive ) echo "Configuration of package-unused version-unused:";;
1401 esac
1402 cat <<\_ACEOF
1404 Optional Features:
1405 --disable-option-checking ignore unrecognized --enable/--with options
1406 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1407 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1408 --enable-multilib build many library versions (default)
1409 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
1410 --disable-dependency-tracking speeds up one-time build
1411 --enable-dependency-tracking do not reject slow dependency extractors
1412 --enable-maintainer-mode enable make rules and dependencies not useful
1413 (and sometimes confusing) to the casual installer
1414 --enable-shared[=PKGS] build shared libraries [default=yes]
1415 --enable-static[=PKGS] build static libraries [default=yes]
1416 --enable-fast-install[=PKGS]
1417 optimize for fast installation [default=yes]
1418 --disable-libtool-lock avoid locking (might break parallel builds)
1420 Optional Packages:
1421 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1422 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1423 --with-pic try to use only PIC/non-PIC objects [default=use
1424 both]
1425 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1427 Some influential environment variables:
1428 CC C compiler command
1429 CFLAGS C compiler flags
1430 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1431 nonstandard directory <lib dir>
1432 LIBS libraries to pass to the linker, e.g. -l<library>
1433 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1434 you have headers in a nonstandard directory <include dir>
1435 CPP C preprocessor
1436 CXX C++ compiler command
1437 CXXFLAGS C++ compiler flags
1438 CCAS assembler compiler command (defaults to CC)
1439 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1440 CXXCPP C++ preprocessor
1442 Use these variables to override the choices made by `configure' or to help
1443 it to find libraries and programs with nonstandard names/locations.
1445 Report bugs to <libsanitizer>.
1446 _ACEOF
1447 ac_status=$?
1450 if test "$ac_init_help" = "recursive"; then
1451 # If there are subdirs, report their specific --help.
1452 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1453 test -d "$ac_dir" ||
1454 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1455 continue
1456 ac_builddir=.
1458 case "$ac_dir" in
1459 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1461 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1462 # A ".." for each directory in $ac_dir_suffix.
1463 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1464 case $ac_top_builddir_sub in
1465 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1466 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1467 esac ;;
1468 esac
1469 ac_abs_top_builddir=$ac_pwd
1470 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1471 # for backward compatibility:
1472 ac_top_builddir=$ac_top_build_prefix
1474 case $srcdir in
1475 .) # We are building in place.
1476 ac_srcdir=.
1477 ac_top_srcdir=$ac_top_builddir_sub
1478 ac_abs_top_srcdir=$ac_pwd ;;
1479 [\\/]* | ?:[\\/]* ) # Absolute name.
1480 ac_srcdir=$srcdir$ac_dir_suffix;
1481 ac_top_srcdir=$srcdir
1482 ac_abs_top_srcdir=$srcdir ;;
1483 *) # Relative name.
1484 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1485 ac_top_srcdir=$ac_top_build_prefix$srcdir
1486 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1487 esac
1488 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1490 cd "$ac_dir" || { ac_status=$?; continue; }
1491 # Check for guested configure.
1492 if test -f "$ac_srcdir/configure.gnu"; then
1493 echo &&
1494 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1495 elif test -f "$ac_srcdir/configure"; then
1496 echo &&
1497 $SHELL "$ac_srcdir/configure" --help=recursive
1498 else
1499 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1500 fi || ac_status=$?
1501 cd "$ac_pwd" || { ac_status=$?; break; }
1502 done
1505 test -n "$ac_init_help" && exit $ac_status
1506 if $ac_init_version; then
1507 cat <<\_ACEOF
1508 package-unused configure version-unused
1509 generated by GNU Autoconf 2.64
1511 Copyright (C) 2009 Free Software Foundation, Inc.
1512 This configure script is free software; the Free Software Foundation
1513 gives unlimited permission to copy, distribute and modify it.
1514 _ACEOF
1515 exit
1518 ## ------------------------ ##
1519 ## Autoconf initialization. ##
1520 ## ------------------------ ##
1522 # ac_fn_c_try_compile LINENO
1523 # --------------------------
1524 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1525 ac_fn_c_try_compile ()
1527 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1528 rm -f conftest.$ac_objext
1529 if { { ac_try="$ac_compile"
1530 case "(($ac_try" in
1531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1532 *) ac_try_echo=$ac_try;;
1533 esac
1534 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1535 $as_echo "$ac_try_echo"; } >&5
1536 (eval "$ac_compile") 2>conftest.err
1537 ac_status=$?
1538 if test -s conftest.err; then
1539 grep -v '^ *+' conftest.err >conftest.er1
1540 cat conftest.er1 >&5
1541 mv -f conftest.er1 conftest.err
1543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1544 test $ac_status = 0; } && {
1545 test -z "$ac_c_werror_flag" ||
1546 test ! -s conftest.err
1547 } && test -s conftest.$ac_objext; then :
1548 ac_retval=0
1549 else
1550 $as_echo "$as_me: failed program was:" >&5
1551 sed 's/^/| /' conftest.$ac_ext >&5
1553 ac_retval=1
1555 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1556 return $ac_retval
1558 } # ac_fn_c_try_compile
1560 # ac_fn_c_try_cpp LINENO
1561 # ----------------------
1562 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1563 ac_fn_c_try_cpp ()
1565 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1566 if { { ac_try="$ac_cpp conftest.$ac_ext"
1567 case "(($ac_try" in
1568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1569 *) ac_try_echo=$ac_try;;
1570 esac
1571 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1572 $as_echo "$ac_try_echo"; } >&5
1573 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1574 ac_status=$?
1575 if test -s conftest.err; then
1576 grep -v '^ *+' conftest.err >conftest.er1
1577 cat conftest.er1 >&5
1578 mv -f conftest.er1 conftest.err
1580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1581 test $ac_status = 0; } >/dev/null && {
1582 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1583 test ! -s conftest.err
1584 }; then :
1585 ac_retval=0
1586 else
1587 $as_echo "$as_me: failed program was:" >&5
1588 sed 's/^/| /' conftest.$ac_ext >&5
1590 ac_retval=1
1592 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1593 return $ac_retval
1595 } # ac_fn_c_try_cpp
1597 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1598 # -------------------------------------------------------
1599 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1600 # the include files in INCLUDES and setting the cache variable VAR
1601 # accordingly.
1602 ac_fn_c_check_header_mongrel ()
1604 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1605 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1607 $as_echo_n "checking for $2... " >&6; }
1608 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1609 $as_echo_n "(cached) " >&6
1611 eval ac_res=\$$3
1612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1613 $as_echo "$ac_res" >&6; }
1614 else
1615 # Is the header compilable?
1616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1617 $as_echo_n "checking $2 usability... " >&6; }
1618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1619 /* end confdefs.h. */
1621 #include <$2>
1622 _ACEOF
1623 if ac_fn_c_try_compile "$LINENO"; then :
1624 ac_header_compiler=yes
1625 else
1626 ac_header_compiler=no
1628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1630 $as_echo "$ac_header_compiler" >&6; }
1632 # Is the header present?
1633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1634 $as_echo_n "checking $2 presence... " >&6; }
1635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1636 /* end confdefs.h. */
1637 #include <$2>
1638 _ACEOF
1639 if ac_fn_c_try_cpp "$LINENO"; then :
1640 ac_header_preproc=yes
1641 else
1642 ac_header_preproc=no
1644 rm -f conftest.err conftest.$ac_ext
1645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1646 $as_echo "$ac_header_preproc" >&6; }
1648 # So? What about this header?
1649 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1650 yes:no: )
1651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1652 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1654 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1656 no:yes:* )
1657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1658 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1660 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1662 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1664 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1666 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1667 ( cat <<\_ASBOX
1668 ## --------------------------- ##
1669 ## Report this to libsanitizer ##
1670 ## --------------------------- ##
1671 _ASBOX
1672 ) | sed "s/^/$as_me: WARNING: /" >&2
1674 esac
1675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1676 $as_echo_n "checking for $2... " >&6; }
1677 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1678 $as_echo_n "(cached) " >&6
1679 else
1680 eval "$3=\$ac_header_compiler"
1682 eval ac_res=\$$3
1683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1684 $as_echo "$ac_res" >&6; }
1686 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1688 } # ac_fn_c_check_header_mongrel
1690 # ac_fn_c_try_run LINENO
1691 # ----------------------
1692 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1693 # that executables *can* be run.
1694 ac_fn_c_try_run ()
1696 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1697 if { { ac_try="$ac_link"
1698 case "(($ac_try" in
1699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1700 *) ac_try_echo=$ac_try;;
1701 esac
1702 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1703 $as_echo "$ac_try_echo"; } >&5
1704 (eval "$ac_link") 2>&5
1705 ac_status=$?
1706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1707 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1708 { { case "(($ac_try" in
1709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1710 *) ac_try_echo=$ac_try;;
1711 esac
1712 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1713 $as_echo "$ac_try_echo"; } >&5
1714 (eval "$ac_try") 2>&5
1715 ac_status=$?
1716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1717 test $ac_status = 0; }; }; then :
1718 ac_retval=0
1719 else
1720 $as_echo "$as_me: program exited with status $ac_status" >&5
1721 $as_echo "$as_me: failed program was:" >&5
1722 sed 's/^/| /' conftest.$ac_ext >&5
1724 ac_retval=$ac_status
1726 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1727 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1728 return $ac_retval
1730 } # ac_fn_c_try_run
1732 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1733 # -------------------------------------------------------
1734 # Tests whether HEADER exists and can be compiled using the include files in
1735 # INCLUDES, setting the cache variable VAR accordingly.
1736 ac_fn_c_check_header_compile ()
1738 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1740 $as_echo_n "checking for $2... " >&6; }
1741 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1742 $as_echo_n "(cached) " >&6
1743 else
1744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1745 /* end confdefs.h. */
1747 #include <$2>
1748 _ACEOF
1749 if ac_fn_c_try_compile "$LINENO"; then :
1750 eval "$3=yes"
1751 else
1752 eval "$3=no"
1754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1756 eval ac_res=\$$3
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1758 $as_echo "$ac_res" >&6; }
1759 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1761 } # ac_fn_c_check_header_compile
1763 # ac_fn_cxx_try_compile LINENO
1764 # ----------------------------
1765 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1766 ac_fn_cxx_try_compile ()
1768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769 rm -f conftest.$ac_objext
1770 if { { ac_try="$ac_compile"
1771 case "(($ac_try" in
1772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1773 *) ac_try_echo=$ac_try;;
1774 esac
1775 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1776 $as_echo "$ac_try_echo"; } >&5
1777 (eval "$ac_compile") 2>conftest.err
1778 ac_status=$?
1779 if test -s conftest.err; then
1780 grep -v '^ *+' conftest.err >conftest.er1
1781 cat conftest.er1 >&5
1782 mv -f conftest.er1 conftest.err
1784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1785 test $ac_status = 0; } && {
1786 test -z "$ac_cxx_werror_flag" ||
1787 test ! -s conftest.err
1788 } && test -s conftest.$ac_objext; then :
1789 ac_retval=0
1790 else
1791 $as_echo "$as_me: failed program was:" >&5
1792 sed 's/^/| /' conftest.$ac_ext >&5
1794 ac_retval=1
1796 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1797 return $ac_retval
1799 } # ac_fn_cxx_try_compile
1801 # ac_fn_c_try_link LINENO
1802 # -----------------------
1803 # Try to link conftest.$ac_ext, and return whether this succeeded.
1804 ac_fn_c_try_link ()
1806 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1807 rm -f conftest.$ac_objext conftest$ac_exeext
1808 if { { ac_try="$ac_link"
1809 case "(($ac_try" in
1810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1811 *) ac_try_echo=$ac_try;;
1812 esac
1813 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1814 $as_echo "$ac_try_echo"; } >&5
1815 (eval "$ac_link") 2>conftest.err
1816 ac_status=$?
1817 if test -s conftest.err; then
1818 grep -v '^ *+' conftest.err >conftest.er1
1819 cat conftest.er1 >&5
1820 mv -f conftest.er1 conftest.err
1822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1823 test $ac_status = 0; } && {
1824 test -z "$ac_c_werror_flag" ||
1825 test ! -s conftest.err
1826 } && test -s conftest$ac_exeext && {
1827 test "$cross_compiling" = yes ||
1828 $as_test_x conftest$ac_exeext
1829 }; then :
1830 ac_retval=0
1831 else
1832 $as_echo "$as_me: failed program was:" >&5
1833 sed 's/^/| /' conftest.$ac_ext >&5
1835 ac_retval=1
1837 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1838 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1839 # interfere with the next link command; also delete a directory that is
1840 # left behind by Apple's compiler. We do this before executing the actions.
1841 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1842 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1843 return $ac_retval
1845 } # ac_fn_c_try_link
1847 # ac_fn_c_check_func LINENO FUNC VAR
1848 # ----------------------------------
1849 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1850 ac_fn_c_check_func ()
1852 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1854 $as_echo_n "checking for $2... " >&6; }
1855 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1856 $as_echo_n "(cached) " >&6
1857 else
1858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1859 /* end confdefs.h. */
1860 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1861 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1862 #define $2 innocuous_$2
1864 /* System header to define __stub macros and hopefully few prototypes,
1865 which can conflict with char $2 (); below.
1866 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1867 <limits.h> exists even on freestanding compilers. */
1869 #ifdef __STDC__
1870 # include <limits.h>
1871 #else
1872 # include <assert.h>
1873 #endif
1875 #undef $2
1877 /* Override any GCC internal prototype to avoid an error.
1878 Use char because int might match the return type of a GCC
1879 builtin and then its argument prototype would still apply. */
1880 #ifdef __cplusplus
1881 extern "C"
1882 #endif
1883 char $2 ();
1884 /* The GNU C library defines this for functions which it implements
1885 to always fail with ENOSYS. Some functions are actually named
1886 something starting with __ and the normal name is an alias. */
1887 #if defined __stub_$2 || defined __stub___$2
1888 choke me
1889 #endif
1892 main ()
1894 return $2 ();
1896 return 0;
1898 _ACEOF
1899 if ac_fn_c_try_link "$LINENO"; then :
1900 eval "$3=yes"
1901 else
1902 eval "$3=no"
1904 rm -f core conftest.err conftest.$ac_objext \
1905 conftest$ac_exeext conftest.$ac_ext
1907 eval ac_res=\$$3
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1909 $as_echo "$ac_res" >&6; }
1910 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1912 } # ac_fn_c_check_func
1914 # ac_fn_cxx_try_cpp LINENO
1915 # ------------------------
1916 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1917 ac_fn_cxx_try_cpp ()
1919 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1920 if { { ac_try="$ac_cpp conftest.$ac_ext"
1921 case "(($ac_try" in
1922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1923 *) ac_try_echo=$ac_try;;
1924 esac
1925 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1926 $as_echo "$ac_try_echo"; } >&5
1927 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1928 ac_status=$?
1929 if test -s conftest.err; then
1930 grep -v '^ *+' conftest.err >conftest.er1
1931 cat conftest.er1 >&5
1932 mv -f conftest.er1 conftest.err
1934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1935 test $ac_status = 0; } >/dev/null && {
1936 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1937 test ! -s conftest.err
1938 }; then :
1939 ac_retval=0
1940 else
1941 $as_echo "$as_me: failed program was:" >&5
1942 sed 's/^/| /' conftest.$ac_ext >&5
1944 ac_retval=1
1946 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1947 return $ac_retval
1949 } # ac_fn_cxx_try_cpp
1951 # ac_fn_cxx_try_link LINENO
1952 # -------------------------
1953 # Try to link conftest.$ac_ext, and return whether this succeeded.
1954 ac_fn_cxx_try_link ()
1956 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1957 rm -f conftest.$ac_objext conftest$ac_exeext
1958 if { { ac_try="$ac_link"
1959 case "(($ac_try" in
1960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1961 *) ac_try_echo=$ac_try;;
1962 esac
1963 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1964 $as_echo "$ac_try_echo"; } >&5
1965 (eval "$ac_link") 2>conftest.err
1966 ac_status=$?
1967 if test -s conftest.err; then
1968 grep -v '^ *+' conftest.err >conftest.er1
1969 cat conftest.er1 >&5
1970 mv -f conftest.er1 conftest.err
1972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1973 test $ac_status = 0; } && {
1974 test -z "$ac_cxx_werror_flag" ||
1975 test ! -s conftest.err
1976 } && test -s conftest$ac_exeext && {
1977 test "$cross_compiling" = yes ||
1978 $as_test_x conftest$ac_exeext
1979 }; then :
1980 ac_retval=0
1981 else
1982 $as_echo "$as_me: failed program was:" >&5
1983 sed 's/^/| /' conftest.$ac_ext >&5
1985 ac_retval=1
1987 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1988 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1989 # interfere with the next link command; also delete a directory that is
1990 # left behind by Apple's compiler. We do this before executing the actions.
1991 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1992 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1993 return $ac_retval
1995 } # ac_fn_cxx_try_link
1997 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1998 # --------------------------------------------
1999 # Tries to find the compile-time value of EXPR in a program that includes
2000 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2001 # computed
2002 ac_fn_c_compute_int ()
2004 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2005 if test "$cross_compiling" = yes; then
2006 # Depending upon the size, compute the lo and hi bounds.
2007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2008 /* end confdefs.h. */
2011 main ()
2013 static int test_array [1 - 2 * !(($2) >= 0)];
2014 test_array [0] = 0
2017 return 0;
2019 _ACEOF
2020 if ac_fn_c_try_compile "$LINENO"; then :
2021 ac_lo=0 ac_mid=0
2022 while :; do
2023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2024 /* end confdefs.h. */
2027 main ()
2029 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2030 test_array [0] = 0
2033 return 0;
2035 _ACEOF
2036 if ac_fn_c_try_compile "$LINENO"; then :
2037 ac_hi=$ac_mid; break
2038 else
2039 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2040 if test $ac_lo -le $ac_mid; then
2041 ac_lo= ac_hi=
2042 break
2044 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2047 done
2048 else
2049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2050 /* end confdefs.h. */
2053 main ()
2055 static int test_array [1 - 2 * !(($2) < 0)];
2056 test_array [0] = 0
2059 return 0;
2061 _ACEOF
2062 if ac_fn_c_try_compile "$LINENO"; then :
2063 ac_hi=-1 ac_mid=-1
2064 while :; do
2065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2066 /* end confdefs.h. */
2069 main ()
2071 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2072 test_array [0] = 0
2075 return 0;
2077 _ACEOF
2078 if ac_fn_c_try_compile "$LINENO"; then :
2079 ac_lo=$ac_mid; break
2080 else
2081 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2082 if test $ac_mid -le $ac_hi; then
2083 ac_lo= ac_hi=
2084 break
2086 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2089 done
2090 else
2091 ac_lo= ac_hi=
2093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2096 # Binary search between lo and hi bounds.
2097 while test "x$ac_lo" != "x$ac_hi"; do
2098 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2100 /* end confdefs.h. */
2103 main ()
2105 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2106 test_array [0] = 0
2109 return 0;
2111 _ACEOF
2112 if ac_fn_c_try_compile "$LINENO"; then :
2113 ac_hi=$ac_mid
2114 else
2115 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2118 done
2119 case $ac_lo in #((
2120 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2121 '') ac_retval=1 ;;
2122 esac
2123 else
2124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2125 /* end confdefs.h. */
2127 static long int longval () { return $2; }
2128 static unsigned long int ulongval () { return $2; }
2129 #include <stdio.h>
2130 #include <stdlib.h>
2132 main ()
2135 FILE *f = fopen ("conftest.val", "w");
2136 if (! f)
2137 return 1;
2138 if (($2) < 0)
2140 long int i = longval ();
2141 if (i != ($2))
2142 return 1;
2143 fprintf (f, "%ld", i);
2145 else
2147 unsigned long int i = ulongval ();
2148 if (i != ($2))
2149 return 1;
2150 fprintf (f, "%lu", i);
2152 /* Do not output a trailing newline, as this causes \r\n confusion
2153 on some platforms. */
2154 return ferror (f) || fclose (f) != 0;
2157 return 0;
2159 _ACEOF
2160 if ac_fn_c_try_run "$LINENO"; then :
2161 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2162 else
2163 ac_retval=1
2165 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2166 conftest.$ac_objext conftest.beam conftest.$ac_ext
2167 rm -f conftest.val
2170 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2171 return $ac_retval
2173 } # ac_fn_c_compute_int
2175 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2176 # -------------------------------------------
2177 # Tests whether TYPE exists after having included INCLUDES, setting cache
2178 # variable VAR accordingly.
2179 ac_fn_c_check_type ()
2181 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2183 $as_echo_n "checking for $2... " >&6; }
2184 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2185 $as_echo_n "(cached) " >&6
2186 else
2187 eval "$3=no"
2188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2189 /* end confdefs.h. */
2192 main ()
2194 if (sizeof ($2))
2195 return 0;
2197 return 0;
2199 _ACEOF
2200 if ac_fn_c_try_compile "$LINENO"; then :
2201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2202 /* end confdefs.h. */
2205 main ()
2207 if (sizeof (($2)))
2208 return 0;
2210 return 0;
2212 _ACEOF
2213 if ac_fn_c_try_compile "$LINENO"; then :
2215 else
2216 eval "$3=yes"
2218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2222 eval ac_res=\$$3
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2224 $as_echo "$ac_res" >&6; }
2225 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2227 } # ac_fn_c_check_type
2229 # ac_fn_c_check_decl LINENO SYMBOL VAR
2230 # ------------------------------------
2231 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2232 ac_fn_c_check_decl ()
2234 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2235 as_decl_name=`echo $2|sed 's/ *(.*//'`
2236 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2238 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2239 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2240 $as_echo_n "(cached) " >&6
2241 else
2242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2243 /* end confdefs.h. */
2246 main ()
2248 #ifndef $as_decl_name
2249 #ifdef __cplusplus
2250 (void) $as_decl_use;
2251 #else
2252 (void) $as_decl_name;
2253 #endif
2254 #endif
2257 return 0;
2259 _ACEOF
2260 if ac_fn_c_try_compile "$LINENO"; then :
2261 eval "$3=yes"
2262 else
2263 eval "$3=no"
2265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2267 eval ac_res=\$$3
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2269 $as_echo "$ac_res" >&6; }
2270 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2272 } # ac_fn_c_check_decl
2273 cat >config.log <<_ACEOF
2274 This file contains any messages produced by compilers while
2275 running configure, to aid debugging if configure makes a mistake.
2277 It was created by package-unused $as_me version-unused, which was
2278 generated by GNU Autoconf 2.64. Invocation command line was
2280 $ $0 $@
2282 _ACEOF
2283 exec 5>>config.log
2285 cat <<_ASUNAME
2286 ## --------- ##
2287 ## Platform. ##
2288 ## --------- ##
2290 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2291 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2292 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2293 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2294 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2296 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2297 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2299 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2300 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2301 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2302 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2303 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2304 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2305 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2307 _ASUNAME
2309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2310 for as_dir in $PATH
2312 IFS=$as_save_IFS
2313 test -z "$as_dir" && as_dir=.
2314 $as_echo "PATH: $as_dir"
2315 done
2316 IFS=$as_save_IFS
2318 } >&5
2320 cat >&5 <<_ACEOF
2323 ## ----------- ##
2324 ## Core tests. ##
2325 ## ----------- ##
2327 _ACEOF
2330 # Keep a trace of the command line.
2331 # Strip out --no-create and --no-recursion so they do not pile up.
2332 # Strip out --silent because we don't want to record it for future runs.
2333 # Also quote any args containing shell meta-characters.
2334 # Make two passes to allow for proper duplicate-argument suppression.
2335 ac_configure_args=
2336 ac_configure_args0=
2337 ac_configure_args1=
2338 ac_must_keep_next=false
2339 for ac_pass in 1 2
2341 for ac_arg
2343 case $ac_arg in
2344 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2345 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2346 | -silent | --silent | --silen | --sile | --sil)
2347 continue ;;
2348 *\'*)
2349 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2350 esac
2351 case $ac_pass in
2352 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2354 as_fn_append ac_configure_args1 " '$ac_arg'"
2355 if test $ac_must_keep_next = true; then
2356 ac_must_keep_next=false # Got value, back to normal.
2357 else
2358 case $ac_arg in
2359 *=* | --config-cache | -C | -disable-* | --disable-* \
2360 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2361 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2362 | -with-* | --with-* | -without-* | --without-* | --x)
2363 case "$ac_configure_args0 " in
2364 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2365 esac
2367 -* ) ac_must_keep_next=true ;;
2368 esac
2370 as_fn_append ac_configure_args " '$ac_arg'"
2372 esac
2373 done
2374 done
2375 { ac_configure_args0=; unset ac_configure_args0;}
2376 { ac_configure_args1=; unset ac_configure_args1;}
2378 # When interrupted or exit'd, cleanup temporary files, and complete
2379 # config.log. We remove comments because anyway the quotes in there
2380 # would cause problems or look ugly.
2381 # WARNING: Use '\'' to represent an apostrophe within the trap.
2382 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2383 trap 'exit_status=$?
2384 # Save into config.log some information that might help in debugging.
2386 echo
2388 cat <<\_ASBOX
2389 ## ---------------- ##
2390 ## Cache variables. ##
2391 ## ---------------- ##
2392 _ASBOX
2393 echo
2394 # The following way of writing the cache mishandles newlines in values,
2396 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2397 eval ac_val=\$$ac_var
2398 case $ac_val in #(
2399 *${as_nl}*)
2400 case $ac_var in #(
2401 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2402 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2403 esac
2404 case $ac_var in #(
2405 _ | IFS | as_nl) ;; #(
2406 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2407 *) { eval $ac_var=; unset $ac_var;} ;;
2408 esac ;;
2409 esac
2410 done
2411 (set) 2>&1 |
2412 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2413 *${as_nl}ac_space=\ *)
2414 sed -n \
2415 "s/'\''/'\''\\\\'\'''\''/g;
2416 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2417 ;; #(
2419 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2421 esac |
2422 sort
2424 echo
2426 cat <<\_ASBOX
2427 ## ----------------- ##
2428 ## Output variables. ##
2429 ## ----------------- ##
2430 _ASBOX
2431 echo
2432 for ac_var in $ac_subst_vars
2434 eval ac_val=\$$ac_var
2435 case $ac_val in
2436 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2437 esac
2438 $as_echo "$ac_var='\''$ac_val'\''"
2439 done | sort
2440 echo
2442 if test -n "$ac_subst_files"; then
2443 cat <<\_ASBOX
2444 ## ------------------- ##
2445 ## File substitutions. ##
2446 ## ------------------- ##
2447 _ASBOX
2448 echo
2449 for ac_var in $ac_subst_files
2451 eval ac_val=\$$ac_var
2452 case $ac_val in
2453 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2454 esac
2455 $as_echo "$ac_var='\''$ac_val'\''"
2456 done | sort
2457 echo
2460 if test -s confdefs.h; then
2461 cat <<\_ASBOX
2462 ## ----------- ##
2463 ## confdefs.h. ##
2464 ## ----------- ##
2465 _ASBOX
2466 echo
2467 cat confdefs.h
2468 echo
2470 test "$ac_signal" != 0 &&
2471 $as_echo "$as_me: caught signal $ac_signal"
2472 $as_echo "$as_me: exit $exit_status"
2473 } >&5
2474 rm -f core *.core core.conftest.* &&
2475 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2476 exit $exit_status
2478 for ac_signal in 1 2 13 15; do
2479 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2480 done
2481 ac_signal=0
2483 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2484 rm -f -r conftest* confdefs.h
2486 $as_echo "/* confdefs.h */" > confdefs.h
2488 # Predefined preprocessor variables.
2490 cat >>confdefs.h <<_ACEOF
2491 #define PACKAGE_NAME "$PACKAGE_NAME"
2492 _ACEOF
2494 cat >>confdefs.h <<_ACEOF
2495 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2496 _ACEOF
2498 cat >>confdefs.h <<_ACEOF
2499 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2500 _ACEOF
2502 cat >>confdefs.h <<_ACEOF
2503 #define PACKAGE_STRING "$PACKAGE_STRING"
2504 _ACEOF
2506 cat >>confdefs.h <<_ACEOF
2507 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2508 _ACEOF
2510 cat >>confdefs.h <<_ACEOF
2511 #define PACKAGE_URL "$PACKAGE_URL"
2512 _ACEOF
2515 # Let the site file select an alternate cache file if it wants to.
2516 # Prefer an explicitly selected file to automatically selected ones.
2517 ac_site_file1=NONE
2518 ac_site_file2=NONE
2519 if test -n "$CONFIG_SITE"; then
2520 ac_site_file1=$CONFIG_SITE
2521 elif test "x$prefix" != xNONE; then
2522 ac_site_file1=$prefix/share/config.site
2523 ac_site_file2=$prefix/etc/config.site
2524 else
2525 ac_site_file1=$ac_default_prefix/share/config.site
2526 ac_site_file2=$ac_default_prefix/etc/config.site
2528 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2530 test "x$ac_site_file" = xNONE && continue
2531 if test -r "$ac_site_file"; then
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2533 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2534 sed 's/^/| /' "$ac_site_file" >&5
2535 . "$ac_site_file"
2537 done
2539 if test -r "$cache_file"; then
2540 # Some versions of bash will fail to source /dev/null (special
2541 # files actually), so we avoid doing that.
2542 if test -f "$cache_file"; then
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2544 $as_echo "$as_me: loading cache $cache_file" >&6;}
2545 case $cache_file in
2546 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2547 *) . "./$cache_file";;
2548 esac
2550 else
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2552 $as_echo "$as_me: creating cache $cache_file" >&6;}
2553 >$cache_file
2556 # Check that the precious variables saved in the cache have kept the same
2557 # value.
2558 ac_cache_corrupted=false
2559 for ac_var in $ac_precious_vars; do
2560 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2561 eval ac_new_set=\$ac_env_${ac_var}_set
2562 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2563 eval ac_new_val=\$ac_env_${ac_var}_value
2564 case $ac_old_set,$ac_new_set in
2565 set,)
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2567 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2568 ac_cache_corrupted=: ;;
2569 ,set)
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2571 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2572 ac_cache_corrupted=: ;;
2573 ,);;
2575 if test "x$ac_old_val" != "x$ac_new_val"; then
2576 # differences in whitespace do not lead to failure.
2577 ac_old_val_w=`echo x $ac_old_val`
2578 ac_new_val_w=`echo x $ac_new_val`
2579 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2581 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2582 ac_cache_corrupted=:
2583 else
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2585 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2586 eval $ac_var=\$ac_old_val
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2589 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2591 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2592 fi;;
2593 esac
2594 # Pass precious variables to config.status.
2595 if test "$ac_new_set" = set; then
2596 case $ac_new_val in
2597 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2598 *) ac_arg=$ac_var=$ac_new_val ;;
2599 esac
2600 case " $ac_configure_args " in
2601 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2602 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2603 esac
2605 done
2606 if $ac_cache_corrupted; then
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2608 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2610 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2611 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2613 ## -------------------- ##
2614 ## Main body of script. ##
2615 ## -------------------- ##
2617 ac_ext=c
2618 ac_cpp='$CPP $CPPFLAGS'
2619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2629 # Default to --enable-multilib
2630 # Check whether --enable-multilib was given.
2631 if test "${enable_multilib+set}" = set; then :
2632 enableval=$enable_multilib; case "$enableval" in
2633 yes) multilib=yes ;;
2634 no) multilib=no ;;
2635 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2636 esac
2637 else
2638 multilib=yes
2642 # We may get other options which we leave undocumented:
2643 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2644 # See config-ml.in if you want the gory details.
2646 if test "$srcdir" = "."; then
2647 if test "$with_target_subdir" != "."; then
2648 multi_basedir="$srcdir/$with_multisrctop../.."
2649 else
2650 multi_basedir="$srcdir/$with_multisrctop.."
2652 else
2653 multi_basedir="$srcdir/.."
2657 # Even if the default multilib is not a cross compilation,
2658 # it may be that some of the other multilibs are.
2659 if test $cross_compiling = no && test $multilib = yes \
2660 && test "x${with_multisubdir}" != x ; then
2661 cross_compiling=maybe
2664 ac_config_commands="$ac_config_commands default-1"
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2668 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2669 # Check whether --enable-version-specific-runtime-libs was given.
2670 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2671 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2672 yes) version_specific_libs=yes ;;
2673 no) version_specific_libs=no ;;
2674 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2675 esac
2676 else
2677 version_specific_libs=no
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2681 $as_echo "$version_specific_libs" >&6; }
2683 ac_ext=c
2684 ac_cpp='$CPP $CPPFLAGS'
2685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2688 if test -n "$ac_tool_prefix"; then
2689 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2690 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2692 $as_echo_n "checking for $ac_word... " >&6; }
2693 if test "${ac_cv_prog_CC+set}" = set; then :
2694 $as_echo_n "(cached) " >&6
2695 else
2696 if test -n "$CC"; then
2697 ac_cv_prog_CC="$CC" # Let the user override the test.
2698 else
2699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2700 for as_dir in $PATH
2702 IFS=$as_save_IFS
2703 test -z "$as_dir" && as_dir=.
2704 for ac_exec_ext in '' $ac_executable_extensions; do
2705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2706 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2708 break 2
2710 done
2711 done
2712 IFS=$as_save_IFS
2716 CC=$ac_cv_prog_CC
2717 if test -n "$CC"; then
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2719 $as_echo "$CC" >&6; }
2720 else
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2722 $as_echo "no" >&6; }
2727 if test -z "$ac_cv_prog_CC"; then
2728 ac_ct_CC=$CC
2729 # Extract the first word of "gcc", so it can be a program name with args.
2730 set dummy gcc; ac_word=$2
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2732 $as_echo_n "checking for $ac_word... " >&6; }
2733 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2734 $as_echo_n "(cached) " >&6
2735 else
2736 if test -n "$ac_ct_CC"; then
2737 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2738 else
2739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2740 for as_dir in $PATH
2742 IFS=$as_save_IFS
2743 test -z "$as_dir" && as_dir=.
2744 for ac_exec_ext in '' $ac_executable_extensions; do
2745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2746 ac_cv_prog_ac_ct_CC="gcc"
2747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2748 break 2
2750 done
2751 done
2752 IFS=$as_save_IFS
2756 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2757 if test -n "$ac_ct_CC"; then
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2759 $as_echo "$ac_ct_CC" >&6; }
2760 else
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2762 $as_echo "no" >&6; }
2765 if test "x$ac_ct_CC" = x; then
2766 CC=""
2767 else
2768 case $cross_compiling:$ac_tool_warned in
2769 yes:)
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2771 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2772 ac_tool_warned=yes ;;
2773 esac
2774 CC=$ac_ct_CC
2776 else
2777 CC="$ac_cv_prog_CC"
2780 if test -z "$CC"; then
2781 if test -n "$ac_tool_prefix"; then
2782 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2783 set dummy ${ac_tool_prefix}cc; ac_word=$2
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2785 $as_echo_n "checking for $ac_word... " >&6; }
2786 if test "${ac_cv_prog_CC+set}" = set; then :
2787 $as_echo_n "(cached) " >&6
2788 else
2789 if test -n "$CC"; then
2790 ac_cv_prog_CC="$CC" # Let the user override the test.
2791 else
2792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2793 for as_dir in $PATH
2795 IFS=$as_save_IFS
2796 test -z "$as_dir" && as_dir=.
2797 for ac_exec_ext in '' $ac_executable_extensions; do
2798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2799 ac_cv_prog_CC="${ac_tool_prefix}cc"
2800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2801 break 2
2803 done
2804 done
2805 IFS=$as_save_IFS
2809 CC=$ac_cv_prog_CC
2810 if test -n "$CC"; then
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2812 $as_echo "$CC" >&6; }
2813 else
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2815 $as_echo "no" >&6; }
2821 if test -z "$CC"; then
2822 # Extract the first word of "cc", so it can be a program name with args.
2823 set dummy cc; ac_word=$2
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2825 $as_echo_n "checking for $ac_word... " >&6; }
2826 if test "${ac_cv_prog_CC+set}" = set; then :
2827 $as_echo_n "(cached) " >&6
2828 else
2829 if test -n "$CC"; then
2830 ac_cv_prog_CC="$CC" # Let the user override the test.
2831 else
2832 ac_prog_rejected=no
2833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2834 for as_dir in $PATH
2836 IFS=$as_save_IFS
2837 test -z "$as_dir" && as_dir=.
2838 for ac_exec_ext in '' $ac_executable_extensions; do
2839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2840 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2841 ac_prog_rejected=yes
2842 continue
2844 ac_cv_prog_CC="cc"
2845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2846 break 2
2848 done
2849 done
2850 IFS=$as_save_IFS
2852 if test $ac_prog_rejected = yes; then
2853 # We found a bogon in the path, so make sure we never use it.
2854 set dummy $ac_cv_prog_CC
2855 shift
2856 if test $# != 0; then
2857 # We chose a different compiler from the bogus one.
2858 # However, it has the same basename, so the bogon will be chosen
2859 # first if we set CC to just the basename; use the full file name.
2860 shift
2861 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2866 CC=$ac_cv_prog_CC
2867 if test -n "$CC"; then
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2869 $as_echo "$CC" >&6; }
2870 else
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2872 $as_echo "no" >&6; }
2877 if test -z "$CC"; then
2878 if test -n "$ac_tool_prefix"; then
2879 for ac_prog in cl.exe
2881 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2882 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2884 $as_echo_n "checking for $ac_word... " >&6; }
2885 if test "${ac_cv_prog_CC+set}" = set; then :
2886 $as_echo_n "(cached) " >&6
2887 else
2888 if test -n "$CC"; then
2889 ac_cv_prog_CC="$CC" # Let the user override the test.
2890 else
2891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2892 for as_dir in $PATH
2894 IFS=$as_save_IFS
2895 test -z "$as_dir" && as_dir=.
2896 for ac_exec_ext in '' $ac_executable_extensions; do
2897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2898 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2900 break 2
2902 done
2903 done
2904 IFS=$as_save_IFS
2908 CC=$ac_cv_prog_CC
2909 if test -n "$CC"; then
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2911 $as_echo "$CC" >&6; }
2912 else
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2914 $as_echo "no" >&6; }
2918 test -n "$CC" && break
2919 done
2921 if test -z "$CC"; then
2922 ac_ct_CC=$CC
2923 for ac_prog in cl.exe
2925 # Extract the first word of "$ac_prog", so it can be a program name with args.
2926 set dummy $ac_prog; ac_word=$2
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2928 $as_echo_n "checking for $ac_word... " >&6; }
2929 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2930 $as_echo_n "(cached) " >&6
2931 else
2932 if test -n "$ac_ct_CC"; then
2933 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2934 else
2935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2936 for as_dir in $PATH
2938 IFS=$as_save_IFS
2939 test -z "$as_dir" && as_dir=.
2940 for ac_exec_ext in '' $ac_executable_extensions; do
2941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2942 ac_cv_prog_ac_ct_CC="$ac_prog"
2943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2944 break 2
2946 done
2947 done
2948 IFS=$as_save_IFS
2952 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2953 if test -n "$ac_ct_CC"; then
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2955 $as_echo "$ac_ct_CC" >&6; }
2956 else
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2958 $as_echo "no" >&6; }
2962 test -n "$ac_ct_CC" && break
2963 done
2965 if test "x$ac_ct_CC" = x; then
2966 CC=""
2967 else
2968 case $cross_compiling:$ac_tool_warned in
2969 yes:)
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2971 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2972 ac_tool_warned=yes ;;
2973 esac
2974 CC=$ac_ct_CC
2981 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2982 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2983 as_fn_error "no acceptable C compiler found in \$PATH
2984 See \`config.log' for more details." "$LINENO" 5; }
2986 # Provide some information about the compiler.
2987 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2988 set X $ac_compile
2989 ac_compiler=$2
2990 for ac_option in --version -v -V -qversion; do
2991 { { ac_try="$ac_compiler $ac_option >&5"
2992 case "(($ac_try" in
2993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2994 *) ac_try_echo=$ac_try;;
2995 esac
2996 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2997 $as_echo "$ac_try_echo"; } >&5
2998 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2999 ac_status=$?
3000 if test -s conftest.err; then
3001 sed '10a\
3002 ... rest of stderr output deleted ...
3003 10q' conftest.err >conftest.er1
3004 cat conftest.er1 >&5
3005 rm -f conftest.er1 conftest.err
3007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3008 test $ac_status = 0; }
3009 done
3011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3012 /* end confdefs.h. */
3015 main ()
3019 return 0;
3021 _ACEOF
3022 ac_clean_files_save=$ac_clean_files
3023 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3024 # Try to create an executable without -o first, disregard a.out.
3025 # It will help us diagnose broken compilers, and finding out an intuition
3026 # of exeext.
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3028 $as_echo_n "checking for C compiler default output file name... " >&6; }
3029 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3031 # The possible output files:
3032 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3034 ac_rmfiles=
3035 for ac_file in $ac_files
3037 case $ac_file in
3038 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3039 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3040 esac
3041 done
3042 rm -f $ac_rmfiles
3044 if { { ac_try="$ac_link_default"
3045 case "(($ac_try" in
3046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3047 *) ac_try_echo=$ac_try;;
3048 esac
3049 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3050 $as_echo "$ac_try_echo"; } >&5
3051 (eval "$ac_link_default") 2>&5
3052 ac_status=$?
3053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3054 test $ac_status = 0; }; then :
3055 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3056 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3057 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3058 # so that the user can short-circuit this test for compilers unknown to
3059 # Autoconf.
3060 for ac_file in $ac_files ''
3062 test -f "$ac_file" || continue
3063 case $ac_file in
3064 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3066 [ab].out )
3067 # We found the default executable, but exeext='' is most
3068 # certainly right.
3069 break;;
3070 *.* )
3071 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3072 then :; else
3073 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3075 # We set ac_cv_exeext here because the later test for it is not
3076 # safe: cross compilers may not add the suffix if given an `-o'
3077 # argument, so we may need to know it at that point already.
3078 # Even if this section looks crufty: it has the advantage of
3079 # actually working.
3080 break;;
3082 break;;
3083 esac
3084 done
3085 test "$ac_cv_exeext" = no && ac_cv_exeext=
3087 else
3088 ac_file=''
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3091 $as_echo "$ac_file" >&6; }
3092 if test -z "$ac_file"; then :
3093 $as_echo "$as_me: failed program was:" >&5
3094 sed 's/^/| /' conftest.$ac_ext >&5
3096 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3097 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3098 { as_fn_set_status 77
3099 as_fn_error "C compiler cannot create executables
3100 See \`config.log' for more details." "$LINENO" 5; }; }
3102 ac_exeext=$ac_cv_exeext
3104 # Check that the compiler produces executables we can run. If not, either
3105 # the compiler is broken, or we cross compile.
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3107 $as_echo_n "checking whether the C compiler works... " >&6; }
3108 # If not cross compiling, check that we can run a simple program.
3109 if test "$cross_compiling" != yes; then
3110 if { ac_try='./$ac_file'
3111 { { case "(($ac_try" in
3112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3113 *) ac_try_echo=$ac_try;;
3114 esac
3115 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3116 $as_echo "$ac_try_echo"; } >&5
3117 (eval "$ac_try") 2>&5
3118 ac_status=$?
3119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3120 test $ac_status = 0; }; }; then
3121 cross_compiling=no
3122 else
3123 if test "$cross_compiling" = maybe; then
3124 cross_compiling=yes
3125 else
3126 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3127 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3128 as_fn_error "cannot run C compiled programs.
3129 If you meant to cross compile, use \`--host'.
3130 See \`config.log' for more details." "$LINENO" 5; }
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3135 $as_echo "yes" >&6; }
3137 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3138 ac_clean_files=$ac_clean_files_save
3139 # Check that the compiler produces executables we can run. If not, either
3140 # the compiler is broken, or we cross compile.
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3142 $as_echo_n "checking whether we are cross compiling... " >&6; }
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3144 $as_echo "$cross_compiling" >&6; }
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3147 $as_echo_n "checking for suffix of executables... " >&6; }
3148 if { { ac_try="$ac_link"
3149 case "(($ac_try" in
3150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3151 *) ac_try_echo=$ac_try;;
3152 esac
3153 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3154 $as_echo "$ac_try_echo"; } >&5
3155 (eval "$ac_link") 2>&5
3156 ac_status=$?
3157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3158 test $ac_status = 0; }; then :
3159 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3160 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3161 # work properly (i.e., refer to `conftest.exe'), while it won't with
3162 # `rm'.
3163 for ac_file in conftest.exe conftest conftest.*; do
3164 test -f "$ac_file" || continue
3165 case $ac_file in
3166 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3167 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3168 break;;
3169 * ) break;;
3170 esac
3171 done
3172 else
3173 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3174 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3175 as_fn_error "cannot compute suffix of executables: cannot compile and link
3176 See \`config.log' for more details." "$LINENO" 5; }
3178 rm -f conftest$ac_cv_exeext
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3180 $as_echo "$ac_cv_exeext" >&6; }
3182 rm -f conftest.$ac_ext
3183 EXEEXT=$ac_cv_exeext
3184 ac_exeext=$EXEEXT
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3186 $as_echo_n "checking for suffix of object files... " >&6; }
3187 if test "${ac_cv_objext+set}" = set; then :
3188 $as_echo_n "(cached) " >&6
3189 else
3190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3191 /* end confdefs.h. */
3194 main ()
3198 return 0;
3200 _ACEOF
3201 rm -f conftest.o conftest.obj
3202 if { { ac_try="$ac_compile"
3203 case "(($ac_try" in
3204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3205 *) ac_try_echo=$ac_try;;
3206 esac
3207 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3208 $as_echo "$ac_try_echo"; } >&5
3209 (eval "$ac_compile") 2>&5
3210 ac_status=$?
3211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3212 test $ac_status = 0; }; then :
3213 for ac_file in conftest.o conftest.obj conftest.*; do
3214 test -f "$ac_file" || continue;
3215 case $ac_file in
3216 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3217 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3218 break;;
3219 esac
3220 done
3221 else
3222 $as_echo "$as_me: failed program was:" >&5
3223 sed 's/^/| /' conftest.$ac_ext >&5
3225 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3226 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3227 as_fn_error "cannot compute suffix of object files: cannot compile
3228 See \`config.log' for more details." "$LINENO" 5; }
3230 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3233 $as_echo "$ac_cv_objext" >&6; }
3234 OBJEXT=$ac_cv_objext
3235 ac_objext=$OBJEXT
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3237 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3238 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3239 $as_echo_n "(cached) " >&6
3240 else
3241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3242 /* end confdefs.h. */
3245 main ()
3247 #ifndef __GNUC__
3248 choke me
3249 #endif
3252 return 0;
3254 _ACEOF
3255 if ac_fn_c_try_compile "$LINENO"; then :
3256 ac_compiler_gnu=yes
3257 else
3258 ac_compiler_gnu=no
3260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3261 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3265 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3266 if test $ac_compiler_gnu = yes; then
3267 GCC=yes
3268 else
3269 GCC=
3271 ac_test_CFLAGS=${CFLAGS+set}
3272 ac_save_CFLAGS=$CFLAGS
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3274 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3275 if test "${ac_cv_prog_cc_g+set}" = set; then :
3276 $as_echo_n "(cached) " >&6
3277 else
3278 ac_save_c_werror_flag=$ac_c_werror_flag
3279 ac_c_werror_flag=yes
3280 ac_cv_prog_cc_g=no
3281 CFLAGS="-g"
3282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3283 /* end confdefs.h. */
3286 main ()
3290 return 0;
3292 _ACEOF
3293 if ac_fn_c_try_compile "$LINENO"; then :
3294 ac_cv_prog_cc_g=yes
3295 else
3296 CFLAGS=""
3297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3298 /* end confdefs.h. */
3301 main ()
3305 return 0;
3307 _ACEOF
3308 if ac_fn_c_try_compile "$LINENO"; then :
3310 else
3311 ac_c_werror_flag=$ac_save_c_werror_flag
3312 CFLAGS="-g"
3313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3314 /* end confdefs.h. */
3317 main ()
3321 return 0;
3323 _ACEOF
3324 if ac_fn_c_try_compile "$LINENO"; then :
3325 ac_cv_prog_cc_g=yes
3327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3332 ac_c_werror_flag=$ac_save_c_werror_flag
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3335 $as_echo "$ac_cv_prog_cc_g" >&6; }
3336 if test "$ac_test_CFLAGS" = set; then
3337 CFLAGS=$ac_save_CFLAGS
3338 elif test $ac_cv_prog_cc_g = yes; then
3339 if test "$GCC" = yes; then
3340 CFLAGS="-g -O2"
3341 else
3342 CFLAGS="-g"
3344 else
3345 if test "$GCC" = yes; then
3346 CFLAGS="-O2"
3347 else
3348 CFLAGS=
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3352 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3353 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3354 $as_echo_n "(cached) " >&6
3355 else
3356 ac_cv_prog_cc_c89=no
3357 ac_save_CC=$CC
3358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3359 /* end confdefs.h. */
3360 #include <stdarg.h>
3361 #include <stdio.h>
3362 #include <sys/types.h>
3363 #include <sys/stat.h>
3364 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3365 struct buf { int x; };
3366 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3367 static char *e (p, i)
3368 char **p;
3369 int i;
3371 return p[i];
3373 static char *f (char * (*g) (char **, int), char **p, ...)
3375 char *s;
3376 va_list v;
3377 va_start (v,p);
3378 s = g (p, va_arg (v,int));
3379 va_end (v);
3380 return s;
3383 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3384 function prototypes and stuff, but not '\xHH' hex character constants.
3385 These don't provoke an error unfortunately, instead are silently treated
3386 as 'x'. The following induces an error, until -std is added to get
3387 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3388 array size at least. It's necessary to write '\x00'==0 to get something
3389 that's true only with -std. */
3390 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3392 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3393 inside strings and character constants. */
3394 #define FOO(x) 'x'
3395 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3397 int test (int i, double x);
3398 struct s1 {int (*f) (int a);};
3399 struct s2 {int (*f) (double a);};
3400 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3401 int argc;
3402 char **argv;
3404 main ()
3406 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3408 return 0;
3410 _ACEOF
3411 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3412 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3414 CC="$ac_save_CC $ac_arg"
3415 if ac_fn_c_try_compile "$LINENO"; then :
3416 ac_cv_prog_cc_c89=$ac_arg
3418 rm -f core conftest.err conftest.$ac_objext
3419 test "x$ac_cv_prog_cc_c89" != "xno" && break
3420 done
3421 rm -f conftest.$ac_ext
3422 CC=$ac_save_CC
3425 # AC_CACHE_VAL
3426 case "x$ac_cv_prog_cc_c89" in
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3429 $as_echo "none needed" >&6; } ;;
3430 xno)
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3432 $as_echo "unsupported" >&6; } ;;
3434 CC="$CC $ac_cv_prog_cc_c89"
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3436 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3437 esac
3438 if test "x$ac_cv_prog_cc_c89" != xno; then :
3442 ac_ext=c
3443 ac_cpp='$CPP $CPPFLAGS'
3444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3449 ac_ext=c
3450 ac_cpp='$CPP $CPPFLAGS'
3451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3455 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3456 # On Suns, sometimes $CPP names a directory.
3457 if test -n "$CPP" && test -d "$CPP"; then
3458 CPP=
3460 if test -z "$CPP"; then
3461 if test "${ac_cv_prog_CPP+set}" = set; then :
3462 $as_echo_n "(cached) " >&6
3463 else
3464 # Double quotes because CPP needs to be expanded
3465 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3467 ac_preproc_ok=false
3468 for ac_c_preproc_warn_flag in '' yes
3470 # Use a header file that comes with gcc, so configuring glibc
3471 # with a fresh cross-compiler works.
3472 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3473 # <limits.h> exists even on freestanding compilers.
3474 # On the NeXT, cc -E runs the code through the compiler's parser,
3475 # not just through cpp. "Syntax error" is here to catch this case.
3476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3477 /* end confdefs.h. */
3478 #ifdef __STDC__
3479 # include <limits.h>
3480 #else
3481 # include <assert.h>
3482 #endif
3483 Syntax error
3484 _ACEOF
3485 if ac_fn_c_try_cpp "$LINENO"; then :
3487 else
3488 # Broken: fails on valid input.
3489 continue
3491 rm -f conftest.err conftest.$ac_ext
3493 # OK, works on sane cases. Now check whether nonexistent headers
3494 # can be detected and how.
3495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3496 /* end confdefs.h. */
3497 #include <ac_nonexistent.h>
3498 _ACEOF
3499 if ac_fn_c_try_cpp "$LINENO"; then :
3500 # Broken: success on invalid input.
3501 continue
3502 else
3503 # Passes both tests.
3504 ac_preproc_ok=:
3505 break
3507 rm -f conftest.err conftest.$ac_ext
3509 done
3510 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3511 rm -f conftest.err conftest.$ac_ext
3512 if $ac_preproc_ok; then :
3513 break
3516 done
3517 ac_cv_prog_CPP=$CPP
3520 CPP=$ac_cv_prog_CPP
3521 else
3522 ac_cv_prog_CPP=$CPP
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3525 $as_echo "$CPP" >&6; }
3526 ac_preproc_ok=false
3527 for ac_c_preproc_warn_flag in '' yes
3529 # Use a header file that comes with gcc, so configuring glibc
3530 # with a fresh cross-compiler works.
3531 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3532 # <limits.h> exists even on freestanding compilers.
3533 # On the NeXT, cc -E runs the code through the compiler's parser,
3534 # not just through cpp. "Syntax error" is here to catch this case.
3535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3536 /* end confdefs.h. */
3537 #ifdef __STDC__
3538 # include <limits.h>
3539 #else
3540 # include <assert.h>
3541 #endif
3542 Syntax error
3543 _ACEOF
3544 if ac_fn_c_try_cpp "$LINENO"; then :
3546 else
3547 # Broken: fails on valid input.
3548 continue
3550 rm -f conftest.err conftest.$ac_ext
3552 # OK, works on sane cases. Now check whether nonexistent headers
3553 # can be detected and how.
3554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3555 /* end confdefs.h. */
3556 #include <ac_nonexistent.h>
3557 _ACEOF
3558 if ac_fn_c_try_cpp "$LINENO"; then :
3559 # Broken: success on invalid input.
3560 continue
3561 else
3562 # Passes both tests.
3563 ac_preproc_ok=:
3564 break
3566 rm -f conftest.err conftest.$ac_ext
3568 done
3569 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3570 rm -f conftest.err conftest.$ac_ext
3571 if $ac_preproc_ok; then :
3573 else
3574 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3575 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3576 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3577 See \`config.log' for more details." "$LINENO" 5; }
3580 ac_ext=c
3581 ac_cpp='$CPP $CPPFLAGS'
3582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3588 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3589 if test "${ac_cv_path_GREP+set}" = set; then :
3590 $as_echo_n "(cached) " >&6
3591 else
3592 if test -z "$GREP"; then
3593 ac_path_GREP_found=false
3594 # Loop through the user's path and test for each of PROGNAME-LIST
3595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3596 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3598 IFS=$as_save_IFS
3599 test -z "$as_dir" && as_dir=.
3600 for ac_prog in grep ggrep; do
3601 for ac_exec_ext in '' $ac_executable_extensions; do
3602 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3603 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3604 # Check for GNU ac_path_GREP and select it if it is found.
3605 # Check for GNU $ac_path_GREP
3606 case `"$ac_path_GREP" --version 2>&1` in
3607 *GNU*)
3608 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3610 ac_count=0
3611 $as_echo_n 0123456789 >"conftest.in"
3612 while :
3614 cat "conftest.in" "conftest.in" >"conftest.tmp"
3615 mv "conftest.tmp" "conftest.in"
3616 cp "conftest.in" "conftest.nl"
3617 $as_echo 'GREP' >> "conftest.nl"
3618 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3619 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3620 as_fn_arith $ac_count + 1 && ac_count=$as_val
3621 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3622 # Best one so far, save it but keep looking for a better one
3623 ac_cv_path_GREP="$ac_path_GREP"
3624 ac_path_GREP_max=$ac_count
3626 # 10*(2^10) chars as input seems more than enough
3627 test $ac_count -gt 10 && break
3628 done
3629 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3630 esac
3632 $ac_path_GREP_found && break 3
3633 done
3634 done
3635 done
3636 IFS=$as_save_IFS
3637 if test -z "$ac_cv_path_GREP"; then
3638 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3640 else
3641 ac_cv_path_GREP=$GREP
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3646 $as_echo "$ac_cv_path_GREP" >&6; }
3647 GREP="$ac_cv_path_GREP"
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3651 $as_echo_n "checking for egrep... " >&6; }
3652 if test "${ac_cv_path_EGREP+set}" = set; then :
3653 $as_echo_n "(cached) " >&6
3654 else
3655 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3656 then ac_cv_path_EGREP="$GREP -E"
3657 else
3658 if test -z "$EGREP"; then
3659 ac_path_EGREP_found=false
3660 # Loop through the user's path and test for each of PROGNAME-LIST
3661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3662 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3664 IFS=$as_save_IFS
3665 test -z "$as_dir" && as_dir=.
3666 for ac_prog in egrep; do
3667 for ac_exec_ext in '' $ac_executable_extensions; do
3668 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3669 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3670 # Check for GNU ac_path_EGREP and select it if it is found.
3671 # Check for GNU $ac_path_EGREP
3672 case `"$ac_path_EGREP" --version 2>&1` in
3673 *GNU*)
3674 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3676 ac_count=0
3677 $as_echo_n 0123456789 >"conftest.in"
3678 while :
3680 cat "conftest.in" "conftest.in" >"conftest.tmp"
3681 mv "conftest.tmp" "conftest.in"
3682 cp "conftest.in" "conftest.nl"
3683 $as_echo 'EGREP' >> "conftest.nl"
3684 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3685 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3686 as_fn_arith $ac_count + 1 && ac_count=$as_val
3687 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3688 # Best one so far, save it but keep looking for a better one
3689 ac_cv_path_EGREP="$ac_path_EGREP"
3690 ac_path_EGREP_max=$ac_count
3692 # 10*(2^10) chars as input seems more than enough
3693 test $ac_count -gt 10 && break
3694 done
3695 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3696 esac
3698 $ac_path_EGREP_found && break 3
3699 done
3700 done
3701 done
3702 IFS=$as_save_IFS
3703 if test -z "$ac_cv_path_EGREP"; then
3704 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3706 else
3707 ac_cv_path_EGREP=$EGREP
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3713 $as_echo "$ac_cv_path_EGREP" >&6; }
3714 EGREP="$ac_cv_path_EGREP"
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3718 $as_echo_n "checking for ANSI C header files... " >&6; }
3719 if test "${ac_cv_header_stdc+set}" = set; then :
3720 $as_echo_n "(cached) " >&6
3721 else
3722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3723 /* end confdefs.h. */
3724 #include <stdlib.h>
3725 #include <stdarg.h>
3726 #include <string.h>
3727 #include <float.h>
3730 main ()
3734 return 0;
3736 _ACEOF
3737 if ac_fn_c_try_compile "$LINENO"; then :
3738 ac_cv_header_stdc=yes
3739 else
3740 ac_cv_header_stdc=no
3742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3744 if test $ac_cv_header_stdc = yes; then
3745 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3747 /* end confdefs.h. */
3748 #include <string.h>
3750 _ACEOF
3751 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3752 $EGREP "memchr" >/dev/null 2>&1; then :
3754 else
3755 ac_cv_header_stdc=no
3757 rm -f conftest*
3761 if test $ac_cv_header_stdc = yes; then
3762 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3764 /* end confdefs.h. */
3765 #include <stdlib.h>
3767 _ACEOF
3768 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3769 $EGREP "free" >/dev/null 2>&1; then :
3771 else
3772 ac_cv_header_stdc=no
3774 rm -f conftest*
3778 if test $ac_cv_header_stdc = yes; then
3779 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3780 if test "$cross_compiling" = yes; then :
3782 else
3783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3784 /* end confdefs.h. */
3785 #include <ctype.h>
3786 #include <stdlib.h>
3787 #if ((' ' & 0x0FF) == 0x020)
3788 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3789 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3790 #else
3791 # define ISLOWER(c) \
3792 (('a' <= (c) && (c) <= 'i') \
3793 || ('j' <= (c) && (c) <= 'r') \
3794 || ('s' <= (c) && (c) <= 'z'))
3795 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3796 #endif
3798 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3800 main ()
3802 int i;
3803 for (i = 0; i < 256; i++)
3804 if (XOR (islower (i), ISLOWER (i))
3805 || toupper (i) != TOUPPER (i))
3806 return 2;
3807 return 0;
3809 _ACEOF
3810 if ac_fn_c_try_run "$LINENO"; then :
3812 else
3813 ac_cv_header_stdc=no
3815 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3816 conftest.$ac_objext conftest.beam conftest.$ac_ext
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3822 $as_echo "$ac_cv_header_stdc" >&6; }
3823 if test $ac_cv_header_stdc = yes; then
3825 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3829 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3830 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3831 inttypes.h stdint.h unistd.h
3832 do :
3833 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3834 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3836 eval as_val=\$$as_ac_Header
3837 if test "x$as_val" = x""yes; then :
3838 cat >>confdefs.h <<_ACEOF
3839 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3840 _ACEOF
3844 done
3848 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3849 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
3850 MINIX=yes
3851 else
3852 MINIX=
3856 if test "$MINIX" = yes; then
3858 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3861 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3864 $as_echo "#define _MINIX 1" >>confdefs.h
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3870 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3871 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3872 $as_echo_n "(cached) " >&6
3873 else
3874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3875 /* end confdefs.h. */
3877 # define __EXTENSIONS__ 1
3878 $ac_includes_default
3880 main ()
3884 return 0;
3886 _ACEOF
3887 if ac_fn_c_try_compile "$LINENO"; then :
3888 ac_cv_safe_to_define___extensions__=yes
3889 else
3890 ac_cv_safe_to_define___extensions__=no
3892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3895 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3896 test $ac_cv_safe_to_define___extensions__ = yes &&
3897 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3899 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3901 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3903 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3905 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3909 # Do not delete or change the following two lines. For why, see
3910 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
3911 ac_aux_dir=
3912 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3913 for ac_t in install-sh install.sh shtool; do
3914 if test -f "$ac_dir/$ac_t"; then
3915 ac_aux_dir=$ac_dir
3916 ac_install_sh="$ac_aux_dir/$ac_t -c"
3917 break 2
3919 done
3920 done
3921 if test -z "$ac_aux_dir"; then
3922 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3925 # These three variables are undocumented and unsupported,
3926 # and are intended to be withdrawn in a future Autoconf release.
3927 # They can cause serious problems if a builder's source tree is in a directory
3928 # whose full name contains unusual characters.
3929 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3930 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3931 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3934 # Make sure we can run config.sub.
3935 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3936 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3939 $as_echo_n "checking build system type... " >&6; }
3940 if test "${ac_cv_build+set}" = set; then :
3941 $as_echo_n "(cached) " >&6
3942 else
3943 ac_build_alias=$build_alias
3944 test "x$ac_build_alias" = x &&
3945 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3946 test "x$ac_build_alias" = x &&
3947 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3948 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3949 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3953 $as_echo "$ac_cv_build" >&6; }
3954 case $ac_cv_build in
3955 *-*-*) ;;
3956 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3957 esac
3958 build=$ac_cv_build
3959 ac_save_IFS=$IFS; IFS='-'
3960 set x $ac_cv_build
3961 shift
3962 build_cpu=$1
3963 build_vendor=$2
3964 shift; shift
3965 # Remember, the first character of IFS is used to create $*,
3966 # except with old shells:
3967 build_os=$*
3968 IFS=$ac_save_IFS
3969 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3973 $as_echo_n "checking host system type... " >&6; }
3974 if test "${ac_cv_host+set}" = set; then :
3975 $as_echo_n "(cached) " >&6
3976 else
3977 if test "x$host_alias" = x; then
3978 ac_cv_host=$ac_cv_build
3979 else
3980 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3981 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3986 $as_echo "$ac_cv_host" >&6; }
3987 case $ac_cv_host in
3988 *-*-*) ;;
3989 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3990 esac
3991 host=$ac_cv_host
3992 ac_save_IFS=$IFS; IFS='-'
3993 set x $ac_cv_host
3994 shift
3995 host_cpu=$1
3996 host_vendor=$2
3997 shift; shift
3998 # Remember, the first character of IFS is used to create $*,
3999 # except with old shells:
4000 host_os=$*
4001 IFS=$ac_save_IFS
4002 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4006 $as_echo_n "checking target system type... " >&6; }
4007 if test "${ac_cv_target+set}" = set; then :
4008 $as_echo_n "(cached) " >&6
4009 else
4010 if test "x$target_alias" = x; then
4011 ac_cv_target=$ac_cv_host
4012 else
4013 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4014 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4019 $as_echo "$ac_cv_target" >&6; }
4020 case $ac_cv_target in
4021 *-*-*) ;;
4022 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
4023 esac
4024 target=$ac_cv_target
4025 ac_save_IFS=$IFS; IFS='-'
4026 set x $ac_cv_target
4027 shift
4028 target_cpu=$1
4029 target_vendor=$2
4030 shift; shift
4031 # Remember, the first character of IFS is used to create $*,
4032 # except with old shells:
4033 target_os=$*
4034 IFS=$ac_save_IFS
4035 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4038 # The aliases save the names the user supplied, while $host etc.
4039 # will get canonicalized.
4040 test -n "$target_alias" &&
4041 test "$program_prefix$program_suffix$program_transform_name" = \
4042 NONENONEs,x,x, &&
4043 program_prefix=${target_alias}-
4045 target_alias=${target_alias-$host_alias}
4047 case ${build_alias} in
4048 "") build_noncanonical=${build} ;;
4049 *) build_noncanonical=${build_alias} ;;
4050 esac
4052 case ${host_alias} in
4053 "") host_noncanonical=${build_noncanonical} ;;
4054 *) host_noncanonical=${host_alias} ;;
4055 esac
4057 case ${target_alias} in
4058 "") target_noncanonical=${host_noncanonical} ;;
4059 *) target_noncanonical=${target_alias} ;;
4060 esac
4066 LIBSTDCXX_RAW_CXX_CXXFLAGS="\
4067 -I\$(top_builddir)/../libstdc++-v3/include \
4068 -I\$(top_builddir)/../libstdc++-v3/include/\$(target_noncanonical) \
4069 -I\$(top_srcdir)/../libstdc++-v3/libsupc++"
4070 LIBSTDCXX_RAW_CXX_LDFLAGS="\
4071 \$(top_builddir)/../libstdc++-v3/src/libstdc++.la"
4076 am__api_version='1.11'
4078 # Find a good install program. We prefer a C program (faster),
4079 # so one script is as good as another. But avoid the broken or
4080 # incompatible versions:
4081 # SysV /etc/install, /usr/sbin/install
4082 # SunOS /usr/etc/install
4083 # IRIX /sbin/install
4084 # AIX /bin/install
4085 # AmigaOS /C/install, which installs bootblocks on floppy discs
4086 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4087 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4088 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4089 # OS/2's system install, which has a completely different semantic
4090 # ./install, which can be erroneously created by make from ./install.sh.
4091 # Reject install programs that cannot install multiple files.
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4093 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4094 if test -z "$INSTALL"; then
4095 if test "${ac_cv_path_install+set}" = set; then :
4096 $as_echo_n "(cached) " >&6
4097 else
4098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4099 for as_dir in $PATH
4101 IFS=$as_save_IFS
4102 test -z "$as_dir" && as_dir=.
4103 # Account for people who put trailing slashes in PATH elements.
4104 case $as_dir/ in #((
4105 ./ | .// | /[cC]/* | \
4106 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4107 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4108 /usr/ucb/* ) ;;
4110 # OSF1 and SCO ODT 3.0 have their own names for install.
4111 # Don't use installbsd from OSF since it installs stuff as root
4112 # by default.
4113 for ac_prog in ginstall scoinst install; do
4114 for ac_exec_ext in '' $ac_executable_extensions; do
4115 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4116 if test $ac_prog = install &&
4117 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4118 # AIX install. It has an incompatible calling convention.
4120 elif test $ac_prog = install &&
4121 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4122 # program-specific install script used by HP pwplus--don't use.
4124 else
4125 rm -rf conftest.one conftest.two conftest.dir
4126 echo one > conftest.one
4127 echo two > conftest.two
4128 mkdir conftest.dir
4129 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4130 test -s conftest.one && test -s conftest.two &&
4131 test -s conftest.dir/conftest.one &&
4132 test -s conftest.dir/conftest.two
4133 then
4134 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4135 break 3
4139 done
4140 done
4142 esac
4144 done
4145 IFS=$as_save_IFS
4147 rm -rf conftest.one conftest.two conftest.dir
4150 if test "${ac_cv_path_install+set}" = set; then
4151 INSTALL=$ac_cv_path_install
4152 else
4153 # As a last resort, use the slow shell script. Don't cache a
4154 # value for INSTALL within a source directory, because that will
4155 # break other packages using the cache if that directory is
4156 # removed, or if the value is a relative name.
4157 INSTALL=$ac_install_sh
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4161 $as_echo "$INSTALL" >&6; }
4163 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4164 # It thinks the first close brace ends the variable substitution.
4165 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4167 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4169 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4172 $as_echo_n "checking whether build environment is sane... " >&6; }
4173 # Just in case
4174 sleep 1
4175 echo timestamp > conftest.file
4176 # Reject unsafe characters in $srcdir or the absolute working directory
4177 # name. Accept space and tab only in the latter.
4178 am_lf='
4180 case `pwd` in
4181 *[\\\"\#\$\&\'\`$am_lf]*)
4182 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
4183 esac
4184 case $srcdir in
4185 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4186 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
4187 esac
4189 # Do `set' in a subshell so we don't clobber the current shell's
4190 # arguments. Must try -L first in case configure is actually a
4191 # symlink; some systems play weird games with the mod time of symlinks
4192 # (eg FreeBSD returns the mod time of the symlink's containing
4193 # directory).
4194 if (
4195 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4196 if test "$*" = "X"; then
4197 # -L didn't work.
4198 set X `ls -t "$srcdir/configure" conftest.file`
4200 rm -f conftest.file
4201 if test "$*" != "X $srcdir/configure conftest.file" \
4202 && test "$*" != "X conftest.file $srcdir/configure"; then
4204 # If neither matched, then we have a broken ls. This can happen
4205 # if, for instance, CONFIG_SHELL is bash and it inherits a
4206 # broken ls alias from the environment. This has actually
4207 # happened. Such a system could not be considered "sane".
4208 as_fn_error "ls -t appears to fail. Make sure there is not a broken
4209 alias in your environment" "$LINENO" 5
4212 test "$2" = conftest.file
4214 then
4215 # Ok.
4217 else
4218 as_fn_error "newly created file is older than distributed files!
4219 Check your system clock" "$LINENO" 5
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4222 $as_echo "yes" >&6; }
4223 test "$program_prefix" != NONE &&
4224 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4225 # Use a double $ so make ignores it.
4226 test "$program_suffix" != NONE &&
4227 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4228 # Double any \ or $.
4229 # By default was `s,x,x', remove it if useless.
4230 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4231 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4233 # expand $ac_aux_dir to an absolute path
4234 am_aux_dir=`cd $ac_aux_dir && pwd`
4236 if test x"${MISSING+set}" != xset; then
4237 case $am_aux_dir in
4238 *\ * | *\ *)
4239 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4241 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4242 esac
4244 # Use eval to expand $SHELL
4245 if eval "$MISSING --run true"; then
4246 am_missing_run="$MISSING --run "
4247 else
4248 am_missing_run=
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
4250 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4253 if test x"${install_sh}" != xset; then
4254 case $am_aux_dir in
4255 *\ * | *\ *)
4256 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4258 install_sh="\${SHELL} $am_aux_dir/install-sh"
4259 esac
4262 # Installed binaries are usually stripped using `strip' when the user
4263 # run `make install-strip'. However `strip' might not be the right
4264 # tool to use in cross-compilation environments, therefore Automake
4265 # will honor the `STRIP' environment variable to overrule this program.
4266 if test "$cross_compiling" != no; then
4267 if test -n "$ac_tool_prefix"; then
4268 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4269 set dummy ${ac_tool_prefix}strip; ac_word=$2
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4271 $as_echo_n "checking for $ac_word... " >&6; }
4272 if test "${ac_cv_prog_STRIP+set}" = set; then :
4273 $as_echo_n "(cached) " >&6
4274 else
4275 if test -n "$STRIP"; then
4276 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4277 else
4278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4279 for as_dir in $PATH
4281 IFS=$as_save_IFS
4282 test -z "$as_dir" && as_dir=.
4283 for ac_exec_ext in '' $ac_executable_extensions; do
4284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4285 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4287 break 2
4289 done
4290 done
4291 IFS=$as_save_IFS
4295 STRIP=$ac_cv_prog_STRIP
4296 if test -n "$STRIP"; then
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4298 $as_echo "$STRIP" >&6; }
4299 else
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4301 $as_echo "no" >&6; }
4306 if test -z "$ac_cv_prog_STRIP"; then
4307 ac_ct_STRIP=$STRIP
4308 # Extract the first word of "strip", so it can be a program name with args.
4309 set dummy strip; ac_word=$2
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4311 $as_echo_n "checking for $ac_word... " >&6; }
4312 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4313 $as_echo_n "(cached) " >&6
4314 else
4315 if test -n "$ac_ct_STRIP"; then
4316 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4317 else
4318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4319 for as_dir in $PATH
4321 IFS=$as_save_IFS
4322 test -z "$as_dir" && as_dir=.
4323 for ac_exec_ext in '' $ac_executable_extensions; do
4324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4325 ac_cv_prog_ac_ct_STRIP="strip"
4326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4327 break 2
4329 done
4330 done
4331 IFS=$as_save_IFS
4335 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4336 if test -n "$ac_ct_STRIP"; then
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4338 $as_echo "$ac_ct_STRIP" >&6; }
4339 else
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4341 $as_echo "no" >&6; }
4344 if test "x$ac_ct_STRIP" = x; then
4345 STRIP=":"
4346 else
4347 case $cross_compiling:$ac_tool_warned in
4348 yes:)
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4350 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4351 ac_tool_warned=yes ;;
4352 esac
4353 STRIP=$ac_ct_STRIP
4355 else
4356 STRIP="$ac_cv_prog_STRIP"
4360 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4363 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4364 if test -z "$MKDIR_P"; then
4365 if test "${ac_cv_path_mkdir+set}" = set; then :
4366 $as_echo_n "(cached) " >&6
4367 else
4368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4369 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4371 IFS=$as_save_IFS
4372 test -z "$as_dir" && as_dir=.
4373 for ac_prog in mkdir gmkdir; do
4374 for ac_exec_ext in '' $ac_executable_extensions; do
4375 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4376 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4377 'mkdir (GNU coreutils) '* | \
4378 'mkdir (coreutils) '* | \
4379 'mkdir (fileutils) '4.1*)
4380 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4381 break 3;;
4382 esac
4383 done
4384 done
4385 done
4386 IFS=$as_save_IFS
4390 if test "${ac_cv_path_mkdir+set}" = set; then
4391 MKDIR_P="$ac_cv_path_mkdir -p"
4392 else
4393 # As a last resort, use the slow shell script. Don't cache a
4394 # value for MKDIR_P within a source directory, because that will
4395 # break other packages using the cache if that directory is
4396 # removed, or if the value is a relative name.
4397 test -d ./--version && rmdir ./--version
4398 MKDIR_P="$ac_install_sh -d"
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4402 $as_echo "$MKDIR_P" >&6; }
4404 mkdir_p="$MKDIR_P"
4405 case $mkdir_p in
4406 [\\/$]* | ?:[\\/]*) ;;
4407 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4408 esac
4410 for ac_prog in gawk mawk nawk awk
4412 # Extract the first word of "$ac_prog", so it can be a program name with args.
4413 set dummy $ac_prog; ac_word=$2
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4415 $as_echo_n "checking for $ac_word... " >&6; }
4416 if test "${ac_cv_prog_AWK+set}" = set; then :
4417 $as_echo_n "(cached) " >&6
4418 else
4419 if test -n "$AWK"; then
4420 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4421 else
4422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4423 for as_dir in $PATH
4425 IFS=$as_save_IFS
4426 test -z "$as_dir" && as_dir=.
4427 for ac_exec_ext in '' $ac_executable_extensions; do
4428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4429 ac_cv_prog_AWK="$ac_prog"
4430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4431 break 2
4433 done
4434 done
4435 IFS=$as_save_IFS
4439 AWK=$ac_cv_prog_AWK
4440 if test -n "$AWK"; then
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4442 $as_echo "$AWK" >&6; }
4443 else
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4445 $as_echo "no" >&6; }
4449 test -n "$AWK" && break
4450 done
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4453 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4454 set x ${MAKE-make}
4455 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4456 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4457 $as_echo_n "(cached) " >&6
4458 else
4459 cat >conftest.make <<\_ACEOF
4460 SHELL = /bin/sh
4461 all:
4462 @echo '@@@%%%=$(MAKE)=@@@%%%'
4463 _ACEOF
4464 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4465 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4466 *@@@%%%=?*=@@@%%%*)
4467 eval ac_cv_prog_make_${ac_make}_set=yes;;
4469 eval ac_cv_prog_make_${ac_make}_set=no;;
4470 esac
4471 rm -f conftest.make
4473 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4475 $as_echo "yes" >&6; }
4476 SET_MAKE=
4477 else
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4479 $as_echo "no" >&6; }
4480 SET_MAKE="MAKE=${MAKE-make}"
4483 rm -rf .tst 2>/dev/null
4484 mkdir .tst 2>/dev/null
4485 if test -d .tst; then
4486 am__leading_dot=.
4487 else
4488 am__leading_dot=_
4490 rmdir .tst 2>/dev/null
4492 DEPDIR="${am__leading_dot}deps"
4494 ac_config_commands="$ac_config_commands depfiles"
4497 am_make=${MAKE-make}
4498 cat > confinc << 'END'
4499 am__doit:
4500 @echo this is the am__doit target
4501 .PHONY: am__doit
4503 # If we don't find an include directive, just comment out the code.
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4505 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4506 am__include="#"
4507 am__quote=
4508 _am_result=none
4509 # First try GNU make style include.
4510 echo "include confinc" > confmf
4511 # Ignore all kinds of additional output from `make'.
4512 case `$am_make -s -f confmf 2> /dev/null` in #(
4513 *the\ am__doit\ target*)
4514 am__include=include
4515 am__quote=
4516 _am_result=GNU
4518 esac
4519 # Now try BSD make style include.
4520 if test "$am__include" = "#"; then
4521 echo '.include "confinc"' > confmf
4522 case `$am_make -s -f confmf 2> /dev/null` in #(
4523 *the\ am__doit\ target*)
4524 am__include=.include
4525 am__quote="\""
4526 _am_result=BSD
4528 esac
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4533 $as_echo "$_am_result" >&6; }
4534 rm -f confinc confmf
4536 # Check whether --enable-dependency-tracking was given.
4537 if test "${enable_dependency_tracking+set}" = set; then :
4538 enableval=$enable_dependency_tracking;
4541 if test "x$enable_dependency_tracking" != xno; then
4542 am_depcomp="$ac_aux_dir/depcomp"
4543 AMDEPBACKSLASH='\'
4545 if test "x$enable_dependency_tracking" != xno; then
4546 AMDEP_TRUE=
4547 AMDEP_FALSE='#'
4548 else
4549 AMDEP_TRUE='#'
4550 AMDEP_FALSE=
4554 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4555 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4556 # is not polluted with repeated "-I."
4557 am__isrc=' -I$(srcdir)'
4558 # test to see if srcdir already configured
4559 if test -f $srcdir/config.status; then
4560 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4564 # test whether we have cygpath
4565 if test -z "$CYGPATH_W"; then
4566 if (cygpath --version) >/dev/null 2>/dev/null; then
4567 CYGPATH_W='cygpath -w'
4568 else
4569 CYGPATH_W=echo
4574 # Define the identity of the package.
4575 PACKAGE='package-unused'
4576 VERSION='version-unused'
4579 cat >>confdefs.h <<_ACEOF
4580 #define PACKAGE "$PACKAGE"
4581 _ACEOF
4584 cat >>confdefs.h <<_ACEOF
4585 #define VERSION "$VERSION"
4586 _ACEOF
4588 # Some tools Automake needs.
4590 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4593 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4596 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4599 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4602 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4604 # We need awk for the "check" target. The system "awk" is bad on
4605 # some platforms.
4606 # Always define AMTAR for backward compatibility.
4608 AMTAR=${AMTAR-"${am_missing_run}tar"}
4610 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4615 depcc="$CC" am_compiler_list=
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4618 $as_echo_n "checking dependency style of $depcc... " >&6; }
4619 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4620 $as_echo_n "(cached) " >&6
4621 else
4622 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4623 # We make a subdir and do the tests there. Otherwise we can end up
4624 # making bogus files that we don't know about and never remove. For
4625 # instance it was reported that on HP-UX the gcc test will end up
4626 # making a dummy file named `D' -- because `-MD' means `put the output
4627 # in D'.
4628 mkdir conftest.dir
4629 # Copy depcomp to subdir because otherwise we won't find it if we're
4630 # using a relative directory.
4631 cp "$am_depcomp" conftest.dir
4632 cd conftest.dir
4633 # We will build objects and dependencies in a subdirectory because
4634 # it helps to detect inapplicable dependency modes. For instance
4635 # both Tru64's cc and ICC support -MD to output dependencies as a
4636 # side effect of compilation, but ICC will put the dependencies in
4637 # the current directory while Tru64 will put them in the object
4638 # directory.
4639 mkdir sub
4641 am_cv_CC_dependencies_compiler_type=none
4642 if test "$am_compiler_list" = ""; then
4643 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4645 am__universal=false
4646 case " $depcc " in #(
4647 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4648 esac
4650 for depmode in $am_compiler_list; do
4651 # Setup a source with many dependencies, because some compilers
4652 # like to wrap large dependency lists on column 80 (with \), and
4653 # we should not choose a depcomp mode which is confused by this.
4655 # We need to recreate these files for each test, as the compiler may
4656 # overwrite some of them when testing with obscure command lines.
4657 # This happens at least with the AIX C compiler.
4658 : > sub/conftest.c
4659 for i in 1 2 3 4 5 6; do
4660 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4661 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4662 # Solaris 8's {/usr,}/bin/sh.
4663 touch sub/conftst$i.h
4664 done
4665 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4667 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4668 # mode. It turns out that the SunPro C++ compiler does not properly
4669 # handle `-M -o', and we need to detect this. Also, some Intel
4670 # versions had trouble with output in subdirs
4671 am__obj=sub/conftest.${OBJEXT-o}
4672 am__minus_obj="-o $am__obj"
4673 case $depmode in
4674 gcc)
4675 # This depmode causes a compiler race in universal mode.
4676 test "$am__universal" = false || continue
4678 nosideeffect)
4679 # after this tag, mechanisms are not by side-effect, so they'll
4680 # only be used when explicitly requested
4681 if test "x$enable_dependency_tracking" = xyes; then
4682 continue
4683 else
4684 break
4687 msvisualcpp | msvcmsys)
4688 # This compiler won't grok `-c -o', but also, the minuso test has
4689 # not run yet. These depmodes are late enough in the game, and
4690 # so weak that their functioning should not be impacted.
4691 am__obj=conftest.${OBJEXT-o}
4692 am__minus_obj=
4694 none) break ;;
4695 esac
4696 if depmode=$depmode \
4697 source=sub/conftest.c object=$am__obj \
4698 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4699 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4700 >/dev/null 2>conftest.err &&
4701 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4702 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4703 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4704 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4705 # icc doesn't choke on unknown options, it will just issue warnings
4706 # or remarks (even with -Werror). So we grep stderr for any message
4707 # that says an option was ignored or not supported.
4708 # When given -MP, icc 7.0 and 7.1 complain thusly:
4709 # icc: Command line warning: ignoring option '-M'; no argument required
4710 # The diagnosis changed in icc 8.0:
4711 # icc: Command line remark: option '-MP' not supported
4712 if (grep 'ignoring option' conftest.err ||
4713 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4714 am_cv_CC_dependencies_compiler_type=$depmode
4715 break
4718 done
4720 cd ..
4721 rm -rf conftest.dir
4722 else
4723 am_cv_CC_dependencies_compiler_type=none
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4728 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4729 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4732 test "x$enable_dependency_tracking" != xno \
4733 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4734 am__fastdepCC_TRUE=
4735 am__fastdepCC_FALSE='#'
4736 else
4737 am__fastdepCC_TRUE='#'
4738 am__fastdepCC_FALSE=
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4745 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4746 # Check whether --enable-maintainer-mode was given.
4747 if test "${enable_maintainer_mode+set}" = set; then :
4748 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4749 else
4750 USE_MAINTAINER_MODE=no
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4754 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4755 if test $USE_MAINTAINER_MODE = yes; then
4756 MAINTAINER_MODE_TRUE=
4757 MAINTAINER_MODE_FALSE='#'
4758 else
4759 MAINTAINER_MODE_TRUE='#'
4760 MAINTAINER_MODE_FALSE=
4763 MAINT=$MAINTAINER_MODE_TRUE
4767 # Calculate toolexeclibdir
4768 # Also toolexecdir, though it's only used in toolexeclibdir
4769 case ${version_specific_libs} in
4770 yes)
4771 # Need the gcc compiler version to know where to install libraries
4772 # and header files if --enable-version-specific-runtime-libs option
4773 # is selected.
4774 toolexecdir='$(libdir)/gcc/$(target_alias)'
4775 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
4778 if test -n "$with_cross_host" &&
4779 test x"$with_cross_host" != x"no"; then
4780 # Install a library built with a cross compiler in tooldir, not libdir.
4781 toolexecdir='$(exec_prefix)/$(target_alias)'
4782 toolexeclibdir='$(toolexecdir)/lib'
4783 else
4784 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
4785 toolexeclibdir='$(libdir)'
4787 multi_os_directory=`$CC -print-multi-os-directory`
4788 case $multi_os_directory in
4789 .) ;; # Avoid trailing /.
4790 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
4791 esac
4793 esac
4797 # Checks for programs.
4798 ac_ext=c
4799 ac_cpp='$CPP $CPPFLAGS'
4800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4803 if test -n "$ac_tool_prefix"; then
4804 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4805 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4807 $as_echo_n "checking for $ac_word... " >&6; }
4808 if test "${ac_cv_prog_CC+set}" = set; then :
4809 $as_echo_n "(cached) " >&6
4810 else
4811 if test -n "$CC"; then
4812 ac_cv_prog_CC="$CC" # Let the user override the test.
4813 else
4814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4815 for as_dir in $PATH
4817 IFS=$as_save_IFS
4818 test -z "$as_dir" && as_dir=.
4819 for ac_exec_ext in '' $ac_executable_extensions; do
4820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4821 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4823 break 2
4825 done
4826 done
4827 IFS=$as_save_IFS
4831 CC=$ac_cv_prog_CC
4832 if test -n "$CC"; then
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4834 $as_echo "$CC" >&6; }
4835 else
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4837 $as_echo "no" >&6; }
4842 if test -z "$ac_cv_prog_CC"; then
4843 ac_ct_CC=$CC
4844 # Extract the first word of "gcc", so it can be a program name with args.
4845 set dummy gcc; ac_word=$2
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4847 $as_echo_n "checking for $ac_word... " >&6; }
4848 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4849 $as_echo_n "(cached) " >&6
4850 else
4851 if test -n "$ac_ct_CC"; then
4852 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4853 else
4854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4855 for as_dir in $PATH
4857 IFS=$as_save_IFS
4858 test -z "$as_dir" && as_dir=.
4859 for ac_exec_ext in '' $ac_executable_extensions; do
4860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4861 ac_cv_prog_ac_ct_CC="gcc"
4862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4863 break 2
4865 done
4866 done
4867 IFS=$as_save_IFS
4871 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4872 if test -n "$ac_ct_CC"; then
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4874 $as_echo "$ac_ct_CC" >&6; }
4875 else
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4877 $as_echo "no" >&6; }
4880 if test "x$ac_ct_CC" = x; then
4881 CC=""
4882 else
4883 case $cross_compiling:$ac_tool_warned in
4884 yes:)
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4886 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4887 ac_tool_warned=yes ;;
4888 esac
4889 CC=$ac_ct_CC
4891 else
4892 CC="$ac_cv_prog_CC"
4895 if test -z "$CC"; then
4896 if test -n "$ac_tool_prefix"; then
4897 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4898 set dummy ${ac_tool_prefix}cc; ac_word=$2
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4900 $as_echo_n "checking for $ac_word... " >&6; }
4901 if test "${ac_cv_prog_CC+set}" = set; then :
4902 $as_echo_n "(cached) " >&6
4903 else
4904 if test -n "$CC"; then
4905 ac_cv_prog_CC="$CC" # Let the user override the test.
4906 else
4907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4908 for as_dir in $PATH
4910 IFS=$as_save_IFS
4911 test -z "$as_dir" && as_dir=.
4912 for ac_exec_ext in '' $ac_executable_extensions; do
4913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4914 ac_cv_prog_CC="${ac_tool_prefix}cc"
4915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4916 break 2
4918 done
4919 done
4920 IFS=$as_save_IFS
4924 CC=$ac_cv_prog_CC
4925 if test -n "$CC"; then
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4927 $as_echo "$CC" >&6; }
4928 else
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4930 $as_echo "no" >&6; }
4936 if test -z "$CC"; then
4937 # Extract the first word of "cc", so it can be a program name with args.
4938 set dummy cc; ac_word=$2
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4940 $as_echo_n "checking for $ac_word... " >&6; }
4941 if test "${ac_cv_prog_CC+set}" = set; then :
4942 $as_echo_n "(cached) " >&6
4943 else
4944 if test -n "$CC"; then
4945 ac_cv_prog_CC="$CC" # Let the user override the test.
4946 else
4947 ac_prog_rejected=no
4948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4949 for as_dir in $PATH
4951 IFS=$as_save_IFS
4952 test -z "$as_dir" && as_dir=.
4953 for ac_exec_ext in '' $ac_executable_extensions; do
4954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4955 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4956 ac_prog_rejected=yes
4957 continue
4959 ac_cv_prog_CC="cc"
4960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4961 break 2
4963 done
4964 done
4965 IFS=$as_save_IFS
4967 if test $ac_prog_rejected = yes; then
4968 # We found a bogon in the path, so make sure we never use it.
4969 set dummy $ac_cv_prog_CC
4970 shift
4971 if test $# != 0; then
4972 # We chose a different compiler from the bogus one.
4973 # However, it has the same basename, so the bogon will be chosen
4974 # first if we set CC to just the basename; use the full file name.
4975 shift
4976 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4981 CC=$ac_cv_prog_CC
4982 if test -n "$CC"; then
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4984 $as_echo "$CC" >&6; }
4985 else
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4987 $as_echo "no" >&6; }
4992 if test -z "$CC"; then
4993 if test -n "$ac_tool_prefix"; then
4994 for ac_prog in cl.exe
4996 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4997 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4999 $as_echo_n "checking for $ac_word... " >&6; }
5000 if test "${ac_cv_prog_CC+set}" = set; then :
5001 $as_echo_n "(cached) " >&6
5002 else
5003 if test -n "$CC"; then
5004 ac_cv_prog_CC="$CC" # Let the user override the test.
5005 else
5006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5007 for as_dir in $PATH
5009 IFS=$as_save_IFS
5010 test -z "$as_dir" && as_dir=.
5011 for ac_exec_ext in '' $ac_executable_extensions; do
5012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5013 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5015 break 2
5017 done
5018 done
5019 IFS=$as_save_IFS
5023 CC=$ac_cv_prog_CC
5024 if test -n "$CC"; then
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5026 $as_echo "$CC" >&6; }
5027 else
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5029 $as_echo "no" >&6; }
5033 test -n "$CC" && break
5034 done
5036 if test -z "$CC"; then
5037 ac_ct_CC=$CC
5038 for ac_prog in cl.exe
5040 # Extract the first word of "$ac_prog", so it can be a program name with args.
5041 set dummy $ac_prog; ac_word=$2
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5043 $as_echo_n "checking for $ac_word... " >&6; }
5044 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5045 $as_echo_n "(cached) " >&6
5046 else
5047 if test -n "$ac_ct_CC"; then
5048 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5049 else
5050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5051 for as_dir in $PATH
5053 IFS=$as_save_IFS
5054 test -z "$as_dir" && as_dir=.
5055 for ac_exec_ext in '' $ac_executable_extensions; do
5056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5057 ac_cv_prog_ac_ct_CC="$ac_prog"
5058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5059 break 2
5061 done
5062 done
5063 IFS=$as_save_IFS
5067 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5068 if test -n "$ac_ct_CC"; then
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5070 $as_echo "$ac_ct_CC" >&6; }
5071 else
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5073 $as_echo "no" >&6; }
5077 test -n "$ac_ct_CC" && break
5078 done
5080 if test "x$ac_ct_CC" = x; then
5081 CC=""
5082 else
5083 case $cross_compiling:$ac_tool_warned in
5084 yes:)
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5086 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5087 ac_tool_warned=yes ;;
5088 esac
5089 CC=$ac_ct_CC
5096 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5097 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5098 as_fn_error "no acceptable C compiler found in \$PATH
5099 See \`config.log' for more details." "$LINENO" 5; }
5101 # Provide some information about the compiler.
5102 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5103 set X $ac_compile
5104 ac_compiler=$2
5105 for ac_option in --version -v -V -qversion; do
5106 { { ac_try="$ac_compiler $ac_option >&5"
5107 case "(($ac_try" in
5108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5109 *) ac_try_echo=$ac_try;;
5110 esac
5111 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5112 $as_echo "$ac_try_echo"; } >&5
5113 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5114 ac_status=$?
5115 if test -s conftest.err; then
5116 sed '10a\
5117 ... rest of stderr output deleted ...
5118 10q' conftest.err >conftest.er1
5119 cat conftest.er1 >&5
5120 rm -f conftest.er1 conftest.err
5122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5123 test $ac_status = 0; }
5124 done
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5127 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5128 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5129 $as_echo_n "(cached) " >&6
5130 else
5131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5132 /* end confdefs.h. */
5135 main ()
5137 #ifndef __GNUC__
5138 choke me
5139 #endif
5142 return 0;
5144 _ACEOF
5145 if ac_fn_c_try_compile "$LINENO"; then :
5146 ac_compiler_gnu=yes
5147 else
5148 ac_compiler_gnu=no
5150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5151 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5155 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5156 if test $ac_compiler_gnu = yes; then
5157 GCC=yes
5158 else
5159 GCC=
5161 ac_test_CFLAGS=${CFLAGS+set}
5162 ac_save_CFLAGS=$CFLAGS
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5164 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5165 if test "${ac_cv_prog_cc_g+set}" = set; then :
5166 $as_echo_n "(cached) " >&6
5167 else
5168 ac_save_c_werror_flag=$ac_c_werror_flag
5169 ac_c_werror_flag=yes
5170 ac_cv_prog_cc_g=no
5171 CFLAGS="-g"
5172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5173 /* end confdefs.h. */
5176 main ()
5180 return 0;
5182 _ACEOF
5183 if ac_fn_c_try_compile "$LINENO"; then :
5184 ac_cv_prog_cc_g=yes
5185 else
5186 CFLAGS=""
5187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5188 /* end confdefs.h. */
5191 main ()
5195 return 0;
5197 _ACEOF
5198 if ac_fn_c_try_compile "$LINENO"; then :
5200 else
5201 ac_c_werror_flag=$ac_save_c_werror_flag
5202 CFLAGS="-g"
5203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5204 /* end confdefs.h. */
5207 main ()
5211 return 0;
5213 _ACEOF
5214 if ac_fn_c_try_compile "$LINENO"; then :
5215 ac_cv_prog_cc_g=yes
5217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5222 ac_c_werror_flag=$ac_save_c_werror_flag
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5225 $as_echo "$ac_cv_prog_cc_g" >&6; }
5226 if test "$ac_test_CFLAGS" = set; then
5227 CFLAGS=$ac_save_CFLAGS
5228 elif test $ac_cv_prog_cc_g = yes; then
5229 if test "$GCC" = yes; then
5230 CFLAGS="-g -O2"
5231 else
5232 CFLAGS="-g"
5234 else
5235 if test "$GCC" = yes; then
5236 CFLAGS="-O2"
5237 else
5238 CFLAGS=
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5242 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5243 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5244 $as_echo_n "(cached) " >&6
5245 else
5246 ac_cv_prog_cc_c89=no
5247 ac_save_CC=$CC
5248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5249 /* end confdefs.h. */
5250 #include <stdarg.h>
5251 #include <stdio.h>
5252 #include <sys/types.h>
5253 #include <sys/stat.h>
5254 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5255 struct buf { int x; };
5256 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5257 static char *e (p, i)
5258 char **p;
5259 int i;
5261 return p[i];
5263 static char *f (char * (*g) (char **, int), char **p, ...)
5265 char *s;
5266 va_list v;
5267 va_start (v,p);
5268 s = g (p, va_arg (v,int));
5269 va_end (v);
5270 return s;
5273 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5274 function prototypes and stuff, but not '\xHH' hex character constants.
5275 These don't provoke an error unfortunately, instead are silently treated
5276 as 'x'. The following induces an error, until -std is added to get
5277 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5278 array size at least. It's necessary to write '\x00'==0 to get something
5279 that's true only with -std. */
5280 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5282 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5283 inside strings and character constants. */
5284 #define FOO(x) 'x'
5285 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5287 int test (int i, double x);
5288 struct s1 {int (*f) (int a);};
5289 struct s2 {int (*f) (double a);};
5290 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5291 int argc;
5292 char **argv;
5294 main ()
5296 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5298 return 0;
5300 _ACEOF
5301 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5302 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5304 CC="$ac_save_CC $ac_arg"
5305 if ac_fn_c_try_compile "$LINENO"; then :
5306 ac_cv_prog_cc_c89=$ac_arg
5308 rm -f core conftest.err conftest.$ac_objext
5309 test "x$ac_cv_prog_cc_c89" != "xno" && break
5310 done
5311 rm -f conftest.$ac_ext
5312 CC=$ac_save_CC
5315 # AC_CACHE_VAL
5316 case "x$ac_cv_prog_cc_c89" in
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5319 $as_echo "none needed" >&6; } ;;
5320 xno)
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5322 $as_echo "unsupported" >&6; } ;;
5324 CC="$CC $ac_cv_prog_cc_c89"
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5326 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5327 esac
5328 if test "x$ac_cv_prog_cc_c89" != xno; then :
5332 ac_ext=c
5333 ac_cpp='$CPP $CPPFLAGS'
5334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5338 ac_ext=cpp
5339 ac_cpp='$CXXCPP $CPPFLAGS'
5340 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5341 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5342 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5343 if test -z "$CXX"; then
5344 if test -n "$CCC"; then
5345 CXX=$CCC
5346 else
5347 if test -n "$ac_tool_prefix"; then
5348 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5350 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5351 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5353 $as_echo_n "checking for $ac_word... " >&6; }
5354 if test "${ac_cv_prog_CXX+set}" = set; then :
5355 $as_echo_n "(cached) " >&6
5356 else
5357 if test -n "$CXX"; then
5358 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5359 else
5360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5361 for as_dir in $PATH
5363 IFS=$as_save_IFS
5364 test -z "$as_dir" && as_dir=.
5365 for ac_exec_ext in '' $ac_executable_extensions; do
5366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5367 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5369 break 2
5371 done
5372 done
5373 IFS=$as_save_IFS
5377 CXX=$ac_cv_prog_CXX
5378 if test -n "$CXX"; then
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5380 $as_echo "$CXX" >&6; }
5381 else
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5383 $as_echo "no" >&6; }
5387 test -n "$CXX" && break
5388 done
5390 if test -z "$CXX"; then
5391 ac_ct_CXX=$CXX
5392 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5394 # Extract the first word of "$ac_prog", so it can be a program name with args.
5395 set dummy $ac_prog; ac_word=$2
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5397 $as_echo_n "checking for $ac_word... " >&6; }
5398 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
5399 $as_echo_n "(cached) " >&6
5400 else
5401 if test -n "$ac_ct_CXX"; then
5402 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5403 else
5404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5405 for as_dir in $PATH
5407 IFS=$as_save_IFS
5408 test -z "$as_dir" && as_dir=.
5409 for ac_exec_ext in '' $ac_executable_extensions; do
5410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5411 ac_cv_prog_ac_ct_CXX="$ac_prog"
5412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5413 break 2
5415 done
5416 done
5417 IFS=$as_save_IFS
5421 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5422 if test -n "$ac_ct_CXX"; then
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5424 $as_echo "$ac_ct_CXX" >&6; }
5425 else
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5427 $as_echo "no" >&6; }
5431 test -n "$ac_ct_CXX" && break
5432 done
5434 if test "x$ac_ct_CXX" = x; then
5435 CXX="g++"
5436 else
5437 case $cross_compiling:$ac_tool_warned in
5438 yes:)
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5440 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5441 ac_tool_warned=yes ;;
5442 esac
5443 CXX=$ac_ct_CXX
5449 # Provide some information about the compiler.
5450 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5451 set X $ac_compile
5452 ac_compiler=$2
5453 for ac_option in --version -v -V -qversion; do
5454 { { ac_try="$ac_compiler $ac_option >&5"
5455 case "(($ac_try" in
5456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5457 *) ac_try_echo=$ac_try;;
5458 esac
5459 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5460 $as_echo "$ac_try_echo"; } >&5
5461 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5462 ac_status=$?
5463 if test -s conftest.err; then
5464 sed '10a\
5465 ... rest of stderr output deleted ...
5466 10q' conftest.err >conftest.er1
5467 cat conftest.er1 >&5
5468 rm -f conftest.er1 conftest.err
5470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5471 test $ac_status = 0; }
5472 done
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5475 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5476 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
5477 $as_echo_n "(cached) " >&6
5478 else
5479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5480 /* end confdefs.h. */
5483 main ()
5485 #ifndef __GNUC__
5486 choke me
5487 #endif
5490 return 0;
5492 _ACEOF
5493 if ac_fn_cxx_try_compile "$LINENO"; then :
5494 ac_compiler_gnu=yes
5495 else
5496 ac_compiler_gnu=no
5498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5499 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5503 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5504 if test $ac_compiler_gnu = yes; then
5505 GXX=yes
5506 else
5507 GXX=
5509 ac_test_CXXFLAGS=${CXXFLAGS+set}
5510 ac_save_CXXFLAGS=$CXXFLAGS
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5512 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5513 if test "${ac_cv_prog_cxx_g+set}" = set; then :
5514 $as_echo_n "(cached) " >&6
5515 else
5516 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5517 ac_cxx_werror_flag=yes
5518 ac_cv_prog_cxx_g=no
5519 CXXFLAGS="-g"
5520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5521 /* end confdefs.h. */
5524 main ()
5528 return 0;
5530 _ACEOF
5531 if ac_fn_cxx_try_compile "$LINENO"; then :
5532 ac_cv_prog_cxx_g=yes
5533 else
5534 CXXFLAGS=""
5535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5536 /* end confdefs.h. */
5539 main ()
5543 return 0;
5545 _ACEOF
5546 if ac_fn_cxx_try_compile "$LINENO"; then :
5548 else
5549 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5550 CXXFLAGS="-g"
5551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5552 /* end confdefs.h. */
5555 main ()
5559 return 0;
5561 _ACEOF
5562 if ac_fn_cxx_try_compile "$LINENO"; then :
5563 ac_cv_prog_cxx_g=yes
5565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5570 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5573 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5574 if test "$ac_test_CXXFLAGS" = set; then
5575 CXXFLAGS=$ac_save_CXXFLAGS
5576 elif test $ac_cv_prog_cxx_g = yes; then
5577 if test "$GXX" = yes; then
5578 CXXFLAGS="-g -O2"
5579 else
5580 CXXFLAGS="-g"
5582 else
5583 if test "$GXX" = yes; then
5584 CXXFLAGS="-O2"
5585 else
5586 CXXFLAGS=
5589 ac_ext=c
5590 ac_cpp='$CPP $CPPFLAGS'
5591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5595 depcc="$CXX" am_compiler_list=
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5598 $as_echo_n "checking dependency style of $depcc... " >&6; }
5599 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
5600 $as_echo_n "(cached) " >&6
5601 else
5602 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5603 # We make a subdir and do the tests there. Otherwise we can end up
5604 # making bogus files that we don't know about and never remove. For
5605 # instance it was reported that on HP-UX the gcc test will end up
5606 # making a dummy file named `D' -- because `-MD' means `put the output
5607 # in D'.
5608 mkdir conftest.dir
5609 # Copy depcomp to subdir because otherwise we won't find it if we're
5610 # using a relative directory.
5611 cp "$am_depcomp" conftest.dir
5612 cd conftest.dir
5613 # We will build objects and dependencies in a subdirectory because
5614 # it helps to detect inapplicable dependency modes. For instance
5615 # both Tru64's cc and ICC support -MD to output dependencies as a
5616 # side effect of compilation, but ICC will put the dependencies in
5617 # the current directory while Tru64 will put them in the object
5618 # directory.
5619 mkdir sub
5621 am_cv_CXX_dependencies_compiler_type=none
5622 if test "$am_compiler_list" = ""; then
5623 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5625 am__universal=false
5626 case " $depcc " in #(
5627 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5628 esac
5630 for depmode in $am_compiler_list; do
5631 # Setup a source with many dependencies, because some compilers
5632 # like to wrap large dependency lists on column 80 (with \), and
5633 # we should not choose a depcomp mode which is confused by this.
5635 # We need to recreate these files for each test, as the compiler may
5636 # overwrite some of them when testing with obscure command lines.
5637 # This happens at least with the AIX C compiler.
5638 : > sub/conftest.c
5639 for i in 1 2 3 4 5 6; do
5640 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5641 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5642 # Solaris 8's {/usr,}/bin/sh.
5643 touch sub/conftst$i.h
5644 done
5645 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5647 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5648 # mode. It turns out that the SunPro C++ compiler does not properly
5649 # handle `-M -o', and we need to detect this. Also, some Intel
5650 # versions had trouble with output in subdirs
5651 am__obj=sub/conftest.${OBJEXT-o}
5652 am__minus_obj="-o $am__obj"
5653 case $depmode in
5654 gcc)
5655 # This depmode causes a compiler race in universal mode.
5656 test "$am__universal" = false || continue
5658 nosideeffect)
5659 # after this tag, mechanisms are not by side-effect, so they'll
5660 # only be used when explicitly requested
5661 if test "x$enable_dependency_tracking" = xyes; then
5662 continue
5663 else
5664 break
5667 msvisualcpp | msvcmsys)
5668 # This compiler won't grok `-c -o', but also, the minuso test has
5669 # not run yet. These depmodes are late enough in the game, and
5670 # so weak that their functioning should not be impacted.
5671 am__obj=conftest.${OBJEXT-o}
5672 am__minus_obj=
5674 none) break ;;
5675 esac
5676 if depmode=$depmode \
5677 source=sub/conftest.c object=$am__obj \
5678 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5679 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5680 >/dev/null 2>conftest.err &&
5681 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5682 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5683 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5684 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5685 # icc doesn't choke on unknown options, it will just issue warnings
5686 # or remarks (even with -Werror). So we grep stderr for any message
5687 # that says an option was ignored or not supported.
5688 # When given -MP, icc 7.0 and 7.1 complain thusly:
5689 # icc: Command line warning: ignoring option '-M'; no argument required
5690 # The diagnosis changed in icc 8.0:
5691 # icc: Command line remark: option '-MP' not supported
5692 if (grep 'ignoring option' conftest.err ||
5693 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5694 am_cv_CXX_dependencies_compiler_type=$depmode
5695 break
5698 done
5700 cd ..
5701 rm -rf conftest.dir
5702 else
5703 am_cv_CXX_dependencies_compiler_type=none
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5708 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5709 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5712 test "x$enable_dependency_tracking" != xno \
5713 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5714 am__fastdepCXX_TRUE=
5715 am__fastdepCXX_FALSE='#'
5716 else
5717 am__fastdepCXX_TRUE='#'
5718 am__fastdepCXX_FALSE=
5722 # By default we simply use the C compiler to build assembly code.
5724 test "${CCAS+set}" = set || CCAS=$CC
5725 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
5729 depcc="$CCAS" am_compiler_list=
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5732 $as_echo_n "checking dependency style of $depcc... " >&6; }
5733 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
5734 $as_echo_n "(cached) " >&6
5735 else
5736 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5737 # We make a subdir and do the tests there. Otherwise we can end up
5738 # making bogus files that we don't know about and never remove. For
5739 # instance it was reported that on HP-UX the gcc test will end up
5740 # making a dummy file named `D' -- because `-MD' means `put the output
5741 # in D'.
5742 mkdir conftest.dir
5743 # Copy depcomp to subdir because otherwise we won't find it if we're
5744 # using a relative directory.
5745 cp "$am_depcomp" conftest.dir
5746 cd conftest.dir
5747 # We will build objects and dependencies in a subdirectory because
5748 # it helps to detect inapplicable dependency modes. For instance
5749 # both Tru64's cc and ICC support -MD to output dependencies as a
5750 # side effect of compilation, but ICC will put the dependencies in
5751 # the current directory while Tru64 will put them in the object
5752 # directory.
5753 mkdir sub
5755 am_cv_CCAS_dependencies_compiler_type=none
5756 if test "$am_compiler_list" = ""; then
5757 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5759 am__universal=false
5762 for depmode in $am_compiler_list; do
5763 # Setup a source with many dependencies, because some compilers
5764 # like to wrap large dependency lists on column 80 (with \), and
5765 # we should not choose a depcomp mode which is confused by this.
5767 # We need to recreate these files for each test, as the compiler may
5768 # overwrite some of them when testing with obscure command lines.
5769 # This happens at least with the AIX C compiler.
5770 : > sub/conftest.c
5771 for i in 1 2 3 4 5 6; do
5772 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5773 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5774 # Solaris 8's {/usr,}/bin/sh.
5775 touch sub/conftst$i.h
5776 done
5777 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5779 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5780 # mode. It turns out that the SunPro C++ compiler does not properly
5781 # handle `-M -o', and we need to detect this. Also, some Intel
5782 # versions had trouble with output in subdirs
5783 am__obj=sub/conftest.${OBJEXT-o}
5784 am__minus_obj="-o $am__obj"
5785 case $depmode in
5786 gcc)
5787 # This depmode causes a compiler race in universal mode.
5788 test "$am__universal" = false || continue
5790 nosideeffect)
5791 # after this tag, mechanisms are not by side-effect, so they'll
5792 # only be used when explicitly requested
5793 if test "x$enable_dependency_tracking" = xyes; then
5794 continue
5795 else
5796 break
5799 msvisualcpp | msvcmsys)
5800 # This compiler won't grok `-c -o', but also, the minuso test has
5801 # not run yet. These depmodes are late enough in the game, and
5802 # so weak that their functioning should not be impacted.
5803 am__obj=conftest.${OBJEXT-o}
5804 am__minus_obj=
5806 none) break ;;
5807 esac
5808 if depmode=$depmode \
5809 source=sub/conftest.c object=$am__obj \
5810 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5811 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5812 >/dev/null 2>conftest.err &&
5813 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5814 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5815 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5816 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5817 # icc doesn't choke on unknown options, it will just issue warnings
5818 # or remarks (even with -Werror). So we grep stderr for any message
5819 # that says an option was ignored or not supported.
5820 # When given -MP, icc 7.0 and 7.1 complain thusly:
5821 # icc: Command line warning: ignoring option '-M'; no argument required
5822 # The diagnosis changed in icc 8.0:
5823 # icc: Command line remark: option '-MP' not supported
5824 if (grep 'ignoring option' conftest.err ||
5825 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5826 am_cv_CCAS_dependencies_compiler_type=$depmode
5827 break
5830 done
5832 cd ..
5833 rm -rf conftest.dir
5834 else
5835 am_cv_CCAS_dependencies_compiler_type=none
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
5840 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
5841 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
5844 test "x$enable_dependency_tracking" != xno \
5845 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
5846 am__fastdepCCAS_TRUE=
5847 am__fastdepCCAS_FALSE='#'
5848 else
5849 am__fastdepCCAS_TRUE='#'
5850 am__fastdepCCAS_FALSE=
5854 if test -n "$ac_tool_prefix"; then
5855 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5856 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5858 $as_echo_n "checking for $ac_word... " >&6; }
5859 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5860 $as_echo_n "(cached) " >&6
5861 else
5862 if test -n "$RANLIB"; then
5863 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5864 else
5865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5866 for as_dir in $PATH
5868 IFS=$as_save_IFS
5869 test -z "$as_dir" && as_dir=.
5870 for ac_exec_ext in '' $ac_executable_extensions; do
5871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5872 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5874 break 2
5876 done
5877 done
5878 IFS=$as_save_IFS
5882 RANLIB=$ac_cv_prog_RANLIB
5883 if test -n "$RANLIB"; then
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5885 $as_echo "$RANLIB" >&6; }
5886 else
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5888 $as_echo "no" >&6; }
5893 if test -z "$ac_cv_prog_RANLIB"; then
5894 ac_ct_RANLIB=$RANLIB
5895 # Extract the first word of "ranlib", so it can be a program name with args.
5896 set dummy ranlib; ac_word=$2
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5898 $as_echo_n "checking for $ac_word... " >&6; }
5899 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5900 $as_echo_n "(cached) " >&6
5901 else
5902 if test -n "$ac_ct_RANLIB"; then
5903 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5904 else
5905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5906 for as_dir in $PATH
5908 IFS=$as_save_IFS
5909 test -z "$as_dir" && as_dir=.
5910 for ac_exec_ext in '' $ac_executable_extensions; do
5911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5912 ac_cv_prog_ac_ct_RANLIB="ranlib"
5913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5914 break 2
5916 done
5917 done
5918 IFS=$as_save_IFS
5922 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5923 if test -n "$ac_ct_RANLIB"; then
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5925 $as_echo "$ac_ct_RANLIB" >&6; }
5926 else
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5928 $as_echo "no" >&6; }
5931 if test "x$ac_ct_RANLIB" = x; then
5932 RANLIB=":"
5933 else
5934 case $cross_compiling:$ac_tool_warned in
5935 yes:)
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5937 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5938 ac_tool_warned=yes ;;
5939 esac
5940 RANLIB=$ac_ct_RANLIB
5942 else
5943 RANLIB="$ac_cv_prog_RANLIB"
5947 enable_dlopen=yes
5951 case `pwd` in
5952 *\ * | *\ *)
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5954 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5955 esac
5959 macro_version='2.2.7a'
5960 macro_revision='1.3134'
5974 ltmain="$ac_aux_dir/ltmain.sh"
5976 # Backslashify metacharacters that are still active within
5977 # double-quoted strings.
5978 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5980 # Same as above, but do not quote variable references.
5981 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5983 # Sed substitution to delay expansion of an escaped shell variable in a
5984 # double_quote_subst'ed string.
5985 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5987 # Sed substitution to delay expansion of an escaped single quote.
5988 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5990 # Sed substitution to avoid accidental globbing in evaled expressions
5991 no_glob_subst='s/\*/\\\*/g'
5993 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5994 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5995 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5998 $as_echo_n "checking how to print strings... " >&6; }
5999 # Test print first, because it will be a builtin if present.
6000 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6001 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6002 ECHO='print -r --'
6003 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6004 ECHO='printf %s\n'
6005 else
6006 # Use this function as a fallback that always works.
6007 func_fallback_echo ()
6009 eval 'cat <<_LTECHO_EOF
6011 _LTECHO_EOF'
6013 ECHO='func_fallback_echo'
6016 # func_echo_all arg...
6017 # Invoke $ECHO with all args, space-separated.
6018 func_echo_all ()
6020 $ECHO ""
6023 case "$ECHO" in
6024 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6025 $as_echo "printf" >&6; } ;;
6026 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6027 $as_echo "print -r" >&6; } ;;
6028 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6029 $as_echo "cat" >&6; } ;;
6030 esac
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6046 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6047 if test "${ac_cv_path_SED+set}" = set; then :
6048 $as_echo_n "(cached) " >&6
6049 else
6050 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6051 for ac_i in 1 2 3 4 5 6 7; do
6052 ac_script="$ac_script$as_nl$ac_script"
6053 done
6054 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6055 { ac_script=; unset ac_script;}
6056 if test -z "$SED"; then
6057 ac_path_SED_found=false
6058 # Loop through the user's path and test for each of PROGNAME-LIST
6059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6060 for as_dir in $PATH
6062 IFS=$as_save_IFS
6063 test -z "$as_dir" && as_dir=.
6064 for ac_prog in sed gsed; do
6065 for ac_exec_ext in '' $ac_executable_extensions; do
6066 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6067 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6068 # Check for GNU ac_path_SED and select it if it is found.
6069 # Check for GNU $ac_path_SED
6070 case `"$ac_path_SED" --version 2>&1` in
6071 *GNU*)
6072 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6074 ac_count=0
6075 $as_echo_n 0123456789 >"conftest.in"
6076 while :
6078 cat "conftest.in" "conftest.in" >"conftest.tmp"
6079 mv "conftest.tmp" "conftest.in"
6080 cp "conftest.in" "conftest.nl"
6081 $as_echo '' >> "conftest.nl"
6082 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6083 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6084 as_fn_arith $ac_count + 1 && ac_count=$as_val
6085 if test $ac_count -gt ${ac_path_SED_max-0}; then
6086 # Best one so far, save it but keep looking for a better one
6087 ac_cv_path_SED="$ac_path_SED"
6088 ac_path_SED_max=$ac_count
6090 # 10*(2^10) chars as input seems more than enough
6091 test $ac_count -gt 10 && break
6092 done
6093 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6094 esac
6096 $ac_path_SED_found && break 3
6097 done
6098 done
6099 done
6100 IFS=$as_save_IFS
6101 if test -z "$ac_cv_path_SED"; then
6102 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6104 else
6105 ac_cv_path_SED=$SED
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6110 $as_echo "$ac_cv_path_SED" >&6; }
6111 SED="$ac_cv_path_SED"
6112 rm -f conftest.sed
6114 test -z "$SED" && SED=sed
6115 Xsed="$SED -e 1s/^X//"
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6128 $as_echo_n "checking for fgrep... " >&6; }
6129 if test "${ac_cv_path_FGREP+set}" = set; then :
6130 $as_echo_n "(cached) " >&6
6131 else
6132 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6133 then ac_cv_path_FGREP="$GREP -F"
6134 else
6135 if test -z "$FGREP"; then
6136 ac_path_FGREP_found=false
6137 # Loop through the user's path and test for each of PROGNAME-LIST
6138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6139 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6141 IFS=$as_save_IFS
6142 test -z "$as_dir" && as_dir=.
6143 for ac_prog in fgrep; do
6144 for ac_exec_ext in '' $ac_executable_extensions; do
6145 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6146 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6147 # Check for GNU ac_path_FGREP and select it if it is found.
6148 # Check for GNU $ac_path_FGREP
6149 case `"$ac_path_FGREP" --version 2>&1` in
6150 *GNU*)
6151 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6153 ac_count=0
6154 $as_echo_n 0123456789 >"conftest.in"
6155 while :
6157 cat "conftest.in" "conftest.in" >"conftest.tmp"
6158 mv "conftest.tmp" "conftest.in"
6159 cp "conftest.in" "conftest.nl"
6160 $as_echo 'FGREP' >> "conftest.nl"
6161 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6162 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6163 as_fn_arith $ac_count + 1 && ac_count=$as_val
6164 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6165 # Best one so far, save it but keep looking for a better one
6166 ac_cv_path_FGREP="$ac_path_FGREP"
6167 ac_path_FGREP_max=$ac_count
6169 # 10*(2^10) chars as input seems more than enough
6170 test $ac_count -gt 10 && break
6171 done
6172 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6173 esac
6175 $ac_path_FGREP_found && break 3
6176 done
6177 done
6178 done
6179 IFS=$as_save_IFS
6180 if test -z "$ac_cv_path_FGREP"; then
6181 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6183 else
6184 ac_cv_path_FGREP=$FGREP
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6190 $as_echo "$ac_cv_path_FGREP" >&6; }
6191 FGREP="$ac_cv_path_FGREP"
6194 test -z "$GREP" && GREP=grep
6214 # Check whether --with-gnu-ld was given.
6215 if test "${with_gnu_ld+set}" = set; then :
6216 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6217 else
6218 with_gnu_ld=no
6221 ac_prog=ld
6222 if test "$GCC" = yes; then
6223 # Check if gcc -print-prog-name=ld gives a path.
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6225 $as_echo_n "checking for ld used by $CC... " >&6; }
6226 case $host in
6227 *-*-mingw*)
6228 # gcc leaves a trailing carriage return which upsets mingw
6229 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6231 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6232 esac
6233 case $ac_prog in
6234 # Accept absolute paths.
6235 [\\/]* | ?:[\\/]*)
6236 re_direlt='/[^/][^/]*/\.\./'
6237 # Canonicalize the pathname of ld
6238 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6239 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6240 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6241 done
6242 test -z "$LD" && LD="$ac_prog"
6245 # If it fails, then pretend we aren't using GCC.
6246 ac_prog=ld
6249 # If it is relative, then search for the first ld in PATH.
6250 with_gnu_ld=unknown
6252 esac
6253 elif test "$with_gnu_ld" = yes; then
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6255 $as_echo_n "checking for GNU ld... " >&6; }
6256 else
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6258 $as_echo_n "checking for non-GNU ld... " >&6; }
6260 if test "${lt_cv_path_LD+set}" = set; then :
6261 $as_echo_n "(cached) " >&6
6262 else
6263 if test -z "$LD"; then
6264 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6265 for ac_dir in $PATH; do
6266 IFS="$lt_save_ifs"
6267 test -z "$ac_dir" && ac_dir=.
6268 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6269 lt_cv_path_LD="$ac_dir/$ac_prog"
6270 # Check to see if the program is GNU ld. I'd rather use --version,
6271 # but apparently some variants of GNU ld only accept -v.
6272 # Break only if it was the GNU/non-GNU ld that we prefer.
6273 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6274 *GNU* | *'with BFD'*)
6275 test "$with_gnu_ld" != no && break
6278 test "$with_gnu_ld" != yes && break
6280 esac
6282 done
6283 IFS="$lt_save_ifs"
6284 else
6285 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6289 LD="$lt_cv_path_LD"
6290 if test -n "$LD"; then
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6292 $as_echo "$LD" >&6; }
6293 else
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6295 $as_echo "no" >&6; }
6297 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6299 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6300 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6301 $as_echo_n "(cached) " >&6
6302 else
6303 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6304 case `$LD -v 2>&1 </dev/null` in
6305 *GNU* | *'with BFD'*)
6306 lt_cv_prog_gnu_ld=yes
6309 lt_cv_prog_gnu_ld=no
6311 esac
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6314 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6315 with_gnu_ld=$lt_cv_prog_gnu_ld
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6326 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6327 if test "${lt_cv_path_NM+set}" = set; then :
6328 $as_echo_n "(cached) " >&6
6329 else
6330 if test -n "$NM"; then
6331 # Let the user override the test.
6332 lt_cv_path_NM="$NM"
6333 else
6334 lt_nm_to_check="${ac_tool_prefix}nm"
6335 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6336 lt_nm_to_check="$lt_nm_to_check nm"
6338 for lt_tmp_nm in $lt_nm_to_check; do
6339 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6340 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6341 IFS="$lt_save_ifs"
6342 test -z "$ac_dir" && ac_dir=.
6343 tmp_nm="$ac_dir/$lt_tmp_nm"
6344 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6345 # Check to see if the nm accepts a BSD-compat flag.
6346 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6347 # nm: unknown option "B" ignored
6348 # Tru64's nm complains that /dev/null is an invalid object file
6349 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6350 */dev/null* | *'Invalid file or object type'*)
6351 lt_cv_path_NM="$tmp_nm -B"
6352 break
6355 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6356 */dev/null*)
6357 lt_cv_path_NM="$tmp_nm -p"
6358 break
6361 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6362 continue # so that we can try to find one that supports BSD flags
6364 esac
6366 esac
6368 done
6369 IFS="$lt_save_ifs"
6370 done
6371 : ${lt_cv_path_NM=no}
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6375 $as_echo "$lt_cv_path_NM" >&6; }
6376 if test "$lt_cv_path_NM" != "no"; then
6377 NM="$lt_cv_path_NM"
6378 else
6379 # Didn't find any BSD compatible name lister, look for dumpbin.
6380 if test -n "$DUMPBIN"; then :
6381 # Let the user override the test.
6382 else
6383 if test -n "$ac_tool_prefix"; then
6384 for ac_prog in dumpbin "link -dump"
6386 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6387 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6389 $as_echo_n "checking for $ac_word... " >&6; }
6390 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6391 $as_echo_n "(cached) " >&6
6392 else
6393 if test -n "$DUMPBIN"; then
6394 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6395 else
6396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6397 for as_dir in $PATH
6399 IFS=$as_save_IFS
6400 test -z "$as_dir" && as_dir=.
6401 for ac_exec_ext in '' $ac_executable_extensions; do
6402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6403 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6405 break 2
6407 done
6408 done
6409 IFS=$as_save_IFS
6413 DUMPBIN=$ac_cv_prog_DUMPBIN
6414 if test -n "$DUMPBIN"; then
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6416 $as_echo "$DUMPBIN" >&6; }
6417 else
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6419 $as_echo "no" >&6; }
6423 test -n "$DUMPBIN" && break
6424 done
6426 if test -z "$DUMPBIN"; then
6427 ac_ct_DUMPBIN=$DUMPBIN
6428 for ac_prog in dumpbin "link -dump"
6430 # Extract the first word of "$ac_prog", so it can be a program name with args.
6431 set dummy $ac_prog; ac_word=$2
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6433 $as_echo_n "checking for $ac_word... " >&6; }
6434 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6435 $as_echo_n "(cached) " >&6
6436 else
6437 if test -n "$ac_ct_DUMPBIN"; then
6438 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6439 else
6440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6441 for as_dir in $PATH
6443 IFS=$as_save_IFS
6444 test -z "$as_dir" && as_dir=.
6445 for ac_exec_ext in '' $ac_executable_extensions; do
6446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6447 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6449 break 2
6451 done
6452 done
6453 IFS=$as_save_IFS
6457 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6458 if test -n "$ac_ct_DUMPBIN"; then
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6460 $as_echo "$ac_ct_DUMPBIN" >&6; }
6461 else
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6463 $as_echo "no" >&6; }
6467 test -n "$ac_ct_DUMPBIN" && break
6468 done
6470 if test "x$ac_ct_DUMPBIN" = x; then
6471 DUMPBIN=":"
6472 else
6473 case $cross_compiling:$ac_tool_warned in
6474 yes:)
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6476 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6477 ac_tool_warned=yes ;;
6478 esac
6479 DUMPBIN=$ac_ct_DUMPBIN
6483 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6484 *COFF*)
6485 DUMPBIN="$DUMPBIN -symbols"
6488 DUMPBIN=:
6490 esac
6493 if test "$DUMPBIN" != ":"; then
6494 NM="$DUMPBIN"
6497 test -z "$NM" && NM=nm
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6505 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6506 if test "${lt_cv_nm_interface+set}" = set; then :
6507 $as_echo_n "(cached) " >&6
6508 else
6509 lt_cv_nm_interface="BSD nm"
6510 echo "int some_variable = 0;" > conftest.$ac_ext
6511 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6512 (eval "$ac_compile" 2>conftest.err)
6513 cat conftest.err >&5
6514 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6515 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6516 cat conftest.err >&5
6517 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6518 cat conftest.out >&5
6519 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6520 lt_cv_nm_interface="MS dumpbin"
6522 rm -f conftest*
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6525 $as_echo "$lt_cv_nm_interface" >&6; }
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6528 $as_echo_n "checking whether ln -s works... " >&6; }
6529 LN_S=$as_ln_s
6530 if test "$LN_S" = "ln -s"; then
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6532 $as_echo "yes" >&6; }
6533 else
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6535 $as_echo "no, using $LN_S" >&6; }
6538 # find the maximum length of command line arguments
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6540 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6541 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6542 $as_echo_n "(cached) " >&6
6543 else
6545 teststring="ABCD"
6547 case $build_os in
6548 msdosdjgpp*)
6549 # On DJGPP, this test can blow up pretty badly due to problems in libc
6550 # (any single argument exceeding 2000 bytes causes a buffer overrun
6551 # during glob expansion). Even if it were fixed, the result of this
6552 # check would be larger than it should be.
6553 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6556 gnu*)
6557 # Under GNU Hurd, this test is not required because there is
6558 # no limit to the length of command line arguments.
6559 # Libtool will interpret -1 as no limit whatsoever
6560 lt_cv_sys_max_cmd_len=-1;
6563 cygwin* | mingw* | cegcc*)
6564 # On Win9x/ME, this test blows up -- it succeeds, but takes
6565 # about 5 minutes as the teststring grows exponentially.
6566 # Worse, since 9x/ME are not pre-emptively multitasking,
6567 # you end up with a "frozen" computer, even though with patience
6568 # the test eventually succeeds (with a max line length of 256k).
6569 # Instead, let's just punt: use the minimum linelength reported by
6570 # all of the supported platforms: 8192 (on NT/2K/XP).
6571 lt_cv_sys_max_cmd_len=8192;
6574 mint*)
6575 # On MiNT this can take a long time and run out of memory.
6576 lt_cv_sys_max_cmd_len=8192;
6579 amigaos*)
6580 # On AmigaOS with pdksh, this test takes hours, literally.
6581 # So we just punt and use a minimum line length of 8192.
6582 lt_cv_sys_max_cmd_len=8192;
6585 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6586 # This has been around since 386BSD, at least. Likely further.
6587 if test -x /sbin/sysctl; then
6588 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6589 elif test -x /usr/sbin/sysctl; then
6590 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6591 else
6592 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6594 # And add a safety zone
6595 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6596 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6599 interix*)
6600 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6601 lt_cv_sys_max_cmd_len=196608
6604 osf*)
6605 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6606 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6607 # nice to cause kernel panics so lets avoid the loop below.
6608 # First set a reasonable default.
6609 lt_cv_sys_max_cmd_len=16384
6611 if test -x /sbin/sysconfig; then
6612 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6613 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6614 esac
6617 sco3.2v5*)
6618 lt_cv_sys_max_cmd_len=102400
6620 sysv5* | sco5v6* | sysv4.2uw2*)
6621 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6622 if test -n "$kargmax"; then
6623 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6624 else
6625 lt_cv_sys_max_cmd_len=32768
6629 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6630 if test -n "$lt_cv_sys_max_cmd_len"; then
6631 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6632 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6633 else
6634 # Make teststring a little bigger before we do anything with it.
6635 # a 1K string should be a reasonable start.
6636 for i in 1 2 3 4 5 6 7 8 ; do
6637 teststring=$teststring$teststring
6638 done
6639 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6640 # If test is not a shell built-in, we'll probably end up computing a
6641 # maximum length that is only half of the actual maximum length, but
6642 # we can't tell.
6643 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6644 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6645 test $i != 17 # 1/2 MB should be enough
6647 i=`expr $i + 1`
6648 teststring=$teststring$teststring
6649 done
6650 # Only check the string length outside the loop.
6651 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6652 teststring=
6653 # Add a significant safety factor because C++ compilers can tack on
6654 # massive amounts of additional arguments before passing them to the
6655 # linker. It appears as though 1/2 is a usable value.
6656 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6659 esac
6663 if test -n $lt_cv_sys_max_cmd_len ; then
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6665 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6666 else
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6668 $as_echo "none" >&6; }
6670 max_cmd_len=$lt_cv_sys_max_cmd_len
6677 : ${CP="cp -f"}
6678 : ${MV="mv -f"}
6679 : ${RM="rm -f"}
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6682 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6683 # Try some XSI features
6684 xsi_shell=no
6685 ( _lt_dummy="a/b/c"
6686 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6687 = c,a/b,, \
6688 && eval 'test $(( 1 + 1 )) -eq 2 \
6689 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6690 && xsi_shell=yes
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6692 $as_echo "$xsi_shell" >&6; }
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6696 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6697 lt_shell_append=no
6698 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6699 >/dev/null 2>&1 \
6700 && lt_shell_append=yes
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6702 $as_echo "$lt_shell_append" >&6; }
6705 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6706 lt_unset=unset
6707 else
6708 lt_unset=false
6715 # test EBCDIC or ASCII
6716 case `echo X|tr X '\101'` in
6717 A) # ASCII based system
6718 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6719 lt_SP2NL='tr \040 \012'
6720 lt_NL2SP='tr \015\012 \040\040'
6722 *) # EBCDIC based system
6723 lt_SP2NL='tr \100 \n'
6724 lt_NL2SP='tr \r\n \100\100'
6726 esac
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6737 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6738 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6739 $as_echo_n "(cached) " >&6
6740 else
6741 lt_cv_ld_reload_flag='-r'
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6744 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6745 reload_flag=$lt_cv_ld_reload_flag
6746 case $reload_flag in
6747 "" | " "*) ;;
6748 *) reload_flag=" $reload_flag" ;;
6749 esac
6750 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6751 case $host_os in
6752 darwin*)
6753 if test "$GCC" = yes; then
6754 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6755 else
6756 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6759 esac
6769 if test -n "$ac_tool_prefix"; then
6770 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6771 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6773 $as_echo_n "checking for $ac_word... " >&6; }
6774 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6775 $as_echo_n "(cached) " >&6
6776 else
6777 if test -n "$OBJDUMP"; then
6778 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6779 else
6780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6781 for as_dir in $PATH
6783 IFS=$as_save_IFS
6784 test -z "$as_dir" && as_dir=.
6785 for ac_exec_ext in '' $ac_executable_extensions; do
6786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6787 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6789 break 2
6791 done
6792 done
6793 IFS=$as_save_IFS
6797 OBJDUMP=$ac_cv_prog_OBJDUMP
6798 if test -n "$OBJDUMP"; then
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6800 $as_echo "$OBJDUMP" >&6; }
6801 else
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6803 $as_echo "no" >&6; }
6808 if test -z "$ac_cv_prog_OBJDUMP"; then
6809 ac_ct_OBJDUMP=$OBJDUMP
6810 # Extract the first word of "objdump", so it can be a program name with args.
6811 set dummy objdump; ac_word=$2
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6813 $as_echo_n "checking for $ac_word... " >&6; }
6814 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6815 $as_echo_n "(cached) " >&6
6816 else
6817 if test -n "$ac_ct_OBJDUMP"; then
6818 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6819 else
6820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6821 for as_dir in $PATH
6823 IFS=$as_save_IFS
6824 test -z "$as_dir" && as_dir=.
6825 for ac_exec_ext in '' $ac_executable_extensions; do
6826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6827 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6829 break 2
6831 done
6832 done
6833 IFS=$as_save_IFS
6837 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6838 if test -n "$ac_ct_OBJDUMP"; then
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6840 $as_echo "$ac_ct_OBJDUMP" >&6; }
6841 else
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6843 $as_echo "no" >&6; }
6846 if test "x$ac_ct_OBJDUMP" = x; then
6847 OBJDUMP="false"
6848 else
6849 case $cross_compiling:$ac_tool_warned in
6850 yes:)
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6852 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6853 ac_tool_warned=yes ;;
6854 esac
6855 OBJDUMP=$ac_ct_OBJDUMP
6857 else
6858 OBJDUMP="$ac_cv_prog_OBJDUMP"
6861 test -z "$OBJDUMP" && OBJDUMP=objdump
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6872 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6873 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6874 $as_echo_n "(cached) " >&6
6875 else
6876 lt_cv_file_magic_cmd='$MAGIC_CMD'
6877 lt_cv_file_magic_test_file=
6878 lt_cv_deplibs_check_method='unknown'
6879 # Need to set the preceding variable on all platforms that support
6880 # interlibrary dependencies.
6881 # 'none' -- dependencies not supported.
6882 # `unknown' -- same as none, but documents that we really don't know.
6883 # 'pass_all' -- all dependencies passed with no checks.
6884 # 'test_compile' -- check by making test program.
6885 # 'file_magic [[regex]]' -- check by looking for files in library path
6886 # which responds to the $file_magic_cmd with a given extended regex.
6887 # If you have `file' or equivalent on your system and you're not sure
6888 # whether `pass_all' will *always* work, you probably want this one.
6890 case $host_os in
6891 aix[4-9]*)
6892 lt_cv_deplibs_check_method=pass_all
6895 beos*)
6896 lt_cv_deplibs_check_method=pass_all
6899 bsdi[45]*)
6900 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6901 lt_cv_file_magic_cmd='/usr/bin/file -L'
6902 lt_cv_file_magic_test_file=/shlib/libc.so
6905 cygwin*)
6906 # func_win32_libid is a shell function defined in ltmain.sh
6907 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6908 lt_cv_file_magic_cmd='func_win32_libid'
6911 mingw* | pw32*)
6912 # Base MSYS/MinGW do not provide the 'file' command needed by
6913 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6914 # unless we find 'file', for example because we are cross-compiling.
6915 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6916 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6917 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6918 lt_cv_file_magic_cmd='func_win32_libid'
6919 else
6920 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6921 lt_cv_file_magic_cmd='$OBJDUMP -f'
6925 cegcc*)
6926 # use the weaker test based on 'objdump'. See mingw*.
6927 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6928 lt_cv_file_magic_cmd='$OBJDUMP -f'
6931 darwin* | rhapsody*)
6932 lt_cv_deplibs_check_method=pass_all
6935 freebsd* | dragonfly*)
6936 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6937 case $host_cpu in
6938 i*86 )
6939 # Not sure whether the presence of OpenBSD here was a mistake.
6940 # Let's accept both of them until this is cleared up.
6941 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6942 lt_cv_file_magic_cmd=/usr/bin/file
6943 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6945 esac
6946 else
6947 lt_cv_deplibs_check_method=pass_all
6951 gnu*)
6952 lt_cv_deplibs_check_method=pass_all
6955 haiku*)
6956 lt_cv_deplibs_check_method=pass_all
6959 hpux10.20* | hpux11*)
6960 lt_cv_file_magic_cmd=/usr/bin/file
6961 case $host_cpu in
6962 ia64*)
6963 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6964 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6966 hppa*64*)
6967 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]'
6968 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6971 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6972 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6974 esac
6977 interix[3-9]*)
6978 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6979 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6982 irix5* | irix6* | nonstopux*)
6983 case $LD in
6984 *-32|*"-32 ") libmagic=32-bit;;
6985 *-n32|*"-n32 ") libmagic=N32;;
6986 *-64|*"-64 ") libmagic=64-bit;;
6987 *) libmagic=never-match;;
6988 esac
6989 lt_cv_deplibs_check_method=pass_all
6992 # This must be Linux ELF.
6993 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6994 lt_cv_deplibs_check_method=pass_all
6997 netbsd*)
6998 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6999 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7000 else
7001 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7005 newos6*)
7006 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7007 lt_cv_file_magic_cmd=/usr/bin/file
7008 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7011 *nto* | *qnx*)
7012 lt_cv_deplibs_check_method=pass_all
7015 openbsd*)
7016 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7017 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7018 else
7019 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7023 osf3* | osf4* | osf5*)
7024 lt_cv_deplibs_check_method=pass_all
7027 rdos*)
7028 lt_cv_deplibs_check_method=pass_all
7031 solaris*)
7032 lt_cv_deplibs_check_method=pass_all
7035 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7036 lt_cv_deplibs_check_method=pass_all
7039 sysv4 | sysv4.3*)
7040 case $host_vendor in
7041 motorola)
7042 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]'
7043 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7045 ncr)
7046 lt_cv_deplibs_check_method=pass_all
7048 sequent)
7049 lt_cv_file_magic_cmd='/bin/file'
7050 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7052 sni)
7053 lt_cv_file_magic_cmd='/bin/file'
7054 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7055 lt_cv_file_magic_test_file=/lib/libc.so
7057 siemens)
7058 lt_cv_deplibs_check_method=pass_all
7061 lt_cv_deplibs_check_method=pass_all
7063 esac
7066 tpf*)
7067 lt_cv_deplibs_check_method=pass_all
7069 esac
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7073 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7074 file_magic_cmd=$lt_cv_file_magic_cmd
7075 deplibs_check_method=$lt_cv_deplibs_check_method
7076 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7089 if test -n "$ac_tool_prefix"; then
7090 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7091 set dummy ${ac_tool_prefix}ar; ac_word=$2
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7093 $as_echo_n "checking for $ac_word... " >&6; }
7094 if test "${ac_cv_prog_AR+set}" = set; then :
7095 $as_echo_n "(cached) " >&6
7096 else
7097 if test -n "$AR"; then
7098 ac_cv_prog_AR="$AR" # Let the user override the test.
7099 else
7100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7101 for as_dir in $PATH
7103 IFS=$as_save_IFS
7104 test -z "$as_dir" && as_dir=.
7105 for ac_exec_ext in '' $ac_executable_extensions; do
7106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7107 ac_cv_prog_AR="${ac_tool_prefix}ar"
7108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7109 break 2
7111 done
7112 done
7113 IFS=$as_save_IFS
7117 AR=$ac_cv_prog_AR
7118 if test -n "$AR"; then
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7120 $as_echo "$AR" >&6; }
7121 else
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7123 $as_echo "no" >&6; }
7128 if test -z "$ac_cv_prog_AR"; then
7129 ac_ct_AR=$AR
7130 # Extract the first word of "ar", so it can be a program name with args.
7131 set dummy ar; ac_word=$2
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7133 $as_echo_n "checking for $ac_word... " >&6; }
7134 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7135 $as_echo_n "(cached) " >&6
7136 else
7137 if test -n "$ac_ct_AR"; then
7138 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7139 else
7140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7141 for as_dir in $PATH
7143 IFS=$as_save_IFS
7144 test -z "$as_dir" && as_dir=.
7145 for ac_exec_ext in '' $ac_executable_extensions; do
7146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7147 ac_cv_prog_ac_ct_AR="ar"
7148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7149 break 2
7151 done
7152 done
7153 IFS=$as_save_IFS
7157 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7158 if test -n "$ac_ct_AR"; then
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7160 $as_echo "$ac_ct_AR" >&6; }
7161 else
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7163 $as_echo "no" >&6; }
7166 if test "x$ac_ct_AR" = x; then
7167 AR="false"
7168 else
7169 case $cross_compiling:$ac_tool_warned in
7170 yes:)
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7172 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7173 ac_tool_warned=yes ;;
7174 esac
7175 AR=$ac_ct_AR
7177 else
7178 AR="$ac_cv_prog_AR"
7181 test -z "$AR" && AR=ar
7182 test -z "$AR_FLAGS" && AR_FLAGS=cru
7194 if test -n "$ac_tool_prefix"; then
7195 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7196 set dummy ${ac_tool_prefix}strip; ac_word=$2
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7198 $as_echo_n "checking for $ac_word... " >&6; }
7199 if test "${ac_cv_prog_STRIP+set}" = set; then :
7200 $as_echo_n "(cached) " >&6
7201 else
7202 if test -n "$STRIP"; then
7203 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7204 else
7205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7206 for as_dir in $PATH
7208 IFS=$as_save_IFS
7209 test -z "$as_dir" && as_dir=.
7210 for ac_exec_ext in '' $ac_executable_extensions; do
7211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7212 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7214 break 2
7216 done
7217 done
7218 IFS=$as_save_IFS
7222 STRIP=$ac_cv_prog_STRIP
7223 if test -n "$STRIP"; then
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7225 $as_echo "$STRIP" >&6; }
7226 else
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7228 $as_echo "no" >&6; }
7233 if test -z "$ac_cv_prog_STRIP"; then
7234 ac_ct_STRIP=$STRIP
7235 # Extract the first word of "strip", so it can be a program name with args.
7236 set dummy strip; ac_word=$2
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7238 $as_echo_n "checking for $ac_word... " >&6; }
7239 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7240 $as_echo_n "(cached) " >&6
7241 else
7242 if test -n "$ac_ct_STRIP"; then
7243 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7244 else
7245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7246 for as_dir in $PATH
7248 IFS=$as_save_IFS
7249 test -z "$as_dir" && as_dir=.
7250 for ac_exec_ext in '' $ac_executable_extensions; do
7251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7252 ac_cv_prog_ac_ct_STRIP="strip"
7253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7254 break 2
7256 done
7257 done
7258 IFS=$as_save_IFS
7262 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7263 if test -n "$ac_ct_STRIP"; then
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7265 $as_echo "$ac_ct_STRIP" >&6; }
7266 else
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7268 $as_echo "no" >&6; }
7271 if test "x$ac_ct_STRIP" = x; then
7272 STRIP=":"
7273 else
7274 case $cross_compiling:$ac_tool_warned in
7275 yes:)
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7277 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7278 ac_tool_warned=yes ;;
7279 esac
7280 STRIP=$ac_ct_STRIP
7282 else
7283 STRIP="$ac_cv_prog_STRIP"
7286 test -z "$STRIP" && STRIP=:
7293 if test -n "$ac_tool_prefix"; then
7294 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7295 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7297 $as_echo_n "checking for $ac_word... " >&6; }
7298 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7299 $as_echo_n "(cached) " >&6
7300 else
7301 if test -n "$RANLIB"; then
7302 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7303 else
7304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7305 for as_dir in $PATH
7307 IFS=$as_save_IFS
7308 test -z "$as_dir" && as_dir=.
7309 for ac_exec_ext in '' $ac_executable_extensions; do
7310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7311 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7313 break 2
7315 done
7316 done
7317 IFS=$as_save_IFS
7321 RANLIB=$ac_cv_prog_RANLIB
7322 if test -n "$RANLIB"; then
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7324 $as_echo "$RANLIB" >&6; }
7325 else
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7327 $as_echo "no" >&6; }
7332 if test -z "$ac_cv_prog_RANLIB"; then
7333 ac_ct_RANLIB=$RANLIB
7334 # Extract the first word of "ranlib", so it can be a program name with args.
7335 set dummy ranlib; ac_word=$2
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7337 $as_echo_n "checking for $ac_word... " >&6; }
7338 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7339 $as_echo_n "(cached) " >&6
7340 else
7341 if test -n "$ac_ct_RANLIB"; then
7342 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7343 else
7344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7345 for as_dir in $PATH
7347 IFS=$as_save_IFS
7348 test -z "$as_dir" && as_dir=.
7349 for ac_exec_ext in '' $ac_executable_extensions; do
7350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7351 ac_cv_prog_ac_ct_RANLIB="ranlib"
7352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7353 break 2
7355 done
7356 done
7357 IFS=$as_save_IFS
7361 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7362 if test -n "$ac_ct_RANLIB"; then
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7364 $as_echo "$ac_ct_RANLIB" >&6; }
7365 else
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7367 $as_echo "no" >&6; }
7370 if test "x$ac_ct_RANLIB" = x; then
7371 RANLIB=":"
7372 else
7373 case $cross_compiling:$ac_tool_warned in
7374 yes:)
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7376 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7377 ac_tool_warned=yes ;;
7378 esac
7379 RANLIB=$ac_ct_RANLIB
7381 else
7382 RANLIB="$ac_cv_prog_RANLIB"
7385 test -z "$RANLIB" && RANLIB=:
7392 # Determine commands to create old-style static archives.
7393 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7394 old_postinstall_cmds='chmod 644 $oldlib'
7395 old_postuninstall_cmds=
7397 if test -n "$RANLIB"; then
7398 case $host_os in
7399 openbsd*)
7400 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7403 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7405 esac
7406 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7409 case $host_os in
7410 darwin*)
7411 lock_old_archive_extraction=yes ;;
7413 lock_old_archive_extraction=no ;;
7414 esac
7454 # If no C compiler was specified, use CC.
7455 LTCC=${LTCC-"$CC"}
7457 # If no C compiler flags were specified, use CFLAGS.
7458 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7460 # Allow CC to be a program name with arguments.
7461 compiler=$CC
7464 # Check for command to grab the raw symbol name followed by C symbol from nm.
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7466 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7467 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7468 $as_echo_n "(cached) " >&6
7469 else
7471 # These are sane defaults that work on at least a few old systems.
7472 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7474 # Character class describing NM global symbol codes.
7475 symcode='[BCDEGRST]'
7477 # Regexp to match symbols that can be accessed directly from C.
7478 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7480 # Define system-specific variables.
7481 case $host_os in
7482 aix*)
7483 symcode='[BCDT]'
7485 cygwin* | mingw* | pw32* | cegcc*)
7486 symcode='[ABCDGISTW]'
7488 hpux*)
7489 if test "$host_cpu" = ia64; then
7490 symcode='[ABCDEGRST]'
7493 irix* | nonstopux*)
7494 symcode='[BCDEGRST]'
7496 osf*)
7497 symcode='[BCDEGQRST]'
7499 solaris*)
7500 symcode='[BDRT]'
7502 sco3.2v5*)
7503 symcode='[DT]'
7505 sysv4.2uw2*)
7506 symcode='[DT]'
7508 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7509 symcode='[ABDT]'
7511 sysv4)
7512 symcode='[DFNSTU]'
7514 esac
7516 # If we're using GNU nm, then use its standard symbol codes.
7517 case `$NM -V 2>&1` in
7518 *GNU* | *'with BFD'*)
7519 symcode='[ABCDGIRSTW]' ;;
7520 esac
7522 # Transform an extracted symbol line into a proper C declaration.
7523 # Some systems (esp. on ia64) link data and code symbols differently,
7524 # so use this general approach.
7525 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7527 # Transform an extracted symbol line into symbol name and symbol address
7528 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7529 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'"
7531 # Handle CRLF in mingw tool chain
7532 opt_cr=
7533 case $build_os in
7534 mingw*)
7535 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7537 esac
7539 # Try without a prefix underscore, then with it.
7540 for ac_symprfx in "" "_"; do
7542 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7543 symxfrm="\\1 $ac_symprfx\\2 \\2"
7545 # Write the raw and C identifiers.
7546 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7547 # Fake it for dumpbin and say T for any non-static function
7548 # and D for any global variable.
7549 # Also find C++ and __fastcall symbols from MSVC++,
7550 # which start with @ or ?.
7551 lt_cv_sys_global_symbol_pipe="$AWK '"\
7552 " {last_section=section; section=\$ 3};"\
7553 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7554 " \$ 0!~/External *\|/{next};"\
7555 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7556 " {if(hide[section]) next};"\
7557 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7558 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7559 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7560 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7561 " ' prfx=^$ac_symprfx"
7562 else
7563 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7566 # Check to see that the pipe works correctly.
7567 pipe_works=no
7569 rm -f conftest*
7570 cat > conftest.$ac_ext <<_LT_EOF
7571 #ifdef __cplusplus
7572 extern "C" {
7573 #endif
7574 char nm_test_var;
7575 void nm_test_func(void);
7576 void nm_test_func(void){}
7577 #ifdef __cplusplus
7579 #endif
7580 int main(){nm_test_var='a';nm_test_func();return(0);}
7581 _LT_EOF
7583 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7584 (eval $ac_compile) 2>&5
7585 ac_status=$?
7586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7587 test $ac_status = 0; }; then
7588 # Now try to grab the symbols.
7589 nlist=conftest.nm
7590 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7591 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7592 ac_status=$?
7593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7594 test $ac_status = 0; } && test -s "$nlist"; then
7595 # Try sorting and uniquifying the output.
7596 if sort "$nlist" | uniq > "$nlist"T; then
7597 mv -f "$nlist"T "$nlist"
7598 else
7599 rm -f "$nlist"T
7602 # Make sure that we snagged all the symbols we need.
7603 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7604 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7605 cat <<_LT_EOF > conftest.$ac_ext
7606 #ifdef __cplusplus
7607 extern "C" {
7608 #endif
7610 _LT_EOF
7611 # Now generate the symbol file.
7612 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7614 cat <<_LT_EOF >> conftest.$ac_ext
7616 /* The mapping between symbol names and symbols. */
7617 const struct {
7618 const char *name;
7619 void *address;
7621 lt__PROGRAM__LTX_preloaded_symbols[] =
7623 { "@PROGRAM@", (void *) 0 },
7624 _LT_EOF
7625 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7626 cat <<\_LT_EOF >> conftest.$ac_ext
7627 {0, (void *) 0}
7630 /* This works around a problem in FreeBSD linker */
7631 #ifdef FREEBSD_WORKAROUND
7632 static const void *lt_preloaded_setup() {
7633 return lt__PROGRAM__LTX_preloaded_symbols;
7635 #endif
7637 #ifdef __cplusplus
7639 #endif
7640 _LT_EOF
7641 # Now try linking the two files.
7642 mv conftest.$ac_objext conftstm.$ac_objext
7643 lt_save_LIBS="$LIBS"
7644 lt_save_CFLAGS="$CFLAGS"
7645 LIBS="conftstm.$ac_objext"
7646 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7647 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7648 (eval $ac_link) 2>&5
7649 ac_status=$?
7650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7651 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7652 pipe_works=yes
7654 LIBS="$lt_save_LIBS"
7655 CFLAGS="$lt_save_CFLAGS"
7656 else
7657 echo "cannot find nm_test_func in $nlist" >&5
7659 else
7660 echo "cannot find nm_test_var in $nlist" >&5
7662 else
7663 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7665 else
7666 echo "$progname: failed program was:" >&5
7667 cat conftest.$ac_ext >&5
7669 rm -rf conftest* conftst*
7671 # Do not use the global_symbol_pipe unless it works.
7672 if test "$pipe_works" = yes; then
7673 break
7674 else
7675 lt_cv_sys_global_symbol_pipe=
7677 done
7681 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7682 lt_cv_sys_global_symbol_to_cdecl=
7684 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7686 $as_echo "failed" >&6; }
7687 else
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7689 $as_echo "ok" >&6; }
7713 # Check whether --enable-libtool-lock was given.
7714 if test "${enable_libtool_lock+set}" = set; then :
7715 enableval=$enable_libtool_lock;
7718 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7720 # Some flags need to be propagated to the compiler or linker for good
7721 # libtool support.
7722 case $host in
7723 ia64-*-hpux*)
7724 # Find out which ABI we are using.
7725 echo 'int i;' > conftest.$ac_ext
7726 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7727 (eval $ac_compile) 2>&5
7728 ac_status=$?
7729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7730 test $ac_status = 0; }; then
7731 case `/usr/bin/file conftest.$ac_objext` in
7732 *ELF-32*)
7733 HPUX_IA64_MODE="32"
7735 *ELF-64*)
7736 HPUX_IA64_MODE="64"
7738 esac
7740 rm -rf conftest*
7742 *-*-irix6*)
7743 # Find out which ABI we are using.
7744 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7745 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7746 (eval $ac_compile) 2>&5
7747 ac_status=$?
7748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7749 test $ac_status = 0; }; then
7750 if test "$lt_cv_prog_gnu_ld" = yes; then
7751 case `/usr/bin/file conftest.$ac_objext` in
7752 *32-bit*)
7753 LD="${LD-ld} -melf32bsmip"
7755 *N32*)
7756 LD="${LD-ld} -melf32bmipn32"
7758 *64-bit*)
7759 LD="${LD-ld} -melf64bmip"
7761 esac
7762 else
7763 case `/usr/bin/file conftest.$ac_objext` in
7764 *32-bit*)
7765 LD="${LD-ld} -32"
7767 *N32*)
7768 LD="${LD-ld} -n32"
7770 *64-bit*)
7771 LD="${LD-ld} -64"
7773 esac
7776 rm -rf conftest*
7779 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7780 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7781 # Find out which ABI we are using.
7782 echo 'int i;' > conftest.$ac_ext
7783 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7784 (eval $ac_compile) 2>&5
7785 ac_status=$?
7786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7787 test $ac_status = 0; }; then
7788 case `/usr/bin/file conftest.o` in
7789 *32-bit*)
7790 case $host in
7791 x86_64-*kfreebsd*-gnu)
7792 LD="${LD-ld} -m elf_i386_fbsd"
7794 x86_64-*linux*)
7795 case `/usr/bin/file conftest.o` in
7796 *x86-64*)
7797 LD="${LD-ld} -m elf32_x86_64"
7800 LD="${LD-ld} -m elf_i386"
7802 esac
7804 powerpc64le-*linux*)
7805 LD="${LD-ld} -m elf32lppclinux"
7807 powerpc64-*linux*)
7808 LD="${LD-ld} -m elf32ppclinux"
7810 s390x-*linux*)
7811 LD="${LD-ld} -m elf_s390"
7813 sparc64-*linux*)
7814 LD="${LD-ld} -m elf32_sparc"
7816 esac
7818 *64-bit*)
7819 case $host in
7820 x86_64-*kfreebsd*-gnu)
7821 LD="${LD-ld} -m elf_x86_64_fbsd"
7823 x86_64-*linux*)
7824 LD="${LD-ld} -m elf_x86_64"
7826 powerpcle-*linux*)
7827 LD="${LD-ld} -m elf64lppc"
7829 powerpc-*linux*)
7830 LD="${LD-ld} -m elf64ppc"
7832 s390*-*linux*|s390*-*tpf*)
7833 LD="${LD-ld} -m elf64_s390"
7835 sparc*-*linux*)
7836 LD="${LD-ld} -m elf64_sparc"
7838 esac
7840 esac
7842 rm -rf conftest*
7845 *-*-sco3.2v5*)
7846 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7847 SAVE_CFLAGS="$CFLAGS"
7848 CFLAGS="$CFLAGS -belf"
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7850 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7851 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7852 $as_echo_n "(cached) " >&6
7853 else
7854 ac_ext=c
7855 ac_cpp='$CPP $CPPFLAGS'
7856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7861 /* end confdefs.h. */
7864 main ()
7868 return 0;
7870 _ACEOF
7871 if ac_fn_c_try_link "$LINENO"; then :
7872 lt_cv_cc_needs_belf=yes
7873 else
7874 lt_cv_cc_needs_belf=no
7876 rm -f core conftest.err conftest.$ac_objext \
7877 conftest$ac_exeext conftest.$ac_ext
7878 ac_ext=c
7879 ac_cpp='$CPP $CPPFLAGS'
7880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7886 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7887 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7888 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7889 CFLAGS="$SAVE_CFLAGS"
7892 sparc*-*solaris*)
7893 # Find out which ABI we are using.
7894 echo 'int i;' > conftest.$ac_ext
7895 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7896 (eval $ac_compile) 2>&5
7897 ac_status=$?
7898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7899 test $ac_status = 0; }; then
7900 case `/usr/bin/file conftest.o` in
7901 *64-bit*)
7902 case $lt_cv_prog_gnu_ld in
7903 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7905 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7906 LD="${LD-ld} -64"
7909 esac
7911 esac
7913 rm -rf conftest*
7915 esac
7917 need_locks="$enable_libtool_lock"
7920 case $host_os in
7921 rhapsody* | darwin*)
7922 if test -n "$ac_tool_prefix"; then
7923 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7924 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7926 $as_echo_n "checking for $ac_word... " >&6; }
7927 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7928 $as_echo_n "(cached) " >&6
7929 else
7930 if test -n "$DSYMUTIL"; then
7931 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7932 else
7933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7934 for as_dir in $PATH
7936 IFS=$as_save_IFS
7937 test -z "$as_dir" && as_dir=.
7938 for ac_exec_ext in '' $ac_executable_extensions; do
7939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7940 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7942 break 2
7944 done
7945 done
7946 IFS=$as_save_IFS
7950 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7951 if test -n "$DSYMUTIL"; then
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7953 $as_echo "$DSYMUTIL" >&6; }
7954 else
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7956 $as_echo "no" >&6; }
7961 if test -z "$ac_cv_prog_DSYMUTIL"; then
7962 ac_ct_DSYMUTIL=$DSYMUTIL
7963 # Extract the first word of "dsymutil", so it can be a program name with args.
7964 set dummy dsymutil; ac_word=$2
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7966 $as_echo_n "checking for $ac_word... " >&6; }
7967 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7968 $as_echo_n "(cached) " >&6
7969 else
7970 if test -n "$ac_ct_DSYMUTIL"; then
7971 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7972 else
7973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7974 for as_dir in $PATH
7976 IFS=$as_save_IFS
7977 test -z "$as_dir" && as_dir=.
7978 for ac_exec_ext in '' $ac_executable_extensions; do
7979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7980 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7982 break 2
7984 done
7985 done
7986 IFS=$as_save_IFS
7990 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7991 if test -n "$ac_ct_DSYMUTIL"; then
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7993 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7994 else
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7996 $as_echo "no" >&6; }
7999 if test "x$ac_ct_DSYMUTIL" = x; then
8000 DSYMUTIL=":"
8001 else
8002 case $cross_compiling:$ac_tool_warned in
8003 yes:)
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8005 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8006 ac_tool_warned=yes ;;
8007 esac
8008 DSYMUTIL=$ac_ct_DSYMUTIL
8010 else
8011 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8014 if test -n "$ac_tool_prefix"; then
8015 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8016 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8018 $as_echo_n "checking for $ac_word... " >&6; }
8019 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
8020 $as_echo_n "(cached) " >&6
8021 else
8022 if test -n "$NMEDIT"; then
8023 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8024 else
8025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8026 for as_dir in $PATH
8028 IFS=$as_save_IFS
8029 test -z "$as_dir" && as_dir=.
8030 for ac_exec_ext in '' $ac_executable_extensions; do
8031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8032 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8034 break 2
8036 done
8037 done
8038 IFS=$as_save_IFS
8042 NMEDIT=$ac_cv_prog_NMEDIT
8043 if test -n "$NMEDIT"; then
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8045 $as_echo "$NMEDIT" >&6; }
8046 else
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8048 $as_echo "no" >&6; }
8053 if test -z "$ac_cv_prog_NMEDIT"; then
8054 ac_ct_NMEDIT=$NMEDIT
8055 # Extract the first word of "nmedit", so it can be a program name with args.
8056 set dummy nmedit; ac_word=$2
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8058 $as_echo_n "checking for $ac_word... " >&6; }
8059 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
8060 $as_echo_n "(cached) " >&6
8061 else
8062 if test -n "$ac_ct_NMEDIT"; then
8063 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8064 else
8065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8066 for as_dir in $PATH
8068 IFS=$as_save_IFS
8069 test -z "$as_dir" && as_dir=.
8070 for ac_exec_ext in '' $ac_executable_extensions; do
8071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8072 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8074 break 2
8076 done
8077 done
8078 IFS=$as_save_IFS
8082 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8083 if test -n "$ac_ct_NMEDIT"; then
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8085 $as_echo "$ac_ct_NMEDIT" >&6; }
8086 else
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8088 $as_echo "no" >&6; }
8091 if test "x$ac_ct_NMEDIT" = x; then
8092 NMEDIT=":"
8093 else
8094 case $cross_compiling:$ac_tool_warned in
8095 yes:)
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8097 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8098 ac_tool_warned=yes ;;
8099 esac
8100 NMEDIT=$ac_ct_NMEDIT
8102 else
8103 NMEDIT="$ac_cv_prog_NMEDIT"
8106 if test -n "$ac_tool_prefix"; then
8107 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8108 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8110 $as_echo_n "checking for $ac_word... " >&6; }
8111 if test "${ac_cv_prog_LIPO+set}" = set; then :
8112 $as_echo_n "(cached) " >&6
8113 else
8114 if test -n "$LIPO"; then
8115 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8116 else
8117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8118 for as_dir in $PATH
8120 IFS=$as_save_IFS
8121 test -z "$as_dir" && as_dir=.
8122 for ac_exec_ext in '' $ac_executable_extensions; do
8123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8124 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8126 break 2
8128 done
8129 done
8130 IFS=$as_save_IFS
8134 LIPO=$ac_cv_prog_LIPO
8135 if test -n "$LIPO"; then
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8137 $as_echo "$LIPO" >&6; }
8138 else
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8140 $as_echo "no" >&6; }
8145 if test -z "$ac_cv_prog_LIPO"; then
8146 ac_ct_LIPO=$LIPO
8147 # Extract the first word of "lipo", so it can be a program name with args.
8148 set dummy lipo; ac_word=$2
8149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8150 $as_echo_n "checking for $ac_word... " >&6; }
8151 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8152 $as_echo_n "(cached) " >&6
8153 else
8154 if test -n "$ac_ct_LIPO"; then
8155 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8156 else
8157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8158 for as_dir in $PATH
8160 IFS=$as_save_IFS
8161 test -z "$as_dir" && as_dir=.
8162 for ac_exec_ext in '' $ac_executable_extensions; do
8163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8164 ac_cv_prog_ac_ct_LIPO="lipo"
8165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8166 break 2
8168 done
8169 done
8170 IFS=$as_save_IFS
8174 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8175 if test -n "$ac_ct_LIPO"; then
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8177 $as_echo "$ac_ct_LIPO" >&6; }
8178 else
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8180 $as_echo "no" >&6; }
8183 if test "x$ac_ct_LIPO" = x; then
8184 LIPO=":"
8185 else
8186 case $cross_compiling:$ac_tool_warned in
8187 yes:)
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8189 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8190 ac_tool_warned=yes ;;
8191 esac
8192 LIPO=$ac_ct_LIPO
8194 else
8195 LIPO="$ac_cv_prog_LIPO"
8198 if test -n "$ac_tool_prefix"; then
8199 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8200 set dummy ${ac_tool_prefix}otool; ac_word=$2
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8202 $as_echo_n "checking for $ac_word... " >&6; }
8203 if test "${ac_cv_prog_OTOOL+set}" = set; then :
8204 $as_echo_n "(cached) " >&6
8205 else
8206 if test -n "$OTOOL"; then
8207 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8208 else
8209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8210 for as_dir in $PATH
8212 IFS=$as_save_IFS
8213 test -z "$as_dir" && as_dir=.
8214 for ac_exec_ext in '' $ac_executable_extensions; do
8215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8216 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8218 break 2
8220 done
8221 done
8222 IFS=$as_save_IFS
8226 OTOOL=$ac_cv_prog_OTOOL
8227 if test -n "$OTOOL"; then
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8229 $as_echo "$OTOOL" >&6; }
8230 else
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8232 $as_echo "no" >&6; }
8237 if test -z "$ac_cv_prog_OTOOL"; then
8238 ac_ct_OTOOL=$OTOOL
8239 # Extract the first word of "otool", so it can be a program name with args.
8240 set dummy otool; ac_word=$2
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8242 $as_echo_n "checking for $ac_word... " >&6; }
8243 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8244 $as_echo_n "(cached) " >&6
8245 else
8246 if test -n "$ac_ct_OTOOL"; then
8247 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8248 else
8249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8250 for as_dir in $PATH
8252 IFS=$as_save_IFS
8253 test -z "$as_dir" && as_dir=.
8254 for ac_exec_ext in '' $ac_executable_extensions; do
8255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8256 ac_cv_prog_ac_ct_OTOOL="otool"
8257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8258 break 2
8260 done
8261 done
8262 IFS=$as_save_IFS
8266 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8267 if test -n "$ac_ct_OTOOL"; then
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8269 $as_echo "$ac_ct_OTOOL" >&6; }
8270 else
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8272 $as_echo "no" >&6; }
8275 if test "x$ac_ct_OTOOL" = x; then
8276 OTOOL=":"
8277 else
8278 case $cross_compiling:$ac_tool_warned in
8279 yes:)
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8281 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8282 ac_tool_warned=yes ;;
8283 esac
8284 OTOOL=$ac_ct_OTOOL
8286 else
8287 OTOOL="$ac_cv_prog_OTOOL"
8290 if test -n "$ac_tool_prefix"; then
8291 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8292 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8294 $as_echo_n "checking for $ac_word... " >&6; }
8295 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8296 $as_echo_n "(cached) " >&6
8297 else
8298 if test -n "$OTOOL64"; then
8299 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8300 else
8301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8302 for as_dir in $PATH
8304 IFS=$as_save_IFS
8305 test -z "$as_dir" && as_dir=.
8306 for ac_exec_ext in '' $ac_executable_extensions; do
8307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8308 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8310 break 2
8312 done
8313 done
8314 IFS=$as_save_IFS
8318 OTOOL64=$ac_cv_prog_OTOOL64
8319 if test -n "$OTOOL64"; then
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8321 $as_echo "$OTOOL64" >&6; }
8322 else
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8324 $as_echo "no" >&6; }
8329 if test -z "$ac_cv_prog_OTOOL64"; then
8330 ac_ct_OTOOL64=$OTOOL64
8331 # Extract the first word of "otool64", so it can be a program name with args.
8332 set dummy otool64; ac_word=$2
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8334 $as_echo_n "checking for $ac_word... " >&6; }
8335 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8336 $as_echo_n "(cached) " >&6
8337 else
8338 if test -n "$ac_ct_OTOOL64"; then
8339 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8340 else
8341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8342 for as_dir in $PATH
8344 IFS=$as_save_IFS
8345 test -z "$as_dir" && as_dir=.
8346 for ac_exec_ext in '' $ac_executable_extensions; do
8347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8348 ac_cv_prog_ac_ct_OTOOL64="otool64"
8349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8350 break 2
8352 done
8353 done
8354 IFS=$as_save_IFS
8358 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8359 if test -n "$ac_ct_OTOOL64"; then
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8361 $as_echo "$ac_ct_OTOOL64" >&6; }
8362 else
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8364 $as_echo "no" >&6; }
8367 if test "x$ac_ct_OTOOL64" = x; then
8368 OTOOL64=":"
8369 else
8370 case $cross_compiling:$ac_tool_warned in
8371 yes:)
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8373 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8374 ac_tool_warned=yes ;;
8375 esac
8376 OTOOL64=$ac_ct_OTOOL64
8378 else
8379 OTOOL64="$ac_cv_prog_OTOOL64"
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8409 $as_echo_n "checking for -single_module linker flag... " >&6; }
8410 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8411 $as_echo_n "(cached) " >&6
8412 else
8413 lt_cv_apple_cc_single_mod=no
8414 if test -z "${LT_MULTI_MODULE}"; then
8415 # By default we will add the -single_module flag. You can override
8416 # by either setting the environment variable LT_MULTI_MODULE
8417 # non-empty at configure time, or by adding -multi_module to the
8418 # link flags.
8419 rm -rf libconftest.dylib*
8420 echo "int foo(void){return 1;}" > conftest.c
8421 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8422 -dynamiclib -Wl,-single_module conftest.c" >&5
8423 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8424 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8425 _lt_result=$?
8426 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8427 lt_cv_apple_cc_single_mod=yes
8428 else
8429 cat conftest.err >&5
8431 rm -rf libconftest.dylib*
8432 rm -f conftest.*
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8436 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8438 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8439 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8440 $as_echo_n "(cached) " >&6
8441 else
8442 lt_cv_ld_exported_symbols_list=no
8443 save_LDFLAGS=$LDFLAGS
8444 echo "_main" > conftest.sym
8445 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8447 /* end confdefs.h. */
8450 main ()
8454 return 0;
8456 _ACEOF
8457 if ac_fn_c_try_link "$LINENO"; then :
8458 lt_cv_ld_exported_symbols_list=yes
8459 else
8460 lt_cv_ld_exported_symbols_list=no
8462 rm -f core conftest.err conftest.$ac_objext \
8463 conftest$ac_exeext conftest.$ac_ext
8464 LDFLAGS="$save_LDFLAGS"
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8468 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8470 $as_echo_n "checking for -force_load linker flag... " >&6; }
8471 if test "${lt_cv_ld_force_load+set}" = set; then :
8472 $as_echo_n "(cached) " >&6
8473 else
8474 lt_cv_ld_force_load=no
8475 cat > conftest.c << _LT_EOF
8476 int forced_loaded() { return 2;}
8477 _LT_EOF
8478 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8479 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8480 echo "$AR cru libconftest.a conftest.o" >&5
8481 $AR cru libconftest.a conftest.o 2>&5
8482 cat > conftest.c << _LT_EOF
8483 int main() { return 0;}
8484 _LT_EOF
8485 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8486 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8487 _lt_result=$?
8488 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8489 lt_cv_ld_force_load=yes
8490 else
8491 cat conftest.err >&5
8493 rm -f conftest.err libconftest.a conftest conftest.c
8494 rm -rf conftest.dSYM
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8498 $as_echo "$lt_cv_ld_force_load" >&6; }
8499 case $host_os in
8500 rhapsody* | darwin1.[012])
8501 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8502 darwin1.*)
8503 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8504 darwin*) # darwin 5.x on
8505 # if running on 10.5 or later, the deployment target defaults
8506 # to the OS version, if on x86, and 10.4, the deployment
8507 # target defaults to 10.4. Don't you love it?
8508 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8509 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8510 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8511 10.[012][,.]*)
8512 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8513 10.*)
8514 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8515 esac
8517 esac
8518 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8519 _lt_dar_single_mod='$single_module'
8521 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8522 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8523 else
8524 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8526 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8527 _lt_dsymutil='~$DSYMUTIL $lib || :'
8528 else
8529 _lt_dsymutil=
8532 esac
8534 for ac_header in dlfcn.h
8535 do :
8536 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8538 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8539 cat >>confdefs.h <<_ACEOF
8540 #define HAVE_DLFCN_H 1
8541 _ACEOF
8545 done
8552 # Set options
8557 enable_win32_dll=no
8560 # Check whether --enable-shared was given.
8561 if test "${enable_shared+set}" = set; then :
8562 enableval=$enable_shared; p=${PACKAGE-default}
8563 case $enableval in
8564 yes) enable_shared=yes ;;
8565 no) enable_shared=no ;;
8567 enable_shared=no
8568 # Look at the argument we got. We use all the common list separators.
8569 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8570 for pkg in $enableval; do
8571 IFS="$lt_save_ifs"
8572 if test "X$pkg" = "X$p"; then
8573 enable_shared=yes
8575 done
8576 IFS="$lt_save_ifs"
8578 esac
8579 else
8580 enable_shared=yes
8591 # Check whether --enable-static was given.
8592 if test "${enable_static+set}" = set; then :
8593 enableval=$enable_static; p=${PACKAGE-default}
8594 case $enableval in
8595 yes) enable_static=yes ;;
8596 no) enable_static=no ;;
8598 enable_static=no
8599 # Look at the argument we got. We use all the common list separators.
8600 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8601 for pkg in $enableval; do
8602 IFS="$lt_save_ifs"
8603 if test "X$pkg" = "X$p"; then
8604 enable_static=yes
8606 done
8607 IFS="$lt_save_ifs"
8609 esac
8610 else
8611 enable_static=yes
8623 # Check whether --with-pic was given.
8624 if test "${with_pic+set}" = set; then :
8625 withval=$with_pic; pic_mode="$withval"
8626 else
8627 pic_mode=default
8631 test -z "$pic_mode" && pic_mode=default
8639 # Check whether --enable-fast-install was given.
8640 if test "${enable_fast_install+set}" = set; then :
8641 enableval=$enable_fast_install; p=${PACKAGE-default}
8642 case $enableval in
8643 yes) enable_fast_install=yes ;;
8644 no) enable_fast_install=no ;;
8646 enable_fast_install=no
8647 # Look at the argument we got. We use all the common list separators.
8648 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8649 for pkg in $enableval; do
8650 IFS="$lt_save_ifs"
8651 if test "X$pkg" = "X$p"; then
8652 enable_fast_install=yes
8654 done
8655 IFS="$lt_save_ifs"
8657 esac
8658 else
8659 enable_fast_install=yes
8672 # This can be used to rebuild libtool when needed
8673 LIBTOOL_DEPS="$ltmain"
8675 # Always use our own libtool.
8676 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8703 test -z "$LN_S" && LN_S="ln -s"
8718 if test -n "${ZSH_VERSION+set}" ; then
8719 setopt NO_GLOB_SUBST
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8723 $as_echo_n "checking for objdir... " >&6; }
8724 if test "${lt_cv_objdir+set}" = set; then :
8725 $as_echo_n "(cached) " >&6
8726 else
8727 rm -f .libs 2>/dev/null
8728 mkdir .libs 2>/dev/null
8729 if test -d .libs; then
8730 lt_cv_objdir=.libs
8731 else
8732 # MS-DOS does not allow filenames that begin with a dot.
8733 lt_cv_objdir=_libs
8735 rmdir .libs 2>/dev/null
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8738 $as_echo "$lt_cv_objdir" >&6; }
8739 objdir=$lt_cv_objdir
8745 cat >>confdefs.h <<_ACEOF
8746 #define LT_OBJDIR "$lt_cv_objdir/"
8747 _ACEOF
8752 case $host_os in
8753 aix3*)
8754 # AIX sometimes has problems with the GCC collect2 program. For some
8755 # reason, if we set the COLLECT_NAMES environment variable, the problems
8756 # vanish in a puff of smoke.
8757 if test "X${COLLECT_NAMES+set}" != Xset; then
8758 COLLECT_NAMES=
8759 export COLLECT_NAMES
8762 esac
8764 # Global variables:
8765 ofile=libtool
8766 can_build_shared=yes
8768 # All known linkers require a `.a' archive for static linking (except MSVC,
8769 # which needs '.lib').
8770 libext=a
8772 with_gnu_ld="$lt_cv_prog_gnu_ld"
8774 old_CC="$CC"
8775 old_CFLAGS="$CFLAGS"
8777 # Set sane defaults for various variables
8778 test -z "$CC" && CC=cc
8779 test -z "$LTCC" && LTCC=$CC
8780 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8781 test -z "$LD" && LD=ld
8782 test -z "$ac_objext" && ac_objext=o
8784 for cc_temp in $compiler""; do
8785 case $cc_temp in
8786 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8787 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8788 \-*) ;;
8789 *) break;;
8790 esac
8791 done
8792 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8795 # Only perform the check for file, if the check method requires it
8796 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8797 case $deplibs_check_method in
8798 file_magic*)
8799 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8801 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8802 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8803 $as_echo_n "(cached) " >&6
8804 else
8805 case $MAGIC_CMD in
8806 [\\/*] | ?:[\\/]*)
8807 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8810 lt_save_MAGIC_CMD="$MAGIC_CMD"
8811 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8812 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8813 for ac_dir in $ac_dummy; do
8814 IFS="$lt_save_ifs"
8815 test -z "$ac_dir" && ac_dir=.
8816 if test -f $ac_dir/${ac_tool_prefix}file; then
8817 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8818 if test -n "$file_magic_test_file"; then
8819 case $deplibs_check_method in
8820 "file_magic "*)
8821 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8822 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8823 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8824 $EGREP "$file_magic_regex" > /dev/null; then
8826 else
8827 cat <<_LT_EOF 1>&2
8829 *** Warning: the command libtool uses to detect shared libraries,
8830 *** $file_magic_cmd, produces output that libtool cannot recognize.
8831 *** The result is that libtool may fail to recognize shared libraries
8832 *** as such. This will affect the creation of libtool libraries that
8833 *** depend on shared libraries, but programs linked with such libtool
8834 *** libraries will work regardless of this problem. Nevertheless, you
8835 *** may want to report the problem to your system manager and/or to
8836 *** bug-libtool@gnu.org
8838 _LT_EOF
8839 fi ;;
8840 esac
8842 break
8844 done
8845 IFS="$lt_save_ifs"
8846 MAGIC_CMD="$lt_save_MAGIC_CMD"
8848 esac
8851 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8852 if test -n "$MAGIC_CMD"; then
8853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8854 $as_echo "$MAGIC_CMD" >&6; }
8855 else
8856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8857 $as_echo "no" >&6; }
8864 if test -z "$lt_cv_path_MAGIC_CMD"; then
8865 if test -n "$ac_tool_prefix"; then
8866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8867 $as_echo_n "checking for file... " >&6; }
8868 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8869 $as_echo_n "(cached) " >&6
8870 else
8871 case $MAGIC_CMD in
8872 [\\/*] | ?:[\\/]*)
8873 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8876 lt_save_MAGIC_CMD="$MAGIC_CMD"
8877 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8878 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8879 for ac_dir in $ac_dummy; do
8880 IFS="$lt_save_ifs"
8881 test -z "$ac_dir" && ac_dir=.
8882 if test -f $ac_dir/file; then
8883 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8884 if test -n "$file_magic_test_file"; then
8885 case $deplibs_check_method in
8886 "file_magic "*)
8887 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8888 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8889 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8890 $EGREP "$file_magic_regex" > /dev/null; then
8892 else
8893 cat <<_LT_EOF 1>&2
8895 *** Warning: the command libtool uses to detect shared libraries,
8896 *** $file_magic_cmd, produces output that libtool cannot recognize.
8897 *** The result is that libtool may fail to recognize shared libraries
8898 *** as such. This will affect the creation of libtool libraries that
8899 *** depend on shared libraries, but programs linked with such libtool
8900 *** libraries will work regardless of this problem. Nevertheless, you
8901 *** may want to report the problem to your system manager and/or to
8902 *** bug-libtool@gnu.org
8904 _LT_EOF
8905 fi ;;
8906 esac
8908 break
8910 done
8911 IFS="$lt_save_ifs"
8912 MAGIC_CMD="$lt_save_MAGIC_CMD"
8914 esac
8917 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8918 if test -n "$MAGIC_CMD"; then
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8920 $as_echo "$MAGIC_CMD" >&6; }
8921 else
8922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8923 $as_echo "no" >&6; }
8927 else
8928 MAGIC_CMD=:
8934 esac
8936 # Use C for the default configuration in the libtool script
8938 lt_save_CC="$CC"
8939 ac_ext=c
8940 ac_cpp='$CPP $CPPFLAGS'
8941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8946 # Source file extension for C test sources.
8947 ac_ext=c
8949 # Object file extension for compiled C test sources.
8950 objext=o
8951 objext=$objext
8953 # Code to be used in simple compile tests
8954 lt_simple_compile_test_code="int some_variable = 0;"
8956 # Code to be used in simple link tests
8957 lt_simple_link_test_code='int main(){return(0);}'
8965 # If no C compiler was specified, use CC.
8966 LTCC=${LTCC-"$CC"}
8968 # If no C compiler flags were specified, use CFLAGS.
8969 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8971 # Allow CC to be a program name with arguments.
8972 compiler=$CC
8974 # Save the default compiler, since it gets overwritten when the other
8975 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8976 compiler_DEFAULT=$CC
8978 # save warnings/boilerplate of simple test code
8979 ac_outfile=conftest.$ac_objext
8980 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8981 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8982 _lt_compiler_boilerplate=`cat conftest.err`
8983 $RM conftest*
8985 ac_outfile=conftest.$ac_objext
8986 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8987 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8988 _lt_linker_boilerplate=`cat conftest.err`
8989 $RM -r conftest*
8992 ## CAVEAT EMPTOR:
8993 ## There is no encapsulation within the following macros, do not change
8994 ## the running order or otherwise move them around unless you know exactly
8995 ## what you are doing...
8996 if test -n "$compiler"; then
8998 lt_prog_compiler_no_builtin_flag=
9000 if test "$GCC" = yes; then
9001 case $cc_basename in
9002 nvcc*)
9003 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9005 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9006 esac
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9009 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9010 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9011 $as_echo_n "(cached) " >&6
9012 else
9013 lt_cv_prog_compiler_rtti_exceptions=no
9014 ac_outfile=conftest.$ac_objext
9015 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9016 lt_compiler_flag="-fno-rtti -fno-exceptions"
9017 # Insert the option either (1) after the last *FLAGS variable, or
9018 # (2) before a word containing "conftest.", or (3) at the end.
9019 # Note that $ac_compile itself does not contain backslashes and begins
9020 # with a dollar sign (not a hyphen), so the echo should work correctly.
9021 # The option is referenced via a variable to avoid confusing sed.
9022 lt_compile=`echo "$ac_compile" | $SED \
9023 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9024 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9025 -e 's:$: $lt_compiler_flag:'`
9026 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9027 (eval "$lt_compile" 2>conftest.err)
9028 ac_status=$?
9029 cat conftest.err >&5
9030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9031 if (exit $ac_status) && test -s "$ac_outfile"; then
9032 # The compiler can only warn and ignore the option if not recognized
9033 # So say no if there are warnings other than the usual output.
9034 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9035 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9036 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9037 lt_cv_prog_compiler_rtti_exceptions=yes
9040 $RM conftest*
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9044 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9046 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9047 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9048 else
9059 lt_prog_compiler_wl=
9060 lt_prog_compiler_pic=
9061 lt_prog_compiler_static=
9063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9064 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9066 if test "$GCC" = yes; then
9067 lt_prog_compiler_wl='-Wl,'
9068 lt_prog_compiler_static='-static'
9070 case $host_os in
9071 aix*)
9072 # All AIX code is PIC.
9073 if test "$host_cpu" = ia64; then
9074 # AIX 5 now supports IA64 processor
9075 lt_prog_compiler_static='-Bstatic'
9077 lt_prog_compiler_pic='-fPIC'
9080 amigaos*)
9081 case $host_cpu in
9082 powerpc)
9083 # see comment about AmigaOS4 .so support
9084 lt_prog_compiler_pic='-fPIC'
9086 m68k)
9087 # FIXME: we need at least 68020 code to build shared libraries, but
9088 # adding the `-m68020' flag to GCC prevents building anything better,
9089 # like `-m68040'.
9090 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9092 esac
9095 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9096 # PIC is the default for these OSes.
9099 mingw* | cygwin* | pw32* | os2* | cegcc*)
9100 # This hack is so that the source file can tell whether it is being
9101 # built for inclusion in a dll (and should export symbols for example).
9102 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9103 # (--disable-auto-import) libraries
9104 lt_prog_compiler_pic='-DDLL_EXPORT'
9107 darwin* | rhapsody*)
9108 # PIC is the default on this platform
9109 # Common symbols not allowed in MH_DYLIB files
9110 lt_prog_compiler_pic='-fno-common'
9113 haiku*)
9114 # PIC is the default for Haiku.
9115 # The "-static" flag exists, but is broken.
9116 lt_prog_compiler_static=
9119 hpux*)
9120 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9121 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9122 # sets the default TLS model and affects inlining.
9123 case $host_cpu in
9124 hppa*64*)
9125 # +Z the default
9128 lt_prog_compiler_pic='-fPIC'
9130 esac
9133 interix[3-9]*)
9134 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9135 # Instead, we relocate shared libraries at runtime.
9138 msdosdjgpp*)
9139 # Just because we use GCC doesn't mean we suddenly get shared libraries
9140 # on systems that don't support them.
9141 lt_prog_compiler_can_build_shared=no
9142 enable_shared=no
9145 *nto* | *qnx*)
9146 # QNX uses GNU C++, but need to define -shared option too, otherwise
9147 # it will coredump.
9148 lt_prog_compiler_pic='-fPIC -shared'
9151 sysv4*MP*)
9152 if test -d /usr/nec; then
9153 lt_prog_compiler_pic=-Kconform_pic
9158 lt_prog_compiler_pic='-fPIC'
9160 esac
9162 case $cc_basename in
9163 nvcc*) # Cuda Compiler Driver 2.2
9164 lt_prog_compiler_wl='-Xlinker '
9165 lt_prog_compiler_pic='-Xcompiler -fPIC'
9167 esac
9168 else
9169 # PORTME Check for flag to pass linker flags through the system compiler.
9170 case $host_os in
9171 aix*)
9172 lt_prog_compiler_wl='-Wl,'
9173 if test "$host_cpu" = ia64; then
9174 # AIX 5 now supports IA64 processor
9175 lt_prog_compiler_static='-Bstatic'
9176 else
9177 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9181 mingw* | cygwin* | pw32* | os2* | cegcc*)
9182 # This hack is so that the source file can tell whether it is being
9183 # built for inclusion in a dll (and should export symbols for example).
9184 lt_prog_compiler_pic='-DDLL_EXPORT'
9187 hpux9* | hpux10* | hpux11*)
9188 lt_prog_compiler_wl='-Wl,'
9189 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9190 # not for PA HP-UX.
9191 case $host_cpu in
9192 hppa*64*|ia64*)
9193 # +Z the default
9196 lt_prog_compiler_pic='+Z'
9198 esac
9199 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9200 lt_prog_compiler_static='${wl}-a ${wl}archive'
9203 irix5* | irix6* | nonstopux*)
9204 lt_prog_compiler_wl='-Wl,'
9205 # PIC (with -KPIC) is the default.
9206 lt_prog_compiler_static='-non_shared'
9209 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9210 case $cc_basename in
9211 # old Intel for x86_64 which still supported -KPIC.
9212 ecc*)
9213 lt_prog_compiler_wl='-Wl,'
9214 lt_prog_compiler_pic='-KPIC'
9215 lt_prog_compiler_static='-static'
9217 # icc used to be incompatible with GCC.
9218 # ICC 10 doesn't accept -KPIC any more.
9219 icc* | ifort*)
9220 lt_prog_compiler_wl='-Wl,'
9221 lt_prog_compiler_pic='-fPIC'
9222 lt_prog_compiler_static='-static'
9224 # Lahey Fortran 8.1.
9225 lf95*)
9226 lt_prog_compiler_wl='-Wl,'
9227 lt_prog_compiler_pic='--shared'
9228 lt_prog_compiler_static='--static'
9230 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9231 # Portland Group compilers (*not* the Pentium gcc compiler,
9232 # which looks to be a dead project)
9233 lt_prog_compiler_wl='-Wl,'
9234 lt_prog_compiler_pic='-fpic'
9235 lt_prog_compiler_static='-Bstatic'
9237 ccc*)
9238 lt_prog_compiler_wl='-Wl,'
9239 # All Alpha code is PIC.
9240 lt_prog_compiler_static='-non_shared'
9242 xl* | bgxl* | bgf* | mpixl*)
9243 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9244 lt_prog_compiler_wl='-Wl,'
9245 lt_prog_compiler_pic='-qpic'
9246 lt_prog_compiler_static='-qstaticlink'
9249 case `$CC -V 2>&1 | sed 5q` in
9250 *Sun\ F* | *Sun*Fortran*)
9251 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9252 lt_prog_compiler_pic='-KPIC'
9253 lt_prog_compiler_static='-Bstatic'
9254 lt_prog_compiler_wl=''
9256 *Sun\ C*)
9257 # Sun C 5.9
9258 lt_prog_compiler_pic='-KPIC'
9259 lt_prog_compiler_static='-Bstatic'
9260 lt_prog_compiler_wl='-Wl,'
9262 esac
9264 esac
9267 newsos6)
9268 lt_prog_compiler_pic='-KPIC'
9269 lt_prog_compiler_static='-Bstatic'
9272 *nto* | *qnx*)
9273 # QNX uses GNU C++, but need to define -shared option too, otherwise
9274 # it will coredump.
9275 lt_prog_compiler_pic='-fPIC -shared'
9278 osf3* | osf4* | osf5*)
9279 lt_prog_compiler_wl='-Wl,'
9280 # All OSF/1 code is PIC.
9281 lt_prog_compiler_static='-non_shared'
9284 rdos*)
9285 lt_prog_compiler_static='-non_shared'
9288 solaris*)
9289 lt_prog_compiler_pic='-KPIC'
9290 lt_prog_compiler_static='-Bstatic'
9291 case $cc_basename in
9292 f77* | f90* | f95*)
9293 lt_prog_compiler_wl='-Qoption ld ';;
9295 lt_prog_compiler_wl='-Wl,';;
9296 esac
9299 sunos4*)
9300 lt_prog_compiler_wl='-Qoption ld '
9301 lt_prog_compiler_pic='-PIC'
9302 lt_prog_compiler_static='-Bstatic'
9305 sysv4 | sysv4.2uw2* | sysv4.3*)
9306 lt_prog_compiler_wl='-Wl,'
9307 lt_prog_compiler_pic='-KPIC'
9308 lt_prog_compiler_static='-Bstatic'
9311 sysv4*MP*)
9312 if test -d /usr/nec ;then
9313 lt_prog_compiler_pic='-Kconform_pic'
9314 lt_prog_compiler_static='-Bstatic'
9318 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9319 lt_prog_compiler_wl='-Wl,'
9320 lt_prog_compiler_pic='-KPIC'
9321 lt_prog_compiler_static='-Bstatic'
9324 unicos*)
9325 lt_prog_compiler_wl='-Wl,'
9326 lt_prog_compiler_can_build_shared=no
9329 uts4*)
9330 lt_prog_compiler_pic='-pic'
9331 lt_prog_compiler_static='-Bstatic'
9335 lt_prog_compiler_can_build_shared=no
9337 esac
9340 case $host_os in
9341 # For platforms which do not support PIC, -DPIC is meaningless:
9342 *djgpp*)
9343 lt_prog_compiler_pic=
9346 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9348 esac
9349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9350 $as_echo "$lt_prog_compiler_pic" >&6; }
9358 # Check to make sure the PIC flag actually works.
9360 if test -n "$lt_prog_compiler_pic"; then
9361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9362 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9363 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9364 $as_echo_n "(cached) " >&6
9365 else
9366 lt_cv_prog_compiler_pic_works=no
9367 ac_outfile=conftest.$ac_objext
9368 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9369 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9370 # Insert the option either (1) after the last *FLAGS variable, or
9371 # (2) before a word containing "conftest.", or (3) at the end.
9372 # Note that $ac_compile itself does not contain backslashes and begins
9373 # with a dollar sign (not a hyphen), so the echo should work correctly.
9374 # The option is referenced via a variable to avoid confusing sed.
9375 lt_compile=`echo "$ac_compile" | $SED \
9376 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9377 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9378 -e 's:$: $lt_compiler_flag:'`
9379 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9380 (eval "$lt_compile" 2>conftest.err)
9381 ac_status=$?
9382 cat conftest.err >&5
9383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384 if (exit $ac_status) && test -s "$ac_outfile"; then
9385 # The compiler can only warn and ignore the option if not recognized
9386 # So say no if there are warnings other than the usual output.
9387 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9388 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9389 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9390 lt_cv_prog_compiler_pic_works=yes
9393 $RM conftest*
9396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9397 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9399 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9400 case $lt_prog_compiler_pic in
9401 "" | " "*) ;;
9402 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9403 esac
9404 else
9405 lt_prog_compiler_pic=
9406 lt_prog_compiler_can_build_shared=no
9417 # Check to make sure the static flag actually works.
9419 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9421 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9422 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9423 $as_echo_n "(cached) " >&6
9424 else
9425 lt_cv_prog_compiler_static_works=no
9426 save_LDFLAGS="$LDFLAGS"
9427 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9428 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9429 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9430 # The linker can only warn and ignore the option if not recognized
9431 # So say no if there are warnings
9432 if test -s conftest.err; then
9433 # Append any errors to the config.log.
9434 cat conftest.err 1>&5
9435 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9436 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9437 if diff conftest.exp conftest.er2 >/dev/null; then
9438 lt_cv_prog_compiler_static_works=yes
9440 else
9441 lt_cv_prog_compiler_static_works=yes
9444 $RM -r conftest*
9445 LDFLAGS="$save_LDFLAGS"
9448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9449 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9451 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9453 else
9454 lt_prog_compiler_static=
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9464 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9465 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9466 $as_echo_n "(cached) " >&6
9467 else
9468 lt_cv_prog_compiler_c_o=no
9469 $RM -r conftest 2>/dev/null
9470 mkdir conftest
9471 cd conftest
9472 mkdir out
9473 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9475 lt_compiler_flag="-o out/conftest2.$ac_objext"
9476 # Insert the option either (1) after the last *FLAGS variable, or
9477 # (2) before a word containing "conftest.", or (3) at the end.
9478 # Note that $ac_compile itself does not contain backslashes and begins
9479 # with a dollar sign (not a hyphen), so the echo should work correctly.
9480 lt_compile=`echo "$ac_compile" | $SED \
9481 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9482 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9483 -e 's:$: $lt_compiler_flag:'`
9484 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9485 (eval "$lt_compile" 2>out/conftest.err)
9486 ac_status=$?
9487 cat out/conftest.err >&5
9488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9489 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9490 then
9491 # The compiler can only warn and ignore the option if not recognized
9492 # So say no if there are warnings
9493 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9494 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9495 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9496 lt_cv_prog_compiler_c_o=yes
9499 chmod u+w . 2>&5
9500 $RM conftest*
9501 # SGI C++ compiler will create directory out/ii_files/ for
9502 # template instantiation
9503 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9504 $RM out/* && rmdir out
9505 cd ..
9506 $RM -r conftest
9507 $RM conftest*
9510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9511 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9519 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9520 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9521 $as_echo_n "(cached) " >&6
9522 else
9523 lt_cv_prog_compiler_c_o=no
9524 $RM -r conftest 2>/dev/null
9525 mkdir conftest
9526 cd conftest
9527 mkdir out
9528 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9530 lt_compiler_flag="-o out/conftest2.$ac_objext"
9531 # Insert the option either (1) after the last *FLAGS variable, or
9532 # (2) before a word containing "conftest.", or (3) at the end.
9533 # Note that $ac_compile itself does not contain backslashes and begins
9534 # with a dollar sign (not a hyphen), so the echo should work correctly.
9535 lt_compile=`echo "$ac_compile" | $SED \
9536 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9537 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9538 -e 's:$: $lt_compiler_flag:'`
9539 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9540 (eval "$lt_compile" 2>out/conftest.err)
9541 ac_status=$?
9542 cat out/conftest.err >&5
9543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9544 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9545 then
9546 # The compiler can only warn and ignore the option if not recognized
9547 # So say no if there are warnings
9548 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9549 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9550 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9551 lt_cv_prog_compiler_c_o=yes
9554 chmod u+w . 2>&5
9555 $RM conftest*
9556 # SGI C++ compiler will create directory out/ii_files/ for
9557 # template instantiation
9558 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9559 $RM out/* && rmdir out
9560 cd ..
9561 $RM -r conftest
9562 $RM conftest*
9565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9566 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9571 hard_links="nottested"
9572 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9573 # do not overwrite the value of need_locks provided by the user
9574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9575 $as_echo_n "checking if we can lock with hard links... " >&6; }
9576 hard_links=yes
9577 $RM conftest*
9578 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9579 touch conftest.a
9580 ln conftest.a conftest.b 2>&5 || hard_links=no
9581 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9583 $as_echo "$hard_links" >&6; }
9584 if test "$hard_links" = no; then
9585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9586 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9587 need_locks=warn
9589 else
9590 need_locks=no
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9599 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9601 runpath_var=
9602 allow_undefined_flag=
9603 always_export_symbols=no
9604 archive_cmds=
9605 archive_expsym_cmds=
9606 compiler_needs_object=no
9607 enable_shared_with_static_runtimes=no
9608 export_dynamic_flag_spec=
9609 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9610 hardcode_automatic=no
9611 hardcode_direct=no
9612 hardcode_direct_absolute=no
9613 hardcode_libdir_flag_spec=
9614 hardcode_libdir_flag_spec_ld=
9615 hardcode_libdir_separator=
9616 hardcode_minus_L=no
9617 hardcode_shlibpath_var=unsupported
9618 inherit_rpath=no
9619 link_all_deplibs=unknown
9620 module_cmds=
9621 module_expsym_cmds=
9622 old_archive_from_new_cmds=
9623 old_archive_from_expsyms_cmds=
9624 thread_safe_flag_spec=
9625 whole_archive_flag_spec=
9626 # include_expsyms should be a list of space-separated symbols to be *always*
9627 # included in the symbol list
9628 include_expsyms=
9629 # exclude_expsyms can be an extended regexp of symbols to exclude
9630 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9631 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9632 # as well as any symbol that contains `d'.
9633 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9634 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9635 # platforms (ab)use it in PIC code, but their linkers get confused if
9636 # the symbol is explicitly referenced. Since portable code cannot
9637 # rely on this symbol name, it's probably fine to never include it in
9638 # preloaded symbol tables.
9639 # Exclude shared library initialization/finalization symbols.
9640 extract_expsyms_cmds=
9642 case $host_os in
9643 cygwin* | mingw* | pw32* | cegcc*)
9644 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9645 # When not using gcc, we currently assume that we are using
9646 # Microsoft Visual C++.
9647 if test "$GCC" != yes; then
9648 with_gnu_ld=no
9651 interix*)
9652 # we just hope/assume this is gcc and not c89 (= MSVC++)
9653 with_gnu_ld=yes
9655 openbsd*)
9656 with_gnu_ld=no
9658 esac
9660 ld_shlibs=yes
9662 # On some targets, GNU ld is compatible enough with the native linker
9663 # that we're better off using the native interface for both.
9664 lt_use_gnu_ld_interface=no
9665 if test "$with_gnu_ld" = yes; then
9666 case $host_os in
9667 aix*)
9668 # The AIX port of GNU ld has always aspired to compatibility
9669 # with the native linker. However, as the warning in the GNU ld
9670 # block says, versions before 2.19.5* couldn't really create working
9671 # shared libraries, regardless of the interface used.
9672 case `$LD -v 2>&1` in
9673 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9674 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9675 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9677 lt_use_gnu_ld_interface=yes
9679 esac
9682 lt_use_gnu_ld_interface=yes
9684 esac
9687 if test "$lt_use_gnu_ld_interface" = yes; then
9688 # If archive_cmds runs LD, not CC, wlarc should be empty
9689 wlarc='${wl}'
9691 # Set some defaults for GNU ld with shared library support. These
9692 # are reset later if shared libraries are not supported. Putting them
9693 # here allows them to be overridden if necessary.
9694 runpath_var=LD_RUN_PATH
9695 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9696 export_dynamic_flag_spec='${wl}--export-dynamic'
9697 # ancient GNU ld didn't support --whole-archive et. al.
9698 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9699 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9700 else
9701 whole_archive_flag_spec=
9703 supports_anon_versioning=no
9704 case `$LD -v 2>&1` in
9705 *GNU\ gold*) supports_anon_versioning=yes ;;
9706 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9707 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9708 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9709 *\ 2.11.*) ;; # other 2.11 versions
9710 *) supports_anon_versioning=yes ;;
9711 esac
9713 # See if GNU ld supports shared libraries.
9714 case $host_os in
9715 aix[3-9]*)
9716 # On AIX/PPC, the GNU linker is very broken
9717 if test "$host_cpu" != ia64; then
9718 ld_shlibs=no
9719 cat <<_LT_EOF 1>&2
9721 *** Warning: the GNU linker, at least up to release 2.19, is reported
9722 *** to be unable to reliably create shared libraries on AIX.
9723 *** Therefore, libtool is disabling shared libraries support. If you
9724 *** really care for shared libraries, you may want to install binutils
9725 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9726 *** You will then need to restart the configuration process.
9728 _LT_EOF
9732 amigaos*)
9733 case $host_cpu in
9734 powerpc)
9735 # see comment about AmigaOS4 .so support
9736 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9737 archive_expsym_cmds=''
9739 m68k)
9740 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)'
9741 hardcode_libdir_flag_spec='-L$libdir'
9742 hardcode_minus_L=yes
9744 esac
9747 beos*)
9748 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9749 allow_undefined_flag=unsupported
9750 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9751 # support --undefined. This deserves some investigation. FIXME
9752 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9753 else
9754 ld_shlibs=no
9758 cygwin* | mingw* | pw32* | cegcc*)
9759 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9760 # as there is no search path for DLLs.
9761 hardcode_libdir_flag_spec='-L$libdir'
9762 export_dynamic_flag_spec='${wl}--export-all-symbols'
9763 allow_undefined_flag=unsupported
9764 always_export_symbols=no
9765 enable_shared_with_static_runtimes=yes
9766 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9768 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9769 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9770 # If the export-symbols file already is a .def file (1st line
9771 # is EXPORTS), use it as is; otherwise, prepend...
9772 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9773 cp $export_symbols $output_objdir/$soname.def;
9774 else
9775 echo EXPORTS > $output_objdir/$soname.def;
9776 cat $export_symbols >> $output_objdir/$soname.def;
9778 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9779 else
9780 ld_shlibs=no
9784 haiku*)
9785 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9786 link_all_deplibs=yes
9789 interix[3-9]*)
9790 hardcode_direct=no
9791 hardcode_shlibpath_var=no
9792 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9793 export_dynamic_flag_spec='${wl}-E'
9794 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9795 # Instead, shared libraries are loaded at an image base (0x10000000 by
9796 # default) and relocated if they conflict, which is a slow very memory
9797 # consuming and fragmenting process. To avoid this, we pick a random,
9798 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9799 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9800 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9801 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'
9804 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9805 tmp_diet=no
9806 if test "$host_os" = linux-dietlibc; then
9807 case $cc_basename in
9808 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9809 esac
9811 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9812 && test "$tmp_diet" = no
9813 then
9814 tmp_addflag=' $pic_flag'
9815 tmp_sharedflag='-shared'
9816 case $cc_basename,$host_cpu in
9817 pgcc*) # Portland Group C compiler
9818 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'
9819 tmp_addflag=' $pic_flag'
9821 pgf77* | pgf90* | pgf95* | pgfortran*)
9822 # Portland Group f77 and f90 compilers
9823 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'
9824 tmp_addflag=' $pic_flag -Mnomain' ;;
9825 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9826 tmp_addflag=' -i_dynamic' ;;
9827 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9828 tmp_addflag=' -i_dynamic -nofor_main' ;;
9829 ifc* | ifort*) # Intel Fortran compiler
9830 tmp_addflag=' -nofor_main' ;;
9831 lf95*) # Lahey Fortran 8.1
9832 whole_archive_flag_spec=
9833 tmp_sharedflag='--shared' ;;
9834 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9835 tmp_sharedflag='-qmkshrobj'
9836 tmp_addflag= ;;
9837 nvcc*) # Cuda Compiler Driver 2.2
9838 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'
9839 compiler_needs_object=yes
9841 esac
9842 case `$CC -V 2>&1 | sed 5q` in
9843 *Sun\ C*) # Sun C 5.9
9844 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'
9845 compiler_needs_object=yes
9846 tmp_sharedflag='-G' ;;
9847 *Sun\ F*) # Sun Fortran 8.3
9848 tmp_sharedflag='-G' ;;
9849 esac
9850 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9852 if test "x$supports_anon_versioning" = xyes; then
9853 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9854 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9855 echo "local: *; };" >> $output_objdir/$libname.ver~
9856 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9859 case $cc_basename in
9860 xlf* | bgf* | bgxlf* | mpixlf*)
9861 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9862 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9863 hardcode_libdir_flag_spec=
9864 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9865 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9866 if test "x$supports_anon_versioning" = xyes; then
9867 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9868 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9869 echo "local: *; };" >> $output_objdir/$libname.ver~
9870 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9873 esac
9874 else
9875 ld_shlibs=no
9879 netbsd*)
9880 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9881 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9882 wlarc=
9883 else
9884 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9885 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9889 solaris*)
9890 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9891 ld_shlibs=no
9892 cat <<_LT_EOF 1>&2
9894 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9895 *** create shared libraries on Solaris systems. Therefore, libtool
9896 *** is disabling shared libraries support. We urge you to upgrade GNU
9897 *** binutils to release 2.9.1 or newer. Another option is to modify
9898 *** your PATH or compiler configuration so that the native linker is
9899 *** used, and then restart.
9901 _LT_EOF
9902 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9903 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9904 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9905 else
9906 ld_shlibs=no
9910 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9911 case `$LD -v 2>&1` in
9912 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9913 ld_shlibs=no
9914 cat <<_LT_EOF 1>&2
9916 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9917 *** reliably create shared libraries on SCO systems. Therefore, libtool
9918 *** is disabling shared libraries support. We urge you to upgrade GNU
9919 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9920 *** your PATH or compiler configuration so that the native linker is
9921 *** used, and then restart.
9923 _LT_EOF
9926 # For security reasons, it is highly recommended that you always
9927 # use absolute paths for naming shared libraries, and exclude the
9928 # DT_RUNPATH tag from executables and libraries. But doing so
9929 # requires that you compile everything twice, which is a pain.
9930 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9931 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9932 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9933 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9934 else
9935 ld_shlibs=no
9938 esac
9941 sunos4*)
9942 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9943 wlarc=
9944 hardcode_direct=yes
9945 hardcode_shlibpath_var=no
9949 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9950 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9951 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9952 else
9953 ld_shlibs=no
9956 esac
9958 if test "$ld_shlibs" = no; then
9959 runpath_var=
9960 hardcode_libdir_flag_spec=
9961 export_dynamic_flag_spec=
9962 whole_archive_flag_spec=
9964 else
9965 # PORTME fill in a description of your system's linker (not GNU ld)
9966 case $host_os in
9967 aix3*)
9968 allow_undefined_flag=unsupported
9969 always_export_symbols=yes
9970 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'
9971 # Note: this linker hardcodes the directories in LIBPATH if there
9972 # are no directories specified by -L.
9973 hardcode_minus_L=yes
9974 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9975 # Neither direct hardcoding nor static linking is supported with a
9976 # broken collect2.
9977 hardcode_direct=unsupported
9981 aix[4-9]*)
9982 if test "$host_cpu" = ia64; then
9983 # On IA64, the linker does run time linking by default, so we don't
9984 # have to do anything special.
9985 aix_use_runtimelinking=no
9986 exp_sym_flag='-Bexport'
9987 no_entry_flag=""
9988 else
9989 # If we're using GNU nm, then we don't want the "-C" option.
9990 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9991 # Also, AIX nm treats weak defined symbols like other global
9992 # defined symbols, whereas GNU nm marks them as "W".
9993 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9994 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'
9995 else
9996 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9998 aix_use_runtimelinking=no
10000 # Test if we are trying to use run time linking or normal
10001 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10002 # need to do runtime linking.
10003 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10004 for ld_flag in $LDFLAGS; do
10005 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10006 aix_use_runtimelinking=yes
10007 break
10009 done
10011 esac
10013 exp_sym_flag='-bexport'
10014 no_entry_flag='-bnoentry'
10017 # When large executables or shared objects are built, AIX ld can
10018 # have problems creating the table of contents. If linking a library
10019 # or program results in "error TOC overflow" add -mminimal-toc to
10020 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10021 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10023 archive_cmds=''
10024 hardcode_direct=yes
10025 hardcode_direct_absolute=yes
10026 hardcode_libdir_separator=':'
10027 link_all_deplibs=yes
10028 file_list_spec='${wl}-f,'
10030 if test "$GCC" = yes; then
10031 case $host_os in aix4.[012]|aix4.[012].*)
10032 # We only want to do this on AIX 4.2 and lower, the check
10033 # below for broken collect2 doesn't work under 4.3+
10034 collect2name=`${CC} -print-prog-name=collect2`
10035 if test -f "$collect2name" &&
10036 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10037 then
10038 # We have reworked collect2
10040 else
10041 # We have old collect2
10042 hardcode_direct=unsupported
10043 # It fails to find uninstalled libraries when the uninstalled
10044 # path is not listed in the libpath. Setting hardcode_minus_L
10045 # to unsupported forces relinking
10046 hardcode_minus_L=yes
10047 hardcode_libdir_flag_spec='-L$libdir'
10048 hardcode_libdir_separator=
10051 esac
10052 shared_flag='-shared'
10053 if test "$aix_use_runtimelinking" = yes; then
10054 shared_flag="$shared_flag "'${wl}-G'
10056 else
10057 # not using gcc
10058 if test "$host_cpu" = ia64; then
10059 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10060 # chokes on -Wl,-G. The following line is correct:
10061 shared_flag='-G'
10062 else
10063 if test "$aix_use_runtimelinking" = yes; then
10064 shared_flag='${wl}-G'
10065 else
10066 shared_flag='${wl}-bM:SRE'
10071 export_dynamic_flag_spec='${wl}-bexpall'
10072 # It seems that -bexpall does not export symbols beginning with
10073 # underscore (_), so it is better to generate a list of symbols to export.
10074 always_export_symbols=yes
10075 if test "$aix_use_runtimelinking" = yes; then
10076 # Warning - without using the other runtime loading flags (-brtl),
10077 # -berok will link without error, but may produce a broken library.
10078 allow_undefined_flag='-berok'
10079 # Determine the default libpath from the value encoded in an
10080 # empty executable.
10081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10082 /* end confdefs.h. */
10085 main ()
10089 return 0;
10091 _ACEOF
10092 if ac_fn_c_try_link "$LINENO"; then :
10094 lt_aix_libpath_sed='
10095 /Import File Strings/,/^$/ {
10096 /^0/ {
10097 s/^0 *\(.*\)$/\1/
10101 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10102 # Check for a 64-bit object if we didn't find anything.
10103 if test -z "$aix_libpath"; then
10104 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10107 rm -f core conftest.err conftest.$ac_objext \
10108 conftest$ac_exeext conftest.$ac_ext
10109 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10111 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10112 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"
10113 else
10114 if test "$host_cpu" = ia64; then
10115 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10116 allow_undefined_flag="-z nodefs"
10117 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"
10118 else
10119 # Determine the default libpath from the value encoded in an
10120 # empty executable.
10121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10122 /* end confdefs.h. */
10125 main ()
10129 return 0;
10131 _ACEOF
10132 if ac_fn_c_try_link "$LINENO"; then :
10134 lt_aix_libpath_sed='
10135 /Import File Strings/,/^$/ {
10136 /^0/ {
10137 s/^0 *\(.*\)$/\1/
10141 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10142 # Check for a 64-bit object if we didn't find anything.
10143 if test -z "$aix_libpath"; then
10144 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10147 rm -f core conftest.err conftest.$ac_objext \
10148 conftest$ac_exeext conftest.$ac_ext
10149 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10151 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10152 # Warning - without using the other run time loading flags,
10153 # -berok will link without error, but may produce a broken library.
10154 no_undefined_flag=' ${wl}-bernotok'
10155 allow_undefined_flag=' ${wl}-berok'
10156 if test "$with_gnu_ld" = yes; then
10157 # We only use this code for GNU lds that support --whole-archive.
10158 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10159 else
10160 # Exported symbols can be pulled into shared objects from archives
10161 whole_archive_flag_spec='$convenience'
10163 archive_cmds_need_lc=yes
10164 # This is similar to how AIX traditionally builds its shared libraries.
10165 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'
10170 amigaos*)
10171 case $host_cpu in
10172 powerpc)
10173 # see comment about AmigaOS4 .so support
10174 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10175 archive_expsym_cmds=''
10177 m68k)
10178 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)'
10179 hardcode_libdir_flag_spec='-L$libdir'
10180 hardcode_minus_L=yes
10182 esac
10185 bsdi[45]*)
10186 export_dynamic_flag_spec=-rdynamic
10189 cygwin* | mingw* | pw32* | cegcc*)
10190 # When not using gcc, we currently assume that we are using
10191 # Microsoft Visual C++.
10192 # hardcode_libdir_flag_spec is actually meaningless, as there is
10193 # no search path for DLLs.
10194 hardcode_libdir_flag_spec=' '
10195 allow_undefined_flag=unsupported
10196 # Tell ltmain to make .lib files, not .a files.
10197 libext=lib
10198 # Tell ltmain to make .dll files, not .so files.
10199 shrext_cmds=".dll"
10200 # FIXME: Setting linknames here is a bad hack.
10201 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10202 # The linker will automatically build a .lib file if we build a DLL.
10203 old_archive_from_new_cmds='true'
10204 # FIXME: Should let the user specify the lib program.
10205 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10206 fix_srcfile_path='`cygpath -w "$srcfile"`'
10207 enable_shared_with_static_runtimes=yes
10210 darwin* | rhapsody*)
10213 archive_cmds_need_lc=no
10214 hardcode_direct=no
10215 hardcode_automatic=yes
10216 hardcode_shlibpath_var=unsupported
10217 if test "$lt_cv_ld_force_load" = "yes"; then
10218 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\"`'
10219 else
10220 whole_archive_flag_spec=''
10222 link_all_deplibs=yes
10223 allow_undefined_flag="$_lt_dar_allow_undefined"
10224 case $cc_basename in
10225 ifort*) _lt_dar_can_shared=yes ;;
10226 *) _lt_dar_can_shared=$GCC ;;
10227 esac
10228 if test "$_lt_dar_can_shared" = "yes"; then
10229 output_verbose_link_cmd=func_echo_all
10230 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10231 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10232 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}"
10233 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}"
10235 else
10236 ld_shlibs=no
10241 dgux*)
10242 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10243 hardcode_libdir_flag_spec='-L$libdir'
10244 hardcode_shlibpath_var=no
10247 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10248 # support. Future versions do this automatically, but an explicit c++rt0.o
10249 # does not break anything, and helps significantly (at the cost of a little
10250 # extra space).
10251 freebsd2.2*)
10252 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10253 hardcode_libdir_flag_spec='-R$libdir'
10254 hardcode_direct=yes
10255 hardcode_shlibpath_var=no
10258 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10259 freebsd2.*)
10260 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10261 hardcode_direct=yes
10262 hardcode_minus_L=yes
10263 hardcode_shlibpath_var=no
10266 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10267 freebsd* | dragonfly*)
10268 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10269 hardcode_libdir_flag_spec='-R$libdir'
10270 hardcode_direct=yes
10271 hardcode_shlibpath_var=no
10274 hpux9*)
10275 if test "$GCC" = yes; then
10276 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'
10277 else
10278 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'
10280 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10281 hardcode_libdir_separator=:
10282 hardcode_direct=yes
10284 # hardcode_minus_L: Not really in the search PATH,
10285 # but as the default location of the library.
10286 hardcode_minus_L=yes
10287 export_dynamic_flag_spec='${wl}-E'
10290 hpux10*)
10291 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10292 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10293 else
10294 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10296 if test "$with_gnu_ld" = no; then
10297 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10298 hardcode_libdir_flag_spec_ld='+b $libdir'
10299 hardcode_libdir_separator=:
10300 hardcode_direct=yes
10301 hardcode_direct_absolute=yes
10302 export_dynamic_flag_spec='${wl}-E'
10303 # hardcode_minus_L: Not really in the search PATH,
10304 # but as the default location of the library.
10305 hardcode_minus_L=yes
10309 hpux11*)
10310 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10311 case $host_cpu in
10312 hppa*64*)
10313 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10315 ia64*)
10316 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10319 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10321 esac
10322 else
10323 case $host_cpu in
10324 hppa*64*)
10325 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10327 ia64*)
10328 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10332 # Older versions of the 11.00 compiler do not understand -b yet
10333 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10335 $as_echo_n "checking if $CC understands -b... " >&6; }
10336 if test "${lt_cv_prog_compiler__b+set}" = set; then :
10337 $as_echo_n "(cached) " >&6
10338 else
10339 lt_cv_prog_compiler__b=no
10340 save_LDFLAGS="$LDFLAGS"
10341 LDFLAGS="$LDFLAGS -b"
10342 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10343 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10344 # The linker can only warn and ignore the option if not recognized
10345 # So say no if there are warnings
10346 if test -s conftest.err; then
10347 # Append any errors to the config.log.
10348 cat conftest.err 1>&5
10349 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10350 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10351 if diff conftest.exp conftest.er2 >/dev/null; then
10352 lt_cv_prog_compiler__b=yes
10354 else
10355 lt_cv_prog_compiler__b=yes
10358 $RM -r conftest*
10359 LDFLAGS="$save_LDFLAGS"
10362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10363 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10365 if test x"$lt_cv_prog_compiler__b" = xyes; then
10366 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10367 else
10368 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10372 esac
10374 if test "$with_gnu_ld" = no; then
10375 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10376 hardcode_libdir_separator=:
10378 case $host_cpu in
10379 hppa*64*|ia64*)
10380 hardcode_direct=no
10381 hardcode_shlibpath_var=no
10384 hardcode_direct=yes
10385 hardcode_direct_absolute=yes
10386 export_dynamic_flag_spec='${wl}-E'
10388 # hardcode_minus_L: Not really in the search PATH,
10389 # but as the default location of the library.
10390 hardcode_minus_L=yes
10392 esac
10396 irix5* | irix6* | nonstopux*)
10397 if test "$GCC" = yes; then
10398 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'
10399 # Try to use the -exported_symbol ld option, if it does not
10400 # work, assume that -exports_file does not work either and
10401 # implicitly export all symbols.
10402 save_LDFLAGS="$LDFLAGS"
10403 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10405 /* end confdefs.h. */
10406 int foo(void) {}
10407 _ACEOF
10408 if ac_fn_c_try_link "$LINENO"; then :
10409 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'
10412 rm -f core conftest.err conftest.$ac_objext \
10413 conftest$ac_exeext conftest.$ac_ext
10414 LDFLAGS="$save_LDFLAGS"
10415 else
10416 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'
10417 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'
10419 archive_cmds_need_lc='no'
10420 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10421 hardcode_libdir_separator=:
10422 inherit_rpath=yes
10423 link_all_deplibs=yes
10426 netbsd*)
10427 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10428 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10429 else
10430 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10432 hardcode_libdir_flag_spec='-R$libdir'
10433 hardcode_direct=yes
10434 hardcode_shlibpath_var=no
10437 newsos6)
10438 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10439 hardcode_direct=yes
10440 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10441 hardcode_libdir_separator=:
10442 hardcode_shlibpath_var=no
10445 *nto* | *qnx*)
10448 openbsd*)
10449 if test -f /usr/libexec/ld.so; then
10450 hardcode_direct=yes
10451 hardcode_shlibpath_var=no
10452 hardcode_direct_absolute=yes
10453 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10454 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10455 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10456 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10457 export_dynamic_flag_spec='${wl}-E'
10458 else
10459 case $host_os in
10460 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10461 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10462 hardcode_libdir_flag_spec='-R$libdir'
10465 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10466 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10468 esac
10470 else
10471 ld_shlibs=no
10475 os2*)
10476 hardcode_libdir_flag_spec='-L$libdir'
10477 hardcode_minus_L=yes
10478 allow_undefined_flag=unsupported
10479 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'
10480 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10483 osf3*)
10484 if test "$GCC" = yes; then
10485 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10486 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'
10487 else
10488 allow_undefined_flag=' -expect_unresolved \*'
10489 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'
10491 archive_cmds_need_lc='no'
10492 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10493 hardcode_libdir_separator=:
10496 osf4* | osf5*) # as osf3* with the addition of -msym flag
10497 if test "$GCC" = yes; then
10498 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10499 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'
10500 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10501 else
10502 allow_undefined_flag=' -expect_unresolved \*'
10503 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'
10504 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~
10505 $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'
10507 # Both c and cxx compiler support -rpath directly
10508 hardcode_libdir_flag_spec='-rpath $libdir'
10510 archive_cmds_need_lc='no'
10511 hardcode_libdir_separator=:
10514 solaris*)
10515 no_undefined_flag=' -z defs'
10516 if test "$GCC" = yes; then
10517 wlarc='${wl}'
10518 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10519 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10520 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10521 else
10522 case `$CC -V 2>&1` in
10523 *"Compilers 5.0"*)
10524 wlarc=''
10525 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10526 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10527 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10530 wlarc='${wl}'
10531 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10532 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10533 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10535 esac
10537 hardcode_libdir_flag_spec='-R$libdir'
10538 hardcode_shlibpath_var=no
10539 case $host_os in
10540 solaris2.[0-5] | solaris2.[0-5].*) ;;
10542 # The compiler driver will combine and reorder linker options,
10543 # but understands `-z linker_flag'. GCC discards it without `$wl',
10544 # but is careful enough not to reorder.
10545 # Supported since Solaris 2.6 (maybe 2.5.1?)
10546 if test "$GCC" = yes; then
10547 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10548 else
10549 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10552 esac
10553 link_all_deplibs=yes
10556 sunos4*)
10557 if test "x$host_vendor" = xsequent; then
10558 # Use $CC to link under sequent, because it throws in some extra .o
10559 # files that make .init and .fini sections work.
10560 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10561 else
10562 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10564 hardcode_libdir_flag_spec='-L$libdir'
10565 hardcode_direct=yes
10566 hardcode_minus_L=yes
10567 hardcode_shlibpath_var=no
10570 sysv4)
10571 case $host_vendor in
10572 sni)
10573 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10574 hardcode_direct=yes # is this really true???
10576 siemens)
10577 ## LD is ld it makes a PLAMLIB
10578 ## CC just makes a GrossModule.
10579 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10580 reload_cmds='$CC -r -o $output$reload_objs'
10581 hardcode_direct=no
10583 motorola)
10584 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10585 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10587 esac
10588 runpath_var='LD_RUN_PATH'
10589 hardcode_shlibpath_var=no
10592 sysv4.3*)
10593 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10594 hardcode_shlibpath_var=no
10595 export_dynamic_flag_spec='-Bexport'
10598 sysv4*MP*)
10599 if test -d /usr/nec; then
10600 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10601 hardcode_shlibpath_var=no
10602 runpath_var=LD_RUN_PATH
10603 hardcode_runpath_var=yes
10604 ld_shlibs=yes
10608 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10609 no_undefined_flag='${wl}-z,text'
10610 archive_cmds_need_lc=no
10611 hardcode_shlibpath_var=no
10612 runpath_var='LD_RUN_PATH'
10614 if test "$GCC" = yes; then
10615 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10616 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10617 else
10618 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10619 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10623 sysv5* | sco3.2v5* | sco5v6*)
10624 # Note: We can NOT use -z defs as we might desire, because we do not
10625 # link with -lc, and that would cause any symbols used from libc to
10626 # always be unresolved, which means just about no library would
10627 # ever link correctly. If we're not using GNU ld we use -z text
10628 # though, which does catch some bad symbols but isn't as heavy-handed
10629 # as -z defs.
10630 no_undefined_flag='${wl}-z,text'
10631 allow_undefined_flag='${wl}-z,nodefs'
10632 archive_cmds_need_lc=no
10633 hardcode_shlibpath_var=no
10634 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10635 hardcode_libdir_separator=':'
10636 link_all_deplibs=yes
10637 export_dynamic_flag_spec='${wl}-Bexport'
10638 runpath_var='LD_RUN_PATH'
10640 if test "$GCC" = yes; then
10641 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10642 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10643 else
10644 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10645 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10649 uts4*)
10650 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10651 hardcode_libdir_flag_spec='-L$libdir'
10652 hardcode_shlibpath_var=no
10656 ld_shlibs=no
10658 esac
10660 if test x$host_vendor = xsni; then
10661 case $host in
10662 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10663 export_dynamic_flag_spec='${wl}-Blargedynsym'
10665 esac
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10670 $as_echo "$ld_shlibs" >&6; }
10671 test "$ld_shlibs" = no && can_build_shared=no
10673 with_gnu_ld=$with_gnu_ld
10690 # Do we need to explicitly link libc?
10692 case "x$archive_cmds_need_lc" in
10693 x|xyes)
10694 # Assume -lc should be added
10695 archive_cmds_need_lc=yes
10697 if test "$enable_shared" = yes && test "$GCC" = yes; then
10698 case $archive_cmds in
10699 *'~'*)
10700 # FIXME: we may have to deal with multi-command sequences.
10702 '$CC '*)
10703 # Test whether the compiler implicitly links with -lc since on some
10704 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10705 # to ld, don't add -lc before -lgcc.
10706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10707 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10708 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10709 $as_echo_n "(cached) " >&6
10710 else
10711 $RM conftest*
10712 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10714 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10715 (eval $ac_compile) 2>&5
10716 ac_status=$?
10717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10718 test $ac_status = 0; } 2>conftest.err; then
10719 soname=conftest
10720 lib=conftest
10721 libobjs=conftest.$ac_objext
10722 deplibs=
10723 wl=$lt_prog_compiler_wl
10724 pic_flag=$lt_prog_compiler_pic
10725 compiler_flags=-v
10726 linker_flags=-v
10727 verstring=
10728 output_objdir=.
10729 libname=conftest
10730 lt_save_allow_undefined_flag=$allow_undefined_flag
10731 allow_undefined_flag=
10732 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10733 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10734 ac_status=$?
10735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10736 test $ac_status = 0; }
10737 then
10738 lt_cv_archive_cmds_need_lc=no
10739 else
10740 lt_cv_archive_cmds_need_lc=yes
10742 allow_undefined_flag=$lt_save_allow_undefined_flag
10743 else
10744 cat conftest.err 1>&5
10746 $RM conftest*
10749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10750 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10751 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10753 esac
10756 esac
10914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10915 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10917 if test "$GCC" = yes; then
10918 case $host_os in
10919 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10920 *) lt_awk_arg="/^libraries:/" ;;
10921 esac
10922 case $host_os in
10923 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10924 *) lt_sed_strip_eq="s,=/,/,g" ;;
10925 esac
10926 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10927 case $lt_search_path_spec in
10928 *\;*)
10929 # if the path contains ";" then we assume it to be the separator
10930 # otherwise default to the standard path separator (i.e. ":") - it is
10931 # assumed that no part of a normal pathname contains ";" but that should
10932 # okay in the real world where ";" in dirpaths is itself problematic.
10933 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10936 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10938 esac
10939 # Ok, now we have the path, separated by spaces, we can step through it
10940 # and add multilib dir if necessary.
10941 lt_tmp_lt_search_path_spec=
10942 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10943 for lt_sys_path in $lt_search_path_spec; do
10944 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10945 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10946 else
10947 test -d "$lt_sys_path" && \
10948 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10950 done
10951 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10952 BEGIN {RS=" "; FS="/|\n";} {
10953 lt_foo="";
10954 lt_count=0;
10955 for (lt_i = NF; lt_i > 0; lt_i--) {
10956 if ($lt_i != "" && $lt_i != ".") {
10957 if ($lt_i == "..") {
10958 lt_count++;
10959 } else {
10960 if (lt_count == 0) {
10961 lt_foo="/" $lt_i lt_foo;
10962 } else {
10963 lt_count--;
10968 if (lt_foo != "") { lt_freq[lt_foo]++; }
10969 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10971 # AWK program above erroneously prepends '/' to C:/dos/paths
10972 # for these hosts.
10973 case $host_os in
10974 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10975 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10976 esac
10977 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10978 else
10979 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10981 library_names_spec=
10982 libname_spec='lib$name'
10983 soname_spec=
10984 shrext_cmds=".so"
10985 postinstall_cmds=
10986 postuninstall_cmds=
10987 finish_cmds=
10988 finish_eval=
10989 shlibpath_var=
10990 shlibpath_overrides_runpath=unknown
10991 version_type=none
10992 dynamic_linker="$host_os ld.so"
10993 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10994 need_lib_prefix=unknown
10995 hardcode_into_libs=no
10997 # when you set need_version to no, make sure it does not cause -set_version
10998 # flags to be left without arguments
10999 need_version=unknown
11001 case $host_os in
11002 aix3*)
11003 version_type=linux
11004 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11005 shlibpath_var=LIBPATH
11007 # AIX 3 has no versioning support, so we append a major version to the name.
11008 soname_spec='${libname}${release}${shared_ext}$major'
11011 aix[4-9]*)
11012 version_type=linux
11013 need_lib_prefix=no
11014 need_version=no
11015 hardcode_into_libs=yes
11016 if test "$host_cpu" = ia64; then
11017 # AIX 5 supports IA64
11018 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11019 shlibpath_var=LD_LIBRARY_PATH
11020 else
11021 # With GCC up to 2.95.x, collect2 would create an import file
11022 # for dependence libraries. The import file would start with
11023 # the line `#! .'. This would cause the generated library to
11024 # depend on `.', always an invalid library. This was fixed in
11025 # development snapshots of GCC prior to 3.0.
11026 case $host_os in
11027 aix4 | aix4.[01] | aix4.[01].*)
11028 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11029 echo ' yes '
11030 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11032 else
11033 can_build_shared=no
11036 esac
11037 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11038 # soname into executable. Probably we can add versioning support to
11039 # collect2, so additional links can be useful in future.
11040 if test "$aix_use_runtimelinking" = yes; then
11041 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11042 # instead of lib<name>.a to let people know that these are not
11043 # typical AIX shared libraries.
11044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11045 else
11046 # We preserve .a as extension for shared libraries through AIX4.2
11047 # and later when we are not doing run time linking.
11048 library_names_spec='${libname}${release}.a $libname.a'
11049 soname_spec='${libname}${release}${shared_ext}$major'
11051 shlibpath_var=LIBPATH
11055 amigaos*)
11056 case $host_cpu in
11057 powerpc)
11058 # Since July 2007 AmigaOS4 officially supports .so libraries.
11059 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11062 m68k)
11063 library_names_spec='$libname.ixlibrary $libname.a'
11064 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11065 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'
11067 esac
11070 beos*)
11071 library_names_spec='${libname}${shared_ext}'
11072 dynamic_linker="$host_os ld.so"
11073 shlibpath_var=LIBRARY_PATH
11076 bsdi[45]*)
11077 version_type=linux
11078 need_version=no
11079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11080 soname_spec='${libname}${release}${shared_ext}$major'
11081 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11082 shlibpath_var=LD_LIBRARY_PATH
11083 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11084 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11085 # the default ld.so.conf also contains /usr/contrib/lib and
11086 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11087 # libtool to hard-code these into programs
11090 cygwin* | mingw* | pw32* | cegcc*)
11091 version_type=windows
11092 shrext_cmds=".dll"
11093 need_version=no
11094 need_lib_prefix=no
11096 case $GCC,$host_os in
11097 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11098 library_names_spec='$libname.dll.a'
11099 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11100 postinstall_cmds='base_file=`basename \${file}`~
11101 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11102 dldir=$destdir/`dirname \$dlpath`~
11103 test -d \$dldir || mkdir -p \$dldir~
11104 $install_prog $dir/$dlname \$dldir/$dlname~
11105 chmod a+x \$dldir/$dlname~
11106 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11107 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11109 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11110 dlpath=$dir/\$dldll~
11111 $RM \$dlpath'
11112 shlibpath_overrides_runpath=yes
11114 case $host_os in
11115 cygwin*)
11116 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11117 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11119 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11121 mingw* | cegcc*)
11122 # MinGW DLLs use traditional 'lib' prefix
11123 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11125 pw32*)
11126 # pw32 DLLs use 'pw' prefix rather than 'lib'
11127 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11129 esac
11133 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11135 esac
11136 dynamic_linker='Win32 ld.exe'
11137 # FIXME: first we should search . and the directory the executable is in
11138 shlibpath_var=PATH
11141 darwin* | rhapsody*)
11142 dynamic_linker="$host_os dyld"
11143 version_type=darwin
11144 need_lib_prefix=no
11145 need_version=no
11146 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11147 soname_spec='${libname}${release}${major}$shared_ext'
11148 shlibpath_overrides_runpath=yes
11149 shlibpath_var=DYLD_LIBRARY_PATH
11150 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11152 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11153 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11156 dgux*)
11157 version_type=linux
11158 need_lib_prefix=no
11159 need_version=no
11160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11161 soname_spec='${libname}${release}${shared_ext}$major'
11162 shlibpath_var=LD_LIBRARY_PATH
11165 freebsd* | dragonfly*)
11166 # DragonFly does not have aout. When/if they implement a new
11167 # versioning mechanism, adjust this.
11168 if test -x /usr/bin/objformat; then
11169 objformat=`/usr/bin/objformat`
11170 else
11171 case $host_os in
11172 freebsd[23].*) objformat=aout ;;
11173 *) objformat=elf ;;
11174 esac
11176 version_type=freebsd-$objformat
11177 case $version_type in
11178 freebsd-elf*)
11179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11180 need_version=no
11181 need_lib_prefix=no
11183 freebsd-*)
11184 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11185 need_version=yes
11187 esac
11188 shlibpath_var=LD_LIBRARY_PATH
11189 case $host_os in
11190 freebsd2.*)
11191 shlibpath_overrides_runpath=yes
11193 freebsd3.[01]* | freebsdelf3.[01]*)
11194 shlibpath_overrides_runpath=yes
11195 hardcode_into_libs=yes
11197 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11198 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11199 shlibpath_overrides_runpath=no
11200 hardcode_into_libs=yes
11202 *) # from 4.6 on, and DragonFly
11203 shlibpath_overrides_runpath=yes
11204 hardcode_into_libs=yes
11206 esac
11209 gnu*)
11210 version_type=linux
11211 need_lib_prefix=no
11212 need_version=no
11213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11214 soname_spec='${libname}${release}${shared_ext}$major'
11215 shlibpath_var=LD_LIBRARY_PATH
11216 hardcode_into_libs=yes
11219 haiku*)
11220 version_type=linux
11221 need_lib_prefix=no
11222 need_version=no
11223 dynamic_linker="$host_os runtime_loader"
11224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11225 soname_spec='${libname}${release}${shared_ext}$major'
11226 shlibpath_var=LIBRARY_PATH
11227 shlibpath_overrides_runpath=yes
11228 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11229 hardcode_into_libs=yes
11232 hpux9* | hpux10* | hpux11*)
11233 # Give a soname corresponding to the major version so that dld.sl refuses to
11234 # link against other versions.
11235 version_type=sunos
11236 need_lib_prefix=no
11237 need_version=no
11238 case $host_cpu in
11239 ia64*)
11240 shrext_cmds='.so'
11241 hardcode_into_libs=yes
11242 dynamic_linker="$host_os dld.so"
11243 shlibpath_var=LD_LIBRARY_PATH
11244 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11246 soname_spec='${libname}${release}${shared_ext}$major'
11247 if test "X$HPUX_IA64_MODE" = X32; then
11248 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11249 else
11250 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11252 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11254 hppa*64*)
11255 shrext_cmds='.sl'
11256 hardcode_into_libs=yes
11257 dynamic_linker="$host_os dld.sl"
11258 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11259 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11261 soname_spec='${libname}${release}${shared_ext}$major'
11262 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11263 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11266 shrext_cmds='.sl'
11267 dynamic_linker="$host_os dld.sl"
11268 shlibpath_var=SHLIB_PATH
11269 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11271 soname_spec='${libname}${release}${shared_ext}$major'
11273 esac
11274 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11275 postinstall_cmds='chmod 555 $lib'
11276 # or fails outright, so override atomically:
11277 install_override_mode=555
11280 interix[3-9]*)
11281 version_type=linux
11282 need_lib_prefix=no
11283 need_version=no
11284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11285 soname_spec='${libname}${release}${shared_ext}$major'
11286 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11287 shlibpath_var=LD_LIBRARY_PATH
11288 shlibpath_overrides_runpath=no
11289 hardcode_into_libs=yes
11292 irix5* | irix6* | nonstopux*)
11293 case $host_os in
11294 nonstopux*) version_type=nonstopux ;;
11296 if test "$lt_cv_prog_gnu_ld" = yes; then
11297 version_type=linux
11298 else
11299 version_type=irix
11300 fi ;;
11301 esac
11302 need_lib_prefix=no
11303 need_version=no
11304 soname_spec='${libname}${release}${shared_ext}$major'
11305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11306 case $host_os in
11307 irix5* | nonstopux*)
11308 libsuff= shlibsuff=
11311 case $LD in # libtool.m4 will add one of these switches to LD
11312 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11313 libsuff= shlibsuff= libmagic=32-bit;;
11314 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11315 libsuff=32 shlibsuff=N32 libmagic=N32;;
11316 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11317 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11318 *) libsuff= shlibsuff= libmagic=never-match;;
11319 esac
11321 esac
11322 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11323 shlibpath_overrides_runpath=no
11324 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11325 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11326 hardcode_into_libs=yes
11329 # No shared lib support for Linux oldld, aout, or coff.
11330 linux*oldld* | linux*aout* | linux*coff*)
11331 dynamic_linker=no
11334 # This must be Linux ELF.
11335 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11336 version_type=linux
11337 need_lib_prefix=no
11338 need_version=no
11339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11340 soname_spec='${libname}${release}${shared_ext}$major'
11341 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11342 shlibpath_var=LD_LIBRARY_PATH
11343 shlibpath_overrides_runpath=no
11345 # Some binutils ld are patched to set DT_RUNPATH
11346 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11347 $as_echo_n "(cached) " >&6
11348 else
11349 lt_cv_shlibpath_overrides_runpath=no
11350 save_LDFLAGS=$LDFLAGS
11351 save_libdir=$libdir
11352 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11353 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11355 /* end confdefs.h. */
11358 main ()
11362 return 0;
11364 _ACEOF
11365 if ac_fn_c_try_link "$LINENO"; then :
11366 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11367 lt_cv_shlibpath_overrides_runpath=yes
11370 rm -f core conftest.err conftest.$ac_objext \
11371 conftest$ac_exeext conftest.$ac_ext
11372 LDFLAGS=$save_LDFLAGS
11373 libdir=$save_libdir
11377 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11379 # This implies no fast_install, which is unacceptable.
11380 # Some rework will be needed to allow for fast_install
11381 # before this can be enabled.
11382 hardcode_into_libs=yes
11384 # Append ld.so.conf contents to the search path
11385 if test -f /etc/ld.so.conf; then
11386 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' ' '`
11387 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11390 # We used to test for /lib/ld.so.1 and disable shared libraries on
11391 # powerpc, because MkLinux only supported shared libraries with the
11392 # GNU dynamic linker. Since this was broken with cross compilers,
11393 # most powerpc-linux boxes support dynamic linking these days and
11394 # people can always --disable-shared, the test was removed, and we
11395 # assume the GNU/Linux dynamic linker is in use.
11396 dynamic_linker='GNU/Linux ld.so'
11399 netbsd*)
11400 version_type=sunos
11401 need_lib_prefix=no
11402 need_version=no
11403 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11405 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11406 dynamic_linker='NetBSD (a.out) ld.so'
11407 else
11408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11409 soname_spec='${libname}${release}${shared_ext}$major'
11410 dynamic_linker='NetBSD ld.elf_so'
11412 shlibpath_var=LD_LIBRARY_PATH
11413 shlibpath_overrides_runpath=yes
11414 hardcode_into_libs=yes
11417 newsos6)
11418 version_type=linux
11419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11420 shlibpath_var=LD_LIBRARY_PATH
11421 shlibpath_overrides_runpath=yes
11424 *nto* | *qnx*)
11425 version_type=qnx
11426 need_lib_prefix=no
11427 need_version=no
11428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11429 soname_spec='${libname}${release}${shared_ext}$major'
11430 shlibpath_var=LD_LIBRARY_PATH
11431 shlibpath_overrides_runpath=no
11432 hardcode_into_libs=yes
11433 dynamic_linker='ldqnx.so'
11436 openbsd*)
11437 version_type=sunos
11438 sys_lib_dlsearch_path_spec="/usr/lib"
11439 need_lib_prefix=no
11440 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11441 case $host_os in
11442 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11443 *) need_version=no ;;
11444 esac
11445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11446 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11447 shlibpath_var=LD_LIBRARY_PATH
11448 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11449 case $host_os in
11450 openbsd2.[89] | openbsd2.[89].*)
11451 shlibpath_overrides_runpath=no
11454 shlibpath_overrides_runpath=yes
11456 esac
11457 else
11458 shlibpath_overrides_runpath=yes
11462 os2*)
11463 libname_spec='$name'
11464 shrext_cmds=".dll"
11465 need_lib_prefix=no
11466 library_names_spec='$libname${shared_ext} $libname.a'
11467 dynamic_linker='OS/2 ld.exe'
11468 shlibpath_var=LIBPATH
11471 osf3* | osf4* | osf5*)
11472 version_type=osf
11473 need_lib_prefix=no
11474 need_version=no
11475 soname_spec='${libname}${release}${shared_ext}$major'
11476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11477 shlibpath_var=LD_LIBRARY_PATH
11478 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11479 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11482 rdos*)
11483 dynamic_linker=no
11486 solaris*)
11487 version_type=linux
11488 need_lib_prefix=no
11489 need_version=no
11490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11491 soname_spec='${libname}${release}${shared_ext}$major'
11492 shlibpath_var=LD_LIBRARY_PATH
11493 shlibpath_overrides_runpath=yes
11494 hardcode_into_libs=yes
11495 # ldd complains unless libraries are executable
11496 postinstall_cmds='chmod +x $lib'
11499 sunos4*)
11500 version_type=sunos
11501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11502 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11503 shlibpath_var=LD_LIBRARY_PATH
11504 shlibpath_overrides_runpath=yes
11505 if test "$with_gnu_ld" = yes; then
11506 need_lib_prefix=no
11508 need_version=yes
11511 sysv4 | sysv4.3*)
11512 version_type=linux
11513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11514 soname_spec='${libname}${release}${shared_ext}$major'
11515 shlibpath_var=LD_LIBRARY_PATH
11516 case $host_vendor in
11517 sni)
11518 shlibpath_overrides_runpath=no
11519 need_lib_prefix=no
11520 runpath_var=LD_RUN_PATH
11522 siemens)
11523 need_lib_prefix=no
11525 motorola)
11526 need_lib_prefix=no
11527 need_version=no
11528 shlibpath_overrides_runpath=no
11529 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11531 esac
11534 sysv4*MP*)
11535 if test -d /usr/nec ;then
11536 version_type=linux
11537 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11538 soname_spec='$libname${shared_ext}.$major'
11539 shlibpath_var=LD_LIBRARY_PATH
11543 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11544 version_type=freebsd-elf
11545 need_lib_prefix=no
11546 need_version=no
11547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11548 soname_spec='${libname}${release}${shared_ext}$major'
11549 shlibpath_var=LD_LIBRARY_PATH
11550 shlibpath_overrides_runpath=yes
11551 hardcode_into_libs=yes
11552 if test "$with_gnu_ld" = yes; then
11553 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11554 else
11555 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11556 case $host_os in
11557 sco3.2v5*)
11558 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11560 esac
11562 sys_lib_dlsearch_path_spec='/usr/lib'
11565 tpf*)
11566 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11567 version_type=linux
11568 need_lib_prefix=no
11569 need_version=no
11570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11571 shlibpath_var=LD_LIBRARY_PATH
11572 shlibpath_overrides_runpath=no
11573 hardcode_into_libs=yes
11576 uts4*)
11577 version_type=linux
11578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11579 soname_spec='${libname}${release}${shared_ext}$major'
11580 shlibpath_var=LD_LIBRARY_PATH
11584 dynamic_linker=no
11586 esac
11587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11588 $as_echo "$dynamic_linker" >&6; }
11589 test "$dynamic_linker" = no && can_build_shared=no
11591 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11592 if test "$GCC" = yes; then
11593 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11596 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11597 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11599 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11600 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11695 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11696 hardcode_action=
11697 if test -n "$hardcode_libdir_flag_spec" ||
11698 test -n "$runpath_var" ||
11699 test "X$hardcode_automatic" = "Xyes" ; then
11701 # We can hardcode non-existent directories.
11702 if test "$hardcode_direct" != no &&
11703 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11704 # have to relink, otherwise we might link with an installed library
11705 # when we should be linking with a yet-to-be-installed one
11706 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11707 test "$hardcode_minus_L" != no; then
11708 # Linking always hardcodes the temporary library directory.
11709 hardcode_action=relink
11710 else
11711 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11712 hardcode_action=immediate
11714 else
11715 # We cannot hardcode anything, or else we can only hardcode existing
11716 # directories.
11717 hardcode_action=unsupported
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11720 $as_echo "$hardcode_action" >&6; }
11722 if test "$hardcode_action" = relink ||
11723 test "$inherit_rpath" = yes; then
11724 # Fast installation is not supported
11725 enable_fast_install=no
11726 elif test "$shlibpath_overrides_runpath" = yes ||
11727 test "$enable_shared" = no; then
11728 # Fast installation is not necessary
11729 enable_fast_install=needless
11737 if test "x$enable_dlopen" != xyes; then
11738 enable_dlopen=unknown
11739 enable_dlopen_self=unknown
11740 enable_dlopen_self_static=unknown
11741 else
11742 lt_cv_dlopen=no
11743 lt_cv_dlopen_libs=
11745 case $host_os in
11746 beos*)
11747 lt_cv_dlopen="load_add_on"
11748 lt_cv_dlopen_libs=
11749 lt_cv_dlopen_self=yes
11752 mingw* | pw32* | cegcc*)
11753 lt_cv_dlopen="LoadLibrary"
11754 lt_cv_dlopen_libs=
11757 cygwin*)
11758 lt_cv_dlopen="dlopen"
11759 lt_cv_dlopen_libs=
11762 darwin*)
11763 # if libdl is installed we need to link against it
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11765 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11766 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11767 $as_echo_n "(cached) " >&6
11768 else
11769 ac_check_lib_save_LIBS=$LIBS
11770 LIBS="-ldl $LIBS"
11771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11772 /* end confdefs.h. */
11774 /* Override any GCC internal prototype to avoid an error.
11775 Use char because int might match the return type of a GCC
11776 builtin and then its argument prototype would still apply. */
11777 #ifdef __cplusplus
11778 extern "C"
11779 #endif
11780 char dlopen ();
11782 main ()
11784 return dlopen ();
11786 return 0;
11788 _ACEOF
11789 if ac_fn_c_try_link "$LINENO"; then :
11790 ac_cv_lib_dl_dlopen=yes
11791 else
11792 ac_cv_lib_dl_dlopen=no
11794 rm -f core conftest.err conftest.$ac_objext \
11795 conftest$ac_exeext conftest.$ac_ext
11796 LIBS=$ac_check_lib_save_LIBS
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11799 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11800 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11801 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11802 else
11804 lt_cv_dlopen="dyld"
11805 lt_cv_dlopen_libs=
11806 lt_cv_dlopen_self=yes
11813 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11814 if test "x$ac_cv_func_shl_load" = x""yes; then :
11815 lt_cv_dlopen="shl_load"
11816 else
11817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11818 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11819 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11820 $as_echo_n "(cached) " >&6
11821 else
11822 ac_check_lib_save_LIBS=$LIBS
11823 LIBS="-ldld $LIBS"
11824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11825 /* end confdefs.h. */
11827 /* Override any GCC internal prototype to avoid an error.
11828 Use char because int might match the return type of a GCC
11829 builtin and then its argument prototype would still apply. */
11830 #ifdef __cplusplus
11831 extern "C"
11832 #endif
11833 char shl_load ();
11835 main ()
11837 return shl_load ();
11839 return 0;
11841 _ACEOF
11842 if ac_fn_c_try_link "$LINENO"; then :
11843 ac_cv_lib_dld_shl_load=yes
11844 else
11845 ac_cv_lib_dld_shl_load=no
11847 rm -f core conftest.err conftest.$ac_objext \
11848 conftest$ac_exeext conftest.$ac_ext
11849 LIBS=$ac_check_lib_save_LIBS
11851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11852 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11853 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11854 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11855 else
11856 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11857 if test "x$ac_cv_func_dlopen" = x""yes; then :
11858 lt_cv_dlopen="dlopen"
11859 else
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11861 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11862 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11863 $as_echo_n "(cached) " >&6
11864 else
11865 ac_check_lib_save_LIBS=$LIBS
11866 LIBS="-ldl $LIBS"
11867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11868 /* end confdefs.h. */
11870 /* Override any GCC internal prototype to avoid an error.
11871 Use char because int might match the return type of a GCC
11872 builtin and then its argument prototype would still apply. */
11873 #ifdef __cplusplus
11874 extern "C"
11875 #endif
11876 char dlopen ();
11878 main ()
11880 return dlopen ();
11882 return 0;
11884 _ACEOF
11885 if ac_fn_c_try_link "$LINENO"; then :
11886 ac_cv_lib_dl_dlopen=yes
11887 else
11888 ac_cv_lib_dl_dlopen=no
11890 rm -f core conftest.err conftest.$ac_objext \
11891 conftest$ac_exeext conftest.$ac_ext
11892 LIBS=$ac_check_lib_save_LIBS
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11895 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11896 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11897 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11898 else
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11900 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11901 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11902 $as_echo_n "(cached) " >&6
11903 else
11904 ac_check_lib_save_LIBS=$LIBS
11905 LIBS="-lsvld $LIBS"
11906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11907 /* end confdefs.h. */
11909 /* Override any GCC internal prototype to avoid an error.
11910 Use char because int might match the return type of a GCC
11911 builtin and then its argument prototype would still apply. */
11912 #ifdef __cplusplus
11913 extern "C"
11914 #endif
11915 char dlopen ();
11917 main ()
11919 return dlopen ();
11921 return 0;
11923 _ACEOF
11924 if ac_fn_c_try_link "$LINENO"; then :
11925 ac_cv_lib_svld_dlopen=yes
11926 else
11927 ac_cv_lib_svld_dlopen=no
11929 rm -f core conftest.err conftest.$ac_objext \
11930 conftest$ac_exeext conftest.$ac_ext
11931 LIBS=$ac_check_lib_save_LIBS
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11934 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11935 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11936 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11937 else
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11939 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11940 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11941 $as_echo_n "(cached) " >&6
11942 else
11943 ac_check_lib_save_LIBS=$LIBS
11944 LIBS="-ldld $LIBS"
11945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11946 /* end confdefs.h. */
11948 /* Override any GCC internal prototype to avoid an error.
11949 Use char because int might match the return type of a GCC
11950 builtin and then its argument prototype would still apply. */
11951 #ifdef __cplusplus
11952 extern "C"
11953 #endif
11954 char dld_link ();
11956 main ()
11958 return dld_link ();
11960 return 0;
11962 _ACEOF
11963 if ac_fn_c_try_link "$LINENO"; then :
11964 ac_cv_lib_dld_dld_link=yes
11965 else
11966 ac_cv_lib_dld_dld_link=no
11968 rm -f core conftest.err conftest.$ac_objext \
11969 conftest$ac_exeext conftest.$ac_ext
11970 LIBS=$ac_check_lib_save_LIBS
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11973 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11974 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11975 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11994 esac
11996 if test "x$lt_cv_dlopen" != xno; then
11997 enable_dlopen=yes
11998 else
11999 enable_dlopen=no
12002 case $lt_cv_dlopen in
12003 dlopen)
12004 save_CPPFLAGS="$CPPFLAGS"
12005 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12007 save_LDFLAGS="$LDFLAGS"
12008 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12010 save_LIBS="$LIBS"
12011 LIBS="$lt_cv_dlopen_libs $LIBS"
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12014 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12015 if test "${lt_cv_dlopen_self+set}" = set; then :
12016 $as_echo_n "(cached) " >&6
12017 else
12018 if test "$cross_compiling" = yes; then :
12019 lt_cv_dlopen_self=cross
12020 else
12021 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12022 lt_status=$lt_dlunknown
12023 cat > conftest.$ac_ext <<_LT_EOF
12024 #line 12024 "configure"
12025 #include "confdefs.h"
12027 #if HAVE_DLFCN_H
12028 #include <dlfcn.h>
12029 #endif
12031 #include <stdio.h>
12033 #ifdef RTLD_GLOBAL
12034 # define LT_DLGLOBAL RTLD_GLOBAL
12035 #else
12036 # ifdef DL_GLOBAL
12037 # define LT_DLGLOBAL DL_GLOBAL
12038 # else
12039 # define LT_DLGLOBAL 0
12040 # endif
12041 #endif
12043 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12044 find out it does not work in some platform. */
12045 #ifndef LT_DLLAZY_OR_NOW
12046 # ifdef RTLD_LAZY
12047 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12048 # else
12049 # ifdef DL_LAZY
12050 # define LT_DLLAZY_OR_NOW DL_LAZY
12051 # else
12052 # ifdef RTLD_NOW
12053 # define LT_DLLAZY_OR_NOW RTLD_NOW
12054 # else
12055 # ifdef DL_NOW
12056 # define LT_DLLAZY_OR_NOW DL_NOW
12057 # else
12058 # define LT_DLLAZY_OR_NOW 0
12059 # endif
12060 # endif
12061 # endif
12062 # endif
12063 #endif
12065 /* When -fvisbility=hidden is used, assume the code has been annotated
12066 correspondingly for the symbols needed. */
12067 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12068 void fnord () __attribute__((visibility("default")));
12069 #endif
12071 void fnord () { int i=42; }
12072 int main ()
12074 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12075 int status = $lt_dlunknown;
12077 if (self)
12079 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12080 else
12082 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12083 else puts (dlerror ());
12085 /* dlclose (self); */
12087 else
12088 puts (dlerror ());
12090 return status;
12092 _LT_EOF
12093 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12094 (eval $ac_link) 2>&5
12095 ac_status=$?
12096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12097 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12098 (./conftest; exit; ) >&5 2>/dev/null
12099 lt_status=$?
12100 case x$lt_status in
12101 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12102 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12103 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12104 esac
12105 else :
12106 # compilation failed
12107 lt_cv_dlopen_self=no
12110 rm -fr conftest*
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12115 $as_echo "$lt_cv_dlopen_self" >&6; }
12117 if test "x$lt_cv_dlopen_self" = xyes; then
12118 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12120 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12121 if test "${lt_cv_dlopen_self_static+set}" = set; then :
12122 $as_echo_n "(cached) " >&6
12123 else
12124 if test "$cross_compiling" = yes; then :
12125 lt_cv_dlopen_self_static=cross
12126 else
12127 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12128 lt_status=$lt_dlunknown
12129 cat > conftest.$ac_ext <<_LT_EOF
12130 #line 12130 "configure"
12131 #include "confdefs.h"
12133 #if HAVE_DLFCN_H
12134 #include <dlfcn.h>
12135 #endif
12137 #include <stdio.h>
12139 #ifdef RTLD_GLOBAL
12140 # define LT_DLGLOBAL RTLD_GLOBAL
12141 #else
12142 # ifdef DL_GLOBAL
12143 # define LT_DLGLOBAL DL_GLOBAL
12144 # else
12145 # define LT_DLGLOBAL 0
12146 # endif
12147 #endif
12149 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12150 find out it does not work in some platform. */
12151 #ifndef LT_DLLAZY_OR_NOW
12152 # ifdef RTLD_LAZY
12153 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12154 # else
12155 # ifdef DL_LAZY
12156 # define LT_DLLAZY_OR_NOW DL_LAZY
12157 # else
12158 # ifdef RTLD_NOW
12159 # define LT_DLLAZY_OR_NOW RTLD_NOW
12160 # else
12161 # ifdef DL_NOW
12162 # define LT_DLLAZY_OR_NOW DL_NOW
12163 # else
12164 # define LT_DLLAZY_OR_NOW 0
12165 # endif
12166 # endif
12167 # endif
12168 # endif
12169 #endif
12171 /* When -fvisbility=hidden is used, assume the code has been annotated
12172 correspondingly for the symbols needed. */
12173 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12174 void fnord () __attribute__((visibility("default")));
12175 #endif
12177 void fnord () { int i=42; }
12178 int main ()
12180 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12181 int status = $lt_dlunknown;
12183 if (self)
12185 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12186 else
12188 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12189 else puts (dlerror ());
12191 /* dlclose (self); */
12193 else
12194 puts (dlerror ());
12196 return status;
12198 _LT_EOF
12199 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12200 (eval $ac_link) 2>&5
12201 ac_status=$?
12202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12203 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12204 (./conftest; exit; ) >&5 2>/dev/null
12205 lt_status=$?
12206 case x$lt_status in
12207 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12208 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12209 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12210 esac
12211 else :
12212 # compilation failed
12213 lt_cv_dlopen_self_static=no
12216 rm -fr conftest*
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12221 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12224 CPPFLAGS="$save_CPPFLAGS"
12225 LDFLAGS="$save_LDFLAGS"
12226 LIBS="$save_LIBS"
12228 esac
12230 case $lt_cv_dlopen_self in
12231 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12232 *) enable_dlopen_self=unknown ;;
12233 esac
12235 case $lt_cv_dlopen_self_static in
12236 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12237 *) enable_dlopen_self_static=unknown ;;
12238 esac
12257 striplib=
12258 old_striplib=
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12260 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12261 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12262 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12263 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12265 $as_echo "yes" >&6; }
12266 else
12267 # FIXME - insert some real tests, host_os isn't really good enough
12268 case $host_os in
12269 darwin*)
12270 if test -n "$STRIP" ; then
12271 striplib="$STRIP -x"
12272 old_striplib="$STRIP -S"
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12274 $as_echo "yes" >&6; }
12275 else
12276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12277 $as_echo "no" >&6; }
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12282 $as_echo "no" >&6; }
12284 esac
12298 # Report which library types will actually be built
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12300 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12302 $as_echo "$can_build_shared" >&6; }
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12305 $as_echo_n "checking whether to build shared libraries... " >&6; }
12306 test "$can_build_shared" = "no" && enable_shared=no
12308 # On AIX, shared libraries and static libraries use the same namespace, and
12309 # are all built from PIC.
12310 case $host_os in
12311 aix3*)
12312 test "$enable_shared" = yes && enable_static=no
12313 if test -n "$RANLIB"; then
12314 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12315 postinstall_cmds='$RANLIB $lib'
12319 aix[4-9]*)
12320 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12321 test "$enable_shared" = yes && enable_static=no
12324 esac
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12326 $as_echo "$enable_shared" >&6; }
12328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12329 $as_echo_n "checking whether to build static libraries... " >&6; }
12330 # Make sure either enable_shared or enable_static is yes.
12331 test "$enable_shared" = yes || enable_static=yes
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12333 $as_echo "$enable_static" >&6; }
12339 ac_ext=c
12340 ac_cpp='$CPP $CPPFLAGS'
12341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12345 CC="$lt_save_CC"
12347 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12348 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12349 (test "X$CXX" != "Xg++"))) ; then
12350 ac_ext=cpp
12351 ac_cpp='$CXXCPP $CPPFLAGS'
12352 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12353 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12354 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12356 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12357 if test -z "$CXXCPP"; then
12358 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
12359 $as_echo_n "(cached) " >&6
12360 else
12361 # Double quotes because CXXCPP needs to be expanded
12362 for CXXCPP in "$CXX -E" "/lib/cpp"
12364 ac_preproc_ok=false
12365 for ac_cxx_preproc_warn_flag in '' yes
12367 # Use a header file that comes with gcc, so configuring glibc
12368 # with a fresh cross-compiler works.
12369 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12370 # <limits.h> exists even on freestanding compilers.
12371 # On the NeXT, cc -E runs the code through the compiler's parser,
12372 # not just through cpp. "Syntax error" is here to catch this case.
12373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12374 /* end confdefs.h. */
12375 #ifdef __STDC__
12376 # include <limits.h>
12377 #else
12378 # include <assert.h>
12379 #endif
12380 Syntax error
12381 _ACEOF
12382 if ac_fn_cxx_try_cpp "$LINENO"; then :
12384 else
12385 # Broken: fails on valid input.
12386 continue
12388 rm -f conftest.err conftest.$ac_ext
12390 # OK, works on sane cases. Now check whether nonexistent headers
12391 # can be detected and how.
12392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12393 /* end confdefs.h. */
12394 #include <ac_nonexistent.h>
12395 _ACEOF
12396 if ac_fn_cxx_try_cpp "$LINENO"; then :
12397 # Broken: success on invalid input.
12398 continue
12399 else
12400 # Passes both tests.
12401 ac_preproc_ok=:
12402 break
12404 rm -f conftest.err conftest.$ac_ext
12406 done
12407 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12408 rm -f conftest.err conftest.$ac_ext
12409 if $ac_preproc_ok; then :
12410 break
12413 done
12414 ac_cv_prog_CXXCPP=$CXXCPP
12417 CXXCPP=$ac_cv_prog_CXXCPP
12418 else
12419 ac_cv_prog_CXXCPP=$CXXCPP
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12422 $as_echo "$CXXCPP" >&6; }
12423 ac_preproc_ok=false
12424 for ac_cxx_preproc_warn_flag in '' yes
12426 # Use a header file that comes with gcc, so configuring glibc
12427 # with a fresh cross-compiler works.
12428 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12429 # <limits.h> exists even on freestanding compilers.
12430 # On the NeXT, cc -E runs the code through the compiler's parser,
12431 # not just through cpp. "Syntax error" is here to catch this case.
12432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12433 /* end confdefs.h. */
12434 #ifdef __STDC__
12435 # include <limits.h>
12436 #else
12437 # include <assert.h>
12438 #endif
12439 Syntax error
12440 _ACEOF
12441 if ac_fn_cxx_try_cpp "$LINENO"; then :
12443 else
12444 # Broken: fails on valid input.
12445 continue
12447 rm -f conftest.err conftest.$ac_ext
12449 # OK, works on sane cases. Now check whether nonexistent headers
12450 # can be detected and how.
12451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12452 /* end confdefs.h. */
12453 #include <ac_nonexistent.h>
12454 _ACEOF
12455 if ac_fn_cxx_try_cpp "$LINENO"; then :
12456 # Broken: success on invalid input.
12457 continue
12458 else
12459 # Passes both tests.
12460 ac_preproc_ok=:
12461 break
12463 rm -f conftest.err conftest.$ac_ext
12465 done
12466 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12467 rm -f conftest.err conftest.$ac_ext
12468 if $ac_preproc_ok; then :
12470 else
12471 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12472 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12473 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
12474 See \`config.log' for more details." "$LINENO" 5; }
12477 ac_ext=c
12478 ac_cpp='$CPP $CPPFLAGS'
12479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12483 else
12484 _lt_caught_CXX_error=yes
12487 ac_ext=cpp
12488 ac_cpp='$CXXCPP $CPPFLAGS'
12489 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12490 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12491 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12493 archive_cmds_need_lc_CXX=no
12494 allow_undefined_flag_CXX=
12495 always_export_symbols_CXX=no
12496 archive_expsym_cmds_CXX=
12497 compiler_needs_object_CXX=no
12498 export_dynamic_flag_spec_CXX=
12499 hardcode_direct_CXX=no
12500 hardcode_direct_absolute_CXX=no
12501 hardcode_libdir_flag_spec_CXX=
12502 hardcode_libdir_flag_spec_ld_CXX=
12503 hardcode_libdir_separator_CXX=
12504 hardcode_minus_L_CXX=no
12505 hardcode_shlibpath_var_CXX=unsupported
12506 hardcode_automatic_CXX=no
12507 inherit_rpath_CXX=no
12508 module_cmds_CXX=
12509 module_expsym_cmds_CXX=
12510 link_all_deplibs_CXX=unknown
12511 old_archive_cmds_CXX=$old_archive_cmds
12512 reload_flag_CXX=$reload_flag
12513 reload_cmds_CXX=$reload_cmds
12514 no_undefined_flag_CXX=
12515 whole_archive_flag_spec_CXX=
12516 enable_shared_with_static_runtimes_CXX=no
12518 # Source file extension for C++ test sources.
12519 ac_ext=cpp
12521 # Object file extension for compiled C++ test sources.
12522 objext=o
12523 objext_CXX=$objext
12525 # No sense in running all these tests if we already determined that
12526 # the CXX compiler isn't working. Some variables (like enable_shared)
12527 # are currently assumed to apply to all compilers on this platform,
12528 # and will be corrupted by setting them based on a non-working compiler.
12529 if test "$_lt_caught_CXX_error" != yes; then
12530 # Code to be used in simple compile tests
12531 lt_simple_compile_test_code="int some_variable = 0;"
12533 # Code to be used in simple link tests
12534 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12536 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12543 # If no C compiler was specified, use CC.
12544 LTCC=${LTCC-"$CC"}
12546 # If no C compiler flags were specified, use CFLAGS.
12547 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12549 # Allow CC to be a program name with arguments.
12550 compiler=$CC
12553 # save warnings/boilerplate of simple test code
12554 ac_outfile=conftest.$ac_objext
12555 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12556 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12557 _lt_compiler_boilerplate=`cat conftest.err`
12558 $RM conftest*
12560 ac_outfile=conftest.$ac_objext
12561 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12562 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12563 _lt_linker_boilerplate=`cat conftest.err`
12564 $RM -r conftest*
12567 # Allow CC to be a program name with arguments.
12568 lt_save_CC=$CC
12569 lt_save_LD=$LD
12570 lt_save_GCC=$GCC
12571 GCC=$GXX
12572 lt_save_with_gnu_ld=$with_gnu_ld
12573 lt_save_path_LD=$lt_cv_path_LD
12574 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12575 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12576 else
12577 $as_unset lt_cv_prog_gnu_ld
12579 if test -n "${lt_cv_path_LDCXX+set}"; then
12580 lt_cv_path_LD=$lt_cv_path_LDCXX
12581 else
12582 $as_unset lt_cv_path_LD
12584 test -z "${LDCXX+set}" || LD=$LDCXX
12585 CC=${CXX-"c++"}
12586 compiler=$CC
12587 compiler_CXX=$CC
12588 for cc_temp in $compiler""; do
12589 case $cc_temp in
12590 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12591 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12592 \-*) ;;
12593 *) break;;
12594 esac
12595 done
12596 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12599 if test -n "$compiler"; then
12600 # We don't want -fno-exception when compiling C++ code, so set the
12601 # no_builtin_flag separately
12602 if test "$GXX" = yes; then
12603 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12604 else
12605 lt_prog_compiler_no_builtin_flag_CXX=
12608 if test "$GXX" = yes; then
12609 # Set up default GNU C++ configuration
12613 # Check whether --with-gnu-ld was given.
12614 if test "${with_gnu_ld+set}" = set; then :
12615 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12616 else
12617 with_gnu_ld=no
12620 ac_prog=ld
12621 if test "$GCC" = yes; then
12622 # Check if gcc -print-prog-name=ld gives a path.
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12624 $as_echo_n "checking for ld used by $CC... " >&6; }
12625 case $host in
12626 *-*-mingw*)
12627 # gcc leaves a trailing carriage return which upsets mingw
12628 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12630 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12631 esac
12632 case $ac_prog in
12633 # Accept absolute paths.
12634 [\\/]* | ?:[\\/]*)
12635 re_direlt='/[^/][^/]*/\.\./'
12636 # Canonicalize the pathname of ld
12637 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12638 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12639 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12640 done
12641 test -z "$LD" && LD="$ac_prog"
12644 # If it fails, then pretend we aren't using GCC.
12645 ac_prog=ld
12648 # If it is relative, then search for the first ld in PATH.
12649 with_gnu_ld=unknown
12651 esac
12652 elif test "$with_gnu_ld" = yes; then
12653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12654 $as_echo_n "checking for GNU ld... " >&6; }
12655 else
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12657 $as_echo_n "checking for non-GNU ld... " >&6; }
12659 if test "${lt_cv_path_LD+set}" = set; then :
12660 $as_echo_n "(cached) " >&6
12661 else
12662 if test -z "$LD"; then
12663 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12664 for ac_dir in $PATH; do
12665 IFS="$lt_save_ifs"
12666 test -z "$ac_dir" && ac_dir=.
12667 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12668 lt_cv_path_LD="$ac_dir/$ac_prog"
12669 # Check to see if the program is GNU ld. I'd rather use --version,
12670 # but apparently some variants of GNU ld only accept -v.
12671 # Break only if it was the GNU/non-GNU ld that we prefer.
12672 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12673 *GNU* | *'with BFD'*)
12674 test "$with_gnu_ld" != no && break
12677 test "$with_gnu_ld" != yes && break
12679 esac
12681 done
12682 IFS="$lt_save_ifs"
12683 else
12684 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12688 LD="$lt_cv_path_LD"
12689 if test -n "$LD"; then
12690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12691 $as_echo "$LD" >&6; }
12692 else
12693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12694 $as_echo "no" >&6; }
12696 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12698 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12699 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12700 $as_echo_n "(cached) " >&6
12701 else
12702 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12703 case `$LD -v 2>&1 </dev/null` in
12704 *GNU* | *'with BFD'*)
12705 lt_cv_prog_gnu_ld=yes
12708 lt_cv_prog_gnu_ld=no
12710 esac
12712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12713 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12714 with_gnu_ld=$lt_cv_prog_gnu_ld
12722 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12723 # archiving commands below assume that GNU ld is being used.
12724 if test "$with_gnu_ld" = yes; then
12725 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12726 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'
12728 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12729 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12731 # If archive_cmds runs LD, not CC, wlarc should be empty
12732 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12733 # investigate it a little bit more. (MM)
12734 wlarc='${wl}'
12736 # ancient GNU ld didn't support --whole-archive et. al.
12737 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12738 $GREP 'no-whole-archive' > /dev/null; then
12739 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12740 else
12741 whole_archive_flag_spec_CXX=
12743 else
12744 with_gnu_ld=no
12745 wlarc=
12747 # A generic and very simple default shared library creation
12748 # command for GNU C++ for the case where it uses the native
12749 # linker, instead of GNU ld. If possible, this setting should
12750 # overridden to take advantage of the native linker features on
12751 # the platform it is being used on.
12752 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12755 # Commands to make compiler produce verbose output that lists
12756 # what "hidden" libraries, object files and flags are used when
12757 # linking a shared library.
12758 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12760 else
12761 GXX=no
12762 with_gnu_ld=no
12763 wlarc=
12766 # PORTME: fill in a description of your system's C++ link characteristics
12767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12768 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12769 ld_shlibs_CXX=yes
12770 case $host_os in
12771 aix3*)
12772 # FIXME: insert proper C++ library support
12773 ld_shlibs_CXX=no
12775 aix[4-9]*)
12776 if test "$host_cpu" = ia64; then
12777 # On IA64, the linker does run time linking by default, so we don't
12778 # have to do anything special.
12779 aix_use_runtimelinking=no
12780 exp_sym_flag='-Bexport'
12781 no_entry_flag=""
12782 else
12783 aix_use_runtimelinking=no
12785 # Test if we are trying to use run time linking or normal
12786 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12787 # need to do runtime linking.
12788 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12789 for ld_flag in $LDFLAGS; do
12790 case $ld_flag in
12791 *-brtl*)
12792 aix_use_runtimelinking=yes
12793 break
12795 esac
12796 done
12798 esac
12800 exp_sym_flag='-bexport'
12801 no_entry_flag='-bnoentry'
12804 # When large executables or shared objects are built, AIX ld can
12805 # have problems creating the table of contents. If linking a library
12806 # or program results in "error TOC overflow" add -mminimal-toc to
12807 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12808 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12810 archive_cmds_CXX=''
12811 hardcode_direct_CXX=yes
12812 hardcode_direct_absolute_CXX=yes
12813 hardcode_libdir_separator_CXX=':'
12814 link_all_deplibs_CXX=yes
12815 file_list_spec_CXX='${wl}-f,'
12817 if test "$GXX" = yes; then
12818 case $host_os in aix4.[012]|aix4.[012].*)
12819 # We only want to do this on AIX 4.2 and lower, the check
12820 # below for broken collect2 doesn't work under 4.3+
12821 collect2name=`${CC} -print-prog-name=collect2`
12822 if test -f "$collect2name" &&
12823 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12824 then
12825 # We have reworked collect2
12827 else
12828 # We have old collect2
12829 hardcode_direct_CXX=unsupported
12830 # It fails to find uninstalled libraries when the uninstalled
12831 # path is not listed in the libpath. Setting hardcode_minus_L
12832 # to unsupported forces relinking
12833 hardcode_minus_L_CXX=yes
12834 hardcode_libdir_flag_spec_CXX='-L$libdir'
12835 hardcode_libdir_separator_CXX=
12837 esac
12838 shared_flag='-shared'
12839 if test "$aix_use_runtimelinking" = yes; then
12840 shared_flag="$shared_flag "'${wl}-G'
12842 else
12843 # not using gcc
12844 if test "$host_cpu" = ia64; then
12845 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12846 # chokes on -Wl,-G. The following line is correct:
12847 shared_flag='-G'
12848 else
12849 if test "$aix_use_runtimelinking" = yes; then
12850 shared_flag='${wl}-G'
12851 else
12852 shared_flag='${wl}-bM:SRE'
12857 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12858 # It seems that -bexpall does not export symbols beginning with
12859 # underscore (_), so it is better to generate a list of symbols to
12860 # export.
12861 always_export_symbols_CXX=yes
12862 if test "$aix_use_runtimelinking" = yes; then
12863 # Warning - without using the other runtime loading flags (-brtl),
12864 # -berok will link without error, but may produce a broken library.
12865 allow_undefined_flag_CXX='-berok'
12866 # Determine the default libpath from the value encoded in an empty
12867 # executable.
12868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12869 /* end confdefs.h. */
12872 main ()
12876 return 0;
12878 _ACEOF
12879 if ac_fn_cxx_try_link "$LINENO"; then :
12881 lt_aix_libpath_sed='
12882 /Import File Strings/,/^$/ {
12883 /^0/ {
12884 s/^0 *\(.*\)$/\1/
12888 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12889 # Check for a 64-bit object if we didn't find anything.
12890 if test -z "$aix_libpath"; then
12891 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12894 rm -f core conftest.err conftest.$ac_objext \
12895 conftest$ac_exeext conftest.$ac_ext
12896 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12898 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12900 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"
12901 else
12902 if test "$host_cpu" = ia64; then
12903 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12904 allow_undefined_flag_CXX="-z nodefs"
12905 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"
12906 else
12907 # Determine the default libpath from the value encoded in an
12908 # empty executable.
12909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12910 /* end confdefs.h. */
12913 main ()
12917 return 0;
12919 _ACEOF
12920 if ac_fn_cxx_try_link "$LINENO"; then :
12922 lt_aix_libpath_sed='
12923 /Import File Strings/,/^$/ {
12924 /^0/ {
12925 s/^0 *\(.*\)$/\1/
12929 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12930 # Check for a 64-bit object if we didn't find anything.
12931 if test -z "$aix_libpath"; then
12932 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12935 rm -f core conftest.err conftest.$ac_objext \
12936 conftest$ac_exeext conftest.$ac_ext
12937 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12939 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12940 # Warning - without using the other run time loading flags,
12941 # -berok will link without error, but may produce a broken library.
12942 no_undefined_flag_CXX=' ${wl}-bernotok'
12943 allow_undefined_flag_CXX=' ${wl}-berok'
12944 if test "$with_gnu_ld" = yes; then
12945 # We only use this code for GNU lds that support --whole-archive.
12946 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12947 else
12948 # Exported symbols can be pulled into shared objects from archives
12949 whole_archive_flag_spec_CXX='$convenience'
12951 archive_cmds_need_lc_CXX=yes
12952 # This is similar to how AIX traditionally builds its shared
12953 # libraries.
12954 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'
12959 beos*)
12960 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12961 allow_undefined_flag_CXX=unsupported
12962 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12963 # support --undefined. This deserves some investigation. FIXME
12964 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12965 else
12966 ld_shlibs_CXX=no
12970 chorus*)
12971 case $cc_basename in
12973 # FIXME: insert proper C++ library support
12974 ld_shlibs_CXX=no
12976 esac
12979 cygwin* | mingw* | pw32* | cegcc*)
12980 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12981 # as there is no search path for DLLs.
12982 hardcode_libdir_flag_spec_CXX='-L$libdir'
12983 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12984 allow_undefined_flag_CXX=unsupported
12985 always_export_symbols_CXX=no
12986 enable_shared_with_static_runtimes_CXX=yes
12988 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12989 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'
12990 # If the export-symbols file already is a .def file (1st line
12991 # is EXPORTS), use it as is; otherwise, prepend...
12992 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12993 cp $export_symbols $output_objdir/$soname.def;
12994 else
12995 echo EXPORTS > $output_objdir/$soname.def;
12996 cat $export_symbols >> $output_objdir/$soname.def;
12998 $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'
12999 else
13000 ld_shlibs_CXX=no
13003 darwin* | rhapsody*)
13006 archive_cmds_need_lc_CXX=no
13007 hardcode_direct_CXX=no
13008 hardcode_automatic_CXX=yes
13009 hardcode_shlibpath_var_CXX=unsupported
13010 if test "$lt_cv_ld_force_load" = "yes"; then
13011 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\"`'
13012 else
13013 whole_archive_flag_spec_CXX=''
13015 link_all_deplibs_CXX=yes
13016 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13017 case $cc_basename in
13018 ifort*) _lt_dar_can_shared=yes ;;
13019 *) _lt_dar_can_shared=$GCC ;;
13020 esac
13021 if test "$_lt_dar_can_shared" = "yes"; then
13022 output_verbose_link_cmd=func_echo_all
13023 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}"
13024 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13025 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}"
13026 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}"
13027 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13028 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}"
13029 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}"
13032 else
13033 ld_shlibs_CXX=no
13038 dgux*)
13039 case $cc_basename in
13040 ec++*)
13041 # FIXME: insert proper C++ library support
13042 ld_shlibs_CXX=no
13044 ghcx*)
13045 # Green Hills C++ Compiler
13046 # FIXME: insert proper C++ library support
13047 ld_shlibs_CXX=no
13050 # FIXME: insert proper C++ library support
13051 ld_shlibs_CXX=no
13053 esac
13056 freebsd2.*)
13057 # C++ shared libraries reported to be fairly broken before
13058 # switch to ELF
13059 ld_shlibs_CXX=no
13062 freebsd-elf*)
13063 archive_cmds_need_lc_CXX=no
13066 freebsd* | dragonfly*)
13067 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13068 # conventions
13069 ld_shlibs_CXX=yes
13072 gnu*)
13075 haiku*)
13076 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13077 link_all_deplibs_CXX=yes
13080 hpux9*)
13081 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13082 hardcode_libdir_separator_CXX=:
13083 export_dynamic_flag_spec_CXX='${wl}-E'
13084 hardcode_direct_CXX=yes
13085 hardcode_minus_L_CXX=yes # Not in the search PATH,
13086 # but as the default
13087 # location of the library.
13089 case $cc_basename in
13090 CC*)
13091 # FIXME: insert proper C++ library support
13092 ld_shlibs_CXX=no
13094 aCC*)
13095 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'
13096 # Commands to make compiler produce verbose output that lists
13097 # what "hidden" libraries, object files and flags are used when
13098 # linking a shared library.
13100 # There doesn't appear to be a way to prevent this compiler from
13101 # explicitly linking system object files so we need to strip them
13102 # from the output so that they don't get included in the library
13103 # dependencies.
13104 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"'
13107 if test "$GXX" = yes; then
13108 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'
13109 else
13110 # FIXME: insert proper C++ library support
13111 ld_shlibs_CXX=no
13114 esac
13117 hpux10*|hpux11*)
13118 if test $with_gnu_ld = no; then
13119 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13120 hardcode_libdir_separator_CXX=:
13122 case $host_cpu in
13123 hppa*64*|ia64*)
13126 export_dynamic_flag_spec_CXX='${wl}-E'
13128 esac
13130 case $host_cpu in
13131 hppa*64*|ia64*)
13132 hardcode_direct_CXX=no
13133 hardcode_shlibpath_var_CXX=no
13136 hardcode_direct_CXX=yes
13137 hardcode_direct_absolute_CXX=yes
13138 hardcode_minus_L_CXX=yes # Not in the search PATH,
13139 # but as the default
13140 # location of the library.
13142 esac
13144 case $cc_basename in
13145 CC*)
13146 # FIXME: insert proper C++ library support
13147 ld_shlibs_CXX=no
13149 aCC*)
13150 case $host_cpu in
13151 hppa*64*)
13152 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13154 ia64*)
13155 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13158 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13160 esac
13161 # Commands to make compiler produce verbose output that lists
13162 # what "hidden" libraries, object files and flags are used when
13163 # linking a shared library.
13165 # There doesn't appear to be a way to prevent this compiler from
13166 # explicitly linking system object files so we need to strip them
13167 # from the output so that they don't get included in the library
13168 # dependencies.
13169 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"'
13172 if test "$GXX" = yes; then
13173 if test $with_gnu_ld = no; then
13174 case $host_cpu in
13175 hppa*64*)
13176 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13178 ia64*)
13179 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13182 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'
13184 esac
13186 else
13187 # FIXME: insert proper C++ library support
13188 ld_shlibs_CXX=no
13191 esac
13194 interix[3-9]*)
13195 hardcode_direct_CXX=no
13196 hardcode_shlibpath_var_CXX=no
13197 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13198 export_dynamic_flag_spec_CXX='${wl}-E'
13199 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13200 # Instead, shared libraries are loaded at an image base (0x10000000 by
13201 # default) and relocated if they conflict, which is a slow very memory
13202 # consuming and fragmenting process. To avoid this, we pick a random,
13203 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13204 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13205 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'
13206 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'
13208 irix5* | irix6*)
13209 case $cc_basename in
13210 CC*)
13211 # SGI C++
13212 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'
13214 # Archives containing C++ object files must be created using
13215 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13216 # necessary to make sure instantiated templates are included
13217 # in the archive.
13218 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13221 if test "$GXX" = yes; then
13222 if test "$with_gnu_ld" = no; then
13223 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'
13224 else
13225 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'
13228 link_all_deplibs_CXX=yes
13230 esac
13231 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13232 hardcode_libdir_separator_CXX=:
13233 inherit_rpath_CXX=yes
13236 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13237 case $cc_basename in
13238 KCC*)
13239 # Kuck and Associates, Inc. (KAI) C++ Compiler
13241 # KCC will only create a shared library if the output file
13242 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13243 # to its proper name (with version) after linking.
13244 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'
13245 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'
13246 # Commands to make compiler produce verbose output that lists
13247 # what "hidden" libraries, object files and flags are used when
13248 # linking a shared library.
13250 # There doesn't appear to be a way to prevent this compiler from
13251 # explicitly linking system object files so we need to strip them
13252 # from the output so that they don't get included in the library
13253 # dependencies.
13254 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"'
13256 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13257 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13259 # Archives containing C++ object files must be created using
13260 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13261 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13263 icpc* | ecpc* )
13264 # Intel C++
13265 with_gnu_ld=yes
13266 # version 8.0 and above of icpc choke on multiply defined symbols
13267 # if we add $predep_objects and $postdep_objects, however 7.1 and
13268 # earlier do not add the objects themselves.
13269 case `$CC -V 2>&1` in
13270 *"Version 7."*)
13271 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13272 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'
13274 *) # Version 8.0 or newer
13275 tmp_idyn=
13276 case $host_cpu in
13277 ia64*) tmp_idyn=' -i_dynamic';;
13278 esac
13279 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13280 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'
13282 esac
13283 archive_cmds_need_lc_CXX=no
13284 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13285 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13286 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13288 pgCC* | pgcpp*)
13289 # Portland Group C++ compiler
13290 case `$CC -V` in
13291 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13292 prelink_cmds_CXX='tpldir=Template.dir~
13293 rm -rf $tpldir~
13294 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13295 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13296 old_archive_cmds_CXX='tpldir=Template.dir~
13297 rm -rf $tpldir~
13298 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13299 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13300 $RANLIB $oldlib'
13301 archive_cmds_CXX='tpldir=Template.dir~
13302 rm -rf $tpldir~
13303 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13304 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13305 archive_expsym_cmds_CXX='tpldir=Template.dir~
13306 rm -rf $tpldir~
13307 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13308 $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'
13310 *) # Version 6 and above use weak symbols
13311 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13312 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'
13314 esac
13316 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13317 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13318 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'
13320 cxx*)
13321 # Compaq C++
13322 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13323 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'
13325 runpath_var=LD_RUN_PATH
13326 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13327 hardcode_libdir_separator_CXX=:
13329 # Commands to make compiler produce verbose output that lists
13330 # what "hidden" libraries, object files and flags are used when
13331 # linking a shared library.
13333 # There doesn't appear to be a way to prevent this compiler from
13334 # explicitly linking system object files so we need to strip them
13335 # from the output so that they don't get included in the library
13336 # dependencies.
13337 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'
13339 xl* | mpixl* | bgxl*)
13340 # IBM XL 8.0 on PPC, with GNU ld
13341 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13342 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13343 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13344 if test "x$supports_anon_versioning" = xyes; then
13345 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13346 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13347 echo "local: *; };" >> $output_objdir/$libname.ver~
13348 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13352 case `$CC -V 2>&1 | sed 5q` in
13353 *Sun\ C*)
13354 # Sun C++ 5.9
13355 no_undefined_flag_CXX=' -zdefs'
13356 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13357 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'
13358 hardcode_libdir_flag_spec_CXX='-R$libdir'
13359 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'
13360 compiler_needs_object_CXX=yes
13362 # Not sure whether something based on
13363 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13364 # would be better.
13365 output_verbose_link_cmd='func_echo_all'
13367 # Archives containing C++ object files must be created using
13368 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13369 # necessary to make sure instantiated templates are included
13370 # in the archive.
13371 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13373 esac
13375 esac
13378 lynxos*)
13379 # FIXME: insert proper C++ library support
13380 ld_shlibs_CXX=no
13383 m88k*)
13384 # FIXME: insert proper C++ library support
13385 ld_shlibs_CXX=no
13388 mvs*)
13389 case $cc_basename in
13390 cxx*)
13391 # FIXME: insert proper C++ library support
13392 ld_shlibs_CXX=no
13395 # FIXME: insert proper C++ library support
13396 ld_shlibs_CXX=no
13398 esac
13401 netbsd*)
13402 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13403 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13404 wlarc=
13405 hardcode_libdir_flag_spec_CXX='-R$libdir'
13406 hardcode_direct_CXX=yes
13407 hardcode_shlibpath_var_CXX=no
13409 # Workaround some broken pre-1.5 toolchains
13410 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13413 *nto* | *qnx*)
13414 ld_shlibs_CXX=yes
13417 openbsd2*)
13418 # C++ shared libraries are fairly broken
13419 ld_shlibs_CXX=no
13422 openbsd*)
13423 if test -f /usr/libexec/ld.so; then
13424 hardcode_direct_CXX=yes
13425 hardcode_shlibpath_var_CXX=no
13426 hardcode_direct_absolute_CXX=yes
13427 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13428 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13429 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13430 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13431 export_dynamic_flag_spec_CXX='${wl}-E'
13432 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13434 output_verbose_link_cmd=func_echo_all
13435 else
13436 ld_shlibs_CXX=no
13440 osf3* | osf4* | osf5*)
13441 case $cc_basename in
13442 KCC*)
13443 # Kuck and Associates, Inc. (KAI) C++ Compiler
13445 # KCC will only create a shared library if the output file
13446 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13447 # to its proper name (with version) after linking.
13448 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'
13450 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13451 hardcode_libdir_separator_CXX=:
13453 # Archives containing C++ object files must be created using
13454 # the KAI C++ compiler.
13455 case $host in
13456 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13457 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13458 esac
13460 RCC*)
13461 # Rational C++ 2.4.1
13462 # FIXME: insert proper C++ library support
13463 ld_shlibs_CXX=no
13465 cxx*)
13466 case $host in
13467 osf3*)
13468 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13469 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'
13470 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13473 allow_undefined_flag_CXX=' -expect_unresolved \*'
13474 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'
13475 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13476 echo "-hidden">> $lib.exp~
13477 $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~
13478 $RM $lib.exp'
13479 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13481 esac
13483 hardcode_libdir_separator_CXX=:
13485 # Commands to make compiler produce verbose output that lists
13486 # what "hidden" libraries, object files and flags are used when
13487 # linking a shared library.
13489 # There doesn't appear to be a way to prevent this compiler from
13490 # explicitly linking system object files so we need to strip them
13491 # from the output so that they don't get included in the library
13492 # dependencies.
13493 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"'
13496 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13497 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13498 case $host in
13499 osf3*)
13500 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'
13503 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'
13505 esac
13507 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13508 hardcode_libdir_separator_CXX=:
13510 # Commands to make compiler produce verbose output that lists
13511 # what "hidden" libraries, object files and flags are used when
13512 # linking a shared library.
13513 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13515 else
13516 # FIXME: insert proper C++ library support
13517 ld_shlibs_CXX=no
13520 esac
13523 psos*)
13524 # FIXME: insert proper C++ library support
13525 ld_shlibs_CXX=no
13528 sunos4*)
13529 case $cc_basename in
13530 CC*)
13531 # Sun C++ 4.x
13532 # FIXME: insert proper C++ library support
13533 ld_shlibs_CXX=no
13535 lcc*)
13536 # Lucid
13537 # FIXME: insert proper C++ library support
13538 ld_shlibs_CXX=no
13541 # FIXME: insert proper C++ library support
13542 ld_shlibs_CXX=no
13544 esac
13547 solaris*)
13548 case $cc_basename in
13549 CC*)
13550 # Sun C++ 4.2, 5.x and Centerline C++
13551 archive_cmds_need_lc_CXX=yes
13552 no_undefined_flag_CXX=' -zdefs'
13553 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13554 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13555 $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'
13557 hardcode_libdir_flag_spec_CXX='-R$libdir'
13558 hardcode_shlibpath_var_CXX=no
13559 case $host_os in
13560 solaris2.[0-5] | solaris2.[0-5].*) ;;
13562 # The compiler driver will combine and reorder linker options,
13563 # but understands `-z linker_flag'.
13564 # Supported since Solaris 2.6 (maybe 2.5.1?)
13565 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13567 esac
13568 link_all_deplibs_CXX=yes
13570 output_verbose_link_cmd='func_echo_all'
13572 # Archives containing C++ object files must be created using
13573 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13574 # necessary to make sure instantiated templates are included
13575 # in the archive.
13576 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13578 gcx*)
13579 # Green Hills C++ Compiler
13580 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13582 # The C++ compiler must be used to create the archive.
13583 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13586 # GNU C++ compiler with Solaris linker
13587 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13588 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13589 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13590 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13591 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13592 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13594 # Commands to make compiler produce verbose output that lists
13595 # what "hidden" libraries, object files and flags are used when
13596 # linking a shared library.
13597 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13598 else
13599 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13600 # platform.
13601 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13602 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13603 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13605 # Commands to make compiler produce verbose output that lists
13606 # what "hidden" libraries, object files and flags are used when
13607 # linking a shared library.
13608 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13611 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13612 case $host_os in
13613 solaris2.[0-5] | solaris2.[0-5].*) ;;
13615 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13617 esac
13620 esac
13623 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13624 no_undefined_flag_CXX='${wl}-z,text'
13625 archive_cmds_need_lc_CXX=no
13626 hardcode_shlibpath_var_CXX=no
13627 runpath_var='LD_RUN_PATH'
13629 case $cc_basename in
13630 CC*)
13631 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13632 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13635 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13636 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13638 esac
13641 sysv5* | sco3.2v5* | sco5v6*)
13642 # Note: We can NOT use -z defs as we might desire, because we do not
13643 # link with -lc, and that would cause any symbols used from libc to
13644 # always be unresolved, which means just about no library would
13645 # ever link correctly. If we're not using GNU ld we use -z text
13646 # though, which does catch some bad symbols but isn't as heavy-handed
13647 # as -z defs.
13648 no_undefined_flag_CXX='${wl}-z,text'
13649 allow_undefined_flag_CXX='${wl}-z,nodefs'
13650 archive_cmds_need_lc_CXX=no
13651 hardcode_shlibpath_var_CXX=no
13652 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13653 hardcode_libdir_separator_CXX=':'
13654 link_all_deplibs_CXX=yes
13655 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13656 runpath_var='LD_RUN_PATH'
13658 case $cc_basename in
13659 CC*)
13660 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13661 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13662 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13663 '"$old_archive_cmds_CXX"
13664 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13665 '"$reload_cmds_CXX"
13668 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13669 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13671 esac
13674 tandem*)
13675 case $cc_basename in
13676 NCC*)
13677 # NonStop-UX NCC 3.20
13678 # FIXME: insert proper C++ library support
13679 ld_shlibs_CXX=no
13682 # FIXME: insert proper C++ library support
13683 ld_shlibs_CXX=no
13685 esac
13688 vxworks*)
13689 # FIXME: insert proper C++ library support
13690 ld_shlibs_CXX=no
13694 # FIXME: insert proper C++ library support
13695 ld_shlibs_CXX=no
13697 esac
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13700 $as_echo "$ld_shlibs_CXX" >&6; }
13701 test "$ld_shlibs_CXX" = no && can_build_shared=no
13703 GCC_CXX="$GXX"
13704 LD_CXX="$LD"
13706 ## CAVEAT EMPTOR:
13707 ## There is no encapsulation within the following macros, do not change
13708 ## the running order or otherwise move them around unless you know exactly
13709 ## what you are doing...
13710 # Dependencies to place before and after the object being linked:
13711 predep_objects_CXX=
13712 postdep_objects_CXX=
13713 predeps_CXX=
13714 postdeps_CXX=
13715 compiler_lib_search_path_CXX=
13717 cat > conftest.$ac_ext <<_LT_EOF
13718 class Foo
13720 public:
13721 Foo (void) { a = 0; }
13722 private:
13723 int a;
13725 _LT_EOF
13727 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13728 (eval $ac_compile) 2>&5
13729 ac_status=$?
13730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13731 test $ac_status = 0; }; then
13732 # Parse the compiler output and extract the necessary
13733 # objects, libraries and library flags.
13735 # Sentinel used to keep track of whether or not we are before
13736 # the conftest object file.
13737 pre_test_object_deps_done=no
13739 for p in `eval "$output_verbose_link_cmd"`; do
13740 case $p in
13742 -L* | -R* | -l*)
13743 # Some compilers place space between "-{L,R}" and the path.
13744 # Remove the space.
13745 if test $p = "-L" ||
13746 test $p = "-R"; then
13747 prev=$p
13748 continue
13749 else
13750 prev=
13753 if test "$pre_test_object_deps_done" = no; then
13754 case $p in
13755 -L* | -R*)
13756 # Internal compiler library paths should come after those
13757 # provided the user. The postdeps already come after the
13758 # user supplied libs so there is no need to process them.
13759 if test -z "$compiler_lib_search_path_CXX"; then
13760 compiler_lib_search_path_CXX="${prev}${p}"
13761 else
13762 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13765 # The "-l" case would never come before the object being
13766 # linked, so don't bother handling this case.
13767 esac
13768 else
13769 if test -z "$postdeps_CXX"; then
13770 postdeps_CXX="${prev}${p}"
13771 else
13772 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13777 *.$objext)
13778 # This assumes that the test object file only shows up
13779 # once in the compiler output.
13780 if test "$p" = "conftest.$objext"; then
13781 pre_test_object_deps_done=yes
13782 continue
13785 if test "$pre_test_object_deps_done" = no; then
13786 if test -z "$predep_objects_CXX"; then
13787 predep_objects_CXX="$p"
13788 else
13789 predep_objects_CXX="$predep_objects_CXX $p"
13791 else
13792 if test -z "$postdep_objects_CXX"; then
13793 postdep_objects_CXX="$p"
13794 else
13795 postdep_objects_CXX="$postdep_objects_CXX $p"
13800 *) ;; # Ignore the rest.
13802 esac
13803 done
13805 # Clean up.
13806 rm -f a.out a.exe
13807 else
13808 echo "libtool.m4: error: problem compiling CXX test program"
13811 $RM -f confest.$objext
13813 # PORTME: override above test on systems where it is broken
13814 case $host_os in
13815 interix[3-9]*)
13816 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13817 # hack all around it, let's just trust "g++" to DTRT.
13818 predep_objects_CXX=
13819 postdep_objects_CXX=
13820 postdeps_CXX=
13823 linux*)
13824 case `$CC -V 2>&1 | sed 5q` in
13825 *Sun\ C*)
13826 # Sun C++ 5.9
13828 # The more standards-conforming stlport4 library is
13829 # incompatible with the Cstd library. Avoid specifying
13830 # it if it's in CXXFLAGS. Ignore libCrun as
13831 # -library=stlport4 depends on it.
13832 case " $CXX $CXXFLAGS " in
13833 *" -library=stlport4 "*)
13834 solaris_use_stlport4=yes
13836 esac
13838 if test "$solaris_use_stlport4" != yes; then
13839 postdeps_CXX='-library=Cstd -library=Crun'
13842 esac
13845 solaris*)
13846 case $cc_basename in
13847 CC*)
13848 # The more standards-conforming stlport4 library is
13849 # incompatible with the Cstd library. Avoid specifying
13850 # it if it's in CXXFLAGS. Ignore libCrun as
13851 # -library=stlport4 depends on it.
13852 case " $CXX $CXXFLAGS " in
13853 *" -library=stlport4 "*)
13854 solaris_use_stlport4=yes
13856 esac
13858 # Adding this requires a known-good setup of shared libraries for
13859 # Sun compiler versions before 5.6, else PIC objects from an old
13860 # archive will be linked into the output, leading to subtle bugs.
13861 if test "$solaris_use_stlport4" != yes; then
13862 postdeps_CXX='-library=Cstd -library=Crun'
13865 esac
13867 esac
13870 case " $postdeps_CXX " in
13871 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13872 esac
13873 compiler_lib_search_dirs_CXX=
13874 if test -n "${compiler_lib_search_path_CXX}"; then
13875 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13908 lt_prog_compiler_wl_CXX=
13909 lt_prog_compiler_pic_CXX=
13910 lt_prog_compiler_static_CXX=
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13913 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13915 # C++ specific cases for pic, static, wl, etc.
13916 if test "$GXX" = yes; then
13917 lt_prog_compiler_wl_CXX='-Wl,'
13918 lt_prog_compiler_static_CXX='-static'
13920 case $host_os in
13921 aix*)
13922 # All AIX code is PIC.
13923 if test "$host_cpu" = ia64; then
13924 # AIX 5 now supports IA64 processor
13925 lt_prog_compiler_static_CXX='-Bstatic'
13927 lt_prog_compiler_pic_CXX='-fPIC'
13930 amigaos*)
13931 case $host_cpu in
13932 powerpc)
13933 # see comment about AmigaOS4 .so support
13934 lt_prog_compiler_pic_CXX='-fPIC'
13936 m68k)
13937 # FIXME: we need at least 68020 code to build shared libraries, but
13938 # adding the `-m68020' flag to GCC prevents building anything better,
13939 # like `-m68040'.
13940 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13942 esac
13945 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13946 # PIC is the default for these OSes.
13948 mingw* | cygwin* | os2* | pw32* | cegcc*)
13949 # This hack is so that the source file can tell whether it is being
13950 # built for inclusion in a dll (and should export symbols for example).
13951 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13952 # (--disable-auto-import) libraries
13953 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13955 darwin* | rhapsody*)
13956 # PIC is the default on this platform
13957 # Common symbols not allowed in MH_DYLIB files
13958 lt_prog_compiler_pic_CXX='-fno-common'
13960 *djgpp*)
13961 # DJGPP does not support shared libraries at all
13962 lt_prog_compiler_pic_CXX=
13964 haiku*)
13965 # PIC is the default for Haiku.
13966 # The "-static" flag exists, but is broken.
13967 lt_prog_compiler_static_CXX=
13969 interix[3-9]*)
13970 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13971 # Instead, we relocate shared libraries at runtime.
13973 sysv4*MP*)
13974 if test -d /usr/nec; then
13975 lt_prog_compiler_pic_CXX=-Kconform_pic
13978 hpux*)
13979 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13980 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13981 # sets the default TLS model and affects inlining.
13982 case $host_cpu in
13983 hppa*64*)
13986 lt_prog_compiler_pic_CXX='-fPIC'
13988 esac
13990 *qnx* | *nto*)
13991 # QNX uses GNU C++, but need to define -shared option too, otherwise
13992 # it will coredump.
13993 lt_prog_compiler_pic_CXX='-fPIC -shared'
13996 lt_prog_compiler_pic_CXX='-fPIC'
13998 esac
13999 else
14000 case $host_os in
14001 aix[4-9]*)
14002 # All AIX code is PIC.
14003 if test "$host_cpu" = ia64; then
14004 # AIX 5 now supports IA64 processor
14005 lt_prog_compiler_static_CXX='-Bstatic'
14006 else
14007 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14010 chorus*)
14011 case $cc_basename in
14012 cxch68*)
14013 # Green Hills C++ Compiler
14014 # _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"
14016 esac
14018 dgux*)
14019 case $cc_basename in
14020 ec++*)
14021 lt_prog_compiler_pic_CXX='-KPIC'
14023 ghcx*)
14024 # Green Hills C++ Compiler
14025 lt_prog_compiler_pic_CXX='-pic'
14029 esac
14031 freebsd* | dragonfly*)
14032 # FreeBSD uses GNU C++
14034 hpux9* | hpux10* | hpux11*)
14035 case $cc_basename in
14036 CC*)
14037 lt_prog_compiler_wl_CXX='-Wl,'
14038 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14039 if test "$host_cpu" != ia64; then
14040 lt_prog_compiler_pic_CXX='+Z'
14043 aCC*)
14044 lt_prog_compiler_wl_CXX='-Wl,'
14045 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14046 case $host_cpu in
14047 hppa*64*|ia64*)
14048 # +Z the default
14051 lt_prog_compiler_pic_CXX='+Z'
14053 esac
14057 esac
14059 interix*)
14060 # This is c89, which is MS Visual C++ (no shared libs)
14061 # Anyone wants to do a port?
14063 irix5* | irix6* | nonstopux*)
14064 case $cc_basename in
14065 CC*)
14066 lt_prog_compiler_wl_CXX='-Wl,'
14067 lt_prog_compiler_static_CXX='-non_shared'
14068 # CC pic flag -KPIC is the default.
14072 esac
14074 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14075 case $cc_basename in
14076 KCC*)
14077 # KAI C++ Compiler
14078 lt_prog_compiler_wl_CXX='--backend -Wl,'
14079 lt_prog_compiler_pic_CXX='-fPIC'
14081 ecpc* )
14082 # old Intel C++ for x86_64 which still supported -KPIC.
14083 lt_prog_compiler_wl_CXX='-Wl,'
14084 lt_prog_compiler_pic_CXX='-KPIC'
14085 lt_prog_compiler_static_CXX='-static'
14087 icpc* )
14088 # Intel C++, used to be incompatible with GCC.
14089 # ICC 10 doesn't accept -KPIC any more.
14090 lt_prog_compiler_wl_CXX='-Wl,'
14091 lt_prog_compiler_pic_CXX='-fPIC'
14092 lt_prog_compiler_static_CXX='-static'
14094 pgCC* | pgcpp*)
14095 # Portland Group C++ compiler
14096 lt_prog_compiler_wl_CXX='-Wl,'
14097 lt_prog_compiler_pic_CXX='-fpic'
14098 lt_prog_compiler_static_CXX='-Bstatic'
14100 cxx*)
14101 # Compaq C++
14102 # Make sure the PIC flag is empty. It appears that all Alpha
14103 # Linux and Compaq Tru64 Unix objects are PIC.
14104 lt_prog_compiler_pic_CXX=
14105 lt_prog_compiler_static_CXX='-non_shared'
14107 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14108 # IBM XL 8.0, 9.0 on PPC and BlueGene
14109 lt_prog_compiler_wl_CXX='-Wl,'
14110 lt_prog_compiler_pic_CXX='-qpic'
14111 lt_prog_compiler_static_CXX='-qstaticlink'
14114 case `$CC -V 2>&1 | sed 5q` in
14115 *Sun\ C*)
14116 # Sun C++ 5.9
14117 lt_prog_compiler_pic_CXX='-KPIC'
14118 lt_prog_compiler_static_CXX='-Bstatic'
14119 lt_prog_compiler_wl_CXX='-Qoption ld '
14121 esac
14123 esac
14125 lynxos*)
14127 m88k*)
14129 mvs*)
14130 case $cc_basename in
14131 cxx*)
14132 lt_prog_compiler_pic_CXX='-W c,exportall'
14136 esac
14138 netbsd*)
14140 *qnx* | *nto*)
14141 # QNX uses GNU C++, but need to define -shared option too, otherwise
14142 # it will coredump.
14143 lt_prog_compiler_pic_CXX='-fPIC -shared'
14145 osf3* | osf4* | osf5*)
14146 case $cc_basename in
14147 KCC*)
14148 lt_prog_compiler_wl_CXX='--backend -Wl,'
14150 RCC*)
14151 # Rational C++ 2.4.1
14152 lt_prog_compiler_pic_CXX='-pic'
14154 cxx*)
14155 # Digital/Compaq C++
14156 lt_prog_compiler_wl_CXX='-Wl,'
14157 # Make sure the PIC flag is empty. It appears that all Alpha
14158 # Linux and Compaq Tru64 Unix objects are PIC.
14159 lt_prog_compiler_pic_CXX=
14160 lt_prog_compiler_static_CXX='-non_shared'
14164 esac
14166 psos*)
14168 solaris*)
14169 case $cc_basename in
14170 CC*)
14171 # Sun C++ 4.2, 5.x and Centerline C++
14172 lt_prog_compiler_pic_CXX='-KPIC'
14173 lt_prog_compiler_static_CXX='-Bstatic'
14174 lt_prog_compiler_wl_CXX='-Qoption ld '
14176 gcx*)
14177 # Green Hills C++ Compiler
14178 lt_prog_compiler_pic_CXX='-PIC'
14182 esac
14184 sunos4*)
14185 case $cc_basename in
14186 CC*)
14187 # Sun C++ 4.x
14188 lt_prog_compiler_pic_CXX='-pic'
14189 lt_prog_compiler_static_CXX='-Bstatic'
14191 lcc*)
14192 # Lucid
14193 lt_prog_compiler_pic_CXX='-pic'
14197 esac
14199 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14200 case $cc_basename in
14201 CC*)
14202 lt_prog_compiler_wl_CXX='-Wl,'
14203 lt_prog_compiler_pic_CXX='-KPIC'
14204 lt_prog_compiler_static_CXX='-Bstatic'
14206 esac
14208 tandem*)
14209 case $cc_basename in
14210 NCC*)
14211 # NonStop-UX NCC 3.20
14212 lt_prog_compiler_pic_CXX='-KPIC'
14216 esac
14218 vxworks*)
14221 lt_prog_compiler_can_build_shared_CXX=no
14223 esac
14226 case $host_os in
14227 # For platforms which do not support PIC, -DPIC is meaningless:
14228 *djgpp*)
14229 lt_prog_compiler_pic_CXX=
14232 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14234 esac
14235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14236 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14241 # Check to make sure the PIC flag actually works.
14243 if test -n "$lt_prog_compiler_pic_CXX"; then
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14245 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14246 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
14247 $as_echo_n "(cached) " >&6
14248 else
14249 lt_cv_prog_compiler_pic_works_CXX=no
14250 ac_outfile=conftest.$ac_objext
14251 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14252 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14253 # Insert the option either (1) after the last *FLAGS variable, or
14254 # (2) before a word containing "conftest.", or (3) at the end.
14255 # Note that $ac_compile itself does not contain backslashes and begins
14256 # with a dollar sign (not a hyphen), so the echo should work correctly.
14257 # The option is referenced via a variable to avoid confusing sed.
14258 lt_compile=`echo "$ac_compile" | $SED \
14259 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14260 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14261 -e 's:$: $lt_compiler_flag:'`
14262 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14263 (eval "$lt_compile" 2>conftest.err)
14264 ac_status=$?
14265 cat conftest.err >&5
14266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14267 if (exit $ac_status) && test -s "$ac_outfile"; then
14268 # The compiler can only warn and ignore the option if not recognized
14269 # So say no if there are warnings other than the usual output.
14270 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14271 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14272 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14273 lt_cv_prog_compiler_pic_works_CXX=yes
14276 $RM conftest*
14279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14280 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14282 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14283 case $lt_prog_compiler_pic_CXX in
14284 "" | " "*) ;;
14285 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14286 esac
14287 else
14288 lt_prog_compiler_pic_CXX=
14289 lt_prog_compiler_can_build_shared_CXX=no
14297 # Check to make sure the static flag actually works.
14299 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14301 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14302 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
14303 $as_echo_n "(cached) " >&6
14304 else
14305 lt_cv_prog_compiler_static_works_CXX=no
14306 save_LDFLAGS="$LDFLAGS"
14307 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14308 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14309 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14310 # The linker can only warn and ignore the option if not recognized
14311 # So say no if there are warnings
14312 if test -s conftest.err; then
14313 # Append any errors to the config.log.
14314 cat conftest.err 1>&5
14315 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14316 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14317 if diff conftest.exp conftest.er2 >/dev/null; then
14318 lt_cv_prog_compiler_static_works_CXX=yes
14320 else
14321 lt_cv_prog_compiler_static_works_CXX=yes
14324 $RM -r conftest*
14325 LDFLAGS="$save_LDFLAGS"
14328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14329 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14331 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14333 else
14334 lt_prog_compiler_static_CXX=
14340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14341 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14342 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14343 $as_echo_n "(cached) " >&6
14344 else
14345 lt_cv_prog_compiler_c_o_CXX=no
14346 $RM -r conftest 2>/dev/null
14347 mkdir conftest
14348 cd conftest
14349 mkdir out
14350 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14352 lt_compiler_flag="-o out/conftest2.$ac_objext"
14353 # Insert the option either (1) after the last *FLAGS variable, or
14354 # (2) before a word containing "conftest.", or (3) at the end.
14355 # Note that $ac_compile itself does not contain backslashes and begins
14356 # with a dollar sign (not a hyphen), so the echo should work correctly.
14357 lt_compile=`echo "$ac_compile" | $SED \
14358 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14359 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14360 -e 's:$: $lt_compiler_flag:'`
14361 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14362 (eval "$lt_compile" 2>out/conftest.err)
14363 ac_status=$?
14364 cat out/conftest.err >&5
14365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14366 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14367 then
14368 # The compiler can only warn and ignore the option if not recognized
14369 # So say no if there are warnings
14370 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14371 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14372 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14373 lt_cv_prog_compiler_c_o_CXX=yes
14376 chmod u+w . 2>&5
14377 $RM conftest*
14378 # SGI C++ compiler will create directory out/ii_files/ for
14379 # template instantiation
14380 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14381 $RM out/* && rmdir out
14382 cd ..
14383 $RM -r conftest
14384 $RM conftest*
14387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14388 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14393 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14394 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14395 $as_echo_n "(cached) " >&6
14396 else
14397 lt_cv_prog_compiler_c_o_CXX=no
14398 $RM -r conftest 2>/dev/null
14399 mkdir conftest
14400 cd conftest
14401 mkdir out
14402 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14404 lt_compiler_flag="-o out/conftest2.$ac_objext"
14405 # Insert the option either (1) after the last *FLAGS variable, or
14406 # (2) before a word containing "conftest.", or (3) at the end.
14407 # Note that $ac_compile itself does not contain backslashes and begins
14408 # with a dollar sign (not a hyphen), so the echo should work correctly.
14409 lt_compile=`echo "$ac_compile" | $SED \
14410 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14411 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14412 -e 's:$: $lt_compiler_flag:'`
14413 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14414 (eval "$lt_compile" 2>out/conftest.err)
14415 ac_status=$?
14416 cat out/conftest.err >&5
14417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14418 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14419 then
14420 # The compiler can only warn and ignore the option if not recognized
14421 # So say no if there are warnings
14422 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14423 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14424 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14425 lt_cv_prog_compiler_c_o_CXX=yes
14428 chmod u+w . 2>&5
14429 $RM conftest*
14430 # SGI C++ compiler will create directory out/ii_files/ for
14431 # template instantiation
14432 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14433 $RM out/* && rmdir out
14434 cd ..
14435 $RM -r conftest
14436 $RM conftest*
14439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14440 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14445 hard_links="nottested"
14446 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14447 # do not overwrite the value of need_locks provided by the user
14448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14449 $as_echo_n "checking if we can lock with hard links... " >&6; }
14450 hard_links=yes
14451 $RM conftest*
14452 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14453 touch conftest.a
14454 ln conftest.a conftest.b 2>&5 || hard_links=no
14455 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14457 $as_echo "$hard_links" >&6; }
14458 if test "$hard_links" = no; then
14459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14460 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14461 need_locks=warn
14463 else
14464 need_locks=no
14469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14470 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14472 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14473 case $host_os in
14474 aix[4-9]*)
14475 # If we're using GNU nm, then we don't want the "-C" option.
14476 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14477 # Also, AIX nm treats weak defined symbols like other global defined
14478 # symbols, whereas GNU nm marks them as "W".
14479 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14480 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'
14481 else
14482 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14485 pw32*)
14486 export_symbols_cmds_CXX="$ltdll_cmds"
14488 cygwin* | mingw* | cegcc*)
14489 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'
14492 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14494 esac
14495 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14498 $as_echo "$ld_shlibs_CXX" >&6; }
14499 test "$ld_shlibs_CXX" = no && can_build_shared=no
14501 with_gnu_ld_CXX=$with_gnu_ld
14509 # Do we need to explicitly link libc?
14511 case "x$archive_cmds_need_lc_CXX" in
14512 x|xyes)
14513 # Assume -lc should be added
14514 archive_cmds_need_lc_CXX=yes
14516 if test "$enable_shared" = yes && test "$GCC" = yes; then
14517 case $archive_cmds_CXX in
14518 *'~'*)
14519 # FIXME: we may have to deal with multi-command sequences.
14521 '$CC '*)
14522 # Test whether the compiler implicitly links with -lc since on some
14523 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14524 # to ld, don't add -lc before -lgcc.
14525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14526 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14527 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
14528 $as_echo_n "(cached) " >&6
14529 else
14530 $RM conftest*
14531 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14533 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14534 (eval $ac_compile) 2>&5
14535 ac_status=$?
14536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14537 test $ac_status = 0; } 2>conftest.err; then
14538 soname=conftest
14539 lib=conftest
14540 libobjs=conftest.$ac_objext
14541 deplibs=
14542 wl=$lt_prog_compiler_wl_CXX
14543 pic_flag=$lt_prog_compiler_pic_CXX
14544 compiler_flags=-v
14545 linker_flags=-v
14546 verstring=
14547 output_objdir=.
14548 libname=conftest
14549 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14550 allow_undefined_flag_CXX=
14551 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14552 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14553 ac_status=$?
14554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14555 test $ac_status = 0; }
14556 then
14557 lt_cv_archive_cmds_need_lc_CXX=no
14558 else
14559 lt_cv_archive_cmds_need_lc_CXX=yes
14561 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14562 else
14563 cat conftest.err 1>&5
14565 $RM conftest*
14568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14569 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14570 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14572 esac
14575 esac
14640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14641 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14643 library_names_spec=
14644 libname_spec='lib$name'
14645 soname_spec=
14646 shrext_cmds=".so"
14647 postinstall_cmds=
14648 postuninstall_cmds=
14649 finish_cmds=
14650 finish_eval=
14651 shlibpath_var=
14652 shlibpath_overrides_runpath=unknown
14653 version_type=none
14654 dynamic_linker="$host_os ld.so"
14655 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14656 need_lib_prefix=unknown
14657 hardcode_into_libs=no
14659 # when you set need_version to no, make sure it does not cause -set_version
14660 # flags to be left without arguments
14661 need_version=unknown
14663 case $host_os in
14664 aix3*)
14665 version_type=linux
14666 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14667 shlibpath_var=LIBPATH
14669 # AIX 3 has no versioning support, so we append a major version to the name.
14670 soname_spec='${libname}${release}${shared_ext}$major'
14673 aix[4-9]*)
14674 version_type=linux
14675 need_lib_prefix=no
14676 need_version=no
14677 hardcode_into_libs=yes
14678 if test "$host_cpu" = ia64; then
14679 # AIX 5 supports IA64
14680 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14681 shlibpath_var=LD_LIBRARY_PATH
14682 else
14683 # With GCC up to 2.95.x, collect2 would create an import file
14684 # for dependence libraries. The import file would start with
14685 # the line `#! .'. This would cause the generated library to
14686 # depend on `.', always an invalid library. This was fixed in
14687 # development snapshots of GCC prior to 3.0.
14688 case $host_os in
14689 aix4 | aix4.[01] | aix4.[01].*)
14690 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14691 echo ' yes '
14692 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14694 else
14695 can_build_shared=no
14698 esac
14699 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14700 # soname into executable. Probably we can add versioning support to
14701 # collect2, so additional links can be useful in future.
14702 if test "$aix_use_runtimelinking" = yes; then
14703 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14704 # instead of lib<name>.a to let people know that these are not
14705 # typical AIX shared libraries.
14706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14707 else
14708 # We preserve .a as extension for shared libraries through AIX4.2
14709 # and later when we are not doing run time linking.
14710 library_names_spec='${libname}${release}.a $libname.a'
14711 soname_spec='${libname}${release}${shared_ext}$major'
14713 shlibpath_var=LIBPATH
14717 amigaos*)
14718 case $host_cpu in
14719 powerpc)
14720 # Since July 2007 AmigaOS4 officially supports .so libraries.
14721 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14724 m68k)
14725 library_names_spec='$libname.ixlibrary $libname.a'
14726 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14727 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'
14729 esac
14732 beos*)
14733 library_names_spec='${libname}${shared_ext}'
14734 dynamic_linker="$host_os ld.so"
14735 shlibpath_var=LIBRARY_PATH
14738 bsdi[45]*)
14739 version_type=linux
14740 need_version=no
14741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14742 soname_spec='${libname}${release}${shared_ext}$major'
14743 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14744 shlibpath_var=LD_LIBRARY_PATH
14745 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14746 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14747 # the default ld.so.conf also contains /usr/contrib/lib and
14748 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14749 # libtool to hard-code these into programs
14752 cygwin* | mingw* | pw32* | cegcc*)
14753 version_type=windows
14754 shrext_cmds=".dll"
14755 need_version=no
14756 need_lib_prefix=no
14758 case $GCC,$host_os in
14759 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14760 library_names_spec='$libname.dll.a'
14761 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14762 postinstall_cmds='base_file=`basename \${file}`~
14763 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14764 dldir=$destdir/`dirname \$dlpath`~
14765 test -d \$dldir || mkdir -p \$dldir~
14766 $install_prog $dir/$dlname \$dldir/$dlname~
14767 chmod a+x \$dldir/$dlname~
14768 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14769 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14771 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14772 dlpath=$dir/\$dldll~
14773 $RM \$dlpath'
14774 shlibpath_overrides_runpath=yes
14776 case $host_os in
14777 cygwin*)
14778 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14779 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14782 mingw* | cegcc*)
14783 # MinGW DLLs use traditional 'lib' prefix
14784 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14786 pw32*)
14787 # pw32 DLLs use 'pw' prefix rather than 'lib'
14788 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14790 esac
14794 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14796 esac
14797 dynamic_linker='Win32 ld.exe'
14798 # FIXME: first we should search . and the directory the executable is in
14799 shlibpath_var=PATH
14802 darwin* | rhapsody*)
14803 dynamic_linker="$host_os dyld"
14804 version_type=darwin
14805 need_lib_prefix=no
14806 need_version=no
14807 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14808 soname_spec='${libname}${release}${major}$shared_ext'
14809 shlibpath_overrides_runpath=yes
14810 shlibpath_var=DYLD_LIBRARY_PATH
14811 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14813 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14816 dgux*)
14817 version_type=linux
14818 need_lib_prefix=no
14819 need_version=no
14820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14821 soname_spec='${libname}${release}${shared_ext}$major'
14822 shlibpath_var=LD_LIBRARY_PATH
14825 freebsd* | dragonfly*)
14826 # DragonFly does not have aout. When/if they implement a new
14827 # versioning mechanism, adjust this.
14828 if test -x /usr/bin/objformat; then
14829 objformat=`/usr/bin/objformat`
14830 else
14831 case $host_os in
14832 freebsd[23].*) objformat=aout ;;
14833 *) objformat=elf ;;
14834 esac
14836 version_type=freebsd-$objformat
14837 case $version_type in
14838 freebsd-elf*)
14839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14840 need_version=no
14841 need_lib_prefix=no
14843 freebsd-*)
14844 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14845 need_version=yes
14847 esac
14848 shlibpath_var=LD_LIBRARY_PATH
14849 case $host_os in
14850 freebsd2.*)
14851 shlibpath_overrides_runpath=yes
14853 freebsd3.[01]* | freebsdelf3.[01]*)
14854 shlibpath_overrides_runpath=yes
14855 hardcode_into_libs=yes
14857 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14858 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14859 shlibpath_overrides_runpath=no
14860 hardcode_into_libs=yes
14862 *) # from 4.6 on, and DragonFly
14863 shlibpath_overrides_runpath=yes
14864 hardcode_into_libs=yes
14866 esac
14869 gnu*)
14870 version_type=linux
14871 need_lib_prefix=no
14872 need_version=no
14873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14874 soname_spec='${libname}${release}${shared_ext}$major'
14875 shlibpath_var=LD_LIBRARY_PATH
14876 hardcode_into_libs=yes
14879 haiku*)
14880 version_type=linux
14881 need_lib_prefix=no
14882 need_version=no
14883 dynamic_linker="$host_os runtime_loader"
14884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14885 soname_spec='${libname}${release}${shared_ext}$major'
14886 shlibpath_var=LIBRARY_PATH
14887 shlibpath_overrides_runpath=yes
14888 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14889 hardcode_into_libs=yes
14892 hpux9* | hpux10* | hpux11*)
14893 # Give a soname corresponding to the major version so that dld.sl refuses to
14894 # link against other versions.
14895 version_type=sunos
14896 need_lib_prefix=no
14897 need_version=no
14898 case $host_cpu in
14899 ia64*)
14900 shrext_cmds='.so'
14901 hardcode_into_libs=yes
14902 dynamic_linker="$host_os dld.so"
14903 shlibpath_var=LD_LIBRARY_PATH
14904 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14906 soname_spec='${libname}${release}${shared_ext}$major'
14907 if test "X$HPUX_IA64_MODE" = X32; then
14908 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14909 else
14910 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14912 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14914 hppa*64*)
14915 shrext_cmds='.sl'
14916 hardcode_into_libs=yes
14917 dynamic_linker="$host_os dld.sl"
14918 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14919 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14921 soname_spec='${libname}${release}${shared_ext}$major'
14922 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14923 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14926 shrext_cmds='.sl'
14927 dynamic_linker="$host_os dld.sl"
14928 shlibpath_var=SHLIB_PATH
14929 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14931 soname_spec='${libname}${release}${shared_ext}$major'
14933 esac
14934 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14935 postinstall_cmds='chmod 555 $lib'
14936 # or fails outright, so override atomically:
14937 install_override_mode=555
14940 interix[3-9]*)
14941 version_type=linux
14942 need_lib_prefix=no
14943 need_version=no
14944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14945 soname_spec='${libname}${release}${shared_ext}$major'
14946 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14947 shlibpath_var=LD_LIBRARY_PATH
14948 shlibpath_overrides_runpath=no
14949 hardcode_into_libs=yes
14952 irix5* | irix6* | nonstopux*)
14953 case $host_os in
14954 nonstopux*) version_type=nonstopux ;;
14956 if test "$lt_cv_prog_gnu_ld" = yes; then
14957 version_type=linux
14958 else
14959 version_type=irix
14960 fi ;;
14961 esac
14962 need_lib_prefix=no
14963 need_version=no
14964 soname_spec='${libname}${release}${shared_ext}$major'
14965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14966 case $host_os in
14967 irix5* | nonstopux*)
14968 libsuff= shlibsuff=
14971 case $LD in # libtool.m4 will add one of these switches to LD
14972 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14973 libsuff= shlibsuff= libmagic=32-bit;;
14974 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14975 libsuff=32 shlibsuff=N32 libmagic=N32;;
14976 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14977 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14978 *) libsuff= shlibsuff= libmagic=never-match;;
14979 esac
14981 esac
14982 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14983 shlibpath_overrides_runpath=no
14984 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14985 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14986 hardcode_into_libs=yes
14989 # No shared lib support for Linux oldld, aout, or coff.
14990 linux*oldld* | linux*aout* | linux*coff*)
14991 dynamic_linker=no
14994 # This must be Linux ELF.
14995 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14996 version_type=linux
14997 need_lib_prefix=no
14998 need_version=no
14999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15000 soname_spec='${libname}${release}${shared_ext}$major'
15001 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15002 shlibpath_var=LD_LIBRARY_PATH
15003 shlibpath_overrides_runpath=no
15005 # Some binutils ld are patched to set DT_RUNPATH
15006 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
15007 $as_echo_n "(cached) " >&6
15008 else
15009 lt_cv_shlibpath_overrides_runpath=no
15010 save_LDFLAGS=$LDFLAGS
15011 save_libdir=$libdir
15012 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15013 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15015 /* end confdefs.h. */
15018 main ()
15022 return 0;
15024 _ACEOF
15025 if ac_fn_cxx_try_link "$LINENO"; then :
15026 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15027 lt_cv_shlibpath_overrides_runpath=yes
15030 rm -f core conftest.err conftest.$ac_objext \
15031 conftest$ac_exeext conftest.$ac_ext
15032 LDFLAGS=$save_LDFLAGS
15033 libdir=$save_libdir
15037 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15039 # This implies no fast_install, which is unacceptable.
15040 # Some rework will be needed to allow for fast_install
15041 # before this can be enabled.
15042 hardcode_into_libs=yes
15044 # Append ld.so.conf contents to the search path
15045 if test -f /etc/ld.so.conf; then
15046 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' ' '`
15047 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15050 # We used to test for /lib/ld.so.1 and disable shared libraries on
15051 # powerpc, because MkLinux only supported shared libraries with the
15052 # GNU dynamic linker. Since this was broken with cross compilers,
15053 # most powerpc-linux boxes support dynamic linking these days and
15054 # people can always --disable-shared, the test was removed, and we
15055 # assume the GNU/Linux dynamic linker is in use.
15056 dynamic_linker='GNU/Linux ld.so'
15059 netbsd*)
15060 version_type=sunos
15061 need_lib_prefix=no
15062 need_version=no
15063 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15065 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15066 dynamic_linker='NetBSD (a.out) ld.so'
15067 else
15068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15069 soname_spec='${libname}${release}${shared_ext}$major'
15070 dynamic_linker='NetBSD ld.elf_so'
15072 shlibpath_var=LD_LIBRARY_PATH
15073 shlibpath_overrides_runpath=yes
15074 hardcode_into_libs=yes
15077 newsos6)
15078 version_type=linux
15079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15080 shlibpath_var=LD_LIBRARY_PATH
15081 shlibpath_overrides_runpath=yes
15084 *nto* | *qnx*)
15085 version_type=qnx
15086 need_lib_prefix=no
15087 need_version=no
15088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15089 soname_spec='${libname}${release}${shared_ext}$major'
15090 shlibpath_var=LD_LIBRARY_PATH
15091 shlibpath_overrides_runpath=no
15092 hardcode_into_libs=yes
15093 dynamic_linker='ldqnx.so'
15096 openbsd*)
15097 version_type=sunos
15098 sys_lib_dlsearch_path_spec="/usr/lib"
15099 need_lib_prefix=no
15100 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15101 case $host_os in
15102 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15103 *) need_version=no ;;
15104 esac
15105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15106 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15107 shlibpath_var=LD_LIBRARY_PATH
15108 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15109 case $host_os in
15110 openbsd2.[89] | openbsd2.[89].*)
15111 shlibpath_overrides_runpath=no
15114 shlibpath_overrides_runpath=yes
15116 esac
15117 else
15118 shlibpath_overrides_runpath=yes
15122 os2*)
15123 libname_spec='$name'
15124 shrext_cmds=".dll"
15125 need_lib_prefix=no
15126 library_names_spec='$libname${shared_ext} $libname.a'
15127 dynamic_linker='OS/2 ld.exe'
15128 shlibpath_var=LIBPATH
15131 osf3* | osf4* | osf5*)
15132 version_type=osf
15133 need_lib_prefix=no
15134 need_version=no
15135 soname_spec='${libname}${release}${shared_ext}$major'
15136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15137 shlibpath_var=LD_LIBRARY_PATH
15138 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15139 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15142 rdos*)
15143 dynamic_linker=no
15146 solaris*)
15147 version_type=linux
15148 need_lib_prefix=no
15149 need_version=no
15150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15151 soname_spec='${libname}${release}${shared_ext}$major'
15152 shlibpath_var=LD_LIBRARY_PATH
15153 shlibpath_overrides_runpath=yes
15154 hardcode_into_libs=yes
15155 # ldd complains unless libraries are executable
15156 postinstall_cmds='chmod +x $lib'
15159 sunos4*)
15160 version_type=sunos
15161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15162 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15163 shlibpath_var=LD_LIBRARY_PATH
15164 shlibpath_overrides_runpath=yes
15165 if test "$with_gnu_ld" = yes; then
15166 need_lib_prefix=no
15168 need_version=yes
15171 sysv4 | sysv4.3*)
15172 version_type=linux
15173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15174 soname_spec='${libname}${release}${shared_ext}$major'
15175 shlibpath_var=LD_LIBRARY_PATH
15176 case $host_vendor in
15177 sni)
15178 shlibpath_overrides_runpath=no
15179 need_lib_prefix=no
15180 runpath_var=LD_RUN_PATH
15182 siemens)
15183 need_lib_prefix=no
15185 motorola)
15186 need_lib_prefix=no
15187 need_version=no
15188 shlibpath_overrides_runpath=no
15189 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15191 esac
15194 sysv4*MP*)
15195 if test -d /usr/nec ;then
15196 version_type=linux
15197 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15198 soname_spec='$libname${shared_ext}.$major'
15199 shlibpath_var=LD_LIBRARY_PATH
15203 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15204 version_type=freebsd-elf
15205 need_lib_prefix=no
15206 need_version=no
15207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15208 soname_spec='${libname}${release}${shared_ext}$major'
15209 shlibpath_var=LD_LIBRARY_PATH
15210 shlibpath_overrides_runpath=yes
15211 hardcode_into_libs=yes
15212 if test "$with_gnu_ld" = yes; then
15213 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15214 else
15215 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15216 case $host_os in
15217 sco3.2v5*)
15218 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15220 esac
15222 sys_lib_dlsearch_path_spec='/usr/lib'
15225 tpf*)
15226 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15227 version_type=linux
15228 need_lib_prefix=no
15229 need_version=no
15230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15231 shlibpath_var=LD_LIBRARY_PATH
15232 shlibpath_overrides_runpath=no
15233 hardcode_into_libs=yes
15236 uts4*)
15237 version_type=linux
15238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15239 soname_spec='${libname}${release}${shared_ext}$major'
15240 shlibpath_var=LD_LIBRARY_PATH
15244 dynamic_linker=no
15246 esac
15247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15248 $as_echo "$dynamic_linker" >&6; }
15249 test "$dynamic_linker" = no && can_build_shared=no
15251 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15252 if test "$GCC" = yes; then
15253 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15256 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15257 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15259 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15260 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15301 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15302 hardcode_action_CXX=
15303 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15304 test -n "$runpath_var_CXX" ||
15305 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15307 # We can hardcode non-existent directories.
15308 if test "$hardcode_direct_CXX" != no &&
15309 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15310 # have to relink, otherwise we might link with an installed library
15311 # when we should be linking with a yet-to-be-installed one
15312 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15313 test "$hardcode_minus_L_CXX" != no; then
15314 # Linking always hardcodes the temporary library directory.
15315 hardcode_action_CXX=relink
15316 else
15317 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15318 hardcode_action_CXX=immediate
15320 else
15321 # We cannot hardcode anything, or else we can only hardcode existing
15322 # directories.
15323 hardcode_action_CXX=unsupported
15325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15326 $as_echo "$hardcode_action_CXX" >&6; }
15328 if test "$hardcode_action_CXX" = relink ||
15329 test "$inherit_rpath_CXX" = yes; then
15330 # Fast installation is not supported
15331 enable_fast_install=no
15332 elif test "$shlibpath_overrides_runpath" = yes ||
15333 test "$enable_shared" = no; then
15334 # Fast installation is not necessary
15335 enable_fast_install=needless
15344 fi # test -n "$compiler"
15346 CC=$lt_save_CC
15347 LDCXX=$LD
15348 LD=$lt_save_LD
15349 GCC=$lt_save_GCC
15350 with_gnu_ld=$lt_save_with_gnu_ld
15351 lt_cv_path_LDCXX=$lt_cv_path_LD
15352 lt_cv_path_LD=$lt_save_path_LD
15353 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15354 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15355 fi # test "$_lt_caught_CXX_error" != yes
15357 ac_ext=c
15358 ac_cpp='$CPP $CPPFLAGS'
15359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15375 ac_config_commands="$ac_config_commands libtool"
15380 # Only expand once:
15384 for ac_prog in gawk mawk nawk awk
15386 # Extract the first word of "$ac_prog", so it can be a program name with args.
15387 set dummy $ac_prog; ac_word=$2
15388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15389 $as_echo_n "checking for $ac_word... " >&6; }
15390 if test "${ac_cv_prog_AWK+set}" = set; then :
15391 $as_echo_n "(cached) " >&6
15392 else
15393 if test -n "$AWK"; then
15394 ac_cv_prog_AWK="$AWK" # Let the user override the test.
15395 else
15396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15397 for as_dir in $PATH
15399 IFS=$as_save_IFS
15400 test -z "$as_dir" && as_dir=.
15401 for ac_exec_ext in '' $ac_executable_extensions; do
15402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15403 ac_cv_prog_AWK="$ac_prog"
15404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15405 break 2
15407 done
15408 done
15409 IFS=$as_save_IFS
15413 AWK=$ac_cv_prog_AWK
15414 if test -n "$AWK"; then
15415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
15416 $as_echo "$AWK" >&6; }
15417 else
15418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15419 $as_echo "no" >&6; }
15423 test -n "$AWK" && break
15424 done
15426 case "$AWK" in
15427 "") as_fn_error "can't build without awk" "$LINENO" 5 ;;
15428 esac
15433 # The cast to long int works around a bug in the HP C Compiler
15434 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15435 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15436 # This bug is HP SR number 8606223364.
15437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15438 $as_echo_n "checking size of void *... " >&6; }
15439 if test "${ac_cv_sizeof_void_p+set}" = set; then :
15440 $as_echo_n "(cached) " >&6
15441 else
15442 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15444 else
15445 if test "$ac_cv_type_void_p" = yes; then
15446 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15447 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15448 { as_fn_set_status 77
15449 as_fn_error "cannot compute sizeof (void *)
15450 See \`config.log' for more details." "$LINENO" 5; }; }
15451 else
15452 ac_cv_sizeof_void_p=0
15457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15458 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15462 cat >>confdefs.h <<_ACEOF
15463 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15464 _ACEOF
15468 if test "${multilib}" = "yes"; then
15469 multilib_arg="--enable-multilib"
15470 else
15471 multilib_arg=
15474 # Get target configury.
15475 unset TSAN_SUPPORTED
15476 unset LSAN_SUPPORTED
15477 . ${srcdir}/configure.tgt
15478 if test "x$TSAN_SUPPORTED" = "xyes"; then
15479 TSAN_SUPPORTED_TRUE=
15480 TSAN_SUPPORTED_FALSE='#'
15481 else
15482 TSAN_SUPPORTED_TRUE='#'
15483 TSAN_SUPPORTED_FALSE=
15486 if test "x$LSAN_SUPPORTED" = "xyes"; then
15487 LSAN_SUPPORTED_TRUE=
15488 LSAN_SUPPORTED_FALSE='#'
15489 else
15490 LSAN_SUPPORTED_TRUE='#'
15491 LSAN_SUPPORTED_FALSE=
15495 # Check for functions needed.
15496 for ac_func in clock_getres clock_gettime clock_settime
15497 do :
15498 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15499 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15500 eval as_val=\$$as_ac_var
15501 if test "x$as_val" = x""yes; then :
15502 cat >>confdefs.h <<_ACEOF
15503 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15504 _ACEOF
15507 done
15510 # Common libraries that we need to link against for all sanitizer libs.
15511 link_sanitizer_common='-lpthread -ldl -lm'
15513 # Set up the set of additional libraries that we need to link against for libasan.
15514 link_libasan=$link_sanitizer_common
15517 # Set up the set of additional libraries that we need to link against for libtsan.
15518 link_libtsan=$link_sanitizer_common
15521 # Set up the set of additional libraries that we need to link against for libubsan.
15522 link_libubsan=$link_sanitizer_common
15525 # Set up the set of additional libraries that we need to link against for liblsan.
15526 link_liblsan=$link_sanitizer_common
15529 # At least for glibc, clock_gettime is in librt. But don't pull that
15530 # in if it still doesn't give us the function we want. This
15531 # test is copied from libgomp.
15532 if test $ac_cv_func_clock_gettime = no; then
15533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
15534 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
15535 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
15536 $as_echo_n "(cached) " >&6
15537 else
15538 ac_check_lib_save_LIBS=$LIBS
15539 LIBS="-lrt $LIBS"
15540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15541 /* end confdefs.h. */
15543 /* Override any GCC internal prototype to avoid an error.
15544 Use char because int might match the return type of a GCC
15545 builtin and then its argument prototype would still apply. */
15546 #ifdef __cplusplus
15547 extern "C"
15548 #endif
15549 char clock_gettime ();
15551 main ()
15553 return clock_gettime ();
15555 return 0;
15557 _ACEOF
15558 if ac_fn_c_try_link "$LINENO"; then :
15559 ac_cv_lib_rt_clock_gettime=yes
15560 else
15561 ac_cv_lib_rt_clock_gettime=no
15563 rm -f core conftest.err conftest.$ac_objext \
15564 conftest$ac_exeext conftest.$ac_ext
15565 LIBS=$ac_check_lib_save_LIBS
15567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
15568 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
15569 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
15570 link_libasan="-lrt $link_libasan"
15571 link_libtsan="-lrt $link_libtsan"
15572 # Other sanitizers do not override clock_* API
15578 case "$host" in
15579 *-*-darwin*) MAC_INTERPOSE=true ; enable_static=no ;;
15580 *) MAC_INTERPOSE=false ;;
15581 esac
15582 if $MAC_INTERPOSE; then
15583 USING_MAC_INTERPOSE_TRUE=
15584 USING_MAC_INTERPOSE_FALSE='#'
15585 else
15586 USING_MAC_INTERPOSE_TRUE='#'
15587 USING_MAC_INTERPOSE_FALSE=
15591 backtrace_supported=yes
15593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary platform features" >&5
15594 $as_echo_n "checking for necessary platform features... " >&6; }
15595 case "$target" in
15596 *-*-linux*)
15597 # Some old Linux distributions miss required syscalls.
15598 sanitizer_supported=no
15599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15600 /* end confdefs.h. */
15601 #include <sys/syscall.h>
15603 main ()
15606 syscall (__NR_gettid);
15607 syscall (__NR_futex);
15608 syscall (__NR_exit_group);
15611 return 0;
15613 _ACEOF
15614 if ac_fn_c_try_compile "$LINENO"; then :
15615 sanitizer_supported=yes
15617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15620 sanitizer_supported=yes
15622 esac
15623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sanitizer_supported" >&5
15624 $as_echo "$sanitizer_supported" >&6; }
15625 if test "$sanitizer_supported" = yes; then
15626 SANITIZER_SUPPORTED_TRUE=
15627 SANITIZER_SUPPORTED_FALSE='#'
15628 else
15629 SANITIZER_SUPPORTED_TRUE='#'
15630 SANITIZER_SUPPORTED_FALSE=
15634 # Test for __sync support.
15635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __sync extensions" >&5
15636 $as_echo_n "checking __sync extensions... " >&6; }
15637 if test "${libsanitizer_cv_sys_sync+set}" = set; then :
15638 $as_echo_n "(cached) " >&6
15639 else
15640 if test -n "${with_target_subdir}"; then
15641 libsanitizer_cv_sys_sync=yes
15642 else
15643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15644 /* end confdefs.h. */
15645 int i;
15647 main ()
15649 __sync_bool_compare_and_swap (&i, i, i);
15650 __sync_lock_test_and_set (&i, 1);
15651 __sync_lock_release (&i);
15653 return 0;
15655 _ACEOF
15656 if ac_fn_c_try_link "$LINENO"; then :
15657 libsanitizer_cv_sys_sync=yes
15658 else
15659 libsanitizer_cv_sys_sync=no
15661 rm -f core conftest.err conftest.$ac_objext \
15662 conftest$ac_exeext conftest.$ac_ext
15665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libsanitizer_cv_sys_sync" >&5
15666 $as_echo "$libsanitizer_cv_sys_sync" >&6; }
15667 if test "$libsanitizer_cv_sys_sync" = "yes"; then
15669 $as_echo "#define HAVE_SYNC_FUNCTIONS 1" >>confdefs.h
15673 # Test for __atomic support.
15674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __atomic extensions" >&5
15675 $as_echo_n "checking __atomic extensions... " >&6; }
15676 if test "${libsanitizer_cv_sys_atomic+set}" = set; then :
15677 $as_echo_n "(cached) " >&6
15678 else
15679 if test -n "${with_target_subdir}"; then
15680 libsanitizer_cv_sys_atomic=yes
15681 else
15682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15683 /* end confdefs.h. */
15684 int i;
15686 main ()
15688 __atomic_load_n (&i, __ATOMIC_ACQUIRE);
15689 __atomic_store_n (&i, 1, __ATOMIC_RELEASE);
15691 return 0;
15693 _ACEOF
15694 if ac_fn_c_try_link "$LINENO"; then :
15695 libsanitizer_cv_sys_atomic=yes
15696 else
15697 libsanitizer_cv_sys_atomic=no
15699 rm -f core conftest.err conftest.$ac_objext \
15700 conftest$ac_exeext conftest.$ac_ext
15703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libsanitizer_cv_sys_atomic" >&5
15704 $as_echo "$libsanitizer_cv_sys_atomic" >&6; }
15705 if test "$libsanitizer_cv_sys_atomic" = "yes"; then
15707 $as_echo "#define HAVE_ATOMIC_FUNCTIONS 1" >>confdefs.h
15711 # The library needs to be able to read the executable itself. Compile
15712 # a file to determine the executable format. The awk script
15713 # filetype.awk prints out the file type.
15714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking output filetype" >&5
15715 $as_echo_n "checking output filetype... " >&6; }
15716 if test "${libsanitizer_cv_sys_filetype+set}" = set; then :
15717 $as_echo_n "(cached) " >&6
15718 else
15719 filetype=
15720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15721 /* end confdefs.h. */
15722 int i;
15724 main ()
15726 int j;
15728 return 0;
15730 _ACEOF
15731 if ac_fn_c_try_compile "$LINENO"; then :
15732 filetype=`${AWK} -f $srcdir/../libbacktrace/filetype.awk conftest.$ac_objext`
15733 else
15734 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15735 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15736 as_fn_error "compiler failed
15737 See \`config.log' for more details." "$LINENO" 5; }
15739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15740 libsanitizer_cv_sys_filetype=$filetype
15742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libsanitizer_cv_sys_filetype" >&5
15743 $as_echo "$libsanitizer_cv_sys_filetype" >&6; }
15745 # Match the file type to decide what files to compile.
15746 FORMAT_FILE=
15747 case "$libsanitizer_cv_sys_filetype" in
15748 elf*) FORMAT_FILE="elf.lo" ;;
15749 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not determine output file type" >&5
15750 $as_echo "$as_me: WARNING: could not determine output file type" >&2;}
15751 FORMAT_FILE="unknown.lo"
15752 backtrace_supported=no
15754 esac
15757 # ELF defines.
15758 elfsize=
15759 case "$libsanitizer_cv_sys_filetype" in
15760 elf32) elfsize=32 ;;
15761 elf64) elfsize=64 ;;
15762 esac
15764 cat >>confdefs.h <<_ACEOF
15765 #define BACKTRACE_ELF_SIZE $elfsize
15766 _ACEOF
15769 BACKTRACE_SUPPORTED=0
15770 if test "$backtrace_supported" = "yes"; then
15771 BACKTRACE_SUPPORTED=1
15777 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
15779 acx_cv_header_stdint=stddef.h
15780 acx_cv_header_stdint_kind="(already complete)"
15781 for i in stdint.h $inttype_headers; do
15782 unset ac_cv_type_uintptr_t
15783 unset ac_cv_type_uintmax_t
15784 unset ac_cv_type_int_least32_t
15785 unset ac_cv_type_int_fast32_t
15786 unset ac_cv_type_uint64_t
15787 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
15788 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
15789 #include <$i>
15791 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
15792 acx_cv_header_stdint=$i
15793 else
15794 continue
15797 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
15798 #include <$i>
15800 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
15802 else
15803 acx_cv_header_stdint_kind="(mostly complete)"
15806 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
15807 #include <$i>
15809 if test "x$ac_cv_type_int_least32_t" = x""yes; then :
15811 else
15812 acx_cv_header_stdint_kind="(mostly complete)"
15815 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
15816 #include <$i>
15818 if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
15820 else
15821 acx_cv_header_stdint_kind="(mostly complete)"
15824 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
15825 #include <$i>
15827 if test "x$ac_cv_type_uint64_t" = x""yes; then :
15829 else
15830 acx_cv_header_stdint_kind="(lacks uint64_t)"
15833 break
15834 done
15835 if test "$acx_cv_header_stdint" = stddef.h; then
15836 acx_cv_header_stdint_kind="(lacks uintmax_t)"
15837 for i in stdint.h $inttype_headers; do
15838 unset ac_cv_type_uintptr_t
15839 unset ac_cv_type_uint32_t
15840 unset ac_cv_type_uint64_t
15841 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
15842 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
15843 #include <$i>
15845 if test "x$ac_cv_type_uint32_t" = x""yes; then :
15846 acx_cv_header_stdint=$i
15847 else
15848 continue
15851 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
15852 #include <$i>
15854 if test "x$ac_cv_type_uint64_t" = x""yes; then :
15858 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
15859 #include <$i>
15861 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
15865 break
15866 done
15868 if test "$acx_cv_header_stdint" = stddef.h; then
15869 acx_cv_header_stdint_kind="(u_intXX_t style)"
15870 for i in sys/types.h $inttype_headers; do
15871 unset ac_cv_type_u_int32_t
15872 unset ac_cv_type_u_int64_t
15873 $as_echo_n "looking for u_intXX_t types in $i, " >&6
15874 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
15875 #include <$i>
15877 if test "x$ac_cv_type_u_int32_t" = x""yes; then :
15878 acx_cv_header_stdint=$i
15879 else
15880 continue
15883 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
15884 #include <$i>
15886 if test "x$ac_cv_type_u_int64_t" = x""yes; then :
15890 break
15891 done
15893 if test "$acx_cv_header_stdint" = stddef.h; then
15894 acx_cv_header_stdint_kind="(using manual detection)"
15897 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
15898 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
15899 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
15900 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
15901 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
15903 # ----------------- Summarize what we found so far
15905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
15906 $as_echo_n "checking what to include in gstdint.h... " >&6; }
15908 case `$as_basename -- gstdint.h ||
15909 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
15910 Xgstdint.h : 'X\(//\)$' \| \
15911 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
15912 $as_echo X/gstdint.h |
15913 sed '/^.*\/\([^/][^/]*\)\/*$/{
15914 s//\1/
15917 /^X\/\(\/\/\)$/{
15918 s//\1/
15921 /^X\/\(\/\).*/{
15922 s//\1/
15925 s/.*/./; q'` in
15926 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
15927 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
15928 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
15929 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
15930 *) ;;
15931 esac
15933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
15934 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
15936 # ----------------- done included file, check C basic types --------
15938 # Lacking an uintptr_t? Test size of void *
15939 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
15940 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
15941 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15942 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15943 # This bug is HP SR number 8606223364.
15944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15945 $as_echo_n "checking size of void *... " >&6; }
15946 if test "${ac_cv_sizeof_void_p+set}" = set; then :
15947 $as_echo_n "(cached) " >&6
15948 else
15949 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15951 else
15952 if test "$ac_cv_type_void_p" = yes; then
15953 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15954 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15955 { as_fn_set_status 77
15956 as_fn_error "cannot compute sizeof (void *)
15957 See \`config.log' for more details." "$LINENO" 5; }; }
15958 else
15959 ac_cv_sizeof_void_p=0
15964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15965 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15969 cat >>confdefs.h <<_ACEOF
15970 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15971 _ACEOF
15974 esac
15976 # Lacking an uint64_t? Test size of long
15977 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
15978 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
15979 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15980 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15981 # This bug is HP SR number 8606223364.
15982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
15983 $as_echo_n "checking size of long... " >&6; }
15984 if test "${ac_cv_sizeof_long+set}" = set; then :
15985 $as_echo_n "(cached) " >&6
15986 else
15987 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
15989 else
15990 if test "$ac_cv_type_long" = yes; then
15991 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15992 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15993 { as_fn_set_status 77
15994 as_fn_error "cannot compute sizeof (long)
15995 See \`config.log' for more details." "$LINENO" 5; }; }
15996 else
15997 ac_cv_sizeof_long=0
16002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16003 $as_echo "$ac_cv_sizeof_long" >&6; }
16007 cat >>confdefs.h <<_ACEOF
16008 #define SIZEOF_LONG $ac_cv_sizeof_long
16009 _ACEOF
16012 esac
16014 if test $acx_cv_header_stdint = stddef.h; then
16015 # Lacking a good header? Test size of everything and deduce all types.
16016 # The cast to long int works around a bug in the HP C Compiler
16017 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16018 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16019 # This bug is HP SR number 8606223364.
16020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
16021 $as_echo_n "checking size of int... " >&6; }
16022 if test "${ac_cv_sizeof_int+set}" = set; then :
16023 $as_echo_n "(cached) " >&6
16024 else
16025 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
16027 else
16028 if test "$ac_cv_type_int" = yes; then
16029 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16030 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16031 { as_fn_set_status 77
16032 as_fn_error "cannot compute sizeof (int)
16033 See \`config.log' for more details." "$LINENO" 5; }; }
16034 else
16035 ac_cv_sizeof_int=0
16040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
16041 $as_echo "$ac_cv_sizeof_int" >&6; }
16045 cat >>confdefs.h <<_ACEOF
16046 #define SIZEOF_INT $ac_cv_sizeof_int
16047 _ACEOF
16050 # The cast to long int works around a bug in the HP C Compiler
16051 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16052 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16053 # This bug is HP SR number 8606223364.
16054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
16055 $as_echo_n "checking size of short... " >&6; }
16056 if test "${ac_cv_sizeof_short+set}" = set; then :
16057 $as_echo_n "(cached) " >&6
16058 else
16059 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
16061 else
16062 if test "$ac_cv_type_short" = yes; then
16063 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16064 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16065 { as_fn_set_status 77
16066 as_fn_error "cannot compute sizeof (short)
16067 See \`config.log' for more details." "$LINENO" 5; }; }
16068 else
16069 ac_cv_sizeof_short=0
16074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
16075 $as_echo "$ac_cv_sizeof_short" >&6; }
16079 cat >>confdefs.h <<_ACEOF
16080 #define SIZEOF_SHORT $ac_cv_sizeof_short
16081 _ACEOF
16084 # The cast to long int works around a bug in the HP C Compiler
16085 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16086 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16087 # This bug is HP SR number 8606223364.
16088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
16089 $as_echo_n "checking size of char... " >&6; }
16090 if test "${ac_cv_sizeof_char+set}" = set; then :
16091 $as_echo_n "(cached) " >&6
16092 else
16093 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
16095 else
16096 if test "$ac_cv_type_char" = yes; then
16097 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16098 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16099 { as_fn_set_status 77
16100 as_fn_error "cannot compute sizeof (char)
16101 See \`config.log' for more details." "$LINENO" 5; }; }
16102 else
16103 ac_cv_sizeof_char=0
16108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
16109 $as_echo "$ac_cv_sizeof_char" >&6; }
16113 cat >>confdefs.h <<_ACEOF
16114 #define SIZEOF_CHAR $ac_cv_sizeof_char
16115 _ACEOF
16119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
16120 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
16121 case "$ac_cv_sizeof_char" in
16122 1) acx_cv_type_int8_t=char ;;
16123 *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
16124 esac
16125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
16126 $as_echo "$acx_cv_type_int8_t" >&6; }
16128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
16129 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
16130 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
16131 2:*) acx_cv_type_int16_t=int ;;
16132 *:2) acx_cv_type_int16_t=short ;;
16133 *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
16134 esac
16135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
16136 $as_echo "$acx_cv_type_int16_t" >&6; }
16138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
16139 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
16140 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
16141 4:*) acx_cv_type_int32_t=int ;;
16142 *:4) acx_cv_type_int32_t=long ;;
16143 *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
16144 esac
16145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
16146 $as_echo "$acx_cv_type_int32_t" >&6; }
16149 # These tests are here to make the output prettier
16151 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
16152 case "$ac_cv_sizeof_long" in
16153 8) acx_cv_type_int64_t=long ;;
16154 esac
16155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
16156 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
16157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
16158 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
16161 # Now we can use the above types
16163 if test "$ac_cv_type_uintptr_t" != yes; then
16164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
16165 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
16166 case $ac_cv_sizeof_void_p in
16167 2) acx_cv_type_intptr_t=int16_t ;;
16168 4) acx_cv_type_intptr_t=int32_t ;;
16169 8) acx_cv_type_intptr_t=int64_t ;;
16170 *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
16171 esac
16172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
16173 $as_echo "$acx_cv_type_intptr_t" >&6; }
16176 # ----------------- done all checks, emit header -------------
16177 ac_config_commands="$ac_config_commands gstdint.h"
16182 for ac_header in sys/mman.h alloca.h
16183 do :
16184 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16185 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16186 eval as_val=\$$as_ac_Header
16187 if test "x$as_val" = x""yes; then :
16188 cat >>confdefs.h <<_ACEOF
16189 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16190 _ACEOF
16194 done
16196 if test "$ac_cv_header_sys_mman_h" = "no"; then
16197 have_mmap=no
16198 else
16199 if test -n "${with_target_subdir}"; then
16200 # When built as a GCC target library, we can't do a link test. We
16201 # simply assume that if we have mman.h, we have mmap.
16202 have_mmap=yes
16203 else
16204 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
16205 if test "x$ac_cv_func_mmap" = x""yes; then :
16206 have_mmap=yes
16207 else
16208 have_mmap=no
16213 if test "$have_mmap" = "no"; then
16214 VIEW_FILE=read.lo
16215 ALLOC_FILE=alloc.lo
16216 else
16217 VIEW_FILE=mmapio.lo
16218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16219 /* end confdefs.h. */
16221 #include <sys/mman.h>
16222 #if !defined(MAP_ANONYMOUS) && !defined(MAP_ANON)
16223 #error no MAP_ANONYMOUS
16224 #endif
16226 _ACEOF
16227 if ac_fn_c_try_cpp "$LINENO"; then :
16228 ALLOC_FILE=mmap.lo
16229 else
16230 ALLOC_FILE=alloc.lo
16232 rm -f conftest.err conftest.$ac_ext
16237 BACKTRACE_USES_MALLOC=0
16238 if test "$ALLOC_FILE" = "alloc.lo"; then
16239 BACKTRACE_USES_MALLOC=1
16243 # Don't care about thread support
16244 BACKTRACE_SUPPORTS_THREADS=0
16247 # Check for dl_iterate_phdr.
16248 for ac_header in link.h
16249 do :
16250 ac_fn_c_check_header_mongrel "$LINENO" "link.h" "ac_cv_header_link_h" "$ac_includes_default"
16251 if test "x$ac_cv_header_link_h" = x""yes; then :
16252 cat >>confdefs.h <<_ACEOF
16253 #define HAVE_LINK_H 1
16254 _ACEOF
16258 done
16260 if test "$ac_cv_header_link_h" = "no"; then
16261 have_dl_iterate_phdr=no
16262 else
16263 # When built as a GCC target library, we can't do a link test.
16264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16265 /* end confdefs.h. */
16266 #include <link.h>
16268 _ACEOF
16269 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16270 $EGREP "dl_iterate_phdr" >/dev/null 2>&1; then :
16271 have_dl_iterate_phdr=yes
16272 else
16273 have_dl_iterate_phdr=no
16275 rm -f conftest*
16277 case "${host}" in
16278 *-*-solaris2.10*)
16279 # Avoid dl_iterate_phdr on Solaris 10, where it is in the
16280 # header file but is only in -ldl.
16281 have_dl_iterate_phdr=no ;;
16282 esac
16284 if test "$have_dl_iterate_phdr" = "yes"; then
16286 $as_echo "#define HAVE_DL_ITERATE_PHDR 1" >>confdefs.h
16290 # Check for the fcntl function.
16291 if test -n "${with_target_subdir}"; then
16292 case "${host}" in
16293 *-*-mingw*) have_fcntl=no ;;
16294 *) have_fcntl=yes ;;
16295 esac
16296 else
16297 ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
16298 if test "x$ac_cv_func_fcntl" = x""yes; then :
16299 have_fcntl=yes
16300 else
16301 have_fcntl=no
16305 if test "$have_fcntl" = "yes"; then
16307 $as_echo "#define HAVE_FCNTL 1" >>confdefs.h
16311 ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
16312 if test "x$ac_cv_have_decl_strnlen" = x""yes; then :
16313 ac_have_decl=1
16314 else
16315 ac_have_decl=0
16318 cat >>confdefs.h <<_ACEOF
16319 #define HAVE_DECL_STRNLEN $ac_have_decl
16320 _ACEOF
16323 # Check for getexecname function.
16324 if test -n "${with_target_subdir}"; then
16325 case "${host}" in
16326 *-*-solaris2*) have_getexecname=yes ;;
16327 *) have_getexecname=no ;;
16328 esac
16329 else
16330 ac_fn_c_check_func "$LINENO" "getexecname" "ac_cv_func_getexecname"
16331 if test "x$ac_cv_func_getexecname" = x""yes; then :
16332 have_getexecname=yes
16333 else
16334 have_getexecname=no
16338 if test "$have_getexecname" = "yes"; then
16340 $as_echo "#define HAVE_GETEXECNAME 1" >>confdefs.h
16344 if test "x${BACKTRACE_SUPPORTED}x${BACKTRACE_USES_MALLOC}" = "x1x0"; then
16345 LIBBACKTRACE_SUPPORTED_TRUE=
16346 LIBBACKTRACE_SUPPORTED_FALSE='#'
16347 else
16348 LIBBACKTRACE_SUPPORTED_TRUE='#'
16349 LIBBACKTRACE_SUPPORTED_FALSE=
16354 ac_config_files="$ac_config_files Makefile libsanitizer.spec libbacktrace/backtrace-supported.h"
16356 ac_config_headers="$ac_config_headers config.h"
16359 ac_config_files="$ac_config_files interception/Makefile sanitizer_common/Makefile libbacktrace/Makefile lsan/Makefile asan/Makefile ubsan/Makefile"
16362 if test "x$TSAN_SUPPORTED" = "xyes"; then
16363 ac_config_files="$ac_config_files tsan/Makefile"
16369 cat >confcache <<\_ACEOF
16370 # This file is a shell script that caches the results of configure
16371 # tests run on this system so they can be shared between configure
16372 # scripts and configure runs, see configure's option --config-cache.
16373 # It is not useful on other systems. If it contains results you don't
16374 # want to keep, you may remove or edit it.
16376 # config.status only pays attention to the cache file if you give it
16377 # the --recheck option to rerun configure.
16379 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16380 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16381 # following values.
16383 _ACEOF
16385 # The following way of writing the cache mishandles newlines in values,
16386 # but we know of no workaround that is simple, portable, and efficient.
16387 # So, we kill variables containing newlines.
16388 # Ultrix sh set writes to stderr and can't be redirected directly,
16389 # and sets the high bit in the cache file unless we assign to the vars.
16391 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16392 eval ac_val=\$$ac_var
16393 case $ac_val in #(
16394 *${as_nl}*)
16395 case $ac_var in #(
16396 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16397 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16398 esac
16399 case $ac_var in #(
16400 _ | IFS | as_nl) ;; #(
16401 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16402 *) { eval $ac_var=; unset $ac_var;} ;;
16403 esac ;;
16404 esac
16405 done
16407 (set) 2>&1 |
16408 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16409 *${as_nl}ac_space=\ *)
16410 # `set' does not quote correctly, so add quotes: double-quote
16411 # substitution turns \\\\ into \\, and sed turns \\ into \.
16412 sed -n \
16413 "s/'/'\\\\''/g;
16414 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16415 ;; #(
16417 # `set' quotes correctly as required by POSIX, so do not add quotes.
16418 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16420 esac |
16421 sort
16423 sed '
16424 /^ac_cv_env_/b end
16425 t clear
16426 :clear
16427 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16428 t end
16429 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16430 :end' >>confcache
16431 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16432 if test -w "$cache_file"; then
16433 test "x$cache_file" != "x/dev/null" &&
16434 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16435 $as_echo "$as_me: updating cache $cache_file" >&6;}
16436 cat confcache >$cache_file
16437 else
16438 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16439 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16442 rm -f confcache
16444 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16445 # Let make expand exec_prefix.
16446 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16448 DEFS=-DHAVE_CONFIG_H
16450 ac_libobjs=
16451 ac_ltlibobjs=
16452 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16453 # 1. Remove the extension, and $U if already installed.
16454 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16455 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16456 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16457 # will be set to the directory where LIBOBJS objects are built.
16458 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16459 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16460 done
16461 LIBOBJS=$ac_libobjs
16463 LTLIBOBJS=$ac_ltlibobjs
16466 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16467 as_fn_error "conditional \"AMDEP\" was never defined.
16468 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16470 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16471 as_fn_error "conditional \"am__fastdepCC\" was never defined.
16472 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16474 if test -n "$EXEEXT"; then
16475 am__EXEEXT_TRUE=
16476 am__EXEEXT_FALSE='#'
16477 else
16478 am__EXEEXT_TRUE='#'
16479 am__EXEEXT_FALSE=
16482 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16483 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
16484 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16486 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16487 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
16488 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16490 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
16491 as_fn_error "conditional \"am__fastdepCCAS\" was never defined.
16492 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16494 if test -z "${TSAN_SUPPORTED_TRUE}" && test -z "${TSAN_SUPPORTED_FALSE}"; then
16495 as_fn_error "conditional \"TSAN_SUPPORTED\" was never defined.
16496 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16498 if test -z "${LSAN_SUPPORTED_TRUE}" && test -z "${LSAN_SUPPORTED_FALSE}"; then
16499 as_fn_error "conditional \"LSAN_SUPPORTED\" was never defined.
16500 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16502 if test -z "${USING_MAC_INTERPOSE_TRUE}" && test -z "${USING_MAC_INTERPOSE_FALSE}"; then
16503 as_fn_error "conditional \"USING_MAC_INTERPOSE\" was never defined.
16504 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16506 if test -z "${SANITIZER_SUPPORTED_TRUE}" && test -z "${SANITIZER_SUPPORTED_FALSE}"; then
16507 as_fn_error "conditional \"SANITIZER_SUPPORTED\" was never defined.
16508 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16510 if test -z "${LIBBACKTRACE_SUPPORTED_TRUE}" && test -z "${LIBBACKTRACE_SUPPORTED_FALSE}"; then
16511 as_fn_error "conditional \"LIBBACKTRACE_SUPPORTED\" was never defined.
16512 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16515 : ${CONFIG_STATUS=./config.status}
16516 ac_write_fail=0
16517 ac_clean_files_save=$ac_clean_files
16518 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16519 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16520 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16521 as_write_fail=0
16522 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16523 #! $SHELL
16524 # Generated by $as_me.
16525 # Run this file to recreate the current configuration.
16526 # Compiler output produced by configure, useful for debugging
16527 # configure, is in config.log if it exists.
16529 debug=false
16530 ac_cs_recheck=false
16531 ac_cs_silent=false
16533 SHELL=\${CONFIG_SHELL-$SHELL}
16534 export SHELL
16535 _ASEOF
16536 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16537 ## -------------------- ##
16538 ## M4sh Initialization. ##
16539 ## -------------------- ##
16541 # Be more Bourne compatible
16542 DUALCASE=1; export DUALCASE # for MKS sh
16543 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16544 emulate sh
16545 NULLCMD=:
16546 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16547 # is contrary to our usage. Disable this feature.
16548 alias -g '${1+"$@"}'='"$@"'
16549 setopt NO_GLOB_SUBST
16550 else
16551 case `(set -o) 2>/dev/null` in #(
16552 *posix*) :
16553 set -o posix ;; #(
16554 *) :
16556 esac
16560 as_nl='
16562 export as_nl
16563 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16564 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16565 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16566 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16567 # Prefer a ksh shell builtin over an external printf program on Solaris,
16568 # but without wasting forks for bash or zsh.
16569 if test -z "$BASH_VERSION$ZSH_VERSION" \
16570 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16571 as_echo='print -r --'
16572 as_echo_n='print -rn --'
16573 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16574 as_echo='printf %s\n'
16575 as_echo_n='printf %s'
16576 else
16577 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16578 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16579 as_echo_n='/usr/ucb/echo -n'
16580 else
16581 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16582 as_echo_n_body='eval
16583 arg=$1;
16584 case $arg in #(
16585 *"$as_nl"*)
16586 expr "X$arg" : "X\\(.*\\)$as_nl";
16587 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16588 esac;
16589 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16591 export as_echo_n_body
16592 as_echo_n='sh -c $as_echo_n_body as_echo'
16594 export as_echo_body
16595 as_echo='sh -c $as_echo_body as_echo'
16598 # The user is always right.
16599 if test "${PATH_SEPARATOR+set}" != set; then
16600 PATH_SEPARATOR=:
16601 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16602 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16603 PATH_SEPARATOR=';'
16608 # IFS
16609 # We need space, tab and new line, in precisely that order. Quoting is
16610 # there to prevent editors from complaining about space-tab.
16611 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16612 # splitting by setting IFS to empty value.)
16613 IFS=" "" $as_nl"
16615 # Find who we are. Look in the path if we contain no directory separator.
16616 case $0 in #((
16617 *[\\/]* ) as_myself=$0 ;;
16618 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16619 for as_dir in $PATH
16621 IFS=$as_save_IFS
16622 test -z "$as_dir" && as_dir=.
16623 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16624 done
16625 IFS=$as_save_IFS
16628 esac
16629 # We did not find ourselves, most probably we were run as `sh COMMAND'
16630 # in which case we are not to be found in the path.
16631 if test "x$as_myself" = x; then
16632 as_myself=$0
16634 if test ! -f "$as_myself"; then
16635 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16636 exit 1
16639 # Unset variables that we do not need and which cause bugs (e.g. in
16640 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16641 # suppresses any "Segmentation fault" message there. '((' could
16642 # trigger a bug in pdksh 5.2.14.
16643 for as_var in BASH_ENV ENV MAIL MAILPATH
16644 do eval test x\${$as_var+set} = xset \
16645 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16646 done
16647 PS1='$ '
16648 PS2='> '
16649 PS4='+ '
16651 # NLS nuisances.
16652 LC_ALL=C
16653 export LC_ALL
16654 LANGUAGE=C
16655 export LANGUAGE
16657 # CDPATH.
16658 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16661 # as_fn_error ERROR [LINENO LOG_FD]
16662 # ---------------------------------
16663 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16664 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16665 # script with status $?, using 1 if that was 0.
16666 as_fn_error ()
16668 as_status=$?; test $as_status -eq 0 && as_status=1
16669 if test "$3"; then
16670 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16671 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16673 $as_echo "$as_me: error: $1" >&2
16674 as_fn_exit $as_status
16675 } # as_fn_error
16678 # as_fn_set_status STATUS
16679 # -----------------------
16680 # Set $? to STATUS, without forking.
16681 as_fn_set_status ()
16683 return $1
16684 } # as_fn_set_status
16686 # as_fn_exit STATUS
16687 # -----------------
16688 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16689 as_fn_exit ()
16691 set +e
16692 as_fn_set_status $1
16693 exit $1
16694 } # as_fn_exit
16696 # as_fn_unset VAR
16697 # ---------------
16698 # Portably unset VAR.
16699 as_fn_unset ()
16701 { eval $1=; unset $1;}
16703 as_unset=as_fn_unset
16704 # as_fn_append VAR VALUE
16705 # ----------------------
16706 # Append the text in VALUE to the end of the definition contained in VAR. Take
16707 # advantage of any shell optimizations that allow amortized linear growth over
16708 # repeated appends, instead of the typical quadratic growth present in naive
16709 # implementations.
16710 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16711 eval 'as_fn_append ()
16713 eval $1+=\$2
16715 else
16716 as_fn_append ()
16718 eval $1=\$$1\$2
16720 fi # as_fn_append
16722 # as_fn_arith ARG...
16723 # ------------------
16724 # Perform arithmetic evaluation on the ARGs, and store the result in the
16725 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16726 # must be portable across $(()) and expr.
16727 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16728 eval 'as_fn_arith ()
16730 as_val=$(( $* ))
16732 else
16733 as_fn_arith ()
16735 as_val=`expr "$@" || test $? -eq 1`
16737 fi # as_fn_arith
16740 if expr a : '\(a\)' >/dev/null 2>&1 &&
16741 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16742 as_expr=expr
16743 else
16744 as_expr=false
16747 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16748 as_basename=basename
16749 else
16750 as_basename=false
16753 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16754 as_dirname=dirname
16755 else
16756 as_dirname=false
16759 as_me=`$as_basename -- "$0" ||
16760 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16761 X"$0" : 'X\(//\)$' \| \
16762 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16763 $as_echo X/"$0" |
16764 sed '/^.*\/\([^/][^/]*\)\/*$/{
16765 s//\1/
16768 /^X\/\(\/\/\)$/{
16769 s//\1/
16772 /^X\/\(\/\).*/{
16773 s//\1/
16776 s/.*/./; q'`
16778 # Avoid depending upon Character Ranges.
16779 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16780 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16781 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16782 as_cr_digits='0123456789'
16783 as_cr_alnum=$as_cr_Letters$as_cr_digits
16785 ECHO_C= ECHO_N= ECHO_T=
16786 case `echo -n x` in #(((((
16787 -n*)
16788 case `echo 'xy\c'` in
16789 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16790 xy) ECHO_C='\c';;
16791 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16792 ECHO_T=' ';;
16793 esac;;
16795 ECHO_N='-n';;
16796 esac
16798 rm -f conf$$ conf$$.exe conf$$.file
16799 if test -d conf$$.dir; then
16800 rm -f conf$$.dir/conf$$.file
16801 else
16802 rm -f conf$$.dir
16803 mkdir conf$$.dir 2>/dev/null
16805 if (echo >conf$$.file) 2>/dev/null; then
16806 if ln -s conf$$.file conf$$ 2>/dev/null; then
16807 as_ln_s='ln -s'
16808 # ... but there are two gotchas:
16809 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16810 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16811 # In both cases, we have to default to `cp -p'.
16812 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16813 as_ln_s='cp -p'
16814 elif ln conf$$.file conf$$ 2>/dev/null; then
16815 as_ln_s=ln
16816 else
16817 as_ln_s='cp -p'
16819 else
16820 as_ln_s='cp -p'
16822 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16823 rmdir conf$$.dir 2>/dev/null
16826 # as_fn_mkdir_p
16827 # -------------
16828 # Create "$as_dir" as a directory, including parents if necessary.
16829 as_fn_mkdir_p ()
16832 case $as_dir in #(
16833 -*) as_dir=./$as_dir;;
16834 esac
16835 test -d "$as_dir" || eval $as_mkdir_p || {
16836 as_dirs=
16837 while :; do
16838 case $as_dir in #(
16839 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16840 *) as_qdir=$as_dir;;
16841 esac
16842 as_dirs="'$as_qdir' $as_dirs"
16843 as_dir=`$as_dirname -- "$as_dir" ||
16844 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16845 X"$as_dir" : 'X\(//\)[^/]' \| \
16846 X"$as_dir" : 'X\(//\)$' \| \
16847 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16848 $as_echo X"$as_dir" |
16849 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16850 s//\1/
16853 /^X\(\/\/\)[^/].*/{
16854 s//\1/
16857 /^X\(\/\/\)$/{
16858 s//\1/
16861 /^X\(\/\).*/{
16862 s//\1/
16865 s/.*/./; q'`
16866 test -d "$as_dir" && break
16867 done
16868 test -z "$as_dirs" || eval "mkdir $as_dirs"
16869 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16872 } # as_fn_mkdir_p
16873 if mkdir -p . 2>/dev/null; then
16874 as_mkdir_p='mkdir -p "$as_dir"'
16875 else
16876 test -d ./-p && rmdir ./-p
16877 as_mkdir_p=false
16880 if test -x / >/dev/null 2>&1; then
16881 as_test_x='test -x'
16882 else
16883 if ls -dL / >/dev/null 2>&1; then
16884 as_ls_L_option=L
16885 else
16886 as_ls_L_option=
16888 as_test_x='
16889 eval sh -c '\''
16890 if test -d "$1"; then
16891 test -d "$1/.";
16892 else
16893 case $1 in #(
16894 -*)set "./$1";;
16895 esac;
16896 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16897 ???[sx]*):;;*)false;;esac;fi
16898 '\'' sh
16901 as_executable_p=$as_test_x
16903 # Sed expression to map a string onto a valid CPP name.
16904 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16906 # Sed expression to map a string onto a valid variable name.
16907 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16910 exec 6>&1
16911 ## ----------------------------------- ##
16912 ## Main body of $CONFIG_STATUS script. ##
16913 ## ----------------------------------- ##
16914 _ASEOF
16915 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16917 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16918 # Save the log message, to keep $0 and so on meaningful, and to
16919 # report actual input values of CONFIG_FILES etc. instead of their
16920 # values after options handling.
16921 ac_log="
16922 This file was extended by package-unused $as_me version-unused, which was
16923 generated by GNU Autoconf 2.64. Invocation command line was
16925 CONFIG_FILES = $CONFIG_FILES
16926 CONFIG_HEADERS = $CONFIG_HEADERS
16927 CONFIG_LINKS = $CONFIG_LINKS
16928 CONFIG_COMMANDS = $CONFIG_COMMANDS
16929 $ $0 $@
16931 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16934 _ACEOF
16936 case $ac_config_files in *"
16937 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16938 esac
16940 case $ac_config_headers in *"
16941 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16942 esac
16945 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16946 # Files that config.status was made for.
16947 config_files="$ac_config_files"
16948 config_headers="$ac_config_headers"
16949 config_commands="$ac_config_commands"
16951 _ACEOF
16953 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16954 ac_cs_usage="\
16955 \`$as_me' instantiates files and other configuration actions
16956 from templates according to the current configuration. Unless the files
16957 and actions are specified as TAGs, all are instantiated by default.
16959 Usage: $0 [OPTION]... [TAG]...
16961 -h, --help print this help, then exit
16962 -V, --version print version number and configuration settings, then exit
16963 -q, --quiet, --silent
16964 do not print progress messages
16965 -d, --debug don't remove temporary files
16966 --recheck update $as_me by reconfiguring in the same conditions
16967 --file=FILE[:TEMPLATE]
16968 instantiate the configuration file FILE
16969 --header=FILE[:TEMPLATE]
16970 instantiate the configuration header FILE
16972 Configuration files:
16973 $config_files
16975 Configuration headers:
16976 $config_headers
16978 Configuration commands:
16979 $config_commands
16981 Report bugs to <libsanitizer>."
16983 _ACEOF
16984 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16985 ac_cs_version="\\
16986 package-unused config.status version-unused
16987 configured by $0, generated by GNU Autoconf 2.64,
16988 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16990 Copyright (C) 2009 Free Software Foundation, Inc.
16991 This config.status script is free software; the Free Software Foundation
16992 gives unlimited permission to copy, distribute and modify it."
16994 ac_pwd='$ac_pwd'
16995 srcdir='$srcdir'
16996 INSTALL='$INSTALL'
16997 MKDIR_P='$MKDIR_P'
16998 AWK='$AWK'
16999 test -n "\$AWK" || AWK=awk
17000 _ACEOF
17002 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17003 # The default lists apply if the user does not specify any file.
17004 ac_need_defaults=:
17005 while test $# != 0
17007 case $1 in
17008 --*=*)
17009 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17010 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17011 ac_shift=:
17014 ac_option=$1
17015 ac_optarg=$2
17016 ac_shift=shift
17018 esac
17020 case $ac_option in
17021 # Handling of the options.
17022 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17023 ac_cs_recheck=: ;;
17024 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17025 $as_echo "$ac_cs_version"; exit ;;
17026 --debug | --debu | --deb | --de | --d | -d )
17027 debug=: ;;
17028 --file | --fil | --fi | --f )
17029 $ac_shift
17030 case $ac_optarg in
17031 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17032 esac
17033 as_fn_append CONFIG_FILES " '$ac_optarg'"
17034 ac_need_defaults=false;;
17035 --header | --heade | --head | --hea )
17036 $ac_shift
17037 case $ac_optarg in
17038 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17039 esac
17040 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17041 ac_need_defaults=false;;
17042 --he | --h)
17043 # Conflict between --help and --header
17044 as_fn_error "ambiguous option: \`$1'
17045 Try \`$0 --help' for more information.";;
17046 --help | --hel | -h )
17047 $as_echo "$ac_cs_usage"; exit ;;
17048 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17049 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17050 ac_cs_silent=: ;;
17052 # This is an error.
17053 -*) as_fn_error "unrecognized option: \`$1'
17054 Try \`$0 --help' for more information." ;;
17056 *) as_fn_append ac_config_targets " $1"
17057 ac_need_defaults=false ;;
17059 esac
17060 shift
17061 done
17063 ac_configure_extra_args=
17065 if $ac_cs_silent; then
17066 exec 6>/dev/null
17067 ac_configure_extra_args="$ac_configure_extra_args --silent"
17070 _ACEOF
17071 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17072 if \$ac_cs_recheck; then
17073 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17074 shift
17075 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17076 CONFIG_SHELL='$SHELL'
17077 export CONFIG_SHELL
17078 exec "\$@"
17081 _ACEOF
17082 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17083 exec 5>>config.log
17085 echo
17086 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17087 ## Running $as_me. ##
17088 _ASBOX
17089 $as_echo "$ac_log"
17090 } >&5
17092 _ACEOF
17093 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17095 # INIT-COMMANDS
17098 srcdir="$srcdir"
17099 host="$host"
17100 target="$target"
17101 with_multisubdir="$with_multisubdir"
17102 with_multisrctop="$with_multisrctop"
17103 with_target_subdir="$with_target_subdir"
17104 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17105 multi_basedir="$multi_basedir"
17106 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17107 CC="$CC"
17108 CXX="$CXX"
17109 GFORTRAN="$GFORTRAN"
17110 GCJ="$GCJ"
17111 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17114 # The HP-UX ksh and POSIX shell print the target directory to stdout
17115 # if CDPATH is set.
17116 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17118 sed_quote_subst='$sed_quote_subst'
17119 double_quote_subst='$double_quote_subst'
17120 delay_variable_subst='$delay_variable_subst'
17121 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17122 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17123 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17124 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17125 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17126 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17127 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17128 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17129 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17130 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17131 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17132 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17133 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17134 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17135 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17136 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17137 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17138 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17139 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17140 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17141 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17142 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17143 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17144 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17145 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17146 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17147 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17148 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17149 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17150 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17151 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17152 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17153 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17154 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17155 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17156 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17157 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17158 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17159 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17160 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17161 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17162 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17163 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17164 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17165 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17166 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17167 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17168 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17169 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"`'
17170 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17171 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17172 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17173 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17174 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17175 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17176 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17177 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17178 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17179 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17180 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17181 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17182 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17183 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17184 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17185 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17186 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17187 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17188 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17189 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17190 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17191 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17192 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17193 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17194 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17195 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17196 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17197 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17198 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17199 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17200 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17201 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17202 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17203 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17204 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17205 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17206 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17207 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17208 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17209 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17210 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17211 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17212 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17213 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17214 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17215 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17216 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17217 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17218 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17219 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17220 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17221 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17222 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17223 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17224 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17225 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17226 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17227 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17228 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17229 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17230 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17231 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17232 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17233 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17234 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17235 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17236 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17237 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17238 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17239 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17240 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17241 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17242 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17243 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17244 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17245 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17246 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17247 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17248 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17249 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17250 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17251 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17252 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17253 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17254 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17255 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17256 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17257 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17258 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17259 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17260 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17261 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17262 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17263 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17264 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17265 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17266 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17267 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17268 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17269 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17270 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17271 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17272 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17273 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
17274 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17275 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17276 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17277 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17278 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17279 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17280 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17281 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17282 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
17283 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17284 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17285 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17286 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17287 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17288 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17289 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17290 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17291 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17292 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17293 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17294 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17295 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17297 LTCC='$LTCC'
17298 LTCFLAGS='$LTCFLAGS'
17299 compiler='$compiler_DEFAULT'
17301 # A function that is used when there is no print builtin or printf.
17302 func_fallback_echo ()
17304 eval 'cat <<_LTECHO_EOF
17306 _LTECHO_EOF'
17309 # Quote evaled strings.
17310 for var in SHELL \
17311 ECHO \
17312 SED \
17313 GREP \
17314 EGREP \
17315 FGREP \
17316 LD \
17317 NM \
17318 LN_S \
17319 lt_SP2NL \
17320 lt_NL2SP \
17321 reload_flag \
17322 OBJDUMP \
17323 deplibs_check_method \
17324 file_magic_cmd \
17325 AR \
17326 AR_FLAGS \
17327 STRIP \
17328 RANLIB \
17329 CC \
17330 CFLAGS \
17331 compiler \
17332 lt_cv_sys_global_symbol_pipe \
17333 lt_cv_sys_global_symbol_to_cdecl \
17334 lt_cv_sys_global_symbol_to_c_name_address \
17335 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17336 lt_prog_compiler_no_builtin_flag \
17337 lt_prog_compiler_wl \
17338 lt_prog_compiler_pic \
17339 lt_prog_compiler_static \
17340 lt_cv_prog_compiler_c_o \
17341 need_locks \
17342 DSYMUTIL \
17343 NMEDIT \
17344 LIPO \
17345 OTOOL \
17346 OTOOL64 \
17347 shrext_cmds \
17348 export_dynamic_flag_spec \
17349 whole_archive_flag_spec \
17350 compiler_needs_object \
17351 with_gnu_ld \
17352 allow_undefined_flag \
17353 no_undefined_flag \
17354 hardcode_libdir_flag_spec \
17355 hardcode_libdir_flag_spec_ld \
17356 hardcode_libdir_separator \
17357 fix_srcfile_path \
17358 exclude_expsyms \
17359 include_expsyms \
17360 file_list_spec \
17361 variables_saved_for_relink \
17362 libname_spec \
17363 library_names_spec \
17364 soname_spec \
17365 install_override_mode \
17366 finish_eval \
17367 old_striplib \
17368 striplib \
17369 compiler_lib_search_dirs \
17370 predep_objects \
17371 postdep_objects \
17372 predeps \
17373 postdeps \
17374 compiler_lib_search_path \
17375 LD_CXX \
17376 reload_flag_CXX \
17377 compiler_CXX \
17378 lt_prog_compiler_no_builtin_flag_CXX \
17379 lt_prog_compiler_wl_CXX \
17380 lt_prog_compiler_pic_CXX \
17381 lt_prog_compiler_static_CXX \
17382 lt_cv_prog_compiler_c_o_CXX \
17383 export_dynamic_flag_spec_CXX \
17384 whole_archive_flag_spec_CXX \
17385 compiler_needs_object_CXX \
17386 with_gnu_ld_CXX \
17387 allow_undefined_flag_CXX \
17388 no_undefined_flag_CXX \
17389 hardcode_libdir_flag_spec_CXX \
17390 hardcode_libdir_flag_spec_ld_CXX \
17391 hardcode_libdir_separator_CXX \
17392 fix_srcfile_path_CXX \
17393 exclude_expsyms_CXX \
17394 include_expsyms_CXX \
17395 file_list_spec_CXX \
17396 compiler_lib_search_dirs_CXX \
17397 predep_objects_CXX \
17398 postdep_objects_CXX \
17399 predeps_CXX \
17400 postdeps_CXX \
17401 compiler_lib_search_path_CXX; do
17402 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17403 *[\\\\\\\`\\"\\\$]*)
17404 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17407 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17409 esac
17410 done
17412 # Double-quote double-evaled strings.
17413 for var in reload_cmds \
17414 old_postinstall_cmds \
17415 old_postuninstall_cmds \
17416 old_archive_cmds \
17417 extract_expsyms_cmds \
17418 old_archive_from_new_cmds \
17419 old_archive_from_expsyms_cmds \
17420 archive_cmds \
17421 archive_expsym_cmds \
17422 module_cmds \
17423 module_expsym_cmds \
17424 export_symbols_cmds \
17425 prelink_cmds \
17426 postinstall_cmds \
17427 postuninstall_cmds \
17428 finish_cmds \
17429 sys_lib_search_path_spec \
17430 sys_lib_dlsearch_path_spec \
17431 reload_cmds_CXX \
17432 old_archive_cmds_CXX \
17433 old_archive_from_new_cmds_CXX \
17434 old_archive_from_expsyms_cmds_CXX \
17435 archive_cmds_CXX \
17436 archive_expsym_cmds_CXX \
17437 module_cmds_CXX \
17438 module_expsym_cmds_CXX \
17439 export_symbols_cmds_CXX \
17440 prelink_cmds_CXX; do
17441 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17442 *[\\\\\\\`\\"\\\$]*)
17443 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17446 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17448 esac
17449 done
17451 ac_aux_dir='$ac_aux_dir'
17452 xsi_shell='$xsi_shell'
17453 lt_shell_append='$lt_shell_append'
17455 # See if we are running on zsh, and set the options which allow our
17456 # commands through without removal of \ escapes INIT.
17457 if test -n "\${ZSH_VERSION+set}" ; then
17458 setopt NO_GLOB_SUBST
17462 PACKAGE='$PACKAGE'
17463 VERSION='$VERSION'
17464 TIMESTAMP='$TIMESTAMP'
17465 RM='$RM'
17466 ofile='$ofile'
17473 GCC="$GCC"
17474 CC="$CC"
17475 acx_cv_header_stdint="$acx_cv_header_stdint"
17476 acx_cv_type_int8_t="$acx_cv_type_int8_t"
17477 acx_cv_type_int16_t="$acx_cv_type_int16_t"
17478 acx_cv_type_int32_t="$acx_cv_type_int32_t"
17479 acx_cv_type_int64_t="$acx_cv_type_int64_t"
17480 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
17481 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
17482 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
17483 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
17484 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
17485 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
17486 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
17487 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
17488 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
17491 _ACEOF
17493 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17495 # Handling of arguments.
17496 for ac_config_target in $ac_config_targets
17498 case $ac_config_target in
17499 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17500 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17501 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17502 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
17503 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17504 "libsanitizer.spec") CONFIG_FILES="$CONFIG_FILES libsanitizer.spec" ;;
17505 "libbacktrace/backtrace-supported.h") CONFIG_FILES="$CONFIG_FILES libbacktrace/backtrace-supported.h" ;;
17506 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17507 "interception/Makefile") CONFIG_FILES="$CONFIG_FILES interception/Makefile" ;;
17508 "sanitizer_common/Makefile") CONFIG_FILES="$CONFIG_FILES sanitizer_common/Makefile" ;;
17509 "libbacktrace/Makefile") CONFIG_FILES="$CONFIG_FILES libbacktrace/Makefile" ;;
17510 "lsan/Makefile") CONFIG_FILES="$CONFIG_FILES lsan/Makefile" ;;
17511 "asan/Makefile") CONFIG_FILES="$CONFIG_FILES asan/Makefile" ;;
17512 "ubsan/Makefile") CONFIG_FILES="$CONFIG_FILES ubsan/Makefile" ;;
17513 "tsan/Makefile") CONFIG_FILES="$CONFIG_FILES tsan/Makefile" ;;
17515 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17516 esac
17517 done
17520 # If the user did not use the arguments to specify the items to instantiate,
17521 # then the envvar interface is used. Set only those that are not.
17522 # We use the long form for the default assignment because of an extremely
17523 # bizarre bug on SunOS 4.1.3.
17524 if $ac_need_defaults; then
17525 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17526 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17527 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17530 # Have a temporary directory for convenience. Make it in the build tree
17531 # simply because there is no reason against having it here, and in addition,
17532 # creating and moving files from /tmp can sometimes cause problems.
17533 # Hook for its removal unless debugging.
17534 # Note that there is a small window in which the directory will not be cleaned:
17535 # after its creation but before its name has been assigned to `$tmp'.
17536 $debug ||
17538 tmp=
17539 trap 'exit_status=$?
17540 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17542 trap 'as_fn_exit 1' 1 2 13 15
17544 # Create a (secure) tmp directory for tmp files.
17547 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17548 test -n "$tmp" && test -d "$tmp"
17549 } ||
17551 tmp=./conf$$-$RANDOM
17552 (umask 077 && mkdir "$tmp")
17553 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
17555 # Set up the scripts for CONFIG_FILES section.
17556 # No need to generate them if there are no CONFIG_FILES.
17557 # This happens for instance with `./config.status config.h'.
17558 if test -n "$CONFIG_FILES"; then
17561 ac_cr=`echo X | tr X '\015'`
17562 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17563 # But we know of no other shell where ac_cr would be empty at this
17564 # point, so we can use a bashism as a fallback.
17565 if test "x$ac_cr" = x; then
17566 eval ac_cr=\$\'\\r\'
17568 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17569 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17570 ac_cs_awk_cr='\r'
17571 else
17572 ac_cs_awk_cr=$ac_cr
17575 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17576 _ACEOF
17580 echo "cat >conf$$subs.awk <<_ACEOF" &&
17581 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17582 echo "_ACEOF"
17583 } >conf$$subs.sh ||
17584 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17585 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17586 ac_delim='%!_!# '
17587 for ac_last_try in false false false false false :; do
17588 . ./conf$$subs.sh ||
17589 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17591 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17592 if test $ac_delim_n = $ac_delim_num; then
17593 break
17594 elif $ac_last_try; then
17595 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17596 else
17597 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17599 done
17600 rm -f conf$$subs.sh
17602 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17603 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17604 _ACEOF
17605 sed -n '
17607 s/^/S["/; s/!.*/"]=/
17610 s/^[^!]*!//
17611 :repl
17612 t repl
17613 s/'"$ac_delim"'$//
17614 t delim
17617 s/\(.\{148\}\).*/\1/
17618 t more1
17619 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17622 b repl
17623 :more1
17624 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17627 s/.\{148\}//
17628 t nl
17629 :delim
17631 s/\(.\{148\}\).*/\1/
17632 t more2
17633 s/["\\]/\\&/g; s/^/"/; s/$/"/
17636 :more2
17637 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17640 s/.\{148\}//
17641 t delim
17642 ' <conf$$subs.awk | sed '
17643 /^[^""]/{
17645 s/\n//
17647 ' >>$CONFIG_STATUS || ac_write_fail=1
17648 rm -f conf$$subs.awk
17649 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17650 _ACAWK
17651 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17652 for (key in S) S_is_set[key] = 1
17653 FS = "\a"
17657 line = $ 0
17658 nfields = split(line, field, "@")
17659 substed = 0
17660 len = length(field[1])
17661 for (i = 2; i < nfields; i++) {
17662 key = field[i]
17663 keylen = length(key)
17664 if (S_is_set[key]) {
17665 value = S[key]
17666 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17667 len += length(value) + length(field[++i])
17668 substed = 1
17669 } else
17670 len += 1 + keylen
17673 print line
17676 _ACAWK
17677 _ACEOF
17678 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17679 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17680 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17681 else
17683 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17684 || as_fn_error "could not setup config files machinery" "$LINENO" 5
17685 _ACEOF
17687 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17688 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17689 # trailing colons and then remove the whole line if VPATH becomes empty
17690 # (actually we leave an empty line to preserve line numbers).
17691 if test "x$srcdir" = x.; then
17692 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17693 s/:*\$(srcdir):*/:/
17694 s/:*\${srcdir}:*/:/
17695 s/:*@srcdir@:*/:/
17696 s/^\([^=]*=[ ]*\):*/\1/
17697 s/:*$//
17698 s/^[^=]*=[ ]*$//
17702 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17703 fi # test -n "$CONFIG_FILES"
17705 # Set up the scripts for CONFIG_HEADERS section.
17706 # No need to generate them if there are no CONFIG_HEADERS.
17707 # This happens for instance with `./config.status Makefile'.
17708 if test -n "$CONFIG_HEADERS"; then
17709 cat >"$tmp/defines.awk" <<\_ACAWK ||
17710 BEGIN {
17711 _ACEOF
17713 # Transform confdefs.h into an awk script `defines.awk', embedded as
17714 # here-document in config.status, that substitutes the proper values into
17715 # config.h.in to produce config.h.
17717 # Create a delimiter string that does not exist in confdefs.h, to ease
17718 # handling of long lines.
17719 ac_delim='%!_!# '
17720 for ac_last_try in false false :; do
17721 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17722 if test -z "$ac_t"; then
17723 break
17724 elif $ac_last_try; then
17725 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
17726 else
17727 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17729 done
17731 # For the awk script, D is an array of macro values keyed by name,
17732 # likewise P contains macro parameters if any. Preserve backslash
17733 # newline sequences.
17735 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17736 sed -n '
17737 s/.\{148\}/&'"$ac_delim"'/g
17738 t rset
17739 :rset
17740 s/^[ ]*#[ ]*define[ ][ ]*/ /
17741 t def
17743 :def
17744 s/\\$//
17745 t bsnl
17746 s/["\\]/\\&/g
17747 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17748 D["\1"]=" \3"/p
17749 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17751 :bsnl
17752 s/["\\]/\\&/g
17753 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17754 D["\1"]=" \3\\\\\\n"\\/p
17755 t cont
17756 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17757 t cont
17759 :cont
17761 s/.\{148\}/&'"$ac_delim"'/g
17762 t clear
17763 :clear
17764 s/\\$//
17765 t bsnlc
17766 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17768 :bsnlc
17769 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17770 b cont
17771 ' <confdefs.h | sed '
17772 s/'"$ac_delim"'/"\\\
17773 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17775 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17776 for (key in D) D_is_set[key] = 1
17777 FS = "\a"
17779 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17780 line = \$ 0
17781 split(line, arg, " ")
17782 if (arg[1] == "#") {
17783 defundef = arg[2]
17784 mac1 = arg[3]
17785 } else {
17786 defundef = substr(arg[1], 2)
17787 mac1 = arg[2]
17789 split(mac1, mac2, "(") #)
17790 macro = mac2[1]
17791 prefix = substr(line, 1, index(line, defundef) - 1)
17792 if (D_is_set[macro]) {
17793 # Preserve the white space surrounding the "#".
17794 print prefix "define", macro P[macro] D[macro]
17795 next
17796 } else {
17797 # Replace #undef with comments. This is necessary, for example,
17798 # in the case of _POSIX_SOURCE, which is predefined and required
17799 # on some systems where configure will not decide to define it.
17800 if (defundef == "undef") {
17801 print "/*", prefix defundef, macro, "*/"
17802 next
17806 { print }
17807 _ACAWK
17808 _ACEOF
17809 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17810 as_fn_error "could not setup config headers machinery" "$LINENO" 5
17811 fi # test -n "$CONFIG_HEADERS"
17814 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17815 shift
17816 for ac_tag
17818 case $ac_tag in
17819 :[FHLC]) ac_mode=$ac_tag; continue;;
17820 esac
17821 case $ac_mode$ac_tag in
17822 :[FHL]*:*);;
17823 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
17824 :[FH]-) ac_tag=-:-;;
17825 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17826 esac
17827 ac_save_IFS=$IFS
17828 IFS=:
17829 set x $ac_tag
17830 IFS=$ac_save_IFS
17831 shift
17832 ac_file=$1
17833 shift
17835 case $ac_mode in
17836 :L) ac_source=$1;;
17837 :[FH])
17838 ac_file_inputs=
17839 for ac_f
17841 case $ac_f in
17842 -) ac_f="$tmp/stdin";;
17843 *) # Look for the file first in the build tree, then in the source tree
17844 # (if the path is not absolute). The absolute path cannot be DOS-style,
17845 # because $ac_f cannot contain `:'.
17846 test -f "$ac_f" ||
17847 case $ac_f in
17848 [\\/$]*) false;;
17849 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17850 esac ||
17851 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17852 esac
17853 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17854 as_fn_append ac_file_inputs " '$ac_f'"
17855 done
17857 # Let's still pretend it is `configure' which instantiates (i.e., don't
17858 # use $as_me), people would be surprised to read:
17859 # /* config.h. Generated by config.status. */
17860 configure_input='Generated from '`
17861 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17862 `' by configure.'
17863 if test x"$ac_file" != x-; then
17864 configure_input="$ac_file. $configure_input"
17865 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17866 $as_echo "$as_me: creating $ac_file" >&6;}
17868 # Neutralize special characters interpreted by sed in replacement strings.
17869 case $configure_input in #(
17870 *\&* | *\|* | *\\* )
17871 ac_sed_conf_input=`$as_echo "$configure_input" |
17872 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17873 *) ac_sed_conf_input=$configure_input;;
17874 esac
17876 case $ac_tag in
17877 *:-:* | *:-) cat >"$tmp/stdin" \
17878 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17879 esac
17881 esac
17883 ac_dir=`$as_dirname -- "$ac_file" ||
17884 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17885 X"$ac_file" : 'X\(//\)[^/]' \| \
17886 X"$ac_file" : 'X\(//\)$' \| \
17887 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17888 $as_echo X"$ac_file" |
17889 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17890 s//\1/
17893 /^X\(\/\/\)[^/].*/{
17894 s//\1/
17897 /^X\(\/\/\)$/{
17898 s//\1/
17901 /^X\(\/\).*/{
17902 s//\1/
17905 s/.*/./; q'`
17906 as_dir="$ac_dir"; as_fn_mkdir_p
17907 ac_builddir=.
17909 case "$ac_dir" in
17910 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17912 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17913 # A ".." for each directory in $ac_dir_suffix.
17914 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17915 case $ac_top_builddir_sub in
17916 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17917 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17918 esac ;;
17919 esac
17920 ac_abs_top_builddir=$ac_pwd
17921 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17922 # for backward compatibility:
17923 ac_top_builddir=$ac_top_build_prefix
17925 case $srcdir in
17926 .) # We are building in place.
17927 ac_srcdir=.
17928 ac_top_srcdir=$ac_top_builddir_sub
17929 ac_abs_top_srcdir=$ac_pwd ;;
17930 [\\/]* | ?:[\\/]* ) # Absolute name.
17931 ac_srcdir=$srcdir$ac_dir_suffix;
17932 ac_top_srcdir=$srcdir
17933 ac_abs_top_srcdir=$srcdir ;;
17934 *) # Relative name.
17935 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17936 ac_top_srcdir=$ac_top_build_prefix$srcdir
17937 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17938 esac
17939 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17942 case $ac_mode in
17945 # CONFIG_FILE
17948 case $INSTALL in
17949 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17950 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17951 esac
17952 ac_MKDIR_P=$MKDIR_P
17953 case $MKDIR_P in
17954 [\\/$]* | ?:[\\/]* ) ;;
17955 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17956 esac
17957 _ACEOF
17959 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17960 # If the template does not know about datarootdir, expand it.
17961 # FIXME: This hack should be removed a few years after 2.60.
17962 ac_datarootdir_hack=; ac_datarootdir_seen=
17963 ac_sed_dataroot='
17964 /datarootdir/ {
17968 /@datadir@/p
17969 /@docdir@/p
17970 /@infodir@/p
17971 /@localedir@/p
17972 /@mandir@/p'
17973 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17974 *datarootdir*) ac_datarootdir_seen=yes;;
17975 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17977 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17978 _ACEOF
17979 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17980 ac_datarootdir_hack='
17981 s&@datadir@&$datadir&g
17982 s&@docdir@&$docdir&g
17983 s&@infodir@&$infodir&g
17984 s&@localedir@&$localedir&g
17985 s&@mandir@&$mandir&g
17986 s&\\\${datarootdir}&$datarootdir&g' ;;
17987 esac
17988 _ACEOF
17990 # Neutralize VPATH when `$srcdir' = `.'.
17991 # Shell code in configure.ac might set extrasub.
17992 # FIXME: do we really want to maintain this feature?
17993 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17994 ac_sed_extra="$ac_vpsub
17995 $extrasub
17996 _ACEOF
17997 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17999 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18000 s|@configure_input@|$ac_sed_conf_input|;t t
18001 s&@top_builddir@&$ac_top_builddir_sub&;t t
18002 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18003 s&@srcdir@&$ac_srcdir&;t t
18004 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18005 s&@top_srcdir@&$ac_top_srcdir&;t t
18006 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18007 s&@builddir@&$ac_builddir&;t t
18008 s&@abs_builddir@&$ac_abs_builddir&;t t
18009 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18010 s&@INSTALL@&$ac_INSTALL&;t t
18011 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18012 $ac_datarootdir_hack
18014 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
18015 || as_fn_error "could not create $ac_file" "$LINENO" 5
18017 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18018 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18019 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18021 which seems to be undefined. Please make sure it is defined." >&5
18022 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18023 which seems to be undefined. Please make sure it is defined." >&2;}
18025 rm -f "$tmp/stdin"
18026 case $ac_file in
18027 -) cat "$tmp/out" && rm -f "$tmp/out";;
18028 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18029 esac \
18030 || as_fn_error "could not create $ac_file" "$LINENO" 5
18034 # CONFIG_HEADER
18036 if test x"$ac_file" != x-; then
18038 $as_echo "/* $configure_input */" \
18039 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18040 } >"$tmp/config.h" \
18041 || as_fn_error "could not create $ac_file" "$LINENO" 5
18042 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18043 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18044 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18045 else
18046 rm -f "$ac_file"
18047 mv "$tmp/config.h" "$ac_file" \
18048 || as_fn_error "could not create $ac_file" "$LINENO" 5
18050 else
18051 $as_echo "/* $configure_input */" \
18052 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18053 || as_fn_error "could not create -" "$LINENO" 5
18055 # Compute "$ac_file"'s index in $config_headers.
18056 _am_arg="$ac_file"
18057 _am_stamp_count=1
18058 for _am_header in $config_headers :; do
18059 case $_am_header in
18060 $_am_arg | $_am_arg:* )
18061 break ;;
18063 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18064 esac
18065 done
18066 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18067 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18068 X"$_am_arg" : 'X\(//\)[^/]' \| \
18069 X"$_am_arg" : 'X\(//\)$' \| \
18070 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18071 $as_echo X"$_am_arg" |
18072 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18073 s//\1/
18076 /^X\(\/\/\)[^/].*/{
18077 s//\1/
18080 /^X\(\/\/\)$/{
18081 s//\1/
18084 /^X\(\/\).*/{
18085 s//\1/
18088 s/.*/./; q'`/stamp-h$_am_stamp_count
18091 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18092 $as_echo "$as_me: executing $ac_file commands" >&6;}
18094 esac
18097 case $ac_file$ac_mode in
18098 "default-1":C)
18099 # Only add multilib support code if we just rebuilt the top-level
18100 # Makefile.
18101 case " $CONFIG_FILES " in
18102 *" Makefile "*)
18103 ac_file=Makefile . ${multi_basedir}/config-ml.in
18105 esac ;;
18106 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18107 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18108 # are listed without --file. Let's play safe and only enable the eval
18109 # if we detect the quoting.
18110 case $CONFIG_FILES in
18111 *\'*) eval set x "$CONFIG_FILES" ;;
18112 *) set x $CONFIG_FILES ;;
18113 esac
18114 shift
18115 for mf
18117 # Strip MF so we end up with the name of the file.
18118 mf=`echo "$mf" | sed -e 's/:.*$//'`
18119 # Check whether this is an Automake generated Makefile or not.
18120 # We used to match only the files named `Makefile.in', but
18121 # some people rename them; so instead we look at the file content.
18122 # Grep'ing the first line is not enough: some people post-process
18123 # each Makefile.in and add a new line on top of each file to say so.
18124 # Grep'ing the whole file is not good either: AIX grep has a line
18125 # limit of 2048, but all sed's we know have understand at least 4000.
18126 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18127 dirpart=`$as_dirname -- "$mf" ||
18128 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18129 X"$mf" : 'X\(//\)[^/]' \| \
18130 X"$mf" : 'X\(//\)$' \| \
18131 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18132 $as_echo X"$mf" |
18133 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18134 s//\1/
18137 /^X\(\/\/\)[^/].*/{
18138 s//\1/
18141 /^X\(\/\/\)$/{
18142 s//\1/
18145 /^X\(\/\).*/{
18146 s//\1/
18149 s/.*/./; q'`
18150 else
18151 continue
18153 # Extract the definition of DEPDIR, am__include, and am__quote
18154 # from the Makefile without running `make'.
18155 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18156 test -z "$DEPDIR" && continue
18157 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18158 test -z "am__include" && continue
18159 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18160 # When using ansi2knr, U may be empty or an underscore; expand it
18161 U=`sed -n 's/^U = //p' < "$mf"`
18162 # Find all dependency output files, they are included files with
18163 # $(DEPDIR) in their names. We invoke sed twice because it is the
18164 # simplest approach to changing $(DEPDIR) to its actual value in the
18165 # expansion.
18166 for file in `sed -n "
18167 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18168 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18169 # Make sure the directory exists.
18170 test -f "$dirpart/$file" && continue
18171 fdir=`$as_dirname -- "$file" ||
18172 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18173 X"$file" : 'X\(//\)[^/]' \| \
18174 X"$file" : 'X\(//\)$' \| \
18175 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18176 $as_echo X"$file" |
18177 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18178 s//\1/
18181 /^X\(\/\/\)[^/].*/{
18182 s//\1/
18185 /^X\(\/\/\)$/{
18186 s//\1/
18189 /^X\(\/\).*/{
18190 s//\1/
18193 s/.*/./; q'`
18194 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18195 # echo "creating $dirpart/$file"
18196 echo '# dummy' > "$dirpart/$file"
18197 done
18198 done
18201 "libtool":C)
18203 # See if we are running on zsh, and set the options which allow our
18204 # commands through without removal of \ escapes.
18205 if test -n "${ZSH_VERSION+set}" ; then
18206 setopt NO_GLOB_SUBST
18209 cfgfile="${ofile}T"
18210 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18211 $RM "$cfgfile"
18213 cat <<_LT_EOF >> "$cfgfile"
18214 #! $SHELL
18216 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18217 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18218 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18219 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18221 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18222 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18223 # Written by Gordon Matzigkeit, 1996
18225 # This file is part of GNU Libtool.
18227 # GNU Libtool is free software; you can redistribute it and/or
18228 # modify it under the terms of the GNU General Public License as
18229 # published by the Free Software Foundation; either version 2 of
18230 # the License, or (at your option) any later version.
18232 # As a special exception to the GNU General Public License,
18233 # if you distribute this file as part of a program or library that
18234 # is built using GNU Libtool, you may include this file under the
18235 # same distribution terms that you use for the rest of that program.
18237 # GNU Libtool is distributed in the hope that it will be useful,
18238 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18239 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18240 # GNU General Public License for more details.
18242 # You should have received a copy of the GNU General Public License
18243 # along with GNU Libtool; see the file COPYING. If not, a copy
18244 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18245 # obtained by writing to the Free Software Foundation, Inc.,
18246 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18249 # The names of the tagged configurations supported by this script.
18250 available_tags="CXX "
18252 # ### BEGIN LIBTOOL CONFIG
18254 # Which release of libtool.m4 was used?
18255 macro_version=$macro_version
18256 macro_revision=$macro_revision
18258 # Whether or not to build shared libraries.
18259 build_libtool_libs=$enable_shared
18261 # Whether or not to build static libraries.
18262 build_old_libs=$enable_static
18264 # What type of objects to build.
18265 pic_mode=$pic_mode
18267 # Whether or not to optimize for fast installation.
18268 fast_install=$enable_fast_install
18270 # Shell to use when invoking shell scripts.
18271 SHELL=$lt_SHELL
18273 # An echo program that protects backslashes.
18274 ECHO=$lt_ECHO
18276 # The host system.
18277 host_alias=$host_alias
18278 host=$host
18279 host_os=$host_os
18281 # The build system.
18282 build_alias=$build_alias
18283 build=$build
18284 build_os=$build_os
18286 # A sed program that does not truncate output.
18287 SED=$lt_SED
18289 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18290 Xsed="\$SED -e 1s/^X//"
18292 # A grep program that handles long lines.
18293 GREP=$lt_GREP
18295 # An ERE matcher.
18296 EGREP=$lt_EGREP
18298 # A literal string matcher.
18299 FGREP=$lt_FGREP
18301 # A BSD- or MS-compatible name lister.
18302 NM=$lt_NM
18304 # Whether we need soft or hard links.
18305 LN_S=$lt_LN_S
18307 # What is the maximum length of a command?
18308 max_cmd_len=$max_cmd_len
18310 # Object file suffix (normally "o").
18311 objext=$ac_objext
18313 # Executable file suffix (normally "").
18314 exeext=$exeext
18316 # whether the shell understands "unset".
18317 lt_unset=$lt_unset
18319 # turn spaces into newlines.
18320 SP2NL=$lt_lt_SP2NL
18322 # turn newlines into spaces.
18323 NL2SP=$lt_lt_NL2SP
18325 # An object symbol dumper.
18326 OBJDUMP=$lt_OBJDUMP
18328 # Method to check whether dependent libraries are shared objects.
18329 deplibs_check_method=$lt_deplibs_check_method
18331 # Command to use when deplibs_check_method == "file_magic".
18332 file_magic_cmd=$lt_file_magic_cmd
18334 # The archiver.
18335 AR=$lt_AR
18336 AR_FLAGS=$lt_AR_FLAGS
18338 # A symbol stripping program.
18339 STRIP=$lt_STRIP
18341 # Commands used to install an old-style archive.
18342 RANLIB=$lt_RANLIB
18343 old_postinstall_cmds=$lt_old_postinstall_cmds
18344 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18346 # Whether to use a lock for old archive extraction.
18347 lock_old_archive_extraction=$lock_old_archive_extraction
18349 # A C compiler.
18350 LTCC=$lt_CC
18352 # LTCC compiler flags.
18353 LTCFLAGS=$lt_CFLAGS
18355 # Take the output of nm and produce a listing of raw symbols and C names.
18356 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18358 # Transform the output of nm in a proper C declaration.
18359 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18361 # Transform the output of nm in a C name address pair.
18362 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18364 # Transform the output of nm in a C name address pair when lib prefix is needed.
18365 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18367 # The name of the directory that contains temporary libtool files.
18368 objdir=$objdir
18370 # Used to examine libraries when file_magic_cmd begins with "file".
18371 MAGIC_CMD=$MAGIC_CMD
18373 # Must we lock files when doing compilation?
18374 need_locks=$lt_need_locks
18376 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18377 DSYMUTIL=$lt_DSYMUTIL
18379 # Tool to change global to local symbols on Mac OS X.
18380 NMEDIT=$lt_NMEDIT
18382 # Tool to manipulate fat objects and archives on Mac OS X.
18383 LIPO=$lt_LIPO
18385 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18386 OTOOL=$lt_OTOOL
18388 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18389 OTOOL64=$lt_OTOOL64
18391 # Old archive suffix (normally "a").
18392 libext=$libext
18394 # Shared library suffix (normally ".so").
18395 shrext_cmds=$lt_shrext_cmds
18397 # The commands to extract the exported symbol list from a shared archive.
18398 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18400 # Variables whose values should be saved in libtool wrapper scripts and
18401 # restored at link time.
18402 variables_saved_for_relink=$lt_variables_saved_for_relink
18404 # Do we need the "lib" prefix for modules?
18405 need_lib_prefix=$need_lib_prefix
18407 # Do we need a version for libraries?
18408 need_version=$need_version
18410 # Library versioning type.
18411 version_type=$version_type
18413 # Shared library runtime path variable.
18414 runpath_var=$runpath_var
18416 # Shared library path variable.
18417 shlibpath_var=$shlibpath_var
18419 # Is shlibpath searched before the hard-coded library search path?
18420 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18422 # Format of library name prefix.
18423 libname_spec=$lt_libname_spec
18425 # List of archive names. First name is the real one, the rest are links.
18426 # The last name is the one that the linker finds with -lNAME
18427 library_names_spec=$lt_library_names_spec
18429 # The coded name of the library, if different from the real name.
18430 soname_spec=$lt_soname_spec
18432 # Permission mode override for installation of shared libraries.
18433 install_override_mode=$lt_install_override_mode
18435 # Command to use after installation of a shared archive.
18436 postinstall_cmds=$lt_postinstall_cmds
18438 # Command to use after uninstallation of a shared archive.
18439 postuninstall_cmds=$lt_postuninstall_cmds
18441 # Commands used to finish a libtool library installation in a directory.
18442 finish_cmds=$lt_finish_cmds
18444 # As "finish_cmds", except a single script fragment to be evaled but
18445 # not shown.
18446 finish_eval=$lt_finish_eval
18448 # Whether we should hardcode library paths into libraries.
18449 hardcode_into_libs=$hardcode_into_libs
18451 # Compile-time system search path for libraries.
18452 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18454 # Run-time system search path for libraries.
18455 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18457 # Whether dlopen is supported.
18458 dlopen_support=$enable_dlopen
18460 # Whether dlopen of programs is supported.
18461 dlopen_self=$enable_dlopen_self
18463 # Whether dlopen of statically linked programs is supported.
18464 dlopen_self_static=$enable_dlopen_self_static
18466 # Commands to strip libraries.
18467 old_striplib=$lt_old_striplib
18468 striplib=$lt_striplib
18471 # The linker used to build libraries.
18472 LD=$lt_LD
18474 # How to create reloadable object files.
18475 reload_flag=$lt_reload_flag
18476 reload_cmds=$lt_reload_cmds
18478 # Commands used to build an old-style archive.
18479 old_archive_cmds=$lt_old_archive_cmds
18481 # A language specific compiler.
18482 CC=$lt_compiler
18484 # Is the compiler the GNU compiler?
18485 with_gcc=$GCC
18487 # Compiler flag to turn off builtin functions.
18488 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18490 # How to pass a linker flag through the compiler.
18491 wl=$lt_lt_prog_compiler_wl
18493 # Additional compiler flags for building library objects.
18494 pic_flag=$lt_lt_prog_compiler_pic
18496 # Compiler flag to prevent dynamic linking.
18497 link_static_flag=$lt_lt_prog_compiler_static
18499 # Does compiler simultaneously support -c and -o options?
18500 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18502 # Whether or not to add -lc for building shared libraries.
18503 build_libtool_need_lc=$archive_cmds_need_lc
18505 # Whether or not to disallow shared libs when runtime libs are static.
18506 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18508 # Compiler flag to allow reflexive dlopens.
18509 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18511 # Compiler flag to generate shared objects directly from archives.
18512 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18514 # Whether the compiler copes with passing no objects directly.
18515 compiler_needs_object=$lt_compiler_needs_object
18517 # Create an old-style archive from a shared archive.
18518 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18520 # Create a temporary old-style archive to link instead of a shared archive.
18521 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18523 # Commands used to build a shared archive.
18524 archive_cmds=$lt_archive_cmds
18525 archive_expsym_cmds=$lt_archive_expsym_cmds
18527 # Commands used to build a loadable module if different from building
18528 # a shared archive.
18529 module_cmds=$lt_module_cmds
18530 module_expsym_cmds=$lt_module_expsym_cmds
18532 # Whether we are building with GNU ld or not.
18533 with_gnu_ld=$lt_with_gnu_ld
18535 # Flag that allows shared libraries with undefined symbols to be built.
18536 allow_undefined_flag=$lt_allow_undefined_flag
18538 # Flag that enforces no undefined symbols.
18539 no_undefined_flag=$lt_no_undefined_flag
18541 # Flag to hardcode \$libdir into a binary during linking.
18542 # This must work even if \$libdir does not exist
18543 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18545 # If ld is used when linking, flag to hardcode \$libdir into a binary
18546 # during linking. This must work even if \$libdir does not exist.
18547 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18549 # Whether we need a single "-rpath" flag with a separated argument.
18550 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18552 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18553 # DIR into the resulting binary.
18554 hardcode_direct=$hardcode_direct
18556 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18557 # DIR into the resulting binary and the resulting library dependency is
18558 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18559 # library is relocated.
18560 hardcode_direct_absolute=$hardcode_direct_absolute
18562 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18563 # into the resulting binary.
18564 hardcode_minus_L=$hardcode_minus_L
18566 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18567 # into the resulting binary.
18568 hardcode_shlibpath_var=$hardcode_shlibpath_var
18570 # Set to "yes" if building a shared library automatically hardcodes DIR
18571 # into the library and all subsequent libraries and executables linked
18572 # against it.
18573 hardcode_automatic=$hardcode_automatic
18575 # Set to yes if linker adds runtime paths of dependent libraries
18576 # to runtime path list.
18577 inherit_rpath=$inherit_rpath
18579 # Whether libtool must link a program against all its dependency libraries.
18580 link_all_deplibs=$link_all_deplibs
18582 # Fix the shell variable \$srcfile for the compiler.
18583 fix_srcfile_path=$lt_fix_srcfile_path
18585 # Set to "yes" if exported symbols are required.
18586 always_export_symbols=$always_export_symbols
18588 # The commands to list exported symbols.
18589 export_symbols_cmds=$lt_export_symbols_cmds
18591 # Symbols that should not be listed in the preloaded symbols.
18592 exclude_expsyms=$lt_exclude_expsyms
18594 # Symbols that must always be exported.
18595 include_expsyms=$lt_include_expsyms
18597 # Commands necessary for linking programs (against libraries) with templates.
18598 prelink_cmds=$lt_prelink_cmds
18600 # Specify filename containing input files.
18601 file_list_spec=$lt_file_list_spec
18603 # How to hardcode a shared library path into an executable.
18604 hardcode_action=$hardcode_action
18606 # The directories searched by this compiler when creating a shared library.
18607 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18609 # Dependencies to place before and after the objects being linked to
18610 # create a shared library.
18611 predep_objects=$lt_predep_objects
18612 postdep_objects=$lt_postdep_objects
18613 predeps=$lt_predeps
18614 postdeps=$lt_postdeps
18616 # The library search path used internally by the compiler when linking
18617 # a shared library.
18618 compiler_lib_search_path=$lt_compiler_lib_search_path
18620 # ### END LIBTOOL CONFIG
18622 _LT_EOF
18624 case $host_os in
18625 aix3*)
18626 cat <<\_LT_EOF >> "$cfgfile"
18627 # AIX sometimes has problems with the GCC collect2 program. For some
18628 # reason, if we set the COLLECT_NAMES environment variable, the problems
18629 # vanish in a puff of smoke.
18630 if test "X${COLLECT_NAMES+set}" != Xset; then
18631 COLLECT_NAMES=
18632 export COLLECT_NAMES
18634 _LT_EOF
18636 esac
18639 ltmain="$ac_aux_dir/ltmain.sh"
18642 # We use sed instead of cat because bash on DJGPP gets confused if
18643 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18644 # text mode, it properly converts lines to CR/LF. This bash problem
18645 # is reportedly fixed, but why not run on old versions too?
18646 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18647 || (rm -f "$cfgfile"; exit 1)
18649 case $xsi_shell in
18650 yes)
18651 cat << \_LT_EOF >> "$cfgfile"
18653 # func_dirname file append nondir_replacement
18654 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18655 # otherwise set result to NONDIR_REPLACEMENT.
18656 func_dirname ()
18658 case ${1} in
18659 */*) func_dirname_result="${1%/*}${2}" ;;
18660 * ) func_dirname_result="${3}" ;;
18661 esac
18664 # func_basename file
18665 func_basename ()
18667 func_basename_result="${1##*/}"
18670 # func_dirname_and_basename file append nondir_replacement
18671 # perform func_basename and func_dirname in a single function
18672 # call:
18673 # dirname: Compute the dirname of FILE. If nonempty,
18674 # add APPEND to the result, otherwise set result
18675 # to NONDIR_REPLACEMENT.
18676 # value returned in "$func_dirname_result"
18677 # basename: Compute filename of FILE.
18678 # value retuned in "$func_basename_result"
18679 # Implementation must be kept synchronized with func_dirname
18680 # and func_basename. For efficiency, we do not delegate to
18681 # those functions but instead duplicate the functionality here.
18682 func_dirname_and_basename ()
18684 case ${1} in
18685 */*) func_dirname_result="${1%/*}${2}" ;;
18686 * ) func_dirname_result="${3}" ;;
18687 esac
18688 func_basename_result="${1##*/}"
18691 # func_stripname prefix suffix name
18692 # strip PREFIX and SUFFIX off of NAME.
18693 # PREFIX and SUFFIX must not contain globbing or regex special
18694 # characters, hashes, percent signs, but SUFFIX may contain a leading
18695 # dot (in which case that matches only a dot).
18696 func_stripname ()
18698 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18699 # positional parameters, so assign one to ordinary parameter first.
18700 func_stripname_result=${3}
18701 func_stripname_result=${func_stripname_result#"${1}"}
18702 func_stripname_result=${func_stripname_result%"${2}"}
18705 # func_opt_split
18706 func_opt_split ()
18708 func_opt_split_opt=${1%%=*}
18709 func_opt_split_arg=${1#*=}
18712 # func_lo2o object
18713 func_lo2o ()
18715 case ${1} in
18716 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18717 *) func_lo2o_result=${1} ;;
18718 esac
18721 # func_xform libobj-or-source
18722 func_xform ()
18724 func_xform_result=${1%.*}.lo
18727 # func_arith arithmetic-term...
18728 func_arith ()
18730 func_arith_result=$(( $* ))
18733 # func_len string
18734 # STRING may not start with a hyphen.
18735 func_len ()
18737 func_len_result=${#1}
18740 _LT_EOF
18742 *) # Bourne compatible functions.
18743 cat << \_LT_EOF >> "$cfgfile"
18745 # func_dirname file append nondir_replacement
18746 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18747 # otherwise set result to NONDIR_REPLACEMENT.
18748 func_dirname ()
18750 # Extract subdirectory from the argument.
18751 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
18752 if test "X$func_dirname_result" = "X${1}"; then
18753 func_dirname_result="${3}"
18754 else
18755 func_dirname_result="$func_dirname_result${2}"
18759 # func_basename file
18760 func_basename ()
18762 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
18766 # func_stripname prefix suffix name
18767 # strip PREFIX and SUFFIX off of NAME.
18768 # PREFIX and SUFFIX must not contain globbing or regex special
18769 # characters, hashes, percent signs, but SUFFIX may contain a leading
18770 # dot (in which case that matches only a dot).
18771 # func_strip_suffix prefix name
18772 func_stripname ()
18774 case ${2} in
18775 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
18776 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
18777 esac
18780 # sed scripts:
18781 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18782 my_sed_long_arg='1s/^-[^=]*=//'
18784 # func_opt_split
18785 func_opt_split ()
18787 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
18788 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
18791 # func_lo2o object
18792 func_lo2o ()
18794 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
18797 # func_xform libobj-or-source
18798 func_xform ()
18800 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
18803 # func_arith arithmetic-term...
18804 func_arith ()
18806 func_arith_result=`expr "$@"`
18809 # func_len string
18810 # STRING may not start with a hyphen.
18811 func_len ()
18813 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18816 _LT_EOF
18817 esac
18819 case $lt_shell_append in
18820 yes)
18821 cat << \_LT_EOF >> "$cfgfile"
18823 # func_append var value
18824 # Append VALUE to the end of shell variable VAR.
18825 func_append ()
18827 eval "$1+=\$2"
18829 _LT_EOF
18832 cat << \_LT_EOF >> "$cfgfile"
18834 # func_append var value
18835 # Append VALUE to the end of shell variable VAR.
18836 func_append ()
18838 eval "$1=\$$1\$2"
18841 _LT_EOF
18843 esac
18846 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18847 || (rm -f "$cfgfile"; exit 1)
18849 mv -f "$cfgfile" "$ofile" ||
18850 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18851 chmod +x "$ofile"
18854 cat <<_LT_EOF >> "$ofile"
18856 # ### BEGIN LIBTOOL TAG CONFIG: CXX
18858 # The linker used to build libraries.
18859 LD=$lt_LD_CXX
18861 # How to create reloadable object files.
18862 reload_flag=$lt_reload_flag_CXX
18863 reload_cmds=$lt_reload_cmds_CXX
18865 # Commands used to build an old-style archive.
18866 old_archive_cmds=$lt_old_archive_cmds_CXX
18868 # A language specific compiler.
18869 CC=$lt_compiler_CXX
18871 # Is the compiler the GNU compiler?
18872 with_gcc=$GCC_CXX
18874 # Compiler flag to turn off builtin functions.
18875 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18877 # How to pass a linker flag through the compiler.
18878 wl=$lt_lt_prog_compiler_wl_CXX
18880 # Additional compiler flags for building library objects.
18881 pic_flag=$lt_lt_prog_compiler_pic_CXX
18883 # Compiler flag to prevent dynamic linking.
18884 link_static_flag=$lt_lt_prog_compiler_static_CXX
18886 # Does compiler simultaneously support -c and -o options?
18887 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18889 # Whether or not to add -lc for building shared libraries.
18890 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18892 # Whether or not to disallow shared libs when runtime libs are static.
18893 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18895 # Compiler flag to allow reflexive dlopens.
18896 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18898 # Compiler flag to generate shared objects directly from archives.
18899 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18901 # Whether the compiler copes with passing no objects directly.
18902 compiler_needs_object=$lt_compiler_needs_object_CXX
18904 # Create an old-style archive from a shared archive.
18905 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18907 # Create a temporary old-style archive to link instead of a shared archive.
18908 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18910 # Commands used to build a shared archive.
18911 archive_cmds=$lt_archive_cmds_CXX
18912 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18914 # Commands used to build a loadable module if different from building
18915 # a shared archive.
18916 module_cmds=$lt_module_cmds_CXX
18917 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18919 # Whether we are building with GNU ld or not.
18920 with_gnu_ld=$lt_with_gnu_ld_CXX
18922 # Flag that allows shared libraries with undefined symbols to be built.
18923 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18925 # Flag that enforces no undefined symbols.
18926 no_undefined_flag=$lt_no_undefined_flag_CXX
18928 # Flag to hardcode \$libdir into a binary during linking.
18929 # This must work even if \$libdir does not exist
18930 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18932 # If ld is used when linking, flag to hardcode \$libdir into a binary
18933 # during linking. This must work even if \$libdir does not exist.
18934 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18936 # Whether we need a single "-rpath" flag with a separated argument.
18937 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18939 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18940 # DIR into the resulting binary.
18941 hardcode_direct=$hardcode_direct_CXX
18943 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18944 # DIR into the resulting binary and the resulting library dependency is
18945 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18946 # library is relocated.
18947 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18949 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18950 # into the resulting binary.
18951 hardcode_minus_L=$hardcode_minus_L_CXX
18953 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18954 # into the resulting binary.
18955 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18957 # Set to "yes" if building a shared library automatically hardcodes DIR
18958 # into the library and all subsequent libraries and executables linked
18959 # against it.
18960 hardcode_automatic=$hardcode_automatic_CXX
18962 # Set to yes if linker adds runtime paths of dependent libraries
18963 # to runtime path list.
18964 inherit_rpath=$inherit_rpath_CXX
18966 # Whether libtool must link a program against all its dependency libraries.
18967 link_all_deplibs=$link_all_deplibs_CXX
18969 # Fix the shell variable \$srcfile for the compiler.
18970 fix_srcfile_path=$lt_fix_srcfile_path_CXX
18972 # Set to "yes" if exported symbols are required.
18973 always_export_symbols=$always_export_symbols_CXX
18975 # The commands to list exported symbols.
18976 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18978 # Symbols that should not be listed in the preloaded symbols.
18979 exclude_expsyms=$lt_exclude_expsyms_CXX
18981 # Symbols that must always be exported.
18982 include_expsyms=$lt_include_expsyms_CXX
18984 # Commands necessary for linking programs (against libraries) with templates.
18985 prelink_cmds=$lt_prelink_cmds_CXX
18987 # Specify filename containing input files.
18988 file_list_spec=$lt_file_list_spec_CXX
18990 # How to hardcode a shared library path into an executable.
18991 hardcode_action=$hardcode_action_CXX
18993 # The directories searched by this compiler when creating a shared library.
18994 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18996 # Dependencies to place before and after the objects being linked to
18997 # create a shared library.
18998 predep_objects=$lt_predep_objects_CXX
18999 postdep_objects=$lt_postdep_objects_CXX
19000 predeps=$lt_predeps_CXX
19001 postdeps=$lt_postdeps_CXX
19003 # The library search path used internally by the compiler when linking
19004 # a shared library.
19005 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19007 # ### END LIBTOOL TAG CONFIG: CXX
19008 _LT_EOF
19011 "gstdint.h":C)
19012 if test "$GCC" = yes; then
19013 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
19014 else
19015 echo "/* generated for $CC */" > tmp-stdint.h
19018 sed 's/^ *//' >> tmp-stdint.h <<EOF
19020 #ifndef GCC_GENERATED_STDINT_H
19021 #define GCC_GENERATED_STDINT_H 1
19023 #include <sys/types.h>
19026 if test "$acx_cv_header_stdint" != stdint.h; then
19027 echo "#include <stddef.h>" >> tmp-stdint.h
19029 if test "$acx_cv_header_stdint" != stddef.h; then
19030 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
19033 sed 's/^ *//' >> tmp-stdint.h <<EOF
19034 /* glibc uses these symbols as guards to prevent redefinitions. */
19035 #ifdef __int8_t_defined
19036 #define _INT8_T
19037 #define _INT16_T
19038 #define _INT32_T
19039 #endif
19040 #ifdef __uint32_t_defined
19041 #define _UINT32_T
19042 #endif
19046 # ----------------- done header, emit basic int types -------------
19047 if test "$acx_cv_header_stdint" = stddef.h; then
19048 sed 's/^ *//' >> tmp-stdint.h <<EOF
19050 #ifndef _UINT8_T
19051 #define _UINT8_T
19052 #ifndef __uint8_t_defined
19053 #define __uint8_t_defined
19054 #ifndef uint8_t
19055 typedef unsigned $acx_cv_type_int8_t uint8_t;
19056 #endif
19057 #endif
19058 #endif
19060 #ifndef _UINT16_T
19061 #define _UINT16_T
19062 #ifndef __uint16_t_defined
19063 #define __uint16_t_defined
19064 #ifndef uint16_t
19065 typedef unsigned $acx_cv_type_int16_t uint16_t;
19066 #endif
19067 #endif
19068 #endif
19070 #ifndef _UINT32_T
19071 #define _UINT32_T
19072 #ifndef __uint32_t_defined
19073 #define __uint32_t_defined
19074 #ifndef uint32_t
19075 typedef unsigned $acx_cv_type_int32_t uint32_t;
19076 #endif
19077 #endif
19078 #endif
19080 #ifndef _INT8_T
19081 #define _INT8_T
19082 #ifndef __int8_t_defined
19083 #define __int8_t_defined
19084 #ifndef int8_t
19085 typedef $acx_cv_type_int8_t int8_t;
19086 #endif
19087 #endif
19088 #endif
19090 #ifndef _INT16_T
19091 #define _INT16_T
19092 #ifndef __int16_t_defined
19093 #define __int16_t_defined
19094 #ifndef int16_t
19095 typedef $acx_cv_type_int16_t int16_t;
19096 #endif
19097 #endif
19098 #endif
19100 #ifndef _INT32_T
19101 #define _INT32_T
19102 #ifndef __int32_t_defined
19103 #define __int32_t_defined
19104 #ifndef int32_t
19105 typedef $acx_cv_type_int32_t int32_t;
19106 #endif
19107 #endif
19108 #endif
19110 elif test "$ac_cv_type_u_int32_t" = yes; then
19111 sed 's/^ *//' >> tmp-stdint.h <<EOF
19113 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
19114 #ifndef _INT8_T
19115 #define _INT8_T
19116 #endif
19117 #ifndef _INT16_T
19118 #define _INT16_T
19119 #endif
19120 #ifndef _INT32_T
19121 #define _INT32_T
19122 #endif
19124 #ifndef _UINT8_T
19125 #define _UINT8_T
19126 #ifndef __uint8_t_defined
19127 #define __uint8_t_defined
19128 #ifndef uint8_t
19129 typedef u_int8_t uint8_t;
19130 #endif
19131 #endif
19132 #endif
19134 #ifndef _UINT16_T
19135 #define _UINT16_T
19136 #ifndef __uint16_t_defined
19137 #define __uint16_t_defined
19138 #ifndef uint16_t
19139 typedef u_int16_t uint16_t;
19140 #endif
19141 #endif
19142 #endif
19144 #ifndef _UINT32_T
19145 #define _UINT32_T
19146 #ifndef __uint32_t_defined
19147 #define __uint32_t_defined
19148 #ifndef uint32_t
19149 typedef u_int32_t uint32_t;
19150 #endif
19151 #endif
19152 #endif
19154 else
19155 sed 's/^ *//' >> tmp-stdint.h <<EOF
19157 /* Some systems have guard macros to prevent redefinitions, define them. */
19158 #ifndef _INT8_T
19159 #define _INT8_T
19160 #endif
19161 #ifndef _INT16_T
19162 #define _INT16_T
19163 #endif
19164 #ifndef _INT32_T
19165 #define _INT32_T
19166 #endif
19167 #ifndef _UINT8_T
19168 #define _UINT8_T
19169 #endif
19170 #ifndef _UINT16_T
19171 #define _UINT16_T
19172 #endif
19173 #ifndef _UINT32_T
19174 #define _UINT32_T
19175 #endif
19179 # ------------- done basic int types, emit int64_t types ------------
19180 if test "$ac_cv_type_uint64_t" = yes; then
19181 sed 's/^ *//' >> tmp-stdint.h <<EOF
19183 /* system headers have good uint64_t and int64_t */
19184 #ifndef _INT64_T
19185 #define _INT64_T
19186 #endif
19187 #ifndef _UINT64_T
19188 #define _UINT64_T
19189 #endif
19191 elif test "$ac_cv_type_u_int64_t" = yes; then
19192 sed 's/^ *//' >> tmp-stdint.h <<EOF
19194 /* system headers have an u_int64_t (and int64_t) */
19195 #ifndef _INT64_T
19196 #define _INT64_T
19197 #endif
19198 #ifndef _UINT64_T
19199 #define _UINT64_T
19200 #ifndef __uint64_t_defined
19201 #define __uint64_t_defined
19202 #ifndef uint64_t
19203 typedef u_int64_t uint64_t;
19204 #endif
19205 #endif
19206 #endif
19208 elif test -n "$acx_cv_type_int64_t"; then
19209 sed 's/^ *//' >> tmp-stdint.h <<EOF
19211 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
19212 #ifndef _INT64_T
19213 #define _INT64_T
19214 #ifndef int64_t
19215 typedef $acx_cv_type_int64_t int64_t;
19216 #endif
19217 #endif
19218 #ifndef _UINT64_T
19219 #define _UINT64_T
19220 #ifndef __uint64_t_defined
19221 #define __uint64_t_defined
19222 #ifndef uint64_t
19223 typedef unsigned $acx_cv_type_int64_t uint64_t;
19224 #endif
19225 #endif
19226 #endif
19228 else
19229 sed 's/^ *//' >> tmp-stdint.h <<EOF
19231 /* some common heuristics for int64_t, using compiler-specific tests */
19232 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
19233 #ifndef _INT64_T
19234 #define _INT64_T
19235 #ifndef __int64_t_defined
19236 #ifndef int64_t
19237 typedef long long int64_t;
19238 #endif
19239 #endif
19240 #endif
19241 #ifndef _UINT64_T
19242 #define _UINT64_T
19243 #ifndef uint64_t
19244 typedef unsigned long long uint64_t;
19245 #endif
19246 #endif
19248 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
19249 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
19250 does not implement __extension__. But that compiler doesn't define
19251 __GNUC_MINOR__. */
19252 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
19253 # define __extension__
19254 # endif
19256 # ifndef _INT64_T
19257 # define _INT64_T
19258 # ifndef int64_t
19259 __extension__ typedef long long int64_t;
19260 # endif
19261 # endif
19262 # ifndef _UINT64_T
19263 # define _UINT64_T
19264 # ifndef uint64_t
19265 __extension__ typedef unsigned long long uint64_t;
19266 # endif
19267 # endif
19269 #elif !defined __STRICT_ANSI__
19270 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
19272 # ifndef _INT64_T
19273 # define _INT64_T
19274 # ifndef int64_t
19275 typedef __int64 int64_t;
19276 # endif
19277 # endif
19278 # ifndef _UINT64_T
19279 # define _UINT64_T
19280 # ifndef uint64_t
19281 typedef unsigned __int64 uint64_t;
19282 # endif
19283 # endif
19284 # endif /* compiler */
19286 #endif /* ANSI version */
19290 # ------------- done int64_t types, emit intptr types ------------
19291 if test "$ac_cv_type_uintptr_t" != yes; then
19292 sed 's/^ *//' >> tmp-stdint.h <<EOF
19294 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
19295 #ifndef __uintptr_t_defined
19296 #ifndef uintptr_t
19297 typedef u$acx_cv_type_intptr_t uintptr_t;
19298 #endif
19299 #endif
19300 #ifndef __intptr_t_defined
19301 #ifndef intptr_t
19302 typedef $acx_cv_type_intptr_t intptr_t;
19303 #endif
19304 #endif
19308 # ------------- done intptr types, emit int_least types ------------
19309 if test "$ac_cv_type_int_least32_t" != yes; then
19310 sed 's/^ *//' >> tmp-stdint.h <<EOF
19312 /* Define int_least types */
19313 typedef int8_t int_least8_t;
19314 typedef int16_t int_least16_t;
19315 typedef int32_t int_least32_t;
19316 #ifdef _INT64_T
19317 typedef int64_t int_least64_t;
19318 #endif
19320 typedef uint8_t uint_least8_t;
19321 typedef uint16_t uint_least16_t;
19322 typedef uint32_t uint_least32_t;
19323 #ifdef _UINT64_T
19324 typedef uint64_t uint_least64_t;
19325 #endif
19329 # ------------- done intptr types, emit int_fast types ------------
19330 if test "$ac_cv_type_int_fast32_t" != yes; then
19331 sed 's/^ *//' >> tmp-stdint.h <<EOF
19333 /* Define int_fast types. short is often slow */
19334 typedef int8_t int_fast8_t;
19335 typedef int int_fast16_t;
19336 typedef int32_t int_fast32_t;
19337 #ifdef _INT64_T
19338 typedef int64_t int_fast64_t;
19339 #endif
19341 typedef uint8_t uint_fast8_t;
19342 typedef unsigned int uint_fast16_t;
19343 typedef uint32_t uint_fast32_t;
19344 #ifdef _UINT64_T
19345 typedef uint64_t uint_fast64_t;
19346 #endif
19350 if test "$ac_cv_type_uintmax_t" != yes; then
19351 sed 's/^ *//' >> tmp-stdint.h <<EOF
19353 /* Define intmax based on what we found */
19354 #ifndef intmax_t
19355 #ifdef _INT64_T
19356 typedef int64_t intmax_t;
19357 #else
19358 typedef long intmax_t;
19359 #endif
19360 #endif
19361 #ifndef uintmax_t
19362 #ifdef _UINT64_T
19363 typedef uint64_t uintmax_t;
19364 #else
19365 typedef unsigned long uintmax_t;
19366 #endif
19367 #endif
19371 sed 's/^ *//' >> tmp-stdint.h <<EOF
19373 #endif /* GCC_GENERATED_STDINT_H */
19376 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
19377 rm -f tmp-stdint.h
19378 else
19379 mv -f tmp-stdint.h gstdint.h
19383 "interception/Makefile":F) cat > vpsed$$ << \_EOF
19384 s!`test -f '$<' || echo '$(srcdir)/'`!!
19385 _EOF
19386 sed -f vpsed$$ $ac_file > tmp$$
19387 mv tmp$$ $ac_file
19388 rm vpsed$$
19389 echo 'MULTISUBDIR =' >> $ac_file
19390 ml_norecursion=yes
19391 . ${multi_basedir}/config-ml.in
19392 { ml_norecursion=; unset ml_norecursion;}
19394 "sanitizer_common/Makefile":F) cat > vpsed$$ << \_EOF
19395 s!`test -f '$<' || echo '$(srcdir)/'`!!
19396 _EOF
19397 sed -f vpsed$$ $ac_file > tmp$$
19398 mv tmp$$ $ac_file
19399 rm vpsed$$
19400 echo 'MULTISUBDIR =' >> $ac_file
19401 ml_norecursion=yes
19402 . ${multi_basedir}/config-ml.in
19403 { ml_norecursion=; unset ml_norecursion;}
19405 "libbacktrace/Makefile":F) cat > vpsed$$ << \_EOF
19406 s!`test -f '$<' || echo '$(srcdir)/'`!!
19407 _EOF
19408 sed -f vpsed$$ $ac_file > tmp$$
19409 mv tmp$$ $ac_file
19410 rm vpsed$$
19411 echo 'MULTISUBDIR =' >> $ac_file
19412 ml_norecursion=yes
19413 . ${multi_basedir}/config-ml.in
19414 { ml_norecursion=; unset ml_norecursion;}
19416 "lsan/Makefile":F) cat > vpsed$$ << \_EOF
19417 s!`test -f '$<' || echo '$(srcdir)/'`!!
19418 _EOF
19419 sed -f vpsed$$ $ac_file > tmp$$
19420 mv tmp$$ $ac_file
19421 rm vpsed$$
19422 echo 'MULTISUBDIR =' >> $ac_file
19423 ml_norecursion=yes
19424 . ${multi_basedir}/config-ml.in
19425 { ml_norecursion=; unset ml_norecursion;}
19427 "asan/Makefile":F) cat > vpsed$$ << \_EOF
19428 s!`test -f '$<' || echo '$(srcdir)/'`!!
19429 _EOF
19430 sed -f vpsed$$ $ac_file > tmp$$
19431 mv tmp$$ $ac_file
19432 rm vpsed$$
19433 echo 'MULTISUBDIR =' >> $ac_file
19434 ml_norecursion=yes
19435 . ${multi_basedir}/config-ml.in
19436 { ml_norecursion=; unset ml_norecursion;}
19438 "ubsan/Makefile":F) cat > vpsed$$ << \_EOF
19439 s!`test -f '$<' || echo '$(srcdir)/'`!!
19440 _EOF
19441 sed -f vpsed$$ $ac_file > tmp$$
19442 mv tmp$$ $ac_file
19443 rm vpsed$$
19444 echo 'MULTISUBDIR =' >> $ac_file
19445 ml_norecursion=yes
19446 . ${multi_basedir}/config-ml.in
19447 { ml_norecursion=; unset ml_norecursion;}
19449 "tsan/Makefile":F) cat > vpsed$$ << \_EOF
19450 s!`test -f '$<' || echo '$(srcdir)/'`!!
19451 _EOF
19452 sed -f vpsed$$ $ac_file > tmp$$
19453 mv tmp$$ $ac_file
19454 rm vpsed$$
19455 echo 'MULTISUBDIR =' >> $ac_file
19456 ml_norecursion=yes
19457 . ${multi_basedir}/config-ml.in
19458 { ml_norecursion=; unset ml_norecursion;}
19461 esac
19462 done # for ac_tag
19465 as_fn_exit 0
19466 _ACEOF
19467 ac_clean_files=$ac_clean_files_save
19469 test $ac_write_fail = 0 ||
19470 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
19473 # configure is writing to config.log, and then calls config.status.
19474 # config.status does its own redirection, appending to config.log.
19475 # Unfortunately, on DOS this fails, as config.log is still kept open
19476 # by configure, so config.status won't be able to write to it; its
19477 # output is simply discarded. So we exec the FD to /dev/null,
19478 # effectively closing config.log, so it can be properly (re)opened and
19479 # appended to by config.status. When coming back to configure, we
19480 # need to make the FD available again.
19481 if test "$no_create" != yes; then
19482 ac_cs_success=:
19483 ac_config_status_args=
19484 test "$silent" = yes &&
19485 ac_config_status_args="$ac_config_status_args --quiet"
19486 exec 5>/dev/null
19487 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19488 exec 5>>config.log
19489 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19490 # would make configure fail if this is the last instruction.
19491 $ac_cs_success || as_fn_exit $?
19493 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19495 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}