Daily bump.
[official-gcc.git] / libsanitizer / configure
blob8e0c47ea8384882b25fd664d41555a383d7fb3b8
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 get_gcc_base_ver
608 SANITIZER_COMMON_TARGET_DEPENDENT_OBJECTS
609 TSAN_TARGET_DEPENDENT_OBJECTS
610 LIBBACKTRACE_SUPPORTED_FALSE
611 LIBBACKTRACE_SUPPORTED_TRUE
612 RPC_DEFS
613 BACKTRACE_SUPPORTS_THREADS
614 BACKTRACE_USES_MALLOC
615 ALLOC_FILE
616 VIEW_FILE
617 BACKTRACE_SUPPORTED
618 FORMAT_FILE
619 SANITIZER_SUPPORTED_FALSE
620 SANITIZER_SUPPORTED_TRUE
621 USING_MAC_INTERPOSE_FALSE
622 USING_MAC_INTERPOSE_TRUE
623 link_liblsan
624 link_libubsan
625 link_libtsan
626 link_libasan
627 LSAN_SUPPORTED_FALSE
628 LSAN_SUPPORTED_TRUE
629 TSAN_SUPPORTED_FALSE
630 TSAN_SUPPORTED_TRUE
631 enable_static
632 enable_shared
633 CXXCPP
634 OTOOL64
635 OTOOL
636 LIPO
637 NMEDIT
638 DSYMUTIL
640 OBJDUMP
641 LN_S
643 ac_ct_DUMPBIN
644 DUMPBIN
646 FGREP
648 LIBTOOL
649 RANLIB
650 am__fastdepCCAS_FALSE
651 am__fastdepCCAS_TRUE
652 CCASDEPMODE
653 CCASFLAGS
654 CCAS
655 am__fastdepCXX_FALSE
656 am__fastdepCXX_TRUE
657 CXXDEPMODE
658 ac_ct_CXX
659 CXXFLAGS
661 toolexeclibdir
662 toolexecdir
663 MAINT
664 MAINTAINER_MODE_FALSE
665 MAINTAINER_MODE_TRUE
666 am__fastdepCC_FALSE
667 am__fastdepCC_TRUE
668 CCDEPMODE
669 am__nodep
670 AMDEPBACKSLASH
671 AMDEP_FALSE
672 AMDEP_TRUE
673 am__quote
674 am__include
675 DEPDIR
676 am__untar
677 am__tar
678 AMTAR
679 am__leading_dot
680 SET_MAKE
682 mkdir_p
683 MKDIR_P
684 INSTALL_STRIP_PROGRAM
685 STRIP
686 install_sh
687 MAKEINFO
688 AUTOHEADER
689 AUTOMAKE
690 AUTOCONF
691 ACLOCAL
692 VERSION
693 PACKAGE
694 CYGPATH_W
695 am__isrc
696 INSTALL_DATA
697 INSTALL_SCRIPT
698 INSTALL_PROGRAM
699 LIBSTDCXX_RAW_CXX_LDFLAGS
700 LIBSTDCXX_RAW_CXX_CXXFLAGS
701 target_noncanonical
702 target_os
703 target_vendor
704 target_cpu
705 target
706 host_os
707 host_vendor
708 host_cpu
709 host
710 build_os
711 build_vendor
712 build_cpu
713 build
714 EGREP
715 GREP
717 OBJEXT
718 EXEEXT
719 ac_ct_CC
720 CPPFLAGS
721 LDFLAGS
722 CFLAGS
724 multi_basedir
725 target_alias
726 host_alias
727 build_alias
728 LIBS
729 ECHO_T
730 ECHO_N
731 ECHO_C
732 DEFS
733 mandir
734 localedir
735 libdir
736 psdir
737 pdfdir
738 dvidir
739 htmldir
740 infodir
741 docdir
742 oldincludedir
743 includedir
744 localstatedir
745 sharedstatedir
746 sysconfdir
747 datadir
748 datarootdir
749 libexecdir
750 sbindir
751 bindir
752 program_transform_name
753 prefix
754 exec_prefix
755 PACKAGE_URL
756 PACKAGE_BUGREPORT
757 PACKAGE_STRING
758 PACKAGE_VERSION
759 PACKAGE_TARNAME
760 PACKAGE_NAME
761 PATH_SEPARATOR
762 SHELL'
763 ac_subst_files=''
764 ac_user_opts='
765 enable_option_checking
766 enable_multilib
767 enable_version_specific_runtime_libs
768 enable_dependency_tracking
769 enable_maintainer_mode
770 enable_shared
771 enable_static
772 with_pic
773 enable_fast_install
774 with_gnu_ld
775 enable_libtool_lock
776 with_gcc_major_version_only
778 ac_precious_vars='build_alias
779 host_alias
780 target_alias
782 CFLAGS
783 LDFLAGS
784 LIBS
785 CPPFLAGS
788 CXXFLAGS
790 CCAS
791 CCASFLAGS
792 CXXCPP'
795 # Initialize some variables set by options.
796 ac_init_help=
797 ac_init_version=false
798 ac_unrecognized_opts=
799 ac_unrecognized_sep=
800 # The variables have the same names as the options, with
801 # dashes changed to underlines.
802 cache_file=/dev/null
803 exec_prefix=NONE
804 no_create=
805 no_recursion=
806 prefix=NONE
807 program_prefix=NONE
808 program_suffix=NONE
809 program_transform_name=s,x,x,
810 silent=
811 site=
812 srcdir=
813 verbose=
814 x_includes=NONE
815 x_libraries=NONE
817 # Installation directory options.
818 # These are left unexpanded so users can "make install exec_prefix=/foo"
819 # and all the variables that are supposed to be based on exec_prefix
820 # by default will actually change.
821 # Use braces instead of parens because sh, perl, etc. also accept them.
822 # (The list follows the same order as the GNU Coding Standards.)
823 bindir='${exec_prefix}/bin'
824 sbindir='${exec_prefix}/sbin'
825 libexecdir='${exec_prefix}/libexec'
826 datarootdir='${prefix}/share'
827 datadir='${datarootdir}'
828 sysconfdir='${prefix}/etc'
829 sharedstatedir='${prefix}/com'
830 localstatedir='${prefix}/var'
831 includedir='${prefix}/include'
832 oldincludedir='/usr/include'
833 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
834 infodir='${datarootdir}/info'
835 htmldir='${docdir}'
836 dvidir='${docdir}'
837 pdfdir='${docdir}'
838 psdir='${docdir}'
839 libdir='${exec_prefix}/lib'
840 localedir='${datarootdir}/locale'
841 mandir='${datarootdir}/man'
843 ac_prev=
844 ac_dashdash=
845 for ac_option
847 # If the previous option needs an argument, assign it.
848 if test -n "$ac_prev"; then
849 eval $ac_prev=\$ac_option
850 ac_prev=
851 continue
854 case $ac_option in
855 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
856 *) ac_optarg=yes ;;
857 esac
859 # Accept the important Cygnus configure options, so we can diagnose typos.
861 case $ac_dashdash$ac_option in
863 ac_dashdash=yes ;;
865 -bindir | --bindir | --bindi | --bind | --bin | --bi)
866 ac_prev=bindir ;;
867 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
868 bindir=$ac_optarg ;;
870 -build | --build | --buil | --bui | --bu)
871 ac_prev=build_alias ;;
872 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
873 build_alias=$ac_optarg ;;
875 -cache-file | --cache-file | --cache-fil | --cache-fi \
876 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
877 ac_prev=cache_file ;;
878 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
879 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
880 cache_file=$ac_optarg ;;
882 --config-cache | -C)
883 cache_file=config.cache ;;
885 -datadir | --datadir | --datadi | --datad)
886 ac_prev=datadir ;;
887 -datadir=* | --datadir=* | --datadi=* | --datad=*)
888 datadir=$ac_optarg ;;
890 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
891 | --dataroo | --dataro | --datar)
892 ac_prev=datarootdir ;;
893 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
894 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
895 datarootdir=$ac_optarg ;;
897 -disable-* | --disable-*)
898 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
899 # Reject names that are not valid shell variable names.
900 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
901 as_fn_error "invalid feature name: $ac_useropt"
902 ac_useropt_orig=$ac_useropt
903 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
904 case $ac_user_opts in
906 "enable_$ac_useropt"
907 "*) ;;
908 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
909 ac_unrecognized_sep=', ';;
910 esac
911 eval enable_$ac_useropt=no ;;
913 -docdir | --docdir | --docdi | --doc | --do)
914 ac_prev=docdir ;;
915 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
916 docdir=$ac_optarg ;;
918 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
919 ac_prev=dvidir ;;
920 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
921 dvidir=$ac_optarg ;;
923 -enable-* | --enable-*)
924 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
925 # Reject names that are not valid shell variable names.
926 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
927 as_fn_error "invalid feature name: $ac_useropt"
928 ac_useropt_orig=$ac_useropt
929 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
930 case $ac_user_opts in
932 "enable_$ac_useropt"
933 "*) ;;
934 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
935 ac_unrecognized_sep=', ';;
936 esac
937 eval enable_$ac_useropt=\$ac_optarg ;;
939 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
940 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
941 | --exec | --exe | --ex)
942 ac_prev=exec_prefix ;;
943 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
944 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
945 | --exec=* | --exe=* | --ex=*)
946 exec_prefix=$ac_optarg ;;
948 -gas | --gas | --ga | --g)
949 # Obsolete; use --with-gas.
950 with_gas=yes ;;
952 -help | --help | --hel | --he | -h)
953 ac_init_help=long ;;
954 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
955 ac_init_help=recursive ;;
956 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
957 ac_init_help=short ;;
959 -host | --host | --hos | --ho)
960 ac_prev=host_alias ;;
961 -host=* | --host=* | --hos=* | --ho=*)
962 host_alias=$ac_optarg ;;
964 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
965 ac_prev=htmldir ;;
966 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
967 | --ht=*)
968 htmldir=$ac_optarg ;;
970 -includedir | --includedir | --includedi | --included | --include \
971 | --includ | --inclu | --incl | --inc)
972 ac_prev=includedir ;;
973 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
974 | --includ=* | --inclu=* | --incl=* | --inc=*)
975 includedir=$ac_optarg ;;
977 -infodir | --infodir | --infodi | --infod | --info | --inf)
978 ac_prev=infodir ;;
979 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
980 infodir=$ac_optarg ;;
982 -libdir | --libdir | --libdi | --libd)
983 ac_prev=libdir ;;
984 -libdir=* | --libdir=* | --libdi=* | --libd=*)
985 libdir=$ac_optarg ;;
987 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
988 | --libexe | --libex | --libe)
989 ac_prev=libexecdir ;;
990 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
991 | --libexe=* | --libex=* | --libe=*)
992 libexecdir=$ac_optarg ;;
994 -localedir | --localedir | --localedi | --localed | --locale)
995 ac_prev=localedir ;;
996 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
997 localedir=$ac_optarg ;;
999 -localstatedir | --localstatedir | --localstatedi | --localstated \
1000 | --localstate | --localstat | --localsta | --localst | --locals)
1001 ac_prev=localstatedir ;;
1002 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1003 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1004 localstatedir=$ac_optarg ;;
1006 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1007 ac_prev=mandir ;;
1008 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1009 mandir=$ac_optarg ;;
1011 -nfp | --nfp | --nf)
1012 # Obsolete; use --without-fp.
1013 with_fp=no ;;
1015 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1016 | --no-cr | --no-c | -n)
1017 no_create=yes ;;
1019 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1020 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1021 no_recursion=yes ;;
1023 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1024 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1025 | --oldin | --oldi | --old | --ol | --o)
1026 ac_prev=oldincludedir ;;
1027 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1028 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1029 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1030 oldincludedir=$ac_optarg ;;
1032 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1033 ac_prev=prefix ;;
1034 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1035 prefix=$ac_optarg ;;
1037 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1038 | --program-pre | --program-pr | --program-p)
1039 ac_prev=program_prefix ;;
1040 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1041 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1042 program_prefix=$ac_optarg ;;
1044 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1045 | --program-suf | --program-su | --program-s)
1046 ac_prev=program_suffix ;;
1047 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1048 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1049 program_suffix=$ac_optarg ;;
1051 -program-transform-name | --program-transform-name \
1052 | --program-transform-nam | --program-transform-na \
1053 | --program-transform-n | --program-transform- \
1054 | --program-transform | --program-transfor \
1055 | --program-transfo | --program-transf \
1056 | --program-trans | --program-tran \
1057 | --progr-tra | --program-tr | --program-t)
1058 ac_prev=program_transform_name ;;
1059 -program-transform-name=* | --program-transform-name=* \
1060 | --program-transform-nam=* | --program-transform-na=* \
1061 | --program-transform-n=* | --program-transform-=* \
1062 | --program-transform=* | --program-transfor=* \
1063 | --program-transfo=* | --program-transf=* \
1064 | --program-trans=* | --program-tran=* \
1065 | --progr-tra=* | --program-tr=* | --program-t=*)
1066 program_transform_name=$ac_optarg ;;
1068 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1069 ac_prev=pdfdir ;;
1070 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1071 pdfdir=$ac_optarg ;;
1073 -psdir | --psdir | --psdi | --psd | --ps)
1074 ac_prev=psdir ;;
1075 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1076 psdir=$ac_optarg ;;
1078 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1079 | -silent | --silent | --silen | --sile | --sil)
1080 silent=yes ;;
1082 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1083 ac_prev=sbindir ;;
1084 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1085 | --sbi=* | --sb=*)
1086 sbindir=$ac_optarg ;;
1088 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1089 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1090 | --sharedst | --shareds | --shared | --share | --shar \
1091 | --sha | --sh)
1092 ac_prev=sharedstatedir ;;
1093 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1094 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1095 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1096 | --sha=* | --sh=*)
1097 sharedstatedir=$ac_optarg ;;
1099 -site | --site | --sit)
1100 ac_prev=site ;;
1101 -site=* | --site=* | --sit=*)
1102 site=$ac_optarg ;;
1104 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1105 ac_prev=srcdir ;;
1106 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1107 srcdir=$ac_optarg ;;
1109 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1110 | --syscon | --sysco | --sysc | --sys | --sy)
1111 ac_prev=sysconfdir ;;
1112 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1113 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1114 sysconfdir=$ac_optarg ;;
1116 -target | --target | --targe | --targ | --tar | --ta | --t)
1117 ac_prev=target_alias ;;
1118 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1119 target_alias=$ac_optarg ;;
1121 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1122 verbose=yes ;;
1124 -version | --version | --versio | --versi | --vers | -V)
1125 ac_init_version=: ;;
1127 -with-* | --with-*)
1128 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1129 # Reject names that are not valid shell variable names.
1130 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1131 as_fn_error "invalid package name: $ac_useropt"
1132 ac_useropt_orig=$ac_useropt
1133 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1134 case $ac_user_opts in
1136 "with_$ac_useropt"
1137 "*) ;;
1138 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1139 ac_unrecognized_sep=', ';;
1140 esac
1141 eval with_$ac_useropt=\$ac_optarg ;;
1143 -without-* | --without-*)
1144 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1145 # Reject names that are not valid shell variable names.
1146 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1147 as_fn_error "invalid package name: $ac_useropt"
1148 ac_useropt_orig=$ac_useropt
1149 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1150 case $ac_user_opts in
1152 "with_$ac_useropt"
1153 "*) ;;
1154 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1155 ac_unrecognized_sep=', ';;
1156 esac
1157 eval with_$ac_useropt=no ;;
1159 --x)
1160 # Obsolete; use --with-x.
1161 with_x=yes ;;
1163 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1164 | --x-incl | --x-inc | --x-in | --x-i)
1165 ac_prev=x_includes ;;
1166 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1167 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1168 x_includes=$ac_optarg ;;
1170 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1171 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1172 ac_prev=x_libraries ;;
1173 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1174 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1175 x_libraries=$ac_optarg ;;
1177 -*) as_fn_error "unrecognized option: \`$ac_option'
1178 Try \`$0 --help' for more information."
1181 *=*)
1182 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1183 # Reject names that are not valid shell variable names.
1184 case $ac_envvar in #(
1185 '' | [0-9]* | *[!_$as_cr_alnum]* )
1186 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1187 esac
1188 eval $ac_envvar=\$ac_optarg
1189 export $ac_envvar ;;
1192 # FIXME: should be removed in autoconf 3.0.
1193 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1194 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1195 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1196 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1199 esac
1200 done
1202 if test -n "$ac_prev"; then
1203 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1204 as_fn_error "missing argument to $ac_option"
1207 if test -n "$ac_unrecognized_opts"; then
1208 case $enable_option_checking in
1209 no) ;;
1210 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1211 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1212 esac
1215 # Check all directory arguments for consistency.
1216 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1217 datadir sysconfdir sharedstatedir localstatedir includedir \
1218 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1219 libdir localedir mandir
1221 eval ac_val=\$$ac_var
1222 # Remove trailing slashes.
1223 case $ac_val in
1224 */ )
1225 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1226 eval $ac_var=\$ac_val;;
1227 esac
1228 # Be sure to have absolute directory names.
1229 case $ac_val in
1230 [\\/$]* | ?:[\\/]* ) continue;;
1231 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1232 esac
1233 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1234 done
1236 # There might be people who depend on the old broken behavior: `$host'
1237 # used to hold the argument of --host etc.
1238 # FIXME: To remove some day.
1239 build=$build_alias
1240 host=$host_alias
1241 target=$target_alias
1243 # FIXME: To remove some day.
1244 if test "x$host_alias" != x; then
1245 if test "x$build_alias" = x; then
1246 cross_compiling=maybe
1247 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1248 If a cross compiler is detected then cross compile mode will be used." >&2
1249 elif test "x$build_alias" != "x$host_alias"; then
1250 cross_compiling=yes
1254 ac_tool_prefix=
1255 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1257 test "$silent" = yes && exec 6>/dev/null
1260 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1261 ac_ls_di=`ls -di .` &&
1262 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1263 as_fn_error "working directory cannot be determined"
1264 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1265 as_fn_error "pwd does not report name of working directory"
1268 # Find the source files, if location was not specified.
1269 if test -z "$srcdir"; then
1270 ac_srcdir_defaulted=yes
1271 # Try the directory containing this script, then the parent directory.
1272 ac_confdir=`$as_dirname -- "$as_myself" ||
1273 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1274 X"$as_myself" : 'X\(//\)[^/]' \| \
1275 X"$as_myself" : 'X\(//\)$' \| \
1276 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1277 $as_echo X"$as_myself" |
1278 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1279 s//\1/
1282 /^X\(\/\/\)[^/].*/{
1283 s//\1/
1286 /^X\(\/\/\)$/{
1287 s//\1/
1290 /^X\(\/\).*/{
1291 s//\1/
1294 s/.*/./; q'`
1295 srcdir=$ac_confdir
1296 if test ! -r "$srcdir/$ac_unique_file"; then
1297 srcdir=..
1299 else
1300 ac_srcdir_defaulted=no
1302 if test ! -r "$srcdir/$ac_unique_file"; then
1303 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1304 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1306 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1307 ac_abs_confdir=`(
1308 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1309 pwd)`
1310 # When building in place, set srcdir=.
1311 if test "$ac_abs_confdir" = "$ac_pwd"; then
1312 srcdir=.
1314 # Remove unnecessary trailing slashes from srcdir.
1315 # Double slashes in file names in object file debugging info
1316 # mess up M-x gdb in Emacs.
1317 case $srcdir in
1318 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1319 esac
1320 for ac_var in $ac_precious_vars; do
1321 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1322 eval ac_env_${ac_var}_value=\$${ac_var}
1323 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1324 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1325 done
1328 # Report the --help message.
1330 if test "$ac_init_help" = "long"; then
1331 # Omit some internal or obsolete options to make the list less imposing.
1332 # This message is too long to be a string in the A/UX 3.1 sh.
1333 cat <<_ACEOF
1334 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1336 Usage: $0 [OPTION]... [VAR=VALUE]...
1338 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1339 VAR=VALUE. See below for descriptions of some of the useful variables.
1341 Defaults for the options are specified in brackets.
1343 Configuration:
1344 -h, --help display this help and exit
1345 --help=short display options specific to this package
1346 --help=recursive display the short help of all the included packages
1347 -V, --version display version information and exit
1348 -q, --quiet, --silent do not print \`checking...' messages
1349 --cache-file=FILE cache test results in FILE [disabled]
1350 -C, --config-cache alias for \`--cache-file=config.cache'
1351 -n, --no-create do not create output files
1352 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1354 Installation directories:
1355 --prefix=PREFIX install architecture-independent files in PREFIX
1356 [$ac_default_prefix]
1357 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1358 [PREFIX]
1360 By default, \`make install' will install all the files in
1361 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1362 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1363 for instance \`--prefix=\$HOME'.
1365 For better control, use the options below.
1367 Fine tuning of the installation directories:
1368 --bindir=DIR user executables [EPREFIX/bin]
1369 --sbindir=DIR system admin executables [EPREFIX/sbin]
1370 --libexecdir=DIR program executables [EPREFIX/libexec]
1371 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1372 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1373 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1374 --libdir=DIR object code libraries [EPREFIX/lib]
1375 --includedir=DIR C header files [PREFIX/include]
1376 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1377 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1378 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1379 --infodir=DIR info documentation [DATAROOTDIR/info]
1380 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1381 --mandir=DIR man documentation [DATAROOTDIR/man]
1382 --docdir=DIR documentation root [DATAROOTDIR/doc/package-unused]
1383 --htmldir=DIR html documentation [DOCDIR]
1384 --dvidir=DIR dvi documentation [DOCDIR]
1385 --pdfdir=DIR pdf documentation [DOCDIR]
1386 --psdir=DIR ps documentation [DOCDIR]
1387 _ACEOF
1389 cat <<\_ACEOF
1391 Program names:
1392 --program-prefix=PREFIX prepend PREFIX to installed program names
1393 --program-suffix=SUFFIX append SUFFIX to installed program names
1394 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1396 System types:
1397 --build=BUILD configure for building on BUILD [guessed]
1398 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1399 --target=TARGET configure for building compilers for TARGET [HOST]
1400 _ACEOF
1403 if test -n "$ac_init_help"; then
1404 case $ac_init_help in
1405 short | recursive ) echo "Configuration of package-unused version-unused:";;
1406 esac
1407 cat <<\_ACEOF
1409 Optional Features:
1410 --disable-option-checking ignore unrecognized --enable/--with options
1411 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1412 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1413 --enable-multilib build many library versions (default)
1414 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
1415 --disable-dependency-tracking speeds up one-time build
1416 --enable-dependency-tracking do not reject slow dependency extractors
1417 --enable-maintainer-mode enable make rules and dependencies not useful
1418 (and sometimes confusing) to the casual installer
1419 --enable-shared[=PKGS] build shared libraries [default=yes]
1420 --enable-static[=PKGS] build static libraries [default=yes]
1421 --enable-fast-install[=PKGS]
1422 optimize for fast installation [default=yes]
1423 --disable-libtool-lock avoid locking (might break parallel builds)
1425 Optional Packages:
1426 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1427 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1428 --with-pic try to use only PIC/non-PIC objects [default=use
1429 both]
1430 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1431 --with-gcc-major-version-only
1432 use only GCC major number in filesystem paths
1434 Some influential environment variables:
1435 CC C compiler command
1436 CFLAGS C compiler flags
1437 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1438 nonstandard directory <lib dir>
1439 LIBS libraries to pass to the linker, e.g. -l<library>
1440 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1441 you have headers in a nonstandard directory <include dir>
1442 CPP C preprocessor
1443 CXX C++ compiler command
1444 CXXFLAGS C++ compiler flags
1445 CCAS assembler compiler command (defaults to CC)
1446 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1447 CXXCPP C++ preprocessor
1449 Use these variables to override the choices made by `configure' or to help
1450 it to find libraries and programs with nonstandard names/locations.
1452 Report bugs to <libsanitizer>.
1453 _ACEOF
1454 ac_status=$?
1457 if test "$ac_init_help" = "recursive"; then
1458 # If there are subdirs, report their specific --help.
1459 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1460 test -d "$ac_dir" ||
1461 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1462 continue
1463 ac_builddir=.
1465 case "$ac_dir" in
1466 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1468 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1469 # A ".." for each directory in $ac_dir_suffix.
1470 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1471 case $ac_top_builddir_sub in
1472 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1473 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1474 esac ;;
1475 esac
1476 ac_abs_top_builddir=$ac_pwd
1477 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1478 # for backward compatibility:
1479 ac_top_builddir=$ac_top_build_prefix
1481 case $srcdir in
1482 .) # We are building in place.
1483 ac_srcdir=.
1484 ac_top_srcdir=$ac_top_builddir_sub
1485 ac_abs_top_srcdir=$ac_pwd ;;
1486 [\\/]* | ?:[\\/]* ) # Absolute name.
1487 ac_srcdir=$srcdir$ac_dir_suffix;
1488 ac_top_srcdir=$srcdir
1489 ac_abs_top_srcdir=$srcdir ;;
1490 *) # Relative name.
1491 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1492 ac_top_srcdir=$ac_top_build_prefix$srcdir
1493 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1494 esac
1495 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1497 cd "$ac_dir" || { ac_status=$?; continue; }
1498 # Check for guested configure.
1499 if test -f "$ac_srcdir/configure.gnu"; then
1500 echo &&
1501 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1502 elif test -f "$ac_srcdir/configure"; then
1503 echo &&
1504 $SHELL "$ac_srcdir/configure" --help=recursive
1505 else
1506 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1507 fi || ac_status=$?
1508 cd "$ac_pwd" || { ac_status=$?; break; }
1509 done
1512 test -n "$ac_init_help" && exit $ac_status
1513 if $ac_init_version; then
1514 cat <<\_ACEOF
1515 package-unused configure version-unused
1516 generated by GNU Autoconf 2.64
1518 Copyright (C) 2009 Free Software Foundation, Inc.
1519 This configure script is free software; the Free Software Foundation
1520 gives unlimited permission to copy, distribute and modify it.
1521 _ACEOF
1522 exit
1525 ## ------------------------ ##
1526 ## Autoconf initialization. ##
1527 ## ------------------------ ##
1529 # ac_fn_c_try_compile LINENO
1530 # --------------------------
1531 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1532 ac_fn_c_try_compile ()
1534 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1535 rm -f conftest.$ac_objext
1536 if { { ac_try="$ac_compile"
1537 case "(($ac_try" in
1538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1539 *) ac_try_echo=$ac_try;;
1540 esac
1541 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1542 $as_echo "$ac_try_echo"; } >&5
1543 (eval "$ac_compile") 2>conftest.err
1544 ac_status=$?
1545 if test -s conftest.err; then
1546 grep -v '^ *+' conftest.err >conftest.er1
1547 cat conftest.er1 >&5
1548 mv -f conftest.er1 conftest.err
1550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1551 test $ac_status = 0; } && {
1552 test -z "$ac_c_werror_flag" ||
1553 test ! -s conftest.err
1554 } && test -s conftest.$ac_objext; then :
1555 ac_retval=0
1556 else
1557 $as_echo "$as_me: failed program was:" >&5
1558 sed 's/^/| /' conftest.$ac_ext >&5
1560 ac_retval=1
1562 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1563 return $ac_retval
1565 } # ac_fn_c_try_compile
1567 # ac_fn_c_try_cpp LINENO
1568 # ----------------------
1569 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1570 ac_fn_c_try_cpp ()
1572 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1573 if { { ac_try="$ac_cpp conftest.$ac_ext"
1574 case "(($ac_try" in
1575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1576 *) ac_try_echo=$ac_try;;
1577 esac
1578 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1579 $as_echo "$ac_try_echo"; } >&5
1580 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1581 ac_status=$?
1582 if test -s conftest.err; then
1583 grep -v '^ *+' conftest.err >conftest.er1
1584 cat conftest.er1 >&5
1585 mv -f conftest.er1 conftest.err
1587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1588 test $ac_status = 0; } >/dev/null && {
1589 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1590 test ! -s conftest.err
1591 }; then :
1592 ac_retval=0
1593 else
1594 $as_echo "$as_me: failed program was:" >&5
1595 sed 's/^/| /' conftest.$ac_ext >&5
1597 ac_retval=1
1599 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1600 return $ac_retval
1602 } # ac_fn_c_try_cpp
1604 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1605 # -------------------------------------------------------
1606 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1607 # the include files in INCLUDES and setting the cache variable VAR
1608 # accordingly.
1609 ac_fn_c_check_header_mongrel ()
1611 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1612 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1614 $as_echo_n "checking for $2... " >&6; }
1615 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1616 $as_echo_n "(cached) " >&6
1618 eval ac_res=\$$3
1619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1620 $as_echo "$ac_res" >&6; }
1621 else
1622 # Is the header compilable?
1623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1624 $as_echo_n "checking $2 usability... " >&6; }
1625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1626 /* end confdefs.h. */
1628 #include <$2>
1629 _ACEOF
1630 if ac_fn_c_try_compile "$LINENO"; then :
1631 ac_header_compiler=yes
1632 else
1633 ac_header_compiler=no
1635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1637 $as_echo "$ac_header_compiler" >&6; }
1639 # Is the header present?
1640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1641 $as_echo_n "checking $2 presence... " >&6; }
1642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1643 /* end confdefs.h. */
1644 #include <$2>
1645 _ACEOF
1646 if ac_fn_c_try_cpp "$LINENO"; then :
1647 ac_header_preproc=yes
1648 else
1649 ac_header_preproc=no
1651 rm -f conftest.err conftest.$ac_ext
1652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1653 $as_echo "$ac_header_preproc" >&6; }
1655 # So? What about this header?
1656 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1657 yes:no: )
1658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1659 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1661 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1663 no:yes:* )
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1665 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1667 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1669 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1671 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1673 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1674 ( cat <<\_ASBOX
1675 ## --------------------------- ##
1676 ## Report this to libsanitizer ##
1677 ## --------------------------- ##
1678 _ASBOX
1679 ) | sed "s/^/$as_me: WARNING: /" >&2
1681 esac
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1683 $as_echo_n "checking for $2... " >&6; }
1684 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1685 $as_echo_n "(cached) " >&6
1686 else
1687 eval "$3=\$ac_header_compiler"
1689 eval ac_res=\$$3
1690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1691 $as_echo "$ac_res" >&6; }
1693 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1695 } # ac_fn_c_check_header_mongrel
1697 # ac_fn_c_try_run LINENO
1698 # ----------------------
1699 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1700 # that executables *can* be run.
1701 ac_fn_c_try_run ()
1703 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1704 if { { ac_try="$ac_link"
1705 case "(($ac_try" in
1706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1707 *) ac_try_echo=$ac_try;;
1708 esac
1709 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1710 $as_echo "$ac_try_echo"; } >&5
1711 (eval "$ac_link") 2>&5
1712 ac_status=$?
1713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1714 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1715 { { case "(($ac_try" in
1716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1717 *) ac_try_echo=$ac_try;;
1718 esac
1719 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1720 $as_echo "$ac_try_echo"; } >&5
1721 (eval "$ac_try") 2>&5
1722 ac_status=$?
1723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1724 test $ac_status = 0; }; }; then :
1725 ac_retval=0
1726 else
1727 $as_echo "$as_me: program exited with status $ac_status" >&5
1728 $as_echo "$as_me: failed program was:" >&5
1729 sed 's/^/| /' conftest.$ac_ext >&5
1731 ac_retval=$ac_status
1733 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1734 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1735 return $ac_retval
1737 } # ac_fn_c_try_run
1739 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1740 # -------------------------------------------------------
1741 # Tests whether HEADER exists and can be compiled using the include files in
1742 # INCLUDES, setting the cache variable VAR accordingly.
1743 ac_fn_c_check_header_compile ()
1745 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1747 $as_echo_n "checking for $2... " >&6; }
1748 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1749 $as_echo_n "(cached) " >&6
1750 else
1751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1752 /* end confdefs.h. */
1754 #include <$2>
1755 _ACEOF
1756 if ac_fn_c_try_compile "$LINENO"; then :
1757 eval "$3=yes"
1758 else
1759 eval "$3=no"
1761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1763 eval ac_res=\$$3
1764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1765 $as_echo "$ac_res" >&6; }
1766 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1768 } # ac_fn_c_check_header_compile
1770 # ac_fn_cxx_try_compile LINENO
1771 # ----------------------------
1772 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1773 ac_fn_cxx_try_compile ()
1775 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1776 rm -f conftest.$ac_objext
1777 if { { ac_try="$ac_compile"
1778 case "(($ac_try" in
1779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1780 *) ac_try_echo=$ac_try;;
1781 esac
1782 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1783 $as_echo "$ac_try_echo"; } >&5
1784 (eval "$ac_compile") 2>conftest.err
1785 ac_status=$?
1786 if test -s conftest.err; then
1787 grep -v '^ *+' conftest.err >conftest.er1
1788 cat conftest.er1 >&5
1789 mv -f conftest.er1 conftest.err
1791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1792 test $ac_status = 0; } && {
1793 test -z "$ac_cxx_werror_flag" ||
1794 test ! -s conftest.err
1795 } && test -s conftest.$ac_objext; then :
1796 ac_retval=0
1797 else
1798 $as_echo "$as_me: failed program was:" >&5
1799 sed 's/^/| /' conftest.$ac_ext >&5
1801 ac_retval=1
1803 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1804 return $ac_retval
1806 } # ac_fn_cxx_try_compile
1808 # ac_fn_c_try_link LINENO
1809 # -----------------------
1810 # Try to link conftest.$ac_ext, and return whether this succeeded.
1811 ac_fn_c_try_link ()
1813 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1814 rm -f conftest.$ac_objext conftest$ac_exeext
1815 if { { ac_try="$ac_link"
1816 case "(($ac_try" in
1817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1818 *) ac_try_echo=$ac_try;;
1819 esac
1820 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1821 $as_echo "$ac_try_echo"; } >&5
1822 (eval "$ac_link") 2>conftest.err
1823 ac_status=$?
1824 if test -s conftest.err; then
1825 grep -v '^ *+' conftest.err >conftest.er1
1826 cat conftest.er1 >&5
1827 mv -f conftest.er1 conftest.err
1829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1830 test $ac_status = 0; } && {
1831 test -z "$ac_c_werror_flag" ||
1832 test ! -s conftest.err
1833 } && test -s conftest$ac_exeext && {
1834 test "$cross_compiling" = yes ||
1835 $as_test_x conftest$ac_exeext
1836 }; then :
1837 ac_retval=0
1838 else
1839 $as_echo "$as_me: failed program was:" >&5
1840 sed 's/^/| /' conftest.$ac_ext >&5
1842 ac_retval=1
1844 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1845 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1846 # interfere with the next link command; also delete a directory that is
1847 # left behind by Apple's compiler. We do this before executing the actions.
1848 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1849 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1850 return $ac_retval
1852 } # ac_fn_c_try_link
1854 # ac_fn_c_check_func LINENO FUNC VAR
1855 # ----------------------------------
1856 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1857 ac_fn_c_check_func ()
1859 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1861 $as_echo_n "checking for $2... " >&6; }
1862 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1863 $as_echo_n "(cached) " >&6
1864 else
1865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1866 /* end confdefs.h. */
1867 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1868 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1869 #define $2 innocuous_$2
1871 /* System header to define __stub macros and hopefully few prototypes,
1872 which can conflict with char $2 (); below.
1873 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1874 <limits.h> exists even on freestanding compilers. */
1876 #ifdef __STDC__
1877 # include <limits.h>
1878 #else
1879 # include <assert.h>
1880 #endif
1882 #undef $2
1884 /* Override any GCC internal prototype to avoid an error.
1885 Use char because int might match the return type of a GCC
1886 builtin and then its argument prototype would still apply. */
1887 #ifdef __cplusplus
1888 extern "C"
1889 #endif
1890 char $2 ();
1891 /* The GNU C library defines this for functions which it implements
1892 to always fail with ENOSYS. Some functions are actually named
1893 something starting with __ and the normal name is an alias. */
1894 #if defined __stub_$2 || defined __stub___$2
1895 choke me
1896 #endif
1899 main ()
1901 return $2 ();
1903 return 0;
1905 _ACEOF
1906 if ac_fn_c_try_link "$LINENO"; then :
1907 eval "$3=yes"
1908 else
1909 eval "$3=no"
1911 rm -f core conftest.err conftest.$ac_objext \
1912 conftest$ac_exeext conftest.$ac_ext
1914 eval ac_res=\$$3
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1916 $as_echo "$ac_res" >&6; }
1917 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1919 } # ac_fn_c_check_func
1921 # ac_fn_cxx_try_cpp LINENO
1922 # ------------------------
1923 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1924 ac_fn_cxx_try_cpp ()
1926 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1927 if { { ac_try="$ac_cpp conftest.$ac_ext"
1928 case "(($ac_try" in
1929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1930 *) ac_try_echo=$ac_try;;
1931 esac
1932 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1933 $as_echo "$ac_try_echo"; } >&5
1934 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1935 ac_status=$?
1936 if test -s conftest.err; then
1937 grep -v '^ *+' conftest.err >conftest.er1
1938 cat conftest.er1 >&5
1939 mv -f conftest.er1 conftest.err
1941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1942 test $ac_status = 0; } >/dev/null && {
1943 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1944 test ! -s conftest.err
1945 }; then :
1946 ac_retval=0
1947 else
1948 $as_echo "$as_me: failed program was:" >&5
1949 sed 's/^/| /' conftest.$ac_ext >&5
1951 ac_retval=1
1953 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1954 return $ac_retval
1956 } # ac_fn_cxx_try_cpp
1958 # ac_fn_cxx_try_link LINENO
1959 # -------------------------
1960 # Try to link conftest.$ac_ext, and return whether this succeeded.
1961 ac_fn_cxx_try_link ()
1963 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1964 rm -f conftest.$ac_objext conftest$ac_exeext
1965 if { { ac_try="$ac_link"
1966 case "(($ac_try" in
1967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1968 *) ac_try_echo=$ac_try;;
1969 esac
1970 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1971 $as_echo "$ac_try_echo"; } >&5
1972 (eval "$ac_link") 2>conftest.err
1973 ac_status=$?
1974 if test -s conftest.err; then
1975 grep -v '^ *+' conftest.err >conftest.er1
1976 cat conftest.er1 >&5
1977 mv -f conftest.er1 conftest.err
1979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1980 test $ac_status = 0; } && {
1981 test -z "$ac_cxx_werror_flag" ||
1982 test ! -s conftest.err
1983 } && test -s conftest$ac_exeext && {
1984 test "$cross_compiling" = yes ||
1985 $as_test_x conftest$ac_exeext
1986 }; then :
1987 ac_retval=0
1988 else
1989 $as_echo "$as_me: failed program was:" >&5
1990 sed 's/^/| /' conftest.$ac_ext >&5
1992 ac_retval=1
1994 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1995 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1996 # interfere with the next link command; also delete a directory that is
1997 # left behind by Apple's compiler. We do this before executing the actions.
1998 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1999 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2000 return $ac_retval
2002 } # ac_fn_cxx_try_link
2004 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2005 # --------------------------------------------
2006 # Tries to find the compile-time value of EXPR in a program that includes
2007 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2008 # computed
2009 ac_fn_c_compute_int ()
2011 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2012 if test "$cross_compiling" = yes; then
2013 # Depending upon the size, compute the lo and hi bounds.
2014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015 /* end confdefs.h. */
2018 main ()
2020 static int test_array [1 - 2 * !(($2) >= 0)];
2021 test_array [0] = 0
2024 return 0;
2026 _ACEOF
2027 if ac_fn_c_try_compile "$LINENO"; then :
2028 ac_lo=0 ac_mid=0
2029 while :; do
2030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2031 /* end confdefs.h. */
2034 main ()
2036 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2037 test_array [0] = 0
2040 return 0;
2042 _ACEOF
2043 if ac_fn_c_try_compile "$LINENO"; then :
2044 ac_hi=$ac_mid; break
2045 else
2046 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2047 if test $ac_lo -le $ac_mid; then
2048 ac_lo= ac_hi=
2049 break
2051 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2054 done
2055 else
2056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2057 /* end confdefs.h. */
2060 main ()
2062 static int test_array [1 - 2 * !(($2) < 0)];
2063 test_array [0] = 0
2066 return 0;
2068 _ACEOF
2069 if ac_fn_c_try_compile "$LINENO"; then :
2070 ac_hi=-1 ac_mid=-1
2071 while :; do
2072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2073 /* end confdefs.h. */
2076 main ()
2078 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2079 test_array [0] = 0
2082 return 0;
2084 _ACEOF
2085 if ac_fn_c_try_compile "$LINENO"; then :
2086 ac_lo=$ac_mid; break
2087 else
2088 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2089 if test $ac_mid -le $ac_hi; then
2090 ac_lo= ac_hi=
2091 break
2093 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2096 done
2097 else
2098 ac_lo= ac_hi=
2100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2103 # Binary search between lo and hi bounds.
2104 while test "x$ac_lo" != "x$ac_hi"; do
2105 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2107 /* end confdefs.h. */
2110 main ()
2112 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2113 test_array [0] = 0
2116 return 0;
2118 _ACEOF
2119 if ac_fn_c_try_compile "$LINENO"; then :
2120 ac_hi=$ac_mid
2121 else
2122 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2125 done
2126 case $ac_lo in #((
2127 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2128 '') ac_retval=1 ;;
2129 esac
2130 else
2131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2132 /* end confdefs.h. */
2134 static long int longval () { return $2; }
2135 static unsigned long int ulongval () { return $2; }
2136 #include <stdio.h>
2137 #include <stdlib.h>
2139 main ()
2142 FILE *f = fopen ("conftest.val", "w");
2143 if (! f)
2144 return 1;
2145 if (($2) < 0)
2147 long int i = longval ();
2148 if (i != ($2))
2149 return 1;
2150 fprintf (f, "%ld", i);
2152 else
2154 unsigned long int i = ulongval ();
2155 if (i != ($2))
2156 return 1;
2157 fprintf (f, "%lu", i);
2159 /* Do not output a trailing newline, as this causes \r\n confusion
2160 on some platforms. */
2161 return ferror (f) || fclose (f) != 0;
2164 return 0;
2166 _ACEOF
2167 if ac_fn_c_try_run "$LINENO"; then :
2168 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2169 else
2170 ac_retval=1
2172 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2173 conftest.$ac_objext conftest.beam conftest.$ac_ext
2174 rm -f conftest.val
2177 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2178 return $ac_retval
2180 } # ac_fn_c_compute_int
2182 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2183 # -------------------------------------------
2184 # Tests whether TYPE exists after having included INCLUDES, setting cache
2185 # variable VAR accordingly.
2186 ac_fn_c_check_type ()
2188 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2190 $as_echo_n "checking for $2... " >&6; }
2191 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2192 $as_echo_n "(cached) " >&6
2193 else
2194 eval "$3=no"
2195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2196 /* end confdefs.h. */
2199 main ()
2201 if (sizeof ($2))
2202 return 0;
2204 return 0;
2206 _ACEOF
2207 if ac_fn_c_try_compile "$LINENO"; then :
2208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2209 /* end confdefs.h. */
2212 main ()
2214 if (sizeof (($2)))
2215 return 0;
2217 return 0;
2219 _ACEOF
2220 if ac_fn_c_try_compile "$LINENO"; then :
2222 else
2223 eval "$3=yes"
2225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2229 eval ac_res=\$$3
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2231 $as_echo "$ac_res" >&6; }
2232 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2234 } # ac_fn_c_check_type
2236 # ac_fn_c_check_decl LINENO SYMBOL VAR
2237 # ------------------------------------
2238 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2239 ac_fn_c_check_decl ()
2241 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2242 as_decl_name=`echo $2|sed 's/ *(.*//'`
2243 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2245 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2246 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2247 $as_echo_n "(cached) " >&6
2248 else
2249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2250 /* end confdefs.h. */
2253 main ()
2255 #ifndef $as_decl_name
2256 #ifdef __cplusplus
2257 (void) $as_decl_use;
2258 #else
2259 (void) $as_decl_name;
2260 #endif
2261 #endif
2264 return 0;
2266 _ACEOF
2267 if ac_fn_c_try_compile "$LINENO"; then :
2268 eval "$3=yes"
2269 else
2270 eval "$3=no"
2272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2274 eval ac_res=\$$3
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2276 $as_echo "$ac_res" >&6; }
2277 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2279 } # ac_fn_c_check_decl
2280 cat >config.log <<_ACEOF
2281 This file contains any messages produced by compilers while
2282 running configure, to aid debugging if configure makes a mistake.
2284 It was created by package-unused $as_me version-unused, which was
2285 generated by GNU Autoconf 2.64. Invocation command line was
2287 $ $0 $@
2289 _ACEOF
2290 exec 5>>config.log
2292 cat <<_ASUNAME
2293 ## --------- ##
2294 ## Platform. ##
2295 ## --------- ##
2297 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2298 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2299 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2300 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2301 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2303 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2304 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2306 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2307 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2308 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2309 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2310 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2311 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2312 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2314 _ASUNAME
2316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2317 for as_dir in $PATH
2319 IFS=$as_save_IFS
2320 test -z "$as_dir" && as_dir=.
2321 $as_echo "PATH: $as_dir"
2322 done
2323 IFS=$as_save_IFS
2325 } >&5
2327 cat >&5 <<_ACEOF
2330 ## ----------- ##
2331 ## Core tests. ##
2332 ## ----------- ##
2334 _ACEOF
2337 # Keep a trace of the command line.
2338 # Strip out --no-create and --no-recursion so they do not pile up.
2339 # Strip out --silent because we don't want to record it for future runs.
2340 # Also quote any args containing shell meta-characters.
2341 # Make two passes to allow for proper duplicate-argument suppression.
2342 ac_configure_args=
2343 ac_configure_args0=
2344 ac_configure_args1=
2345 ac_must_keep_next=false
2346 for ac_pass in 1 2
2348 for ac_arg
2350 case $ac_arg in
2351 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2352 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2353 | -silent | --silent | --silen | --sile | --sil)
2354 continue ;;
2355 *\'*)
2356 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2357 esac
2358 case $ac_pass in
2359 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2361 as_fn_append ac_configure_args1 " '$ac_arg'"
2362 if test $ac_must_keep_next = true; then
2363 ac_must_keep_next=false # Got value, back to normal.
2364 else
2365 case $ac_arg in
2366 *=* | --config-cache | -C | -disable-* | --disable-* \
2367 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2368 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2369 | -with-* | --with-* | -without-* | --without-* | --x)
2370 case "$ac_configure_args0 " in
2371 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2372 esac
2374 -* ) ac_must_keep_next=true ;;
2375 esac
2377 as_fn_append ac_configure_args " '$ac_arg'"
2379 esac
2380 done
2381 done
2382 { ac_configure_args0=; unset ac_configure_args0;}
2383 { ac_configure_args1=; unset ac_configure_args1;}
2385 # When interrupted or exit'd, cleanup temporary files, and complete
2386 # config.log. We remove comments because anyway the quotes in there
2387 # would cause problems or look ugly.
2388 # WARNING: Use '\'' to represent an apostrophe within the trap.
2389 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2390 trap 'exit_status=$?
2391 # Save into config.log some information that might help in debugging.
2393 echo
2395 cat <<\_ASBOX
2396 ## ---------------- ##
2397 ## Cache variables. ##
2398 ## ---------------- ##
2399 _ASBOX
2400 echo
2401 # The following way of writing the cache mishandles newlines in values,
2403 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2404 eval ac_val=\$$ac_var
2405 case $ac_val in #(
2406 *${as_nl}*)
2407 case $ac_var in #(
2408 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2409 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2410 esac
2411 case $ac_var in #(
2412 _ | IFS | as_nl) ;; #(
2413 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2414 *) { eval $ac_var=; unset $ac_var;} ;;
2415 esac ;;
2416 esac
2417 done
2418 (set) 2>&1 |
2419 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2420 *${as_nl}ac_space=\ *)
2421 sed -n \
2422 "s/'\''/'\''\\\\'\'''\''/g;
2423 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2424 ;; #(
2426 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2428 esac |
2429 sort
2431 echo
2433 cat <<\_ASBOX
2434 ## ----------------- ##
2435 ## Output variables. ##
2436 ## ----------------- ##
2437 _ASBOX
2438 echo
2439 for ac_var in $ac_subst_vars
2441 eval ac_val=\$$ac_var
2442 case $ac_val in
2443 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2444 esac
2445 $as_echo "$ac_var='\''$ac_val'\''"
2446 done | sort
2447 echo
2449 if test -n "$ac_subst_files"; then
2450 cat <<\_ASBOX
2451 ## ------------------- ##
2452 ## File substitutions. ##
2453 ## ------------------- ##
2454 _ASBOX
2455 echo
2456 for ac_var in $ac_subst_files
2458 eval ac_val=\$$ac_var
2459 case $ac_val in
2460 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2461 esac
2462 $as_echo "$ac_var='\''$ac_val'\''"
2463 done | sort
2464 echo
2467 if test -s confdefs.h; then
2468 cat <<\_ASBOX
2469 ## ----------- ##
2470 ## confdefs.h. ##
2471 ## ----------- ##
2472 _ASBOX
2473 echo
2474 cat confdefs.h
2475 echo
2477 test "$ac_signal" != 0 &&
2478 $as_echo "$as_me: caught signal $ac_signal"
2479 $as_echo "$as_me: exit $exit_status"
2480 } >&5
2481 rm -f core *.core core.conftest.* &&
2482 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2483 exit $exit_status
2485 for ac_signal in 1 2 13 15; do
2486 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2487 done
2488 ac_signal=0
2490 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2491 rm -f -r conftest* confdefs.h
2493 $as_echo "/* confdefs.h */" > confdefs.h
2495 # Predefined preprocessor variables.
2497 cat >>confdefs.h <<_ACEOF
2498 #define PACKAGE_NAME "$PACKAGE_NAME"
2499 _ACEOF
2501 cat >>confdefs.h <<_ACEOF
2502 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2503 _ACEOF
2505 cat >>confdefs.h <<_ACEOF
2506 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2507 _ACEOF
2509 cat >>confdefs.h <<_ACEOF
2510 #define PACKAGE_STRING "$PACKAGE_STRING"
2511 _ACEOF
2513 cat >>confdefs.h <<_ACEOF
2514 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2515 _ACEOF
2517 cat >>confdefs.h <<_ACEOF
2518 #define PACKAGE_URL "$PACKAGE_URL"
2519 _ACEOF
2522 # Let the site file select an alternate cache file if it wants to.
2523 # Prefer an explicitly selected file to automatically selected ones.
2524 ac_site_file1=NONE
2525 ac_site_file2=NONE
2526 if test -n "$CONFIG_SITE"; then
2527 ac_site_file1=$CONFIG_SITE
2528 elif test "x$prefix" != xNONE; then
2529 ac_site_file1=$prefix/share/config.site
2530 ac_site_file2=$prefix/etc/config.site
2531 else
2532 ac_site_file1=$ac_default_prefix/share/config.site
2533 ac_site_file2=$ac_default_prefix/etc/config.site
2535 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2537 test "x$ac_site_file" = xNONE && continue
2538 if test -r "$ac_site_file"; then
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2540 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2541 sed 's/^/| /' "$ac_site_file" >&5
2542 . "$ac_site_file"
2544 done
2546 if test -r "$cache_file"; then
2547 # Some versions of bash will fail to source /dev/null (special
2548 # files actually), so we avoid doing that.
2549 if test -f "$cache_file"; then
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2551 $as_echo "$as_me: loading cache $cache_file" >&6;}
2552 case $cache_file in
2553 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2554 *) . "./$cache_file";;
2555 esac
2557 else
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2559 $as_echo "$as_me: creating cache $cache_file" >&6;}
2560 >$cache_file
2563 # Check that the precious variables saved in the cache have kept the same
2564 # value.
2565 ac_cache_corrupted=false
2566 for ac_var in $ac_precious_vars; do
2567 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2568 eval ac_new_set=\$ac_env_${ac_var}_set
2569 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2570 eval ac_new_val=\$ac_env_${ac_var}_value
2571 case $ac_old_set,$ac_new_set in
2572 set,)
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2574 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2575 ac_cache_corrupted=: ;;
2576 ,set)
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2578 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2579 ac_cache_corrupted=: ;;
2580 ,);;
2582 if test "x$ac_old_val" != "x$ac_new_val"; then
2583 # differences in whitespace do not lead to failure.
2584 ac_old_val_w=`echo x $ac_old_val`
2585 ac_new_val_w=`echo x $ac_new_val`
2586 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2588 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2589 ac_cache_corrupted=:
2590 else
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2592 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2593 eval $ac_var=\$ac_old_val
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2596 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2598 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2599 fi;;
2600 esac
2601 # Pass precious variables to config.status.
2602 if test "$ac_new_set" = set; then
2603 case $ac_new_val in
2604 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2605 *) ac_arg=$ac_var=$ac_new_val ;;
2606 esac
2607 case " $ac_configure_args " in
2608 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2609 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2610 esac
2612 done
2613 if $ac_cache_corrupted; then
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2615 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2617 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2618 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2620 ## -------------------- ##
2621 ## Main body of script. ##
2622 ## -------------------- ##
2624 ac_ext=c
2625 ac_cpp='$CPP $CPPFLAGS'
2626 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2627 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2628 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2636 # Default to --enable-multilib
2637 # Check whether --enable-multilib was given.
2638 if test "${enable_multilib+set}" = set; then :
2639 enableval=$enable_multilib; case "$enableval" in
2640 yes) multilib=yes ;;
2641 no) multilib=no ;;
2642 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2643 esac
2644 else
2645 multilib=yes
2649 # We may get other options which we leave undocumented:
2650 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2651 # See config-ml.in if you want the gory details.
2653 if test "$srcdir" = "."; then
2654 if test "$with_target_subdir" != "."; then
2655 multi_basedir="$srcdir/$with_multisrctop../.."
2656 else
2657 multi_basedir="$srcdir/$with_multisrctop.."
2659 else
2660 multi_basedir="$srcdir/.."
2664 # Even if the default multilib is not a cross compilation,
2665 # it may be that some of the other multilibs are.
2666 if test $cross_compiling = no && test $multilib = yes \
2667 && test "x${with_multisubdir}" != x ; then
2668 cross_compiling=maybe
2671 ac_config_commands="$ac_config_commands default-1"
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2675 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2676 # Check whether --enable-version-specific-runtime-libs was given.
2677 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2678 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2679 yes) version_specific_libs=yes ;;
2680 no) version_specific_libs=no ;;
2681 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2682 esac
2683 else
2684 version_specific_libs=no
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2688 $as_echo "$version_specific_libs" >&6; }
2690 ac_ext=c
2691 ac_cpp='$CPP $CPPFLAGS'
2692 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2693 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2694 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2695 if test -n "$ac_tool_prefix"; then
2696 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2697 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2699 $as_echo_n "checking for $ac_word... " >&6; }
2700 if test "${ac_cv_prog_CC+set}" = set; then :
2701 $as_echo_n "(cached) " >&6
2702 else
2703 if test -n "$CC"; then
2704 ac_cv_prog_CC="$CC" # Let the user override the test.
2705 else
2706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2707 for as_dir in $PATH
2709 IFS=$as_save_IFS
2710 test -z "$as_dir" && as_dir=.
2711 for ac_exec_ext in '' $ac_executable_extensions; do
2712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2713 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2715 break 2
2717 done
2718 done
2719 IFS=$as_save_IFS
2723 CC=$ac_cv_prog_CC
2724 if test -n "$CC"; then
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2726 $as_echo "$CC" >&6; }
2727 else
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2729 $as_echo "no" >&6; }
2734 if test -z "$ac_cv_prog_CC"; then
2735 ac_ct_CC=$CC
2736 # Extract the first word of "gcc", so it can be a program name with args.
2737 set dummy gcc; ac_word=$2
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2739 $as_echo_n "checking for $ac_word... " >&6; }
2740 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2741 $as_echo_n "(cached) " >&6
2742 else
2743 if test -n "$ac_ct_CC"; then
2744 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2745 else
2746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2747 for as_dir in $PATH
2749 IFS=$as_save_IFS
2750 test -z "$as_dir" && as_dir=.
2751 for ac_exec_ext in '' $ac_executable_extensions; do
2752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2753 ac_cv_prog_ac_ct_CC="gcc"
2754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2755 break 2
2757 done
2758 done
2759 IFS=$as_save_IFS
2763 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2764 if test -n "$ac_ct_CC"; then
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2766 $as_echo "$ac_ct_CC" >&6; }
2767 else
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2769 $as_echo "no" >&6; }
2772 if test "x$ac_ct_CC" = x; then
2773 CC=""
2774 else
2775 case $cross_compiling:$ac_tool_warned in
2776 yes:)
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2778 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2779 ac_tool_warned=yes ;;
2780 esac
2781 CC=$ac_ct_CC
2783 else
2784 CC="$ac_cv_prog_CC"
2787 if test -z "$CC"; then
2788 if test -n "$ac_tool_prefix"; then
2789 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2790 set dummy ${ac_tool_prefix}cc; ac_word=$2
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2792 $as_echo_n "checking for $ac_word... " >&6; }
2793 if test "${ac_cv_prog_CC+set}" = set; then :
2794 $as_echo_n "(cached) " >&6
2795 else
2796 if test -n "$CC"; then
2797 ac_cv_prog_CC="$CC" # Let the user override the test.
2798 else
2799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2800 for as_dir in $PATH
2802 IFS=$as_save_IFS
2803 test -z "$as_dir" && as_dir=.
2804 for ac_exec_ext in '' $ac_executable_extensions; do
2805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2806 ac_cv_prog_CC="${ac_tool_prefix}cc"
2807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2808 break 2
2810 done
2811 done
2812 IFS=$as_save_IFS
2816 CC=$ac_cv_prog_CC
2817 if test -n "$CC"; then
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2819 $as_echo "$CC" >&6; }
2820 else
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2822 $as_echo "no" >&6; }
2828 if test -z "$CC"; then
2829 # Extract the first word of "cc", so it can be a program name with args.
2830 set dummy cc; ac_word=$2
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2832 $as_echo_n "checking for $ac_word... " >&6; }
2833 if test "${ac_cv_prog_CC+set}" = set; then :
2834 $as_echo_n "(cached) " >&6
2835 else
2836 if test -n "$CC"; then
2837 ac_cv_prog_CC="$CC" # Let the user override the test.
2838 else
2839 ac_prog_rejected=no
2840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2841 for as_dir in $PATH
2843 IFS=$as_save_IFS
2844 test -z "$as_dir" && as_dir=.
2845 for ac_exec_ext in '' $ac_executable_extensions; do
2846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2847 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2848 ac_prog_rejected=yes
2849 continue
2851 ac_cv_prog_CC="cc"
2852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2853 break 2
2855 done
2856 done
2857 IFS=$as_save_IFS
2859 if test $ac_prog_rejected = yes; then
2860 # We found a bogon in the path, so make sure we never use it.
2861 set dummy $ac_cv_prog_CC
2862 shift
2863 if test $# != 0; then
2864 # We chose a different compiler from the bogus one.
2865 # However, it has the same basename, so the bogon will be chosen
2866 # first if we set CC to just the basename; use the full file name.
2867 shift
2868 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2873 CC=$ac_cv_prog_CC
2874 if test -n "$CC"; then
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2876 $as_echo "$CC" >&6; }
2877 else
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2879 $as_echo "no" >&6; }
2884 if test -z "$CC"; then
2885 if test -n "$ac_tool_prefix"; then
2886 for ac_prog in cl.exe
2888 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2889 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2891 $as_echo_n "checking for $ac_word... " >&6; }
2892 if test "${ac_cv_prog_CC+set}" = set; then :
2893 $as_echo_n "(cached) " >&6
2894 else
2895 if test -n "$CC"; then
2896 ac_cv_prog_CC="$CC" # Let the user override the test.
2897 else
2898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2899 for as_dir in $PATH
2901 IFS=$as_save_IFS
2902 test -z "$as_dir" && as_dir=.
2903 for ac_exec_ext in '' $ac_executable_extensions; do
2904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2905 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2907 break 2
2909 done
2910 done
2911 IFS=$as_save_IFS
2915 CC=$ac_cv_prog_CC
2916 if test -n "$CC"; then
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2918 $as_echo "$CC" >&6; }
2919 else
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2921 $as_echo "no" >&6; }
2925 test -n "$CC" && break
2926 done
2928 if test -z "$CC"; then
2929 ac_ct_CC=$CC
2930 for ac_prog in cl.exe
2932 # Extract the first word of "$ac_prog", so it can be a program name with args.
2933 set dummy $ac_prog; ac_word=$2
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2935 $as_echo_n "checking for $ac_word... " >&6; }
2936 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2937 $as_echo_n "(cached) " >&6
2938 else
2939 if test -n "$ac_ct_CC"; then
2940 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2941 else
2942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2943 for as_dir in $PATH
2945 IFS=$as_save_IFS
2946 test -z "$as_dir" && as_dir=.
2947 for ac_exec_ext in '' $ac_executable_extensions; do
2948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2949 ac_cv_prog_ac_ct_CC="$ac_prog"
2950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2951 break 2
2953 done
2954 done
2955 IFS=$as_save_IFS
2959 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2960 if test -n "$ac_ct_CC"; then
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2962 $as_echo "$ac_ct_CC" >&6; }
2963 else
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2965 $as_echo "no" >&6; }
2969 test -n "$ac_ct_CC" && break
2970 done
2972 if test "x$ac_ct_CC" = x; then
2973 CC=""
2974 else
2975 case $cross_compiling:$ac_tool_warned in
2976 yes:)
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2978 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2979 ac_tool_warned=yes ;;
2980 esac
2981 CC=$ac_ct_CC
2988 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2989 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2990 as_fn_error "no acceptable C compiler found in \$PATH
2991 See \`config.log' for more details." "$LINENO" 5; }
2993 # Provide some information about the compiler.
2994 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2995 set X $ac_compile
2996 ac_compiler=$2
2997 for ac_option in --version -v -V -qversion; do
2998 { { ac_try="$ac_compiler $ac_option >&5"
2999 case "(($ac_try" in
3000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3001 *) ac_try_echo=$ac_try;;
3002 esac
3003 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3004 $as_echo "$ac_try_echo"; } >&5
3005 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3006 ac_status=$?
3007 if test -s conftest.err; then
3008 sed '10a\
3009 ... rest of stderr output deleted ...
3010 10q' conftest.err >conftest.er1
3011 cat conftest.er1 >&5
3012 rm -f conftest.er1 conftest.err
3014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3015 test $ac_status = 0; }
3016 done
3018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3019 /* end confdefs.h. */
3022 main ()
3026 return 0;
3028 _ACEOF
3029 ac_clean_files_save=$ac_clean_files
3030 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3031 # Try to create an executable without -o first, disregard a.out.
3032 # It will help us diagnose broken compilers, and finding out an intuition
3033 # of exeext.
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3035 $as_echo_n "checking for C compiler default output file name... " >&6; }
3036 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3038 # The possible output files:
3039 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3041 ac_rmfiles=
3042 for ac_file in $ac_files
3044 case $ac_file in
3045 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3046 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3047 esac
3048 done
3049 rm -f $ac_rmfiles
3051 if { { ac_try="$ac_link_default"
3052 case "(($ac_try" in
3053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3054 *) ac_try_echo=$ac_try;;
3055 esac
3056 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3057 $as_echo "$ac_try_echo"; } >&5
3058 (eval "$ac_link_default") 2>&5
3059 ac_status=$?
3060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3061 test $ac_status = 0; }; then :
3062 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3063 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3064 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3065 # so that the user can short-circuit this test for compilers unknown to
3066 # Autoconf.
3067 for ac_file in $ac_files ''
3069 test -f "$ac_file" || continue
3070 case $ac_file in
3071 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3073 [ab].out )
3074 # We found the default executable, but exeext='' is most
3075 # certainly right.
3076 break;;
3077 *.* )
3078 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3079 then :; else
3080 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3082 # We set ac_cv_exeext here because the later test for it is not
3083 # safe: cross compilers may not add the suffix if given an `-o'
3084 # argument, so we may need to know it at that point already.
3085 # Even if this section looks crufty: it has the advantage of
3086 # actually working.
3087 break;;
3089 break;;
3090 esac
3091 done
3092 test "$ac_cv_exeext" = no && ac_cv_exeext=
3094 else
3095 ac_file=''
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3098 $as_echo "$ac_file" >&6; }
3099 if test -z "$ac_file"; then :
3100 $as_echo "$as_me: failed program was:" >&5
3101 sed 's/^/| /' conftest.$ac_ext >&5
3103 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3104 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3105 { as_fn_set_status 77
3106 as_fn_error "C compiler cannot create executables
3107 See \`config.log' for more details." "$LINENO" 5; }; }
3109 ac_exeext=$ac_cv_exeext
3111 # Check that the compiler produces executables we can run. If not, either
3112 # the compiler is broken, or we cross compile.
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3114 $as_echo_n "checking whether the C compiler works... " >&6; }
3115 # If not cross compiling, check that we can run a simple program.
3116 if test "$cross_compiling" != yes; then
3117 if { ac_try='./$ac_file'
3118 { { case "(($ac_try" in
3119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3120 *) ac_try_echo=$ac_try;;
3121 esac
3122 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3123 $as_echo "$ac_try_echo"; } >&5
3124 (eval "$ac_try") 2>&5
3125 ac_status=$?
3126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3127 test $ac_status = 0; }; }; then
3128 cross_compiling=no
3129 else
3130 if test "$cross_compiling" = maybe; then
3131 cross_compiling=yes
3132 else
3133 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3134 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3135 as_fn_error "cannot run C compiled programs.
3136 If you meant to cross compile, use \`--host'.
3137 See \`config.log' for more details." "$LINENO" 5; }
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3142 $as_echo "yes" >&6; }
3144 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3145 ac_clean_files=$ac_clean_files_save
3146 # Check that the compiler produces executables we can run. If not, either
3147 # the compiler is broken, or we cross compile.
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3149 $as_echo_n "checking whether we are cross compiling... " >&6; }
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3151 $as_echo "$cross_compiling" >&6; }
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3154 $as_echo_n "checking for suffix of executables... " >&6; }
3155 if { { ac_try="$ac_link"
3156 case "(($ac_try" in
3157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3158 *) ac_try_echo=$ac_try;;
3159 esac
3160 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3161 $as_echo "$ac_try_echo"; } >&5
3162 (eval "$ac_link") 2>&5
3163 ac_status=$?
3164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3165 test $ac_status = 0; }; then :
3166 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3167 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3168 # work properly (i.e., refer to `conftest.exe'), while it won't with
3169 # `rm'.
3170 for ac_file in conftest.exe conftest conftest.*; do
3171 test -f "$ac_file" || continue
3172 case $ac_file in
3173 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3174 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3175 break;;
3176 * ) break;;
3177 esac
3178 done
3179 else
3180 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3181 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3182 as_fn_error "cannot compute suffix of executables: cannot compile and link
3183 See \`config.log' for more details." "$LINENO" 5; }
3185 rm -f conftest$ac_cv_exeext
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3187 $as_echo "$ac_cv_exeext" >&6; }
3189 rm -f conftest.$ac_ext
3190 EXEEXT=$ac_cv_exeext
3191 ac_exeext=$EXEEXT
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3193 $as_echo_n "checking for suffix of object files... " >&6; }
3194 if test "${ac_cv_objext+set}" = set; then :
3195 $as_echo_n "(cached) " >&6
3196 else
3197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3198 /* end confdefs.h. */
3201 main ()
3205 return 0;
3207 _ACEOF
3208 rm -f conftest.o conftest.obj
3209 if { { ac_try="$ac_compile"
3210 case "(($ac_try" in
3211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3212 *) ac_try_echo=$ac_try;;
3213 esac
3214 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3215 $as_echo "$ac_try_echo"; } >&5
3216 (eval "$ac_compile") 2>&5
3217 ac_status=$?
3218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3219 test $ac_status = 0; }; then :
3220 for ac_file in conftest.o conftest.obj conftest.*; do
3221 test -f "$ac_file" || continue;
3222 case $ac_file in
3223 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3224 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3225 break;;
3226 esac
3227 done
3228 else
3229 $as_echo "$as_me: failed program was:" >&5
3230 sed 's/^/| /' conftest.$ac_ext >&5
3232 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3233 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3234 as_fn_error "cannot compute suffix of object files: cannot compile
3235 See \`config.log' for more details." "$LINENO" 5; }
3237 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3240 $as_echo "$ac_cv_objext" >&6; }
3241 OBJEXT=$ac_cv_objext
3242 ac_objext=$OBJEXT
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3244 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3245 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3246 $as_echo_n "(cached) " >&6
3247 else
3248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3249 /* end confdefs.h. */
3252 main ()
3254 #ifndef __GNUC__
3255 choke me
3256 #endif
3259 return 0;
3261 _ACEOF
3262 if ac_fn_c_try_compile "$LINENO"; then :
3263 ac_compiler_gnu=yes
3264 else
3265 ac_compiler_gnu=no
3267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3268 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3272 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3273 if test $ac_compiler_gnu = yes; then
3274 GCC=yes
3275 else
3276 GCC=
3278 ac_test_CFLAGS=${CFLAGS+set}
3279 ac_save_CFLAGS=$CFLAGS
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3281 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3282 if test "${ac_cv_prog_cc_g+set}" = set; then :
3283 $as_echo_n "(cached) " >&6
3284 else
3285 ac_save_c_werror_flag=$ac_c_werror_flag
3286 ac_c_werror_flag=yes
3287 ac_cv_prog_cc_g=no
3288 CFLAGS="-g"
3289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3290 /* end confdefs.h. */
3293 main ()
3297 return 0;
3299 _ACEOF
3300 if ac_fn_c_try_compile "$LINENO"; then :
3301 ac_cv_prog_cc_g=yes
3302 else
3303 CFLAGS=""
3304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3305 /* end confdefs.h. */
3308 main ()
3312 return 0;
3314 _ACEOF
3315 if ac_fn_c_try_compile "$LINENO"; then :
3317 else
3318 ac_c_werror_flag=$ac_save_c_werror_flag
3319 CFLAGS="-g"
3320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3321 /* end confdefs.h. */
3324 main ()
3328 return 0;
3330 _ACEOF
3331 if ac_fn_c_try_compile "$LINENO"; then :
3332 ac_cv_prog_cc_g=yes
3334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3339 ac_c_werror_flag=$ac_save_c_werror_flag
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3342 $as_echo "$ac_cv_prog_cc_g" >&6; }
3343 if test "$ac_test_CFLAGS" = set; then
3344 CFLAGS=$ac_save_CFLAGS
3345 elif test $ac_cv_prog_cc_g = yes; then
3346 if test "$GCC" = yes; then
3347 CFLAGS="-g -O2"
3348 else
3349 CFLAGS="-g"
3351 else
3352 if test "$GCC" = yes; then
3353 CFLAGS="-O2"
3354 else
3355 CFLAGS=
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3359 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3360 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3361 $as_echo_n "(cached) " >&6
3362 else
3363 ac_cv_prog_cc_c89=no
3364 ac_save_CC=$CC
3365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3366 /* end confdefs.h. */
3367 #include <stdarg.h>
3368 #include <stdio.h>
3369 #include <sys/types.h>
3370 #include <sys/stat.h>
3371 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3372 struct buf { int x; };
3373 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3374 static char *e (p, i)
3375 char **p;
3376 int i;
3378 return p[i];
3380 static char *f (char * (*g) (char **, int), char **p, ...)
3382 char *s;
3383 va_list v;
3384 va_start (v,p);
3385 s = g (p, va_arg (v,int));
3386 va_end (v);
3387 return s;
3390 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3391 function prototypes and stuff, but not '\xHH' hex character constants.
3392 These don't provoke an error unfortunately, instead are silently treated
3393 as 'x'. The following induces an error, until -std is added to get
3394 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3395 array size at least. It's necessary to write '\x00'==0 to get something
3396 that's true only with -std. */
3397 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3399 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3400 inside strings and character constants. */
3401 #define FOO(x) 'x'
3402 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3404 int test (int i, double x);
3405 struct s1 {int (*f) (int a);};
3406 struct s2 {int (*f) (double a);};
3407 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3408 int argc;
3409 char **argv;
3411 main ()
3413 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3415 return 0;
3417 _ACEOF
3418 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3419 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3421 CC="$ac_save_CC $ac_arg"
3422 if ac_fn_c_try_compile "$LINENO"; then :
3423 ac_cv_prog_cc_c89=$ac_arg
3425 rm -f core conftest.err conftest.$ac_objext
3426 test "x$ac_cv_prog_cc_c89" != "xno" && break
3427 done
3428 rm -f conftest.$ac_ext
3429 CC=$ac_save_CC
3432 # AC_CACHE_VAL
3433 case "x$ac_cv_prog_cc_c89" in
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3436 $as_echo "none needed" >&6; } ;;
3437 xno)
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3439 $as_echo "unsupported" >&6; } ;;
3441 CC="$CC $ac_cv_prog_cc_c89"
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3443 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3444 esac
3445 if test "x$ac_cv_prog_cc_c89" != xno; then :
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
3456 ac_ext=c
3457 ac_cpp='$CPP $CPPFLAGS'
3458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3462 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3463 # On Suns, sometimes $CPP names a directory.
3464 if test -n "$CPP" && test -d "$CPP"; then
3465 CPP=
3467 if test -z "$CPP"; then
3468 if test "${ac_cv_prog_CPP+set}" = set; then :
3469 $as_echo_n "(cached) " >&6
3470 else
3471 # Double quotes because CPP needs to be expanded
3472 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3474 ac_preproc_ok=false
3475 for ac_c_preproc_warn_flag in '' yes
3477 # Use a header file that comes with gcc, so configuring glibc
3478 # with a fresh cross-compiler works.
3479 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3480 # <limits.h> exists even on freestanding compilers.
3481 # On the NeXT, cc -E runs the code through the compiler's parser,
3482 # not just through cpp. "Syntax error" is here to catch this case.
3483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3484 /* end confdefs.h. */
3485 #ifdef __STDC__
3486 # include <limits.h>
3487 #else
3488 # include <assert.h>
3489 #endif
3490 Syntax error
3491 _ACEOF
3492 if ac_fn_c_try_cpp "$LINENO"; then :
3494 else
3495 # Broken: fails on valid input.
3496 continue
3498 rm -f conftest.err conftest.$ac_ext
3500 # OK, works on sane cases. Now check whether nonexistent headers
3501 # can be detected and how.
3502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3503 /* end confdefs.h. */
3504 #include <ac_nonexistent.h>
3505 _ACEOF
3506 if ac_fn_c_try_cpp "$LINENO"; then :
3507 # Broken: success on invalid input.
3508 continue
3509 else
3510 # Passes both tests.
3511 ac_preproc_ok=:
3512 break
3514 rm -f conftest.err conftest.$ac_ext
3516 done
3517 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3518 rm -f conftest.err conftest.$ac_ext
3519 if $ac_preproc_ok; then :
3520 break
3523 done
3524 ac_cv_prog_CPP=$CPP
3527 CPP=$ac_cv_prog_CPP
3528 else
3529 ac_cv_prog_CPP=$CPP
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3532 $as_echo "$CPP" >&6; }
3533 ac_preproc_ok=false
3534 for ac_c_preproc_warn_flag in '' yes
3536 # Use a header file that comes with gcc, so configuring glibc
3537 # with a fresh cross-compiler works.
3538 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3539 # <limits.h> exists even on freestanding compilers.
3540 # On the NeXT, cc -E runs the code through the compiler's parser,
3541 # not just through cpp. "Syntax error" is here to catch this case.
3542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3543 /* end confdefs.h. */
3544 #ifdef __STDC__
3545 # include <limits.h>
3546 #else
3547 # include <assert.h>
3548 #endif
3549 Syntax error
3550 _ACEOF
3551 if ac_fn_c_try_cpp "$LINENO"; then :
3553 else
3554 # Broken: fails on valid input.
3555 continue
3557 rm -f conftest.err conftest.$ac_ext
3559 # OK, works on sane cases. Now check whether nonexistent headers
3560 # can be detected and how.
3561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3562 /* end confdefs.h. */
3563 #include <ac_nonexistent.h>
3564 _ACEOF
3565 if ac_fn_c_try_cpp "$LINENO"; then :
3566 # Broken: success on invalid input.
3567 continue
3568 else
3569 # Passes both tests.
3570 ac_preproc_ok=:
3571 break
3573 rm -f conftest.err conftest.$ac_ext
3575 done
3576 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3577 rm -f conftest.err conftest.$ac_ext
3578 if $ac_preproc_ok; then :
3580 else
3581 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3582 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3583 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3584 See \`config.log' for more details." "$LINENO" 5; }
3587 ac_ext=c
3588 ac_cpp='$CPP $CPPFLAGS'
3589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3595 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3596 if test "${ac_cv_path_GREP+set}" = set; then :
3597 $as_echo_n "(cached) " >&6
3598 else
3599 if test -z "$GREP"; then
3600 ac_path_GREP_found=false
3601 # Loop through the user's path and test for each of PROGNAME-LIST
3602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3603 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3605 IFS=$as_save_IFS
3606 test -z "$as_dir" && as_dir=.
3607 for ac_prog in grep ggrep; do
3608 for ac_exec_ext in '' $ac_executable_extensions; do
3609 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3610 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3611 # Check for GNU ac_path_GREP and select it if it is found.
3612 # Check for GNU $ac_path_GREP
3613 case `"$ac_path_GREP" --version 2>&1` in
3614 *GNU*)
3615 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3617 ac_count=0
3618 $as_echo_n 0123456789 >"conftest.in"
3619 while :
3621 cat "conftest.in" "conftest.in" >"conftest.tmp"
3622 mv "conftest.tmp" "conftest.in"
3623 cp "conftest.in" "conftest.nl"
3624 $as_echo 'GREP' >> "conftest.nl"
3625 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3626 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3627 as_fn_arith $ac_count + 1 && ac_count=$as_val
3628 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3629 # Best one so far, save it but keep looking for a better one
3630 ac_cv_path_GREP="$ac_path_GREP"
3631 ac_path_GREP_max=$ac_count
3633 # 10*(2^10) chars as input seems more than enough
3634 test $ac_count -gt 10 && break
3635 done
3636 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3637 esac
3639 $ac_path_GREP_found && break 3
3640 done
3641 done
3642 done
3643 IFS=$as_save_IFS
3644 if test -z "$ac_cv_path_GREP"; then
3645 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3647 else
3648 ac_cv_path_GREP=$GREP
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3653 $as_echo "$ac_cv_path_GREP" >&6; }
3654 GREP="$ac_cv_path_GREP"
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3658 $as_echo_n "checking for egrep... " >&6; }
3659 if test "${ac_cv_path_EGREP+set}" = set; then :
3660 $as_echo_n "(cached) " >&6
3661 else
3662 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3663 then ac_cv_path_EGREP="$GREP -E"
3664 else
3665 if test -z "$EGREP"; then
3666 ac_path_EGREP_found=false
3667 # Loop through the user's path and test for each of PROGNAME-LIST
3668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3669 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3671 IFS=$as_save_IFS
3672 test -z "$as_dir" && as_dir=.
3673 for ac_prog in egrep; do
3674 for ac_exec_ext in '' $ac_executable_extensions; do
3675 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3676 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3677 # Check for GNU ac_path_EGREP and select it if it is found.
3678 # Check for GNU $ac_path_EGREP
3679 case `"$ac_path_EGREP" --version 2>&1` in
3680 *GNU*)
3681 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3683 ac_count=0
3684 $as_echo_n 0123456789 >"conftest.in"
3685 while :
3687 cat "conftest.in" "conftest.in" >"conftest.tmp"
3688 mv "conftest.tmp" "conftest.in"
3689 cp "conftest.in" "conftest.nl"
3690 $as_echo 'EGREP' >> "conftest.nl"
3691 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3692 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3693 as_fn_arith $ac_count + 1 && ac_count=$as_val
3694 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3695 # Best one so far, save it but keep looking for a better one
3696 ac_cv_path_EGREP="$ac_path_EGREP"
3697 ac_path_EGREP_max=$ac_count
3699 # 10*(2^10) chars as input seems more than enough
3700 test $ac_count -gt 10 && break
3701 done
3702 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3703 esac
3705 $ac_path_EGREP_found && break 3
3706 done
3707 done
3708 done
3709 IFS=$as_save_IFS
3710 if test -z "$ac_cv_path_EGREP"; then
3711 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3713 else
3714 ac_cv_path_EGREP=$EGREP
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3720 $as_echo "$ac_cv_path_EGREP" >&6; }
3721 EGREP="$ac_cv_path_EGREP"
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3725 $as_echo_n "checking for ANSI C header files... " >&6; }
3726 if test "${ac_cv_header_stdc+set}" = set; then :
3727 $as_echo_n "(cached) " >&6
3728 else
3729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3730 /* end confdefs.h. */
3731 #include <stdlib.h>
3732 #include <stdarg.h>
3733 #include <string.h>
3734 #include <float.h>
3737 main ()
3741 return 0;
3743 _ACEOF
3744 if ac_fn_c_try_compile "$LINENO"; then :
3745 ac_cv_header_stdc=yes
3746 else
3747 ac_cv_header_stdc=no
3749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3751 if test $ac_cv_header_stdc = yes; then
3752 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3754 /* end confdefs.h. */
3755 #include <string.h>
3757 _ACEOF
3758 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3759 $EGREP "memchr" >/dev/null 2>&1; then :
3761 else
3762 ac_cv_header_stdc=no
3764 rm -f conftest*
3768 if test $ac_cv_header_stdc = yes; then
3769 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3771 /* end confdefs.h. */
3772 #include <stdlib.h>
3774 _ACEOF
3775 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3776 $EGREP "free" >/dev/null 2>&1; then :
3778 else
3779 ac_cv_header_stdc=no
3781 rm -f conftest*
3785 if test $ac_cv_header_stdc = yes; then
3786 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3787 if test "$cross_compiling" = yes; then :
3789 else
3790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3791 /* end confdefs.h. */
3792 #include <ctype.h>
3793 #include <stdlib.h>
3794 #if ((' ' & 0x0FF) == 0x020)
3795 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3796 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3797 #else
3798 # define ISLOWER(c) \
3799 (('a' <= (c) && (c) <= 'i') \
3800 || ('j' <= (c) && (c) <= 'r') \
3801 || ('s' <= (c) && (c) <= 'z'))
3802 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3803 #endif
3805 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3807 main ()
3809 int i;
3810 for (i = 0; i < 256; i++)
3811 if (XOR (islower (i), ISLOWER (i))
3812 || toupper (i) != TOUPPER (i))
3813 return 2;
3814 return 0;
3816 _ACEOF
3817 if ac_fn_c_try_run "$LINENO"; then :
3819 else
3820 ac_cv_header_stdc=no
3822 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3823 conftest.$ac_objext conftest.beam conftest.$ac_ext
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3829 $as_echo "$ac_cv_header_stdc" >&6; }
3830 if test $ac_cv_header_stdc = yes; then
3832 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3836 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3837 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3838 inttypes.h stdint.h unistd.h
3839 do :
3840 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3841 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3843 eval as_val=\$$as_ac_Header
3844 if test "x$as_val" = x""yes; then :
3845 cat >>confdefs.h <<_ACEOF
3846 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3847 _ACEOF
3851 done
3855 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3856 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
3857 MINIX=yes
3858 else
3859 MINIX=
3863 if test "$MINIX" = yes; then
3865 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3868 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3871 $as_echo "#define _MINIX 1" >>confdefs.h
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3877 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3878 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3879 $as_echo_n "(cached) " >&6
3880 else
3881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3882 /* end confdefs.h. */
3884 # define __EXTENSIONS__ 1
3885 $ac_includes_default
3887 main ()
3891 return 0;
3893 _ACEOF
3894 if ac_fn_c_try_compile "$LINENO"; then :
3895 ac_cv_safe_to_define___extensions__=yes
3896 else
3897 ac_cv_safe_to_define___extensions__=no
3899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3902 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3903 test $ac_cv_safe_to_define___extensions__ = yes &&
3904 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3906 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3908 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3910 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3912 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3916 # Do not delete or change the following two lines. For why, see
3917 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
3918 ac_aux_dir=
3919 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3920 for ac_t in install-sh install.sh shtool; do
3921 if test -f "$ac_dir/$ac_t"; then
3922 ac_aux_dir=$ac_dir
3923 ac_install_sh="$ac_aux_dir/$ac_t -c"
3924 break 2
3926 done
3927 done
3928 if test -z "$ac_aux_dir"; then
3929 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3932 # These three variables are undocumented and unsupported,
3933 # and are intended to be withdrawn in a future Autoconf release.
3934 # They can cause serious problems if a builder's source tree is in a directory
3935 # whose full name contains unusual characters.
3936 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3937 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3938 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3941 # Make sure we can run config.sub.
3942 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3943 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3946 $as_echo_n "checking build system type... " >&6; }
3947 if test "${ac_cv_build+set}" = set; then :
3948 $as_echo_n "(cached) " >&6
3949 else
3950 ac_build_alias=$build_alias
3951 test "x$ac_build_alias" = x &&
3952 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3953 test "x$ac_build_alias" = x &&
3954 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3955 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3956 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3960 $as_echo "$ac_cv_build" >&6; }
3961 case $ac_cv_build in
3962 *-*-*) ;;
3963 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3964 esac
3965 build=$ac_cv_build
3966 ac_save_IFS=$IFS; IFS='-'
3967 set x $ac_cv_build
3968 shift
3969 build_cpu=$1
3970 build_vendor=$2
3971 shift; shift
3972 # Remember, the first character of IFS is used to create $*,
3973 # except with old shells:
3974 build_os=$*
3975 IFS=$ac_save_IFS
3976 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3980 $as_echo_n "checking host system type... " >&6; }
3981 if test "${ac_cv_host+set}" = set; then :
3982 $as_echo_n "(cached) " >&6
3983 else
3984 if test "x$host_alias" = x; then
3985 ac_cv_host=$ac_cv_build
3986 else
3987 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3988 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3993 $as_echo "$ac_cv_host" >&6; }
3994 case $ac_cv_host in
3995 *-*-*) ;;
3996 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3997 esac
3998 host=$ac_cv_host
3999 ac_save_IFS=$IFS; IFS='-'
4000 set x $ac_cv_host
4001 shift
4002 host_cpu=$1
4003 host_vendor=$2
4004 shift; shift
4005 # Remember, the first character of IFS is used to create $*,
4006 # except with old shells:
4007 host_os=$*
4008 IFS=$ac_save_IFS
4009 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4013 $as_echo_n "checking target system type... " >&6; }
4014 if test "${ac_cv_target+set}" = set; then :
4015 $as_echo_n "(cached) " >&6
4016 else
4017 if test "x$target_alias" = x; then
4018 ac_cv_target=$ac_cv_host
4019 else
4020 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4021 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4026 $as_echo "$ac_cv_target" >&6; }
4027 case $ac_cv_target in
4028 *-*-*) ;;
4029 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
4030 esac
4031 target=$ac_cv_target
4032 ac_save_IFS=$IFS; IFS='-'
4033 set x $ac_cv_target
4034 shift
4035 target_cpu=$1
4036 target_vendor=$2
4037 shift; shift
4038 # Remember, the first character of IFS is used to create $*,
4039 # except with old shells:
4040 target_os=$*
4041 IFS=$ac_save_IFS
4042 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4045 # The aliases save the names the user supplied, while $host etc.
4046 # will get canonicalized.
4047 test -n "$target_alias" &&
4048 test "$program_prefix$program_suffix$program_transform_name" = \
4049 NONENONEs,x,x, &&
4050 program_prefix=${target_alias}-
4052 target_alias=${target_alias-$host_alias}
4054 case ${build_alias} in
4055 "") build_noncanonical=${build} ;;
4056 *) build_noncanonical=${build_alias} ;;
4057 esac
4059 case ${host_alias} in
4060 "") host_noncanonical=${build_noncanonical} ;;
4061 *) host_noncanonical=${host_alias} ;;
4062 esac
4064 case ${target_alias} in
4065 "") target_noncanonical=${host_noncanonical} ;;
4066 *) target_noncanonical=${target_alias} ;;
4067 esac
4073 LIBSTDCXX_RAW_CXX_CXXFLAGS="\
4074 -I\$(top_builddir)/../libstdc++-v3/include \
4075 -I\$(top_builddir)/../libstdc++-v3/include/\$(target_noncanonical) \
4076 -I\$(top_srcdir)/../libstdc++-v3/libsupc++"
4077 LIBSTDCXX_RAW_CXX_LDFLAGS="\
4078 \$(top_builddir)/../libstdc++-v3/src/libstdc++.la"
4083 am__api_version='1.11'
4085 # Find a good install program. We prefer a C program (faster),
4086 # so one script is as good as another. But avoid the broken or
4087 # incompatible versions:
4088 # SysV /etc/install, /usr/sbin/install
4089 # SunOS /usr/etc/install
4090 # IRIX /sbin/install
4091 # AIX /bin/install
4092 # AmigaOS /C/install, which installs bootblocks on floppy discs
4093 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4094 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4095 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4096 # OS/2's system install, which has a completely different semantic
4097 # ./install, which can be erroneously created by make from ./install.sh.
4098 # Reject install programs that cannot install multiple files.
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4100 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4101 if test -z "$INSTALL"; then
4102 if test "${ac_cv_path_install+set}" = set; then :
4103 $as_echo_n "(cached) " >&6
4104 else
4105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4106 for as_dir in $PATH
4108 IFS=$as_save_IFS
4109 test -z "$as_dir" && as_dir=.
4110 # Account for people who put trailing slashes in PATH elements.
4111 case $as_dir/ in #((
4112 ./ | .// | /[cC]/* | \
4113 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4114 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4115 /usr/ucb/* ) ;;
4117 # OSF1 and SCO ODT 3.0 have their own names for install.
4118 # Don't use installbsd from OSF since it installs stuff as root
4119 # by default.
4120 for ac_prog in ginstall scoinst install; do
4121 for ac_exec_ext in '' $ac_executable_extensions; do
4122 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4123 if test $ac_prog = install &&
4124 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4125 # AIX install. It has an incompatible calling convention.
4127 elif test $ac_prog = install &&
4128 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4129 # program-specific install script used by HP pwplus--don't use.
4131 else
4132 rm -rf conftest.one conftest.two conftest.dir
4133 echo one > conftest.one
4134 echo two > conftest.two
4135 mkdir conftest.dir
4136 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4137 test -s conftest.one && test -s conftest.two &&
4138 test -s conftest.dir/conftest.one &&
4139 test -s conftest.dir/conftest.two
4140 then
4141 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4142 break 3
4146 done
4147 done
4149 esac
4151 done
4152 IFS=$as_save_IFS
4154 rm -rf conftest.one conftest.two conftest.dir
4157 if test "${ac_cv_path_install+set}" = set; then
4158 INSTALL=$ac_cv_path_install
4159 else
4160 # As a last resort, use the slow shell script. Don't cache a
4161 # value for INSTALL within a source directory, because that will
4162 # break other packages using the cache if that directory is
4163 # removed, or if the value is a relative name.
4164 INSTALL=$ac_install_sh
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4168 $as_echo "$INSTALL" >&6; }
4170 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4171 # It thinks the first close brace ends the variable substitution.
4172 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4174 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4176 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4179 $as_echo_n "checking whether build environment is sane... " >&6; }
4180 # Just in case
4181 sleep 1
4182 echo timestamp > conftest.file
4183 # Reject unsafe characters in $srcdir or the absolute working directory
4184 # name. Accept space and tab only in the latter.
4185 am_lf='
4187 case `pwd` in
4188 *[\\\"\#\$\&\'\`$am_lf]*)
4189 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
4190 esac
4191 case $srcdir in
4192 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4193 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
4194 esac
4196 # Do `set' in a subshell so we don't clobber the current shell's
4197 # arguments. Must try -L first in case configure is actually a
4198 # symlink; some systems play weird games with the mod time of symlinks
4199 # (eg FreeBSD returns the mod time of the symlink's containing
4200 # directory).
4201 if (
4202 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4203 if test "$*" = "X"; then
4204 # -L didn't work.
4205 set X `ls -t "$srcdir/configure" conftest.file`
4207 rm -f conftest.file
4208 if test "$*" != "X $srcdir/configure conftest.file" \
4209 && test "$*" != "X conftest.file $srcdir/configure"; then
4211 # If neither matched, then we have a broken ls. This can happen
4212 # if, for instance, CONFIG_SHELL is bash and it inherits a
4213 # broken ls alias from the environment. This has actually
4214 # happened. Such a system could not be considered "sane".
4215 as_fn_error "ls -t appears to fail. Make sure there is not a broken
4216 alias in your environment" "$LINENO" 5
4219 test "$2" = conftest.file
4221 then
4222 # Ok.
4224 else
4225 as_fn_error "newly created file is older than distributed files!
4226 Check your system clock" "$LINENO" 5
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4229 $as_echo "yes" >&6; }
4230 test "$program_prefix" != NONE &&
4231 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4232 # Use a double $ so make ignores it.
4233 test "$program_suffix" != NONE &&
4234 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4235 # Double any \ or $.
4236 # By default was `s,x,x', remove it if useless.
4237 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4238 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4240 # expand $ac_aux_dir to an absolute path
4241 am_aux_dir=`cd $ac_aux_dir && pwd`
4243 if test x"${MISSING+set}" != xset; then
4244 case $am_aux_dir in
4245 *\ * | *\ *)
4246 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4248 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4249 esac
4251 # Use eval to expand $SHELL
4252 if eval "$MISSING --run true"; then
4253 am_missing_run="$MISSING --run "
4254 else
4255 am_missing_run=
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
4257 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4260 if test x"${install_sh}" != xset; then
4261 case $am_aux_dir in
4262 *\ * | *\ *)
4263 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4265 install_sh="\${SHELL} $am_aux_dir/install-sh"
4266 esac
4269 # Installed binaries are usually stripped using `strip' when the user
4270 # run `make install-strip'. However `strip' might not be the right
4271 # tool to use in cross-compilation environments, therefore Automake
4272 # will honor the `STRIP' environment variable to overrule this program.
4273 if test "$cross_compiling" != no; then
4274 if test -n "$ac_tool_prefix"; then
4275 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4276 set dummy ${ac_tool_prefix}strip; ac_word=$2
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4278 $as_echo_n "checking for $ac_word... " >&6; }
4279 if test "${ac_cv_prog_STRIP+set}" = set; then :
4280 $as_echo_n "(cached) " >&6
4281 else
4282 if test -n "$STRIP"; then
4283 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4284 else
4285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4286 for as_dir in $PATH
4288 IFS=$as_save_IFS
4289 test -z "$as_dir" && as_dir=.
4290 for ac_exec_ext in '' $ac_executable_extensions; do
4291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4292 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4294 break 2
4296 done
4297 done
4298 IFS=$as_save_IFS
4302 STRIP=$ac_cv_prog_STRIP
4303 if test -n "$STRIP"; then
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4305 $as_echo "$STRIP" >&6; }
4306 else
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4308 $as_echo "no" >&6; }
4313 if test -z "$ac_cv_prog_STRIP"; then
4314 ac_ct_STRIP=$STRIP
4315 # Extract the first word of "strip", so it can be a program name with args.
4316 set dummy strip; ac_word=$2
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4318 $as_echo_n "checking for $ac_word... " >&6; }
4319 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4320 $as_echo_n "(cached) " >&6
4321 else
4322 if test -n "$ac_ct_STRIP"; then
4323 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4324 else
4325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4326 for as_dir in $PATH
4328 IFS=$as_save_IFS
4329 test -z "$as_dir" && as_dir=.
4330 for ac_exec_ext in '' $ac_executable_extensions; do
4331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4332 ac_cv_prog_ac_ct_STRIP="strip"
4333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4334 break 2
4336 done
4337 done
4338 IFS=$as_save_IFS
4342 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4343 if test -n "$ac_ct_STRIP"; then
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4345 $as_echo "$ac_ct_STRIP" >&6; }
4346 else
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4348 $as_echo "no" >&6; }
4351 if test "x$ac_ct_STRIP" = x; then
4352 STRIP=":"
4353 else
4354 case $cross_compiling:$ac_tool_warned in
4355 yes:)
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4357 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4358 ac_tool_warned=yes ;;
4359 esac
4360 STRIP=$ac_ct_STRIP
4362 else
4363 STRIP="$ac_cv_prog_STRIP"
4367 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4370 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4371 if test -z "$MKDIR_P"; then
4372 if test "${ac_cv_path_mkdir+set}" = set; then :
4373 $as_echo_n "(cached) " >&6
4374 else
4375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4376 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4378 IFS=$as_save_IFS
4379 test -z "$as_dir" && as_dir=.
4380 for ac_prog in mkdir gmkdir; do
4381 for ac_exec_ext in '' $ac_executable_extensions; do
4382 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4383 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4384 'mkdir (GNU coreutils) '* | \
4385 'mkdir (coreutils) '* | \
4386 'mkdir (fileutils) '4.1*)
4387 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4388 break 3;;
4389 esac
4390 done
4391 done
4392 done
4393 IFS=$as_save_IFS
4397 if test "${ac_cv_path_mkdir+set}" = set; then
4398 MKDIR_P="$ac_cv_path_mkdir -p"
4399 else
4400 # As a last resort, use the slow shell script. Don't cache a
4401 # value for MKDIR_P within a source directory, because that will
4402 # break other packages using the cache if that directory is
4403 # removed, or if the value is a relative name.
4404 test -d ./--version && rmdir ./--version
4405 MKDIR_P="$ac_install_sh -d"
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4409 $as_echo "$MKDIR_P" >&6; }
4411 mkdir_p="$MKDIR_P"
4412 case $mkdir_p in
4413 [\\/$]* | ?:[\\/]*) ;;
4414 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4415 esac
4417 for ac_prog in gawk mawk nawk awk
4419 # Extract the first word of "$ac_prog", so it can be a program name with args.
4420 set dummy $ac_prog; ac_word=$2
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4422 $as_echo_n "checking for $ac_word... " >&6; }
4423 if test "${ac_cv_prog_AWK+set}" = set; then :
4424 $as_echo_n "(cached) " >&6
4425 else
4426 if test -n "$AWK"; then
4427 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4428 else
4429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4430 for as_dir in $PATH
4432 IFS=$as_save_IFS
4433 test -z "$as_dir" && as_dir=.
4434 for ac_exec_ext in '' $ac_executable_extensions; do
4435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4436 ac_cv_prog_AWK="$ac_prog"
4437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4438 break 2
4440 done
4441 done
4442 IFS=$as_save_IFS
4446 AWK=$ac_cv_prog_AWK
4447 if test -n "$AWK"; then
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4449 $as_echo "$AWK" >&6; }
4450 else
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4452 $as_echo "no" >&6; }
4456 test -n "$AWK" && break
4457 done
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4460 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4461 set x ${MAKE-make}
4462 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4463 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4464 $as_echo_n "(cached) " >&6
4465 else
4466 cat >conftest.make <<\_ACEOF
4467 SHELL = /bin/sh
4468 all:
4469 @echo '@@@%%%=$(MAKE)=@@@%%%'
4470 _ACEOF
4471 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4472 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4473 *@@@%%%=?*=@@@%%%*)
4474 eval ac_cv_prog_make_${ac_make}_set=yes;;
4476 eval ac_cv_prog_make_${ac_make}_set=no;;
4477 esac
4478 rm -f conftest.make
4480 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4482 $as_echo "yes" >&6; }
4483 SET_MAKE=
4484 else
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4486 $as_echo "no" >&6; }
4487 SET_MAKE="MAKE=${MAKE-make}"
4490 rm -rf .tst 2>/dev/null
4491 mkdir .tst 2>/dev/null
4492 if test -d .tst; then
4493 am__leading_dot=.
4494 else
4495 am__leading_dot=_
4497 rmdir .tst 2>/dev/null
4499 DEPDIR="${am__leading_dot}deps"
4501 ac_config_commands="$ac_config_commands depfiles"
4504 am_make=${MAKE-make}
4505 cat > confinc << 'END'
4506 am__doit:
4507 @echo this is the am__doit target
4508 .PHONY: am__doit
4510 # If we don't find an include directive, just comment out the code.
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4512 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4513 am__include="#"
4514 am__quote=
4515 _am_result=none
4516 # First try GNU make style include.
4517 echo "include confinc" > confmf
4518 # Ignore all kinds of additional output from `make'.
4519 case `$am_make -s -f confmf 2> /dev/null` in #(
4520 *the\ am__doit\ target*)
4521 am__include=include
4522 am__quote=
4523 _am_result=GNU
4525 esac
4526 # Now try BSD make style include.
4527 if test "$am__include" = "#"; then
4528 echo '.include "confinc"' > confmf
4529 case `$am_make -s -f confmf 2> /dev/null` in #(
4530 *the\ am__doit\ target*)
4531 am__include=.include
4532 am__quote="\""
4533 _am_result=BSD
4535 esac
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4540 $as_echo "$_am_result" >&6; }
4541 rm -f confinc confmf
4543 # Check whether --enable-dependency-tracking was given.
4544 if test "${enable_dependency_tracking+set}" = set; then :
4545 enableval=$enable_dependency_tracking;
4548 if test "x$enable_dependency_tracking" != xno; then
4549 am_depcomp="$ac_aux_dir/depcomp"
4550 AMDEPBACKSLASH='\'
4551 am__nodep='_no'
4553 if test "x$enable_dependency_tracking" != xno; then
4554 AMDEP_TRUE=
4555 AMDEP_FALSE='#'
4556 else
4557 AMDEP_TRUE='#'
4558 AMDEP_FALSE=
4562 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4563 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4564 # is not polluted with repeated "-I."
4565 am__isrc=' -I$(srcdir)'
4566 # test to see if srcdir already configured
4567 if test -f $srcdir/config.status; then
4568 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4572 # test whether we have cygpath
4573 if test -z "$CYGPATH_W"; then
4574 if (cygpath --version) >/dev/null 2>/dev/null; then
4575 CYGPATH_W='cygpath -w'
4576 else
4577 CYGPATH_W=echo
4582 # Define the identity of the package.
4583 PACKAGE='package-unused'
4584 VERSION='version-unused'
4587 cat >>confdefs.h <<_ACEOF
4588 #define PACKAGE "$PACKAGE"
4589 _ACEOF
4592 cat >>confdefs.h <<_ACEOF
4593 #define VERSION "$VERSION"
4594 _ACEOF
4596 # Some tools Automake needs.
4598 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4601 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4604 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4607 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4610 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4612 # We need awk for the "check" target. The system "awk" is bad on
4613 # some platforms.
4614 # Always define AMTAR for backward compatibility. Yes, it's still used
4615 # in the wild :-( We should find a proper way to deprecate it ...
4616 AMTAR='$${TAR-tar}'
4618 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4623 depcc="$CC" am_compiler_list=
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4626 $as_echo_n "checking dependency style of $depcc... " >&6; }
4627 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4628 $as_echo_n "(cached) " >&6
4629 else
4630 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4631 # We make a subdir and do the tests there. Otherwise we can end up
4632 # making bogus files that we don't know about and never remove. For
4633 # instance it was reported that on HP-UX the gcc test will end up
4634 # making a dummy file named `D' -- because `-MD' means `put the output
4635 # in D'.
4636 rm -rf conftest.dir
4637 mkdir conftest.dir
4638 # Copy depcomp to subdir because otherwise we won't find it if we're
4639 # using a relative directory.
4640 cp "$am_depcomp" conftest.dir
4641 cd conftest.dir
4642 # We will build objects and dependencies in a subdirectory because
4643 # it helps to detect inapplicable dependency modes. For instance
4644 # both Tru64's cc and ICC support -MD to output dependencies as a
4645 # side effect of compilation, but ICC will put the dependencies in
4646 # the current directory while Tru64 will put them in the object
4647 # directory.
4648 mkdir sub
4650 am_cv_CC_dependencies_compiler_type=none
4651 if test "$am_compiler_list" = ""; then
4652 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4654 am__universal=false
4655 case " $depcc " in #(
4656 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4657 esac
4659 for depmode in $am_compiler_list; do
4660 # Setup a source with many dependencies, because some compilers
4661 # like to wrap large dependency lists on column 80 (with \), and
4662 # we should not choose a depcomp mode which is confused by this.
4664 # We need to recreate these files for each test, as the compiler may
4665 # overwrite some of them when testing with obscure command lines.
4666 # This happens at least with the AIX C compiler.
4667 : > sub/conftest.c
4668 for i in 1 2 3 4 5 6; do
4669 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4670 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4671 # Solaris 8's {/usr,}/bin/sh.
4672 touch sub/conftst$i.h
4673 done
4674 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4676 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4677 # mode. It turns out that the SunPro C++ compiler does not properly
4678 # handle `-M -o', and we need to detect this. Also, some Intel
4679 # versions had trouble with output in subdirs
4680 am__obj=sub/conftest.${OBJEXT-o}
4681 am__minus_obj="-o $am__obj"
4682 case $depmode in
4683 gcc)
4684 # This depmode causes a compiler race in universal mode.
4685 test "$am__universal" = false || continue
4687 nosideeffect)
4688 # after this tag, mechanisms are not by side-effect, so they'll
4689 # only be used when explicitly requested
4690 if test "x$enable_dependency_tracking" = xyes; then
4691 continue
4692 else
4693 break
4696 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4697 # This compiler won't grok `-c -o', but also, the minuso test has
4698 # not run yet. These depmodes are late enough in the game, and
4699 # so weak that their functioning should not be impacted.
4700 am__obj=conftest.${OBJEXT-o}
4701 am__minus_obj=
4703 none) break ;;
4704 esac
4705 if depmode=$depmode \
4706 source=sub/conftest.c object=$am__obj \
4707 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4708 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4709 >/dev/null 2>conftest.err &&
4710 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4711 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4712 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4713 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4714 # icc doesn't choke on unknown options, it will just issue warnings
4715 # or remarks (even with -Werror). So we grep stderr for any message
4716 # that says an option was ignored or not supported.
4717 # When given -MP, icc 7.0 and 7.1 complain thusly:
4718 # icc: Command line warning: ignoring option '-M'; no argument required
4719 # The diagnosis changed in icc 8.0:
4720 # icc: Command line remark: option '-MP' not supported
4721 if (grep 'ignoring option' conftest.err ||
4722 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4723 am_cv_CC_dependencies_compiler_type=$depmode
4724 break
4727 done
4729 cd ..
4730 rm -rf conftest.dir
4731 else
4732 am_cv_CC_dependencies_compiler_type=none
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4737 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4738 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4741 test "x$enable_dependency_tracking" != xno \
4742 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4743 am__fastdepCC_TRUE=
4744 am__fastdepCC_FALSE='#'
4745 else
4746 am__fastdepCC_TRUE='#'
4747 am__fastdepCC_FALSE=
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4754 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4755 # Check whether --enable-maintainer-mode was given.
4756 if test "${enable_maintainer_mode+set}" = set; then :
4757 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4758 else
4759 USE_MAINTAINER_MODE=no
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4763 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4764 if test $USE_MAINTAINER_MODE = yes; then
4765 MAINTAINER_MODE_TRUE=
4766 MAINTAINER_MODE_FALSE='#'
4767 else
4768 MAINTAINER_MODE_TRUE='#'
4769 MAINTAINER_MODE_FALSE=
4772 MAINT=$MAINTAINER_MODE_TRUE
4776 # Calculate toolexeclibdir
4777 # Also toolexecdir, though it's only used in toolexeclibdir
4778 case ${version_specific_libs} in
4779 yes)
4780 # Need the gcc compiler version to know where to install libraries
4781 # and header files if --enable-version-specific-runtime-libs option
4782 # is selected.
4783 toolexecdir='$(libdir)/gcc/$(target_alias)'
4784 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
4787 if test -n "$with_cross_host" &&
4788 test x"$with_cross_host" != x"no"; then
4789 # Install a library built with a cross compiler in tooldir, not libdir.
4790 toolexecdir='$(exec_prefix)/$(target_alias)'
4791 toolexeclibdir='$(toolexecdir)/lib'
4792 else
4793 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
4794 toolexeclibdir='$(libdir)'
4796 multi_os_directory=`$CC -print-multi-os-directory`
4797 case $multi_os_directory in
4798 .) ;; # Avoid trailing /.
4799 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
4800 esac
4802 esac
4806 # Checks for programs.
4807 ac_ext=c
4808 ac_cpp='$CPP $CPPFLAGS'
4809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4812 if test -n "$ac_tool_prefix"; then
4813 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4814 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4816 $as_echo_n "checking for $ac_word... " >&6; }
4817 if test "${ac_cv_prog_CC+set}" = set; then :
4818 $as_echo_n "(cached) " >&6
4819 else
4820 if test -n "$CC"; then
4821 ac_cv_prog_CC="$CC" # Let the user override the test.
4822 else
4823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4824 for as_dir in $PATH
4826 IFS=$as_save_IFS
4827 test -z "$as_dir" && as_dir=.
4828 for ac_exec_ext in '' $ac_executable_extensions; do
4829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4830 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4832 break 2
4834 done
4835 done
4836 IFS=$as_save_IFS
4840 CC=$ac_cv_prog_CC
4841 if test -n "$CC"; then
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4843 $as_echo "$CC" >&6; }
4844 else
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4846 $as_echo "no" >&6; }
4851 if test -z "$ac_cv_prog_CC"; then
4852 ac_ct_CC=$CC
4853 # Extract the first word of "gcc", so it can be a program name with args.
4854 set dummy gcc; ac_word=$2
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4856 $as_echo_n "checking for $ac_word... " >&6; }
4857 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4858 $as_echo_n "(cached) " >&6
4859 else
4860 if test -n "$ac_ct_CC"; then
4861 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4862 else
4863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4864 for as_dir in $PATH
4866 IFS=$as_save_IFS
4867 test -z "$as_dir" && as_dir=.
4868 for ac_exec_ext in '' $ac_executable_extensions; do
4869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4870 ac_cv_prog_ac_ct_CC="gcc"
4871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4872 break 2
4874 done
4875 done
4876 IFS=$as_save_IFS
4880 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4881 if test -n "$ac_ct_CC"; then
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4883 $as_echo "$ac_ct_CC" >&6; }
4884 else
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4886 $as_echo "no" >&6; }
4889 if test "x$ac_ct_CC" = x; then
4890 CC=""
4891 else
4892 case $cross_compiling:$ac_tool_warned in
4893 yes:)
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4895 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4896 ac_tool_warned=yes ;;
4897 esac
4898 CC=$ac_ct_CC
4900 else
4901 CC="$ac_cv_prog_CC"
4904 if test -z "$CC"; then
4905 if test -n "$ac_tool_prefix"; then
4906 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4907 set dummy ${ac_tool_prefix}cc; ac_word=$2
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4909 $as_echo_n "checking for $ac_word... " >&6; }
4910 if test "${ac_cv_prog_CC+set}" = set; then :
4911 $as_echo_n "(cached) " >&6
4912 else
4913 if test -n "$CC"; then
4914 ac_cv_prog_CC="$CC" # Let the user override the test.
4915 else
4916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4917 for as_dir in $PATH
4919 IFS=$as_save_IFS
4920 test -z "$as_dir" && as_dir=.
4921 for ac_exec_ext in '' $ac_executable_extensions; do
4922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4923 ac_cv_prog_CC="${ac_tool_prefix}cc"
4924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4925 break 2
4927 done
4928 done
4929 IFS=$as_save_IFS
4933 CC=$ac_cv_prog_CC
4934 if test -n "$CC"; then
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4936 $as_echo "$CC" >&6; }
4937 else
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4939 $as_echo "no" >&6; }
4945 if test -z "$CC"; then
4946 # Extract the first word of "cc", so it can be a program name with args.
4947 set dummy cc; ac_word=$2
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4949 $as_echo_n "checking for $ac_word... " >&6; }
4950 if test "${ac_cv_prog_CC+set}" = set; then :
4951 $as_echo_n "(cached) " >&6
4952 else
4953 if test -n "$CC"; then
4954 ac_cv_prog_CC="$CC" # Let the user override the test.
4955 else
4956 ac_prog_rejected=no
4957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4958 for as_dir in $PATH
4960 IFS=$as_save_IFS
4961 test -z "$as_dir" && as_dir=.
4962 for ac_exec_ext in '' $ac_executable_extensions; do
4963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4964 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4965 ac_prog_rejected=yes
4966 continue
4968 ac_cv_prog_CC="cc"
4969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4970 break 2
4972 done
4973 done
4974 IFS=$as_save_IFS
4976 if test $ac_prog_rejected = yes; then
4977 # We found a bogon in the path, so make sure we never use it.
4978 set dummy $ac_cv_prog_CC
4979 shift
4980 if test $# != 0; then
4981 # We chose a different compiler from the bogus one.
4982 # However, it has the same basename, so the bogon will be chosen
4983 # first if we set CC to just the basename; use the full file name.
4984 shift
4985 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4990 CC=$ac_cv_prog_CC
4991 if test -n "$CC"; then
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4993 $as_echo "$CC" >&6; }
4994 else
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4996 $as_echo "no" >&6; }
5001 if test -z "$CC"; then
5002 if test -n "$ac_tool_prefix"; then
5003 for ac_prog in cl.exe
5005 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5006 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5008 $as_echo_n "checking for $ac_word... " >&6; }
5009 if test "${ac_cv_prog_CC+set}" = set; then :
5010 $as_echo_n "(cached) " >&6
5011 else
5012 if test -n "$CC"; then
5013 ac_cv_prog_CC="$CC" # Let the user override the test.
5014 else
5015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5016 for as_dir in $PATH
5018 IFS=$as_save_IFS
5019 test -z "$as_dir" && as_dir=.
5020 for ac_exec_ext in '' $ac_executable_extensions; do
5021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5022 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5024 break 2
5026 done
5027 done
5028 IFS=$as_save_IFS
5032 CC=$ac_cv_prog_CC
5033 if test -n "$CC"; then
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5035 $as_echo "$CC" >&6; }
5036 else
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5038 $as_echo "no" >&6; }
5042 test -n "$CC" && break
5043 done
5045 if test -z "$CC"; then
5046 ac_ct_CC=$CC
5047 for ac_prog in cl.exe
5049 # Extract the first word of "$ac_prog", so it can be a program name with args.
5050 set dummy $ac_prog; ac_word=$2
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5052 $as_echo_n "checking for $ac_word... " >&6; }
5053 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5054 $as_echo_n "(cached) " >&6
5055 else
5056 if test -n "$ac_ct_CC"; then
5057 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5058 else
5059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5060 for as_dir in $PATH
5062 IFS=$as_save_IFS
5063 test -z "$as_dir" && as_dir=.
5064 for ac_exec_ext in '' $ac_executable_extensions; do
5065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5066 ac_cv_prog_ac_ct_CC="$ac_prog"
5067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5068 break 2
5070 done
5071 done
5072 IFS=$as_save_IFS
5076 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5077 if test -n "$ac_ct_CC"; then
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5079 $as_echo "$ac_ct_CC" >&6; }
5080 else
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5082 $as_echo "no" >&6; }
5086 test -n "$ac_ct_CC" && break
5087 done
5089 if test "x$ac_ct_CC" = x; then
5090 CC=""
5091 else
5092 case $cross_compiling:$ac_tool_warned in
5093 yes:)
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5095 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5096 ac_tool_warned=yes ;;
5097 esac
5098 CC=$ac_ct_CC
5105 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5106 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5107 as_fn_error "no acceptable C compiler found in \$PATH
5108 See \`config.log' for more details." "$LINENO" 5; }
5110 # Provide some information about the compiler.
5111 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5112 set X $ac_compile
5113 ac_compiler=$2
5114 for ac_option in --version -v -V -qversion; do
5115 { { ac_try="$ac_compiler $ac_option >&5"
5116 case "(($ac_try" in
5117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5118 *) ac_try_echo=$ac_try;;
5119 esac
5120 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5121 $as_echo "$ac_try_echo"; } >&5
5122 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5123 ac_status=$?
5124 if test -s conftest.err; then
5125 sed '10a\
5126 ... rest of stderr output deleted ...
5127 10q' conftest.err >conftest.er1
5128 cat conftest.er1 >&5
5129 rm -f conftest.er1 conftest.err
5131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5132 test $ac_status = 0; }
5133 done
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5136 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5137 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5138 $as_echo_n "(cached) " >&6
5139 else
5140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5141 /* end confdefs.h. */
5144 main ()
5146 #ifndef __GNUC__
5147 choke me
5148 #endif
5151 return 0;
5153 _ACEOF
5154 if ac_fn_c_try_compile "$LINENO"; then :
5155 ac_compiler_gnu=yes
5156 else
5157 ac_compiler_gnu=no
5159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5160 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5164 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5165 if test $ac_compiler_gnu = yes; then
5166 GCC=yes
5167 else
5168 GCC=
5170 ac_test_CFLAGS=${CFLAGS+set}
5171 ac_save_CFLAGS=$CFLAGS
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5173 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5174 if test "${ac_cv_prog_cc_g+set}" = set; then :
5175 $as_echo_n "(cached) " >&6
5176 else
5177 ac_save_c_werror_flag=$ac_c_werror_flag
5178 ac_c_werror_flag=yes
5179 ac_cv_prog_cc_g=no
5180 CFLAGS="-g"
5181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5182 /* end confdefs.h. */
5185 main ()
5189 return 0;
5191 _ACEOF
5192 if ac_fn_c_try_compile "$LINENO"; then :
5193 ac_cv_prog_cc_g=yes
5194 else
5195 CFLAGS=""
5196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5197 /* end confdefs.h. */
5200 main ()
5204 return 0;
5206 _ACEOF
5207 if ac_fn_c_try_compile "$LINENO"; then :
5209 else
5210 ac_c_werror_flag=$ac_save_c_werror_flag
5211 CFLAGS="-g"
5212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5213 /* end confdefs.h. */
5216 main ()
5220 return 0;
5222 _ACEOF
5223 if ac_fn_c_try_compile "$LINENO"; then :
5224 ac_cv_prog_cc_g=yes
5226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5231 ac_c_werror_flag=$ac_save_c_werror_flag
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5234 $as_echo "$ac_cv_prog_cc_g" >&6; }
5235 if test "$ac_test_CFLAGS" = set; then
5236 CFLAGS=$ac_save_CFLAGS
5237 elif test $ac_cv_prog_cc_g = yes; then
5238 if test "$GCC" = yes; then
5239 CFLAGS="-g -O2"
5240 else
5241 CFLAGS="-g"
5243 else
5244 if test "$GCC" = yes; then
5245 CFLAGS="-O2"
5246 else
5247 CFLAGS=
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5251 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5252 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5253 $as_echo_n "(cached) " >&6
5254 else
5255 ac_cv_prog_cc_c89=no
5256 ac_save_CC=$CC
5257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5258 /* end confdefs.h. */
5259 #include <stdarg.h>
5260 #include <stdio.h>
5261 #include <sys/types.h>
5262 #include <sys/stat.h>
5263 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5264 struct buf { int x; };
5265 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5266 static char *e (p, i)
5267 char **p;
5268 int i;
5270 return p[i];
5272 static char *f (char * (*g) (char **, int), char **p, ...)
5274 char *s;
5275 va_list v;
5276 va_start (v,p);
5277 s = g (p, va_arg (v,int));
5278 va_end (v);
5279 return s;
5282 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5283 function prototypes and stuff, but not '\xHH' hex character constants.
5284 These don't provoke an error unfortunately, instead are silently treated
5285 as 'x'. The following induces an error, until -std is added to get
5286 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5287 array size at least. It's necessary to write '\x00'==0 to get something
5288 that's true only with -std. */
5289 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5291 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5292 inside strings and character constants. */
5293 #define FOO(x) 'x'
5294 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5296 int test (int i, double x);
5297 struct s1 {int (*f) (int a);};
5298 struct s2 {int (*f) (double a);};
5299 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5300 int argc;
5301 char **argv;
5303 main ()
5305 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5307 return 0;
5309 _ACEOF
5310 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5311 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5313 CC="$ac_save_CC $ac_arg"
5314 if ac_fn_c_try_compile "$LINENO"; then :
5315 ac_cv_prog_cc_c89=$ac_arg
5317 rm -f core conftest.err conftest.$ac_objext
5318 test "x$ac_cv_prog_cc_c89" != "xno" && break
5319 done
5320 rm -f conftest.$ac_ext
5321 CC=$ac_save_CC
5324 # AC_CACHE_VAL
5325 case "x$ac_cv_prog_cc_c89" in
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5328 $as_echo "none needed" >&6; } ;;
5329 xno)
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5331 $as_echo "unsupported" >&6; } ;;
5333 CC="$CC $ac_cv_prog_cc_c89"
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5335 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5336 esac
5337 if test "x$ac_cv_prog_cc_c89" != xno; then :
5341 ac_ext=c
5342 ac_cpp='$CPP $CPPFLAGS'
5343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5347 ac_ext=cpp
5348 ac_cpp='$CXXCPP $CPPFLAGS'
5349 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5350 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5351 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5352 if test -z "$CXX"; then
5353 if test -n "$CCC"; then
5354 CXX=$CCC
5355 else
5356 if test -n "$ac_tool_prefix"; then
5357 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5359 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5360 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5362 $as_echo_n "checking for $ac_word... " >&6; }
5363 if test "${ac_cv_prog_CXX+set}" = set; then :
5364 $as_echo_n "(cached) " >&6
5365 else
5366 if test -n "$CXX"; then
5367 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5368 else
5369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5370 for as_dir in $PATH
5372 IFS=$as_save_IFS
5373 test -z "$as_dir" && as_dir=.
5374 for ac_exec_ext in '' $ac_executable_extensions; do
5375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5376 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5378 break 2
5380 done
5381 done
5382 IFS=$as_save_IFS
5386 CXX=$ac_cv_prog_CXX
5387 if test -n "$CXX"; then
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5389 $as_echo "$CXX" >&6; }
5390 else
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5392 $as_echo "no" >&6; }
5396 test -n "$CXX" && break
5397 done
5399 if test -z "$CXX"; then
5400 ac_ct_CXX=$CXX
5401 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5403 # Extract the first word of "$ac_prog", so it can be a program name with args.
5404 set dummy $ac_prog; ac_word=$2
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5406 $as_echo_n "checking for $ac_word... " >&6; }
5407 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
5408 $as_echo_n "(cached) " >&6
5409 else
5410 if test -n "$ac_ct_CXX"; then
5411 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5412 else
5413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5414 for as_dir in $PATH
5416 IFS=$as_save_IFS
5417 test -z "$as_dir" && as_dir=.
5418 for ac_exec_ext in '' $ac_executable_extensions; do
5419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5420 ac_cv_prog_ac_ct_CXX="$ac_prog"
5421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5422 break 2
5424 done
5425 done
5426 IFS=$as_save_IFS
5430 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5431 if test -n "$ac_ct_CXX"; then
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5433 $as_echo "$ac_ct_CXX" >&6; }
5434 else
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5436 $as_echo "no" >&6; }
5440 test -n "$ac_ct_CXX" && break
5441 done
5443 if test "x$ac_ct_CXX" = x; then
5444 CXX="g++"
5445 else
5446 case $cross_compiling:$ac_tool_warned in
5447 yes:)
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5449 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5450 ac_tool_warned=yes ;;
5451 esac
5452 CXX=$ac_ct_CXX
5458 # Provide some information about the compiler.
5459 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5460 set X $ac_compile
5461 ac_compiler=$2
5462 for ac_option in --version -v -V -qversion; do
5463 { { ac_try="$ac_compiler $ac_option >&5"
5464 case "(($ac_try" in
5465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5466 *) ac_try_echo=$ac_try;;
5467 esac
5468 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5469 $as_echo "$ac_try_echo"; } >&5
5470 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5471 ac_status=$?
5472 if test -s conftest.err; then
5473 sed '10a\
5474 ... rest of stderr output deleted ...
5475 10q' conftest.err >conftest.er1
5476 cat conftest.er1 >&5
5477 rm -f conftest.er1 conftest.err
5479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5480 test $ac_status = 0; }
5481 done
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5484 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5485 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
5486 $as_echo_n "(cached) " >&6
5487 else
5488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5489 /* end confdefs.h. */
5492 main ()
5494 #ifndef __GNUC__
5495 choke me
5496 #endif
5499 return 0;
5501 _ACEOF
5502 if ac_fn_cxx_try_compile "$LINENO"; then :
5503 ac_compiler_gnu=yes
5504 else
5505 ac_compiler_gnu=no
5507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5508 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5512 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5513 if test $ac_compiler_gnu = yes; then
5514 GXX=yes
5515 else
5516 GXX=
5518 ac_test_CXXFLAGS=${CXXFLAGS+set}
5519 ac_save_CXXFLAGS=$CXXFLAGS
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5521 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5522 if test "${ac_cv_prog_cxx_g+set}" = set; then :
5523 $as_echo_n "(cached) " >&6
5524 else
5525 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5526 ac_cxx_werror_flag=yes
5527 ac_cv_prog_cxx_g=no
5528 CXXFLAGS="-g"
5529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5530 /* end confdefs.h. */
5533 main ()
5537 return 0;
5539 _ACEOF
5540 if ac_fn_cxx_try_compile "$LINENO"; then :
5541 ac_cv_prog_cxx_g=yes
5542 else
5543 CXXFLAGS=""
5544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5545 /* end confdefs.h. */
5548 main ()
5552 return 0;
5554 _ACEOF
5555 if ac_fn_cxx_try_compile "$LINENO"; then :
5557 else
5558 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5559 CXXFLAGS="-g"
5560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5561 /* end confdefs.h. */
5564 main ()
5568 return 0;
5570 _ACEOF
5571 if ac_fn_cxx_try_compile "$LINENO"; then :
5572 ac_cv_prog_cxx_g=yes
5574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5579 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5582 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5583 if test "$ac_test_CXXFLAGS" = set; then
5584 CXXFLAGS=$ac_save_CXXFLAGS
5585 elif test $ac_cv_prog_cxx_g = yes; then
5586 if test "$GXX" = yes; then
5587 CXXFLAGS="-g -O2"
5588 else
5589 CXXFLAGS="-g"
5591 else
5592 if test "$GXX" = yes; then
5593 CXXFLAGS="-O2"
5594 else
5595 CXXFLAGS=
5598 ac_ext=c
5599 ac_cpp='$CPP $CPPFLAGS'
5600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5604 depcc="$CXX" am_compiler_list=
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5607 $as_echo_n "checking dependency style of $depcc... " >&6; }
5608 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
5609 $as_echo_n "(cached) " >&6
5610 else
5611 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5612 # We make a subdir and do the tests there. Otherwise we can end up
5613 # making bogus files that we don't know about and never remove. For
5614 # instance it was reported that on HP-UX the gcc test will end up
5615 # making a dummy file named `D' -- because `-MD' means `put the output
5616 # in D'.
5617 rm -rf conftest.dir
5618 mkdir conftest.dir
5619 # Copy depcomp to subdir because otherwise we won't find it if we're
5620 # using a relative directory.
5621 cp "$am_depcomp" conftest.dir
5622 cd conftest.dir
5623 # We will build objects and dependencies in a subdirectory because
5624 # it helps to detect inapplicable dependency modes. For instance
5625 # both Tru64's cc and ICC support -MD to output dependencies as a
5626 # side effect of compilation, but ICC will put the dependencies in
5627 # the current directory while Tru64 will put them in the object
5628 # directory.
5629 mkdir sub
5631 am_cv_CXX_dependencies_compiler_type=none
5632 if test "$am_compiler_list" = ""; then
5633 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5635 am__universal=false
5636 case " $depcc " in #(
5637 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5638 esac
5640 for depmode in $am_compiler_list; do
5641 # Setup a source with many dependencies, because some compilers
5642 # like to wrap large dependency lists on column 80 (with \), and
5643 # we should not choose a depcomp mode which is confused by this.
5645 # We need to recreate these files for each test, as the compiler may
5646 # overwrite some of them when testing with obscure command lines.
5647 # This happens at least with the AIX C compiler.
5648 : > sub/conftest.c
5649 for i in 1 2 3 4 5 6; do
5650 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5651 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5652 # Solaris 8's {/usr,}/bin/sh.
5653 touch sub/conftst$i.h
5654 done
5655 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5657 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5658 # mode. It turns out that the SunPro C++ compiler does not properly
5659 # handle `-M -o', and we need to detect this. Also, some Intel
5660 # versions had trouble with output in subdirs
5661 am__obj=sub/conftest.${OBJEXT-o}
5662 am__minus_obj="-o $am__obj"
5663 case $depmode in
5664 gcc)
5665 # This depmode causes a compiler race in universal mode.
5666 test "$am__universal" = false || continue
5668 nosideeffect)
5669 # after this tag, mechanisms are not by side-effect, so they'll
5670 # only be used when explicitly requested
5671 if test "x$enable_dependency_tracking" = xyes; then
5672 continue
5673 else
5674 break
5677 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5678 # This compiler won't grok `-c -o', but also, the minuso test has
5679 # not run yet. These depmodes are late enough in the game, and
5680 # so weak that their functioning should not be impacted.
5681 am__obj=conftest.${OBJEXT-o}
5682 am__minus_obj=
5684 none) break ;;
5685 esac
5686 if depmode=$depmode \
5687 source=sub/conftest.c object=$am__obj \
5688 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5689 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5690 >/dev/null 2>conftest.err &&
5691 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5692 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5693 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5694 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5695 # icc doesn't choke on unknown options, it will just issue warnings
5696 # or remarks (even with -Werror). So we grep stderr for any message
5697 # that says an option was ignored or not supported.
5698 # When given -MP, icc 7.0 and 7.1 complain thusly:
5699 # icc: Command line warning: ignoring option '-M'; no argument required
5700 # The diagnosis changed in icc 8.0:
5701 # icc: Command line remark: option '-MP' not supported
5702 if (grep 'ignoring option' conftest.err ||
5703 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5704 am_cv_CXX_dependencies_compiler_type=$depmode
5705 break
5708 done
5710 cd ..
5711 rm -rf conftest.dir
5712 else
5713 am_cv_CXX_dependencies_compiler_type=none
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5718 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5719 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5722 test "x$enable_dependency_tracking" != xno \
5723 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5724 am__fastdepCXX_TRUE=
5725 am__fastdepCXX_FALSE='#'
5726 else
5727 am__fastdepCXX_TRUE='#'
5728 am__fastdepCXX_FALSE=
5732 # By default we simply use the C compiler to build assembly code.
5734 test "${CCAS+set}" = set || CCAS=$CC
5735 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
5739 depcc="$CCAS" am_compiler_list=
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5742 $as_echo_n "checking dependency style of $depcc... " >&6; }
5743 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
5744 $as_echo_n "(cached) " >&6
5745 else
5746 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5747 # We make a subdir and do the tests there. Otherwise we can end up
5748 # making bogus files that we don't know about and never remove. For
5749 # instance it was reported that on HP-UX the gcc test will end up
5750 # making a dummy file named `D' -- because `-MD' means `put the output
5751 # in D'.
5752 rm -rf conftest.dir
5753 mkdir conftest.dir
5754 # Copy depcomp to subdir because otherwise we won't find it if we're
5755 # using a relative directory.
5756 cp "$am_depcomp" conftest.dir
5757 cd conftest.dir
5758 # We will build objects and dependencies in a subdirectory because
5759 # it helps to detect inapplicable dependency modes. For instance
5760 # both Tru64's cc and ICC support -MD to output dependencies as a
5761 # side effect of compilation, but ICC will put the dependencies in
5762 # the current directory while Tru64 will put them in the object
5763 # directory.
5764 mkdir sub
5766 am_cv_CCAS_dependencies_compiler_type=none
5767 if test "$am_compiler_list" = ""; then
5768 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5770 am__universal=false
5773 for depmode in $am_compiler_list; do
5774 # Setup a source with many dependencies, because some compilers
5775 # like to wrap large dependency lists on column 80 (with \), and
5776 # we should not choose a depcomp mode which is confused by this.
5778 # We need to recreate these files for each test, as the compiler may
5779 # overwrite some of them when testing with obscure command lines.
5780 # This happens at least with the AIX C compiler.
5781 : > sub/conftest.c
5782 for i in 1 2 3 4 5 6; do
5783 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5784 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5785 # Solaris 8's {/usr,}/bin/sh.
5786 touch sub/conftst$i.h
5787 done
5788 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5790 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5791 # mode. It turns out that the SunPro C++ compiler does not properly
5792 # handle `-M -o', and we need to detect this. Also, some Intel
5793 # versions had trouble with output in subdirs
5794 am__obj=sub/conftest.${OBJEXT-o}
5795 am__minus_obj="-o $am__obj"
5796 case $depmode in
5797 gcc)
5798 # This depmode causes a compiler race in universal mode.
5799 test "$am__universal" = false || continue
5801 nosideeffect)
5802 # after this tag, mechanisms are not by side-effect, so they'll
5803 # only be used when explicitly requested
5804 if test "x$enable_dependency_tracking" = xyes; then
5805 continue
5806 else
5807 break
5810 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5811 # This compiler won't grok `-c -o', but also, the minuso test has
5812 # not run yet. These depmodes are late enough in the game, and
5813 # so weak that their functioning should not be impacted.
5814 am__obj=conftest.${OBJEXT-o}
5815 am__minus_obj=
5817 none) break ;;
5818 esac
5819 if depmode=$depmode \
5820 source=sub/conftest.c object=$am__obj \
5821 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5822 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5823 >/dev/null 2>conftest.err &&
5824 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5825 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5826 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5827 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5828 # icc doesn't choke on unknown options, it will just issue warnings
5829 # or remarks (even with -Werror). So we grep stderr for any message
5830 # that says an option was ignored or not supported.
5831 # When given -MP, icc 7.0 and 7.1 complain thusly:
5832 # icc: Command line warning: ignoring option '-M'; no argument required
5833 # The diagnosis changed in icc 8.0:
5834 # icc: Command line remark: option '-MP' not supported
5835 if (grep 'ignoring option' conftest.err ||
5836 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5837 am_cv_CCAS_dependencies_compiler_type=$depmode
5838 break
5841 done
5843 cd ..
5844 rm -rf conftest.dir
5845 else
5846 am_cv_CCAS_dependencies_compiler_type=none
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
5851 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
5852 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
5855 test "x$enable_dependency_tracking" != xno \
5856 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
5857 am__fastdepCCAS_TRUE=
5858 am__fastdepCCAS_FALSE='#'
5859 else
5860 am__fastdepCCAS_TRUE='#'
5861 am__fastdepCCAS_FALSE=
5865 if test -n "$ac_tool_prefix"; then
5866 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5867 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5869 $as_echo_n "checking for $ac_word... " >&6; }
5870 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5871 $as_echo_n "(cached) " >&6
5872 else
5873 if test -n "$RANLIB"; then
5874 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5875 else
5876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5877 for as_dir in $PATH
5879 IFS=$as_save_IFS
5880 test -z "$as_dir" && as_dir=.
5881 for ac_exec_ext in '' $ac_executable_extensions; do
5882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5883 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5885 break 2
5887 done
5888 done
5889 IFS=$as_save_IFS
5893 RANLIB=$ac_cv_prog_RANLIB
5894 if test -n "$RANLIB"; then
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5896 $as_echo "$RANLIB" >&6; }
5897 else
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5899 $as_echo "no" >&6; }
5904 if test -z "$ac_cv_prog_RANLIB"; then
5905 ac_ct_RANLIB=$RANLIB
5906 # Extract the first word of "ranlib", so it can be a program name with args.
5907 set dummy ranlib; ac_word=$2
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5909 $as_echo_n "checking for $ac_word... " >&6; }
5910 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5911 $as_echo_n "(cached) " >&6
5912 else
5913 if test -n "$ac_ct_RANLIB"; then
5914 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5915 else
5916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5917 for as_dir in $PATH
5919 IFS=$as_save_IFS
5920 test -z "$as_dir" && as_dir=.
5921 for ac_exec_ext in '' $ac_executable_extensions; do
5922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5923 ac_cv_prog_ac_ct_RANLIB="ranlib"
5924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5925 break 2
5927 done
5928 done
5929 IFS=$as_save_IFS
5933 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5934 if test -n "$ac_ct_RANLIB"; then
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5936 $as_echo "$ac_ct_RANLIB" >&6; }
5937 else
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5939 $as_echo "no" >&6; }
5942 if test "x$ac_ct_RANLIB" = x; then
5943 RANLIB=":"
5944 else
5945 case $cross_compiling:$ac_tool_warned in
5946 yes:)
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5948 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5949 ac_tool_warned=yes ;;
5950 esac
5951 RANLIB=$ac_ct_RANLIB
5953 else
5954 RANLIB="$ac_cv_prog_RANLIB"
5958 enable_dlopen=yes
5962 case `pwd` in
5963 *\ * | *\ *)
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5965 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5966 esac
5970 macro_version='2.2.7a'
5971 macro_revision='1.3134'
5985 ltmain="$ac_aux_dir/ltmain.sh"
5987 # Backslashify metacharacters that are still active within
5988 # double-quoted strings.
5989 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5991 # Same as above, but do not quote variable references.
5992 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5994 # Sed substitution to delay expansion of an escaped shell variable in a
5995 # double_quote_subst'ed string.
5996 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5998 # Sed substitution to delay expansion of an escaped single quote.
5999 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6001 # Sed substitution to avoid accidental globbing in evaled expressions
6002 no_glob_subst='s/\*/\\\*/g'
6004 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6005 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6006 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6009 $as_echo_n "checking how to print strings... " >&6; }
6010 # Test print first, because it will be a builtin if present.
6011 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6012 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6013 ECHO='print -r --'
6014 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6015 ECHO='printf %s\n'
6016 else
6017 # Use this function as a fallback that always works.
6018 func_fallback_echo ()
6020 eval 'cat <<_LTECHO_EOF
6022 _LTECHO_EOF'
6024 ECHO='func_fallback_echo'
6027 # func_echo_all arg...
6028 # Invoke $ECHO with all args, space-separated.
6029 func_echo_all ()
6031 $ECHO ""
6034 case "$ECHO" in
6035 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6036 $as_echo "printf" >&6; } ;;
6037 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6038 $as_echo "print -r" >&6; } ;;
6039 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6040 $as_echo "cat" >&6; } ;;
6041 esac
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6057 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6058 if test "${ac_cv_path_SED+set}" = set; then :
6059 $as_echo_n "(cached) " >&6
6060 else
6061 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6062 for ac_i in 1 2 3 4 5 6 7; do
6063 ac_script="$ac_script$as_nl$ac_script"
6064 done
6065 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6066 { ac_script=; unset ac_script;}
6067 if test -z "$SED"; then
6068 ac_path_SED_found=false
6069 # Loop through the user's path and test for each of PROGNAME-LIST
6070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6071 for as_dir in $PATH
6073 IFS=$as_save_IFS
6074 test -z "$as_dir" && as_dir=.
6075 for ac_prog in sed gsed; do
6076 for ac_exec_ext in '' $ac_executable_extensions; do
6077 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6078 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6079 # Check for GNU ac_path_SED and select it if it is found.
6080 # Check for GNU $ac_path_SED
6081 case `"$ac_path_SED" --version 2>&1` in
6082 *GNU*)
6083 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6085 ac_count=0
6086 $as_echo_n 0123456789 >"conftest.in"
6087 while :
6089 cat "conftest.in" "conftest.in" >"conftest.tmp"
6090 mv "conftest.tmp" "conftest.in"
6091 cp "conftest.in" "conftest.nl"
6092 $as_echo '' >> "conftest.nl"
6093 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6094 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6095 as_fn_arith $ac_count + 1 && ac_count=$as_val
6096 if test $ac_count -gt ${ac_path_SED_max-0}; then
6097 # Best one so far, save it but keep looking for a better one
6098 ac_cv_path_SED="$ac_path_SED"
6099 ac_path_SED_max=$ac_count
6101 # 10*(2^10) chars as input seems more than enough
6102 test $ac_count -gt 10 && break
6103 done
6104 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6105 esac
6107 $ac_path_SED_found && break 3
6108 done
6109 done
6110 done
6111 IFS=$as_save_IFS
6112 if test -z "$ac_cv_path_SED"; then
6113 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6115 else
6116 ac_cv_path_SED=$SED
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6121 $as_echo "$ac_cv_path_SED" >&6; }
6122 SED="$ac_cv_path_SED"
6123 rm -f conftest.sed
6125 test -z "$SED" && SED=sed
6126 Xsed="$SED -e 1s/^X//"
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6139 $as_echo_n "checking for fgrep... " >&6; }
6140 if test "${ac_cv_path_FGREP+set}" = set; then :
6141 $as_echo_n "(cached) " >&6
6142 else
6143 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6144 then ac_cv_path_FGREP="$GREP -F"
6145 else
6146 if test -z "$FGREP"; then
6147 ac_path_FGREP_found=false
6148 # Loop through the user's path and test for each of PROGNAME-LIST
6149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6150 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6152 IFS=$as_save_IFS
6153 test -z "$as_dir" && as_dir=.
6154 for ac_prog in fgrep; do
6155 for ac_exec_ext in '' $ac_executable_extensions; do
6156 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6157 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6158 # Check for GNU ac_path_FGREP and select it if it is found.
6159 # Check for GNU $ac_path_FGREP
6160 case `"$ac_path_FGREP" --version 2>&1` in
6161 *GNU*)
6162 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6164 ac_count=0
6165 $as_echo_n 0123456789 >"conftest.in"
6166 while :
6168 cat "conftest.in" "conftest.in" >"conftest.tmp"
6169 mv "conftest.tmp" "conftest.in"
6170 cp "conftest.in" "conftest.nl"
6171 $as_echo 'FGREP' >> "conftest.nl"
6172 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6173 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6174 as_fn_arith $ac_count + 1 && ac_count=$as_val
6175 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6176 # Best one so far, save it but keep looking for a better one
6177 ac_cv_path_FGREP="$ac_path_FGREP"
6178 ac_path_FGREP_max=$ac_count
6180 # 10*(2^10) chars as input seems more than enough
6181 test $ac_count -gt 10 && break
6182 done
6183 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6184 esac
6186 $ac_path_FGREP_found && break 3
6187 done
6188 done
6189 done
6190 IFS=$as_save_IFS
6191 if test -z "$ac_cv_path_FGREP"; then
6192 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6194 else
6195 ac_cv_path_FGREP=$FGREP
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6201 $as_echo "$ac_cv_path_FGREP" >&6; }
6202 FGREP="$ac_cv_path_FGREP"
6205 test -z "$GREP" && GREP=grep
6225 # Check whether --with-gnu-ld was given.
6226 if test "${with_gnu_ld+set}" = set; then :
6227 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6228 else
6229 with_gnu_ld=no
6232 ac_prog=ld
6233 if test "$GCC" = yes; then
6234 # Check if gcc -print-prog-name=ld gives a path.
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6236 $as_echo_n "checking for ld used by $CC... " >&6; }
6237 case $host in
6238 *-*-mingw*)
6239 # gcc leaves a trailing carriage return which upsets mingw
6240 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6242 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6243 esac
6244 case $ac_prog in
6245 # Accept absolute paths.
6246 [\\/]* | ?:[\\/]*)
6247 re_direlt='/[^/][^/]*/\.\./'
6248 # Canonicalize the pathname of ld
6249 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6250 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6251 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6252 done
6253 test -z "$LD" && LD="$ac_prog"
6256 # If it fails, then pretend we aren't using GCC.
6257 ac_prog=ld
6260 # If it is relative, then search for the first ld in PATH.
6261 with_gnu_ld=unknown
6263 esac
6264 elif test "$with_gnu_ld" = yes; then
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6266 $as_echo_n "checking for GNU ld... " >&6; }
6267 else
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6269 $as_echo_n "checking for non-GNU ld... " >&6; }
6271 if test "${lt_cv_path_LD+set}" = set; then :
6272 $as_echo_n "(cached) " >&6
6273 else
6274 if test -z "$LD"; then
6275 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6276 for ac_dir in $PATH; do
6277 IFS="$lt_save_ifs"
6278 test -z "$ac_dir" && ac_dir=.
6279 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6280 lt_cv_path_LD="$ac_dir/$ac_prog"
6281 # Check to see if the program is GNU ld. I'd rather use --version,
6282 # but apparently some variants of GNU ld only accept -v.
6283 # Break only if it was the GNU/non-GNU ld that we prefer.
6284 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6285 *GNU* | *'with BFD'*)
6286 test "$with_gnu_ld" != no && break
6289 test "$with_gnu_ld" != yes && break
6291 esac
6293 done
6294 IFS="$lt_save_ifs"
6295 else
6296 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6300 LD="$lt_cv_path_LD"
6301 if test -n "$LD"; then
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6303 $as_echo "$LD" >&6; }
6304 else
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6306 $as_echo "no" >&6; }
6308 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6310 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6311 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6312 $as_echo_n "(cached) " >&6
6313 else
6314 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6315 case `$LD -v 2>&1 </dev/null` in
6316 *GNU* | *'with BFD'*)
6317 lt_cv_prog_gnu_ld=yes
6320 lt_cv_prog_gnu_ld=no
6322 esac
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6325 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6326 with_gnu_ld=$lt_cv_prog_gnu_ld
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6337 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6338 if test "${lt_cv_path_NM+set}" = set; then :
6339 $as_echo_n "(cached) " >&6
6340 else
6341 if test -n "$NM"; then
6342 # Let the user override the test.
6343 lt_cv_path_NM="$NM"
6344 else
6345 lt_nm_to_check="${ac_tool_prefix}nm"
6346 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6347 lt_nm_to_check="$lt_nm_to_check nm"
6349 for lt_tmp_nm in $lt_nm_to_check; do
6350 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6351 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6352 IFS="$lt_save_ifs"
6353 test -z "$ac_dir" && ac_dir=.
6354 tmp_nm="$ac_dir/$lt_tmp_nm"
6355 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6356 # Check to see if the nm accepts a BSD-compat flag.
6357 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6358 # nm: unknown option "B" ignored
6359 # Tru64's nm complains that /dev/null is an invalid object file
6360 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6361 */dev/null* | *'Invalid file or object type'*)
6362 lt_cv_path_NM="$tmp_nm -B"
6363 break
6366 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6367 */dev/null*)
6368 lt_cv_path_NM="$tmp_nm -p"
6369 break
6372 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6373 continue # so that we can try to find one that supports BSD flags
6375 esac
6377 esac
6379 done
6380 IFS="$lt_save_ifs"
6381 done
6382 : ${lt_cv_path_NM=no}
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6386 $as_echo "$lt_cv_path_NM" >&6; }
6387 if test "$lt_cv_path_NM" != "no"; then
6388 NM="$lt_cv_path_NM"
6389 else
6390 # Didn't find any BSD compatible name lister, look for dumpbin.
6391 if test -n "$DUMPBIN"; then :
6392 # Let the user override the test.
6393 else
6394 if test -n "$ac_tool_prefix"; then
6395 for ac_prog in dumpbin "link -dump"
6397 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6398 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6400 $as_echo_n "checking for $ac_word... " >&6; }
6401 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6402 $as_echo_n "(cached) " >&6
6403 else
6404 if test -n "$DUMPBIN"; then
6405 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6406 else
6407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6408 for as_dir in $PATH
6410 IFS=$as_save_IFS
6411 test -z "$as_dir" && as_dir=.
6412 for ac_exec_ext in '' $ac_executable_extensions; do
6413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6414 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6416 break 2
6418 done
6419 done
6420 IFS=$as_save_IFS
6424 DUMPBIN=$ac_cv_prog_DUMPBIN
6425 if test -n "$DUMPBIN"; then
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6427 $as_echo "$DUMPBIN" >&6; }
6428 else
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6430 $as_echo "no" >&6; }
6434 test -n "$DUMPBIN" && break
6435 done
6437 if test -z "$DUMPBIN"; then
6438 ac_ct_DUMPBIN=$DUMPBIN
6439 for ac_prog in dumpbin "link -dump"
6441 # Extract the first word of "$ac_prog", so it can be a program name with args.
6442 set dummy $ac_prog; ac_word=$2
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6444 $as_echo_n "checking for $ac_word... " >&6; }
6445 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6446 $as_echo_n "(cached) " >&6
6447 else
6448 if test -n "$ac_ct_DUMPBIN"; then
6449 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6450 else
6451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6452 for as_dir in $PATH
6454 IFS=$as_save_IFS
6455 test -z "$as_dir" && as_dir=.
6456 for ac_exec_ext in '' $ac_executable_extensions; do
6457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6458 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6460 break 2
6462 done
6463 done
6464 IFS=$as_save_IFS
6468 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6469 if test -n "$ac_ct_DUMPBIN"; then
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6471 $as_echo "$ac_ct_DUMPBIN" >&6; }
6472 else
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6474 $as_echo "no" >&6; }
6478 test -n "$ac_ct_DUMPBIN" && break
6479 done
6481 if test "x$ac_ct_DUMPBIN" = x; then
6482 DUMPBIN=":"
6483 else
6484 case $cross_compiling:$ac_tool_warned in
6485 yes:)
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6487 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6488 ac_tool_warned=yes ;;
6489 esac
6490 DUMPBIN=$ac_ct_DUMPBIN
6494 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6495 *COFF*)
6496 DUMPBIN="$DUMPBIN -symbols"
6499 DUMPBIN=:
6501 esac
6504 if test "$DUMPBIN" != ":"; then
6505 NM="$DUMPBIN"
6508 test -z "$NM" && NM=nm
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6516 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6517 if test "${lt_cv_nm_interface+set}" = set; then :
6518 $as_echo_n "(cached) " >&6
6519 else
6520 lt_cv_nm_interface="BSD nm"
6521 echo "int some_variable = 0;" > conftest.$ac_ext
6522 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6523 (eval "$ac_compile" 2>conftest.err)
6524 cat conftest.err >&5
6525 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6526 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6527 cat conftest.err >&5
6528 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6529 cat conftest.out >&5
6530 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6531 lt_cv_nm_interface="MS dumpbin"
6533 rm -f conftest*
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6536 $as_echo "$lt_cv_nm_interface" >&6; }
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6539 $as_echo_n "checking whether ln -s works... " >&6; }
6540 LN_S=$as_ln_s
6541 if test "$LN_S" = "ln -s"; then
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6543 $as_echo "yes" >&6; }
6544 else
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6546 $as_echo "no, using $LN_S" >&6; }
6549 # find the maximum length of command line arguments
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6551 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6552 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6553 $as_echo_n "(cached) " >&6
6554 else
6556 teststring="ABCD"
6558 case $build_os in
6559 msdosdjgpp*)
6560 # On DJGPP, this test can blow up pretty badly due to problems in libc
6561 # (any single argument exceeding 2000 bytes causes a buffer overrun
6562 # during glob expansion). Even if it were fixed, the result of this
6563 # check would be larger than it should be.
6564 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6567 gnu*)
6568 # Under GNU Hurd, this test is not required because there is
6569 # no limit to the length of command line arguments.
6570 # Libtool will interpret -1 as no limit whatsoever
6571 lt_cv_sys_max_cmd_len=-1;
6574 cygwin* | mingw* | cegcc*)
6575 # On Win9x/ME, this test blows up -- it succeeds, but takes
6576 # about 5 minutes as the teststring grows exponentially.
6577 # Worse, since 9x/ME are not pre-emptively multitasking,
6578 # you end up with a "frozen" computer, even though with patience
6579 # the test eventually succeeds (with a max line length of 256k).
6580 # Instead, let's just punt: use the minimum linelength reported by
6581 # all of the supported platforms: 8192 (on NT/2K/XP).
6582 lt_cv_sys_max_cmd_len=8192;
6585 mint*)
6586 # On MiNT this can take a long time and run out of memory.
6587 lt_cv_sys_max_cmd_len=8192;
6590 amigaos*)
6591 # On AmigaOS with pdksh, this test takes hours, literally.
6592 # So we just punt and use a minimum line length of 8192.
6593 lt_cv_sys_max_cmd_len=8192;
6596 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6597 # This has been around since 386BSD, at least. Likely further.
6598 if test -x /sbin/sysctl; then
6599 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6600 elif test -x /usr/sbin/sysctl; then
6601 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6602 else
6603 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6605 # And add a safety zone
6606 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6607 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6610 interix*)
6611 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6612 lt_cv_sys_max_cmd_len=196608
6615 osf*)
6616 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6617 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6618 # nice to cause kernel panics so lets avoid the loop below.
6619 # First set a reasonable default.
6620 lt_cv_sys_max_cmd_len=16384
6622 if test -x /sbin/sysconfig; then
6623 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6624 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6625 esac
6628 sco3.2v5*)
6629 lt_cv_sys_max_cmd_len=102400
6631 sysv5* | sco5v6* | sysv4.2uw2*)
6632 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6633 if test -n "$kargmax"; then
6634 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6635 else
6636 lt_cv_sys_max_cmd_len=32768
6640 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6641 if test -n "$lt_cv_sys_max_cmd_len"; then
6642 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6643 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6644 else
6645 # Make teststring a little bigger before we do anything with it.
6646 # a 1K string should be a reasonable start.
6647 for i in 1 2 3 4 5 6 7 8 ; do
6648 teststring=$teststring$teststring
6649 done
6650 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6651 # If test is not a shell built-in, we'll probably end up computing a
6652 # maximum length that is only half of the actual maximum length, but
6653 # we can't tell.
6654 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6655 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6656 test $i != 17 # 1/2 MB should be enough
6658 i=`expr $i + 1`
6659 teststring=$teststring$teststring
6660 done
6661 # Only check the string length outside the loop.
6662 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6663 teststring=
6664 # Add a significant safety factor because C++ compilers can tack on
6665 # massive amounts of additional arguments before passing them to the
6666 # linker. It appears as though 1/2 is a usable value.
6667 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6670 esac
6674 if test -n $lt_cv_sys_max_cmd_len ; then
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6676 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6677 else
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6679 $as_echo "none" >&6; }
6681 max_cmd_len=$lt_cv_sys_max_cmd_len
6688 : ${CP="cp -f"}
6689 : ${MV="mv -f"}
6690 : ${RM="rm -f"}
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6693 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6694 # Try some XSI features
6695 xsi_shell=no
6696 ( _lt_dummy="a/b/c"
6697 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6698 = c,a/b,, \
6699 && eval 'test $(( 1 + 1 )) -eq 2 \
6700 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6701 && xsi_shell=yes
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6703 $as_echo "$xsi_shell" >&6; }
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6707 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6708 lt_shell_append=no
6709 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6710 >/dev/null 2>&1 \
6711 && lt_shell_append=yes
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6713 $as_echo "$lt_shell_append" >&6; }
6716 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6717 lt_unset=unset
6718 else
6719 lt_unset=false
6726 # test EBCDIC or ASCII
6727 case `echo X|tr X '\101'` in
6728 A) # ASCII based system
6729 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6730 lt_SP2NL='tr \040 \012'
6731 lt_NL2SP='tr \015\012 \040\040'
6733 *) # EBCDIC based system
6734 lt_SP2NL='tr \100 \n'
6735 lt_NL2SP='tr \r\n \100\100'
6737 esac
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6748 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6749 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6750 $as_echo_n "(cached) " >&6
6751 else
6752 lt_cv_ld_reload_flag='-r'
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6755 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6756 reload_flag=$lt_cv_ld_reload_flag
6757 case $reload_flag in
6758 "" | " "*) ;;
6759 *) reload_flag=" $reload_flag" ;;
6760 esac
6761 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6762 case $host_os in
6763 darwin*)
6764 if test "$GCC" = yes; then
6765 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6766 else
6767 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6770 esac
6780 if test -n "$ac_tool_prefix"; then
6781 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6782 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6784 $as_echo_n "checking for $ac_word... " >&6; }
6785 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6786 $as_echo_n "(cached) " >&6
6787 else
6788 if test -n "$OBJDUMP"; then
6789 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6790 else
6791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6792 for as_dir in $PATH
6794 IFS=$as_save_IFS
6795 test -z "$as_dir" && as_dir=.
6796 for ac_exec_ext in '' $ac_executable_extensions; do
6797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6798 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6800 break 2
6802 done
6803 done
6804 IFS=$as_save_IFS
6808 OBJDUMP=$ac_cv_prog_OBJDUMP
6809 if test -n "$OBJDUMP"; then
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6811 $as_echo "$OBJDUMP" >&6; }
6812 else
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6814 $as_echo "no" >&6; }
6819 if test -z "$ac_cv_prog_OBJDUMP"; then
6820 ac_ct_OBJDUMP=$OBJDUMP
6821 # Extract the first word of "objdump", so it can be a program name with args.
6822 set dummy objdump; ac_word=$2
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6824 $as_echo_n "checking for $ac_word... " >&6; }
6825 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6826 $as_echo_n "(cached) " >&6
6827 else
6828 if test -n "$ac_ct_OBJDUMP"; then
6829 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6830 else
6831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6832 for as_dir in $PATH
6834 IFS=$as_save_IFS
6835 test -z "$as_dir" && as_dir=.
6836 for ac_exec_ext in '' $ac_executable_extensions; do
6837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6838 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6840 break 2
6842 done
6843 done
6844 IFS=$as_save_IFS
6848 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6849 if test -n "$ac_ct_OBJDUMP"; then
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6851 $as_echo "$ac_ct_OBJDUMP" >&6; }
6852 else
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6854 $as_echo "no" >&6; }
6857 if test "x$ac_ct_OBJDUMP" = x; then
6858 OBJDUMP="false"
6859 else
6860 case $cross_compiling:$ac_tool_warned in
6861 yes:)
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6863 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6864 ac_tool_warned=yes ;;
6865 esac
6866 OBJDUMP=$ac_ct_OBJDUMP
6868 else
6869 OBJDUMP="$ac_cv_prog_OBJDUMP"
6872 test -z "$OBJDUMP" && OBJDUMP=objdump
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6883 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6884 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6885 $as_echo_n "(cached) " >&6
6886 else
6887 lt_cv_file_magic_cmd='$MAGIC_CMD'
6888 lt_cv_file_magic_test_file=
6889 lt_cv_deplibs_check_method='unknown'
6890 # Need to set the preceding variable on all platforms that support
6891 # interlibrary dependencies.
6892 # 'none' -- dependencies not supported.
6893 # `unknown' -- same as none, but documents that we really don't know.
6894 # 'pass_all' -- all dependencies passed with no checks.
6895 # 'test_compile' -- check by making test program.
6896 # 'file_magic [[regex]]' -- check by looking for files in library path
6897 # which responds to the $file_magic_cmd with a given extended regex.
6898 # If you have `file' or equivalent on your system and you're not sure
6899 # whether `pass_all' will *always* work, you probably want this one.
6901 case $host_os in
6902 aix[4-9]*)
6903 lt_cv_deplibs_check_method=pass_all
6906 beos*)
6907 lt_cv_deplibs_check_method=pass_all
6910 bsdi[45]*)
6911 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6912 lt_cv_file_magic_cmd='/usr/bin/file -L'
6913 lt_cv_file_magic_test_file=/shlib/libc.so
6916 cygwin*)
6917 # func_win32_libid is a shell function defined in ltmain.sh
6918 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6919 lt_cv_file_magic_cmd='func_win32_libid'
6922 mingw* | pw32*)
6923 # Base MSYS/MinGW do not provide the 'file' command needed by
6924 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6925 # unless we find 'file', for example because we are cross-compiling.
6926 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6927 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6928 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6929 lt_cv_file_magic_cmd='func_win32_libid'
6930 else
6931 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6932 lt_cv_file_magic_cmd='$OBJDUMP -f'
6936 cegcc*)
6937 # use the weaker test based on 'objdump'. See mingw*.
6938 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6939 lt_cv_file_magic_cmd='$OBJDUMP -f'
6942 darwin* | rhapsody*)
6943 lt_cv_deplibs_check_method=pass_all
6946 freebsd* | dragonfly*)
6947 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6948 case $host_cpu in
6949 i*86 )
6950 # Not sure whether the presence of OpenBSD here was a mistake.
6951 # Let's accept both of them until this is cleared up.
6952 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6953 lt_cv_file_magic_cmd=/usr/bin/file
6954 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6956 esac
6957 else
6958 lt_cv_deplibs_check_method=pass_all
6962 gnu*)
6963 lt_cv_deplibs_check_method=pass_all
6966 haiku*)
6967 lt_cv_deplibs_check_method=pass_all
6970 hpux10.20* | hpux11*)
6971 lt_cv_file_magic_cmd=/usr/bin/file
6972 case $host_cpu in
6973 ia64*)
6974 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6975 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6977 hppa*64*)
6978 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]'
6979 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6982 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6983 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6985 esac
6988 interix[3-9]*)
6989 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6990 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6993 irix5* | irix6* | nonstopux*)
6994 case $LD in
6995 *-32|*"-32 ") libmagic=32-bit;;
6996 *-n32|*"-n32 ") libmagic=N32;;
6997 *-64|*"-64 ") libmagic=64-bit;;
6998 *) libmagic=never-match;;
6999 esac
7000 lt_cv_deplibs_check_method=pass_all
7003 # This must be Linux ELF.
7004 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7005 lt_cv_deplibs_check_method=pass_all
7008 netbsd*)
7009 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7010 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7011 else
7012 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7016 newos6*)
7017 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7018 lt_cv_file_magic_cmd=/usr/bin/file
7019 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7022 *nto* | *qnx*)
7023 lt_cv_deplibs_check_method=pass_all
7026 openbsd*)
7027 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7028 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7029 else
7030 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7034 osf3* | osf4* | osf5*)
7035 lt_cv_deplibs_check_method=pass_all
7038 rdos*)
7039 lt_cv_deplibs_check_method=pass_all
7042 solaris*)
7043 lt_cv_deplibs_check_method=pass_all
7046 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7047 lt_cv_deplibs_check_method=pass_all
7050 sysv4 | sysv4.3*)
7051 case $host_vendor in
7052 motorola)
7053 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]'
7054 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7056 ncr)
7057 lt_cv_deplibs_check_method=pass_all
7059 sequent)
7060 lt_cv_file_magic_cmd='/bin/file'
7061 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7063 sni)
7064 lt_cv_file_magic_cmd='/bin/file'
7065 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7066 lt_cv_file_magic_test_file=/lib/libc.so
7068 siemens)
7069 lt_cv_deplibs_check_method=pass_all
7072 lt_cv_deplibs_check_method=pass_all
7074 esac
7077 tpf*)
7078 lt_cv_deplibs_check_method=pass_all
7080 esac
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7084 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7085 file_magic_cmd=$lt_cv_file_magic_cmd
7086 deplibs_check_method=$lt_cv_deplibs_check_method
7087 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7100 if test -n "$ac_tool_prefix"; then
7101 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7102 set dummy ${ac_tool_prefix}ar; ac_word=$2
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7104 $as_echo_n "checking for $ac_word... " >&6; }
7105 if test "${ac_cv_prog_AR+set}" = set; then :
7106 $as_echo_n "(cached) " >&6
7107 else
7108 if test -n "$AR"; then
7109 ac_cv_prog_AR="$AR" # Let the user override the test.
7110 else
7111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7112 for as_dir in $PATH
7114 IFS=$as_save_IFS
7115 test -z "$as_dir" && as_dir=.
7116 for ac_exec_ext in '' $ac_executable_extensions; do
7117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7118 ac_cv_prog_AR="${ac_tool_prefix}ar"
7119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7120 break 2
7122 done
7123 done
7124 IFS=$as_save_IFS
7128 AR=$ac_cv_prog_AR
7129 if test -n "$AR"; then
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7131 $as_echo "$AR" >&6; }
7132 else
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7134 $as_echo "no" >&6; }
7139 if test -z "$ac_cv_prog_AR"; then
7140 ac_ct_AR=$AR
7141 # Extract the first word of "ar", so it can be a program name with args.
7142 set dummy ar; ac_word=$2
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7144 $as_echo_n "checking for $ac_word... " >&6; }
7145 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7146 $as_echo_n "(cached) " >&6
7147 else
7148 if test -n "$ac_ct_AR"; then
7149 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7150 else
7151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7152 for as_dir in $PATH
7154 IFS=$as_save_IFS
7155 test -z "$as_dir" && as_dir=.
7156 for ac_exec_ext in '' $ac_executable_extensions; do
7157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7158 ac_cv_prog_ac_ct_AR="ar"
7159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7160 break 2
7162 done
7163 done
7164 IFS=$as_save_IFS
7168 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7169 if test -n "$ac_ct_AR"; then
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7171 $as_echo "$ac_ct_AR" >&6; }
7172 else
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7174 $as_echo "no" >&6; }
7177 if test "x$ac_ct_AR" = x; then
7178 AR="false"
7179 else
7180 case $cross_compiling:$ac_tool_warned in
7181 yes:)
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7183 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7184 ac_tool_warned=yes ;;
7185 esac
7186 AR=$ac_ct_AR
7188 else
7189 AR="$ac_cv_prog_AR"
7192 test -z "$AR" && AR=ar
7193 test -z "$AR_FLAGS" && AR_FLAGS=cru
7205 if test -n "$ac_tool_prefix"; then
7206 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7207 set dummy ${ac_tool_prefix}strip; ac_word=$2
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7209 $as_echo_n "checking for $ac_word... " >&6; }
7210 if test "${ac_cv_prog_STRIP+set}" = set; then :
7211 $as_echo_n "(cached) " >&6
7212 else
7213 if test -n "$STRIP"; then
7214 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7215 else
7216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7217 for as_dir in $PATH
7219 IFS=$as_save_IFS
7220 test -z "$as_dir" && as_dir=.
7221 for ac_exec_ext in '' $ac_executable_extensions; do
7222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7223 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7225 break 2
7227 done
7228 done
7229 IFS=$as_save_IFS
7233 STRIP=$ac_cv_prog_STRIP
7234 if test -n "$STRIP"; then
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7236 $as_echo "$STRIP" >&6; }
7237 else
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7239 $as_echo "no" >&6; }
7244 if test -z "$ac_cv_prog_STRIP"; then
7245 ac_ct_STRIP=$STRIP
7246 # Extract the first word of "strip", so it can be a program name with args.
7247 set dummy strip; ac_word=$2
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7249 $as_echo_n "checking for $ac_word... " >&6; }
7250 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7251 $as_echo_n "(cached) " >&6
7252 else
7253 if test -n "$ac_ct_STRIP"; then
7254 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7255 else
7256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7257 for as_dir in $PATH
7259 IFS=$as_save_IFS
7260 test -z "$as_dir" && as_dir=.
7261 for ac_exec_ext in '' $ac_executable_extensions; do
7262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7263 ac_cv_prog_ac_ct_STRIP="strip"
7264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7265 break 2
7267 done
7268 done
7269 IFS=$as_save_IFS
7273 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7274 if test -n "$ac_ct_STRIP"; then
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7276 $as_echo "$ac_ct_STRIP" >&6; }
7277 else
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7279 $as_echo "no" >&6; }
7282 if test "x$ac_ct_STRIP" = x; then
7283 STRIP=":"
7284 else
7285 case $cross_compiling:$ac_tool_warned in
7286 yes:)
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7288 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7289 ac_tool_warned=yes ;;
7290 esac
7291 STRIP=$ac_ct_STRIP
7293 else
7294 STRIP="$ac_cv_prog_STRIP"
7297 test -z "$STRIP" && STRIP=:
7304 if test -n "$ac_tool_prefix"; then
7305 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7306 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7308 $as_echo_n "checking for $ac_word... " >&6; }
7309 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7310 $as_echo_n "(cached) " >&6
7311 else
7312 if test -n "$RANLIB"; then
7313 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7314 else
7315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7316 for as_dir in $PATH
7318 IFS=$as_save_IFS
7319 test -z "$as_dir" && as_dir=.
7320 for ac_exec_ext in '' $ac_executable_extensions; do
7321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7322 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7324 break 2
7326 done
7327 done
7328 IFS=$as_save_IFS
7332 RANLIB=$ac_cv_prog_RANLIB
7333 if test -n "$RANLIB"; then
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7335 $as_echo "$RANLIB" >&6; }
7336 else
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7338 $as_echo "no" >&6; }
7343 if test -z "$ac_cv_prog_RANLIB"; then
7344 ac_ct_RANLIB=$RANLIB
7345 # Extract the first word of "ranlib", so it can be a program name with args.
7346 set dummy ranlib; ac_word=$2
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7348 $as_echo_n "checking for $ac_word... " >&6; }
7349 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7350 $as_echo_n "(cached) " >&6
7351 else
7352 if test -n "$ac_ct_RANLIB"; then
7353 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7354 else
7355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7356 for as_dir in $PATH
7358 IFS=$as_save_IFS
7359 test -z "$as_dir" && as_dir=.
7360 for ac_exec_ext in '' $ac_executable_extensions; do
7361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7362 ac_cv_prog_ac_ct_RANLIB="ranlib"
7363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7364 break 2
7366 done
7367 done
7368 IFS=$as_save_IFS
7372 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7373 if test -n "$ac_ct_RANLIB"; then
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7375 $as_echo "$ac_ct_RANLIB" >&6; }
7376 else
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7378 $as_echo "no" >&6; }
7381 if test "x$ac_ct_RANLIB" = x; then
7382 RANLIB=":"
7383 else
7384 case $cross_compiling:$ac_tool_warned in
7385 yes:)
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7387 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7388 ac_tool_warned=yes ;;
7389 esac
7390 RANLIB=$ac_ct_RANLIB
7392 else
7393 RANLIB="$ac_cv_prog_RANLIB"
7396 test -z "$RANLIB" && RANLIB=:
7403 # Determine commands to create old-style static archives.
7404 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7405 old_postinstall_cmds='chmod 644 $oldlib'
7406 old_postuninstall_cmds=
7408 if test -n "$RANLIB"; then
7409 case $host_os in
7410 openbsd*)
7411 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7414 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7416 esac
7417 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7420 case $host_os in
7421 darwin*)
7422 lock_old_archive_extraction=yes ;;
7424 lock_old_archive_extraction=no ;;
7425 esac
7465 # If no C compiler was specified, use CC.
7466 LTCC=${LTCC-"$CC"}
7468 # If no C compiler flags were specified, use CFLAGS.
7469 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7471 # Allow CC to be a program name with arguments.
7472 compiler=$CC
7475 # Check for command to grab the raw symbol name followed by C symbol from nm.
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7477 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7478 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7479 $as_echo_n "(cached) " >&6
7480 else
7482 # These are sane defaults that work on at least a few old systems.
7483 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7485 # Character class describing NM global symbol codes.
7486 symcode='[BCDEGRST]'
7488 # Regexp to match symbols that can be accessed directly from C.
7489 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7491 # Define system-specific variables.
7492 case $host_os in
7493 aix*)
7494 symcode='[BCDT]'
7496 cygwin* | mingw* | pw32* | cegcc*)
7497 symcode='[ABCDGISTW]'
7499 hpux*)
7500 if test "$host_cpu" = ia64; then
7501 symcode='[ABCDEGRST]'
7504 irix* | nonstopux*)
7505 symcode='[BCDEGRST]'
7507 osf*)
7508 symcode='[BCDEGQRST]'
7510 solaris*)
7511 symcode='[BDRT]'
7513 sco3.2v5*)
7514 symcode='[DT]'
7516 sysv4.2uw2*)
7517 symcode='[DT]'
7519 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7520 symcode='[ABDT]'
7522 sysv4)
7523 symcode='[DFNSTU]'
7525 esac
7527 # If we're using GNU nm, then use its standard symbol codes.
7528 case `$NM -V 2>&1` in
7529 *GNU* | *'with BFD'*)
7530 symcode='[ABCDGIRSTW]' ;;
7531 esac
7533 # Transform an extracted symbol line into a proper C declaration.
7534 # Some systems (esp. on ia64) link data and code symbols differently,
7535 # so use this general approach.
7536 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7538 # Transform an extracted symbol line into symbol name and symbol address
7539 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7540 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'"
7542 # Handle CRLF in mingw tool chain
7543 opt_cr=
7544 case $build_os in
7545 mingw*)
7546 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7548 esac
7550 # Try without a prefix underscore, then with it.
7551 for ac_symprfx in "" "_"; do
7553 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7554 symxfrm="\\1 $ac_symprfx\\2 \\2"
7556 # Write the raw and C identifiers.
7557 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7558 # Fake it for dumpbin and say T for any non-static function
7559 # and D for any global variable.
7560 # Also find C++ and __fastcall symbols from MSVC++,
7561 # which start with @ or ?.
7562 lt_cv_sys_global_symbol_pipe="$AWK '"\
7563 " {last_section=section; section=\$ 3};"\
7564 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7565 " \$ 0!~/External *\|/{next};"\
7566 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7567 " {if(hide[section]) next};"\
7568 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7569 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7570 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7571 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7572 " ' prfx=^$ac_symprfx"
7573 else
7574 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7577 # Check to see that the pipe works correctly.
7578 pipe_works=no
7580 rm -f conftest*
7581 cat > conftest.$ac_ext <<_LT_EOF
7582 #ifdef __cplusplus
7583 extern "C" {
7584 #endif
7585 char nm_test_var;
7586 void nm_test_func(void);
7587 void nm_test_func(void){}
7588 #ifdef __cplusplus
7590 #endif
7591 int main(){nm_test_var='a';nm_test_func();return(0);}
7592 _LT_EOF
7594 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7595 (eval $ac_compile) 2>&5
7596 ac_status=$?
7597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7598 test $ac_status = 0; }; then
7599 # Now try to grab the symbols.
7600 nlist=conftest.nm
7601 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7602 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7603 ac_status=$?
7604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7605 test $ac_status = 0; } && test -s "$nlist"; then
7606 # Try sorting and uniquifying the output.
7607 if sort "$nlist" | uniq > "$nlist"T; then
7608 mv -f "$nlist"T "$nlist"
7609 else
7610 rm -f "$nlist"T
7613 # Make sure that we snagged all the symbols we need.
7614 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7615 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7616 cat <<_LT_EOF > conftest.$ac_ext
7617 #ifdef __cplusplus
7618 extern "C" {
7619 #endif
7621 _LT_EOF
7622 # Now generate the symbol file.
7623 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7625 cat <<_LT_EOF >> conftest.$ac_ext
7627 /* The mapping between symbol names and symbols. */
7628 const struct {
7629 const char *name;
7630 void *address;
7632 lt__PROGRAM__LTX_preloaded_symbols[] =
7634 { "@PROGRAM@", (void *) 0 },
7635 _LT_EOF
7636 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7637 cat <<\_LT_EOF >> conftest.$ac_ext
7638 {0, (void *) 0}
7641 /* This works around a problem in FreeBSD linker */
7642 #ifdef FREEBSD_WORKAROUND
7643 static const void *lt_preloaded_setup() {
7644 return lt__PROGRAM__LTX_preloaded_symbols;
7646 #endif
7648 #ifdef __cplusplus
7650 #endif
7651 _LT_EOF
7652 # Now try linking the two files.
7653 mv conftest.$ac_objext conftstm.$ac_objext
7654 lt_save_LIBS="$LIBS"
7655 lt_save_CFLAGS="$CFLAGS"
7656 LIBS="conftstm.$ac_objext"
7657 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7658 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7659 (eval $ac_link) 2>&5
7660 ac_status=$?
7661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7662 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7663 pipe_works=yes
7665 LIBS="$lt_save_LIBS"
7666 CFLAGS="$lt_save_CFLAGS"
7667 else
7668 echo "cannot find nm_test_func in $nlist" >&5
7670 else
7671 echo "cannot find nm_test_var in $nlist" >&5
7673 else
7674 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7676 else
7677 echo "$progname: failed program was:" >&5
7678 cat conftest.$ac_ext >&5
7680 rm -rf conftest* conftst*
7682 # Do not use the global_symbol_pipe unless it works.
7683 if test "$pipe_works" = yes; then
7684 break
7685 else
7686 lt_cv_sys_global_symbol_pipe=
7688 done
7692 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7693 lt_cv_sys_global_symbol_to_cdecl=
7695 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7697 $as_echo "failed" >&6; }
7698 else
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7700 $as_echo "ok" >&6; }
7724 # Check whether --enable-libtool-lock was given.
7725 if test "${enable_libtool_lock+set}" = set; then :
7726 enableval=$enable_libtool_lock;
7729 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7731 # Some flags need to be propagated to the compiler or linker for good
7732 # libtool support.
7733 case $host in
7734 ia64-*-hpux*)
7735 # Find out which ABI we are using.
7736 echo 'int i;' > conftest.$ac_ext
7737 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7738 (eval $ac_compile) 2>&5
7739 ac_status=$?
7740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7741 test $ac_status = 0; }; then
7742 case `/usr/bin/file conftest.$ac_objext` in
7743 *ELF-32*)
7744 HPUX_IA64_MODE="32"
7746 *ELF-64*)
7747 HPUX_IA64_MODE="64"
7749 esac
7751 rm -rf conftest*
7753 *-*-irix6*)
7754 # Find out which ABI we are using.
7755 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7756 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7757 (eval $ac_compile) 2>&5
7758 ac_status=$?
7759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7760 test $ac_status = 0; }; then
7761 if test "$lt_cv_prog_gnu_ld" = yes; then
7762 case `/usr/bin/file conftest.$ac_objext` in
7763 *32-bit*)
7764 LD="${LD-ld} -melf32bsmip"
7766 *N32*)
7767 LD="${LD-ld} -melf32bmipn32"
7769 *64-bit*)
7770 LD="${LD-ld} -melf64bmip"
7772 esac
7773 else
7774 case `/usr/bin/file conftest.$ac_objext` in
7775 *32-bit*)
7776 LD="${LD-ld} -32"
7778 *N32*)
7779 LD="${LD-ld} -n32"
7781 *64-bit*)
7782 LD="${LD-ld} -64"
7784 esac
7787 rm -rf conftest*
7790 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7791 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7792 # Find out which ABI we are using.
7793 echo 'int i;' > conftest.$ac_ext
7794 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7795 (eval $ac_compile) 2>&5
7796 ac_status=$?
7797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7798 test $ac_status = 0; }; then
7799 case `/usr/bin/file conftest.o` in
7800 *32-bit*)
7801 case $host in
7802 x86_64-*kfreebsd*-gnu)
7803 LD="${LD-ld} -m elf_i386_fbsd"
7805 x86_64-*linux*)
7806 case `/usr/bin/file conftest.o` in
7807 *x86-64*)
7808 LD="${LD-ld} -m elf32_x86_64"
7811 LD="${LD-ld} -m elf_i386"
7813 esac
7815 powerpc64le-*linux*)
7816 LD="${LD-ld} -m elf32lppclinux"
7818 powerpc64-*linux*)
7819 LD="${LD-ld} -m elf32ppclinux"
7821 s390x-*linux*)
7822 LD="${LD-ld} -m elf_s390"
7824 sparc64-*linux*)
7825 LD="${LD-ld} -m elf32_sparc"
7827 esac
7829 *64-bit*)
7830 case $host in
7831 x86_64-*kfreebsd*-gnu)
7832 LD="${LD-ld} -m elf_x86_64_fbsd"
7834 x86_64-*linux*)
7835 LD="${LD-ld} -m elf_x86_64"
7837 powerpcle-*linux*)
7838 LD="${LD-ld} -m elf64lppc"
7840 powerpc-*linux*)
7841 LD="${LD-ld} -m elf64ppc"
7843 s390*-*linux*|s390*-*tpf*)
7844 LD="${LD-ld} -m elf64_s390"
7846 sparc*-*linux*)
7847 LD="${LD-ld} -m elf64_sparc"
7849 esac
7851 esac
7853 rm -rf conftest*
7856 *-*-sco3.2v5*)
7857 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7858 SAVE_CFLAGS="$CFLAGS"
7859 CFLAGS="$CFLAGS -belf"
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7861 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7862 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7863 $as_echo_n "(cached) " >&6
7864 else
7865 ac_ext=c
7866 ac_cpp='$CPP $CPPFLAGS'
7867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7872 /* end confdefs.h. */
7875 main ()
7879 return 0;
7881 _ACEOF
7882 if ac_fn_c_try_link "$LINENO"; then :
7883 lt_cv_cc_needs_belf=yes
7884 else
7885 lt_cv_cc_needs_belf=no
7887 rm -f core conftest.err conftest.$ac_objext \
7888 conftest$ac_exeext conftest.$ac_ext
7889 ac_ext=c
7890 ac_cpp='$CPP $CPPFLAGS'
7891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7897 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7898 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7899 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7900 CFLAGS="$SAVE_CFLAGS"
7903 sparc*-*solaris*)
7904 # Find out which ABI we are using.
7905 echo 'int i;' > conftest.$ac_ext
7906 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7907 (eval $ac_compile) 2>&5
7908 ac_status=$?
7909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7910 test $ac_status = 0; }; then
7911 case `/usr/bin/file conftest.o` in
7912 *64-bit*)
7913 case $lt_cv_prog_gnu_ld in
7914 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7916 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7917 LD="${LD-ld} -64"
7920 esac
7922 esac
7924 rm -rf conftest*
7926 esac
7928 need_locks="$enable_libtool_lock"
7931 case $host_os in
7932 rhapsody* | darwin*)
7933 if test -n "$ac_tool_prefix"; then
7934 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7935 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7937 $as_echo_n "checking for $ac_word... " >&6; }
7938 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7939 $as_echo_n "(cached) " >&6
7940 else
7941 if test -n "$DSYMUTIL"; then
7942 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7943 else
7944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7945 for as_dir in $PATH
7947 IFS=$as_save_IFS
7948 test -z "$as_dir" && as_dir=.
7949 for ac_exec_ext in '' $ac_executable_extensions; do
7950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7951 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7953 break 2
7955 done
7956 done
7957 IFS=$as_save_IFS
7961 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7962 if test -n "$DSYMUTIL"; then
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7964 $as_echo "$DSYMUTIL" >&6; }
7965 else
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7967 $as_echo "no" >&6; }
7972 if test -z "$ac_cv_prog_DSYMUTIL"; then
7973 ac_ct_DSYMUTIL=$DSYMUTIL
7974 # Extract the first word of "dsymutil", so it can be a program name with args.
7975 set dummy dsymutil; ac_word=$2
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7977 $as_echo_n "checking for $ac_word... " >&6; }
7978 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7979 $as_echo_n "(cached) " >&6
7980 else
7981 if test -n "$ac_ct_DSYMUTIL"; then
7982 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7983 else
7984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7985 for as_dir in $PATH
7987 IFS=$as_save_IFS
7988 test -z "$as_dir" && as_dir=.
7989 for ac_exec_ext in '' $ac_executable_extensions; do
7990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7991 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7993 break 2
7995 done
7996 done
7997 IFS=$as_save_IFS
8001 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8002 if test -n "$ac_ct_DSYMUTIL"; then
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8004 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8005 else
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8007 $as_echo "no" >&6; }
8010 if test "x$ac_ct_DSYMUTIL" = x; then
8011 DSYMUTIL=":"
8012 else
8013 case $cross_compiling:$ac_tool_warned in
8014 yes:)
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8016 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8017 ac_tool_warned=yes ;;
8018 esac
8019 DSYMUTIL=$ac_ct_DSYMUTIL
8021 else
8022 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8025 if test -n "$ac_tool_prefix"; then
8026 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8027 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8029 $as_echo_n "checking for $ac_word... " >&6; }
8030 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
8031 $as_echo_n "(cached) " >&6
8032 else
8033 if test -n "$NMEDIT"; then
8034 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8035 else
8036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8037 for as_dir in $PATH
8039 IFS=$as_save_IFS
8040 test -z "$as_dir" && as_dir=.
8041 for ac_exec_ext in '' $ac_executable_extensions; do
8042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8043 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8045 break 2
8047 done
8048 done
8049 IFS=$as_save_IFS
8053 NMEDIT=$ac_cv_prog_NMEDIT
8054 if test -n "$NMEDIT"; then
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8056 $as_echo "$NMEDIT" >&6; }
8057 else
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8059 $as_echo "no" >&6; }
8064 if test -z "$ac_cv_prog_NMEDIT"; then
8065 ac_ct_NMEDIT=$NMEDIT
8066 # Extract the first word of "nmedit", so it can be a program name with args.
8067 set dummy nmedit; ac_word=$2
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8069 $as_echo_n "checking for $ac_word... " >&6; }
8070 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
8071 $as_echo_n "(cached) " >&6
8072 else
8073 if test -n "$ac_ct_NMEDIT"; then
8074 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8075 else
8076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8077 for as_dir in $PATH
8079 IFS=$as_save_IFS
8080 test -z "$as_dir" && as_dir=.
8081 for ac_exec_ext in '' $ac_executable_extensions; do
8082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8083 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8085 break 2
8087 done
8088 done
8089 IFS=$as_save_IFS
8093 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8094 if test -n "$ac_ct_NMEDIT"; then
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8096 $as_echo "$ac_ct_NMEDIT" >&6; }
8097 else
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8099 $as_echo "no" >&6; }
8102 if test "x$ac_ct_NMEDIT" = x; then
8103 NMEDIT=":"
8104 else
8105 case $cross_compiling:$ac_tool_warned in
8106 yes:)
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8108 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8109 ac_tool_warned=yes ;;
8110 esac
8111 NMEDIT=$ac_ct_NMEDIT
8113 else
8114 NMEDIT="$ac_cv_prog_NMEDIT"
8117 if test -n "$ac_tool_prefix"; then
8118 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8119 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8121 $as_echo_n "checking for $ac_word... " >&6; }
8122 if test "${ac_cv_prog_LIPO+set}" = set; then :
8123 $as_echo_n "(cached) " >&6
8124 else
8125 if test -n "$LIPO"; then
8126 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8127 else
8128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8129 for as_dir in $PATH
8131 IFS=$as_save_IFS
8132 test -z "$as_dir" && as_dir=.
8133 for ac_exec_ext in '' $ac_executable_extensions; do
8134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8135 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8137 break 2
8139 done
8140 done
8141 IFS=$as_save_IFS
8145 LIPO=$ac_cv_prog_LIPO
8146 if test -n "$LIPO"; then
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8148 $as_echo "$LIPO" >&6; }
8149 else
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8151 $as_echo "no" >&6; }
8156 if test -z "$ac_cv_prog_LIPO"; then
8157 ac_ct_LIPO=$LIPO
8158 # Extract the first word of "lipo", so it can be a program name with args.
8159 set dummy lipo; ac_word=$2
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8161 $as_echo_n "checking for $ac_word... " >&6; }
8162 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8163 $as_echo_n "(cached) " >&6
8164 else
8165 if test -n "$ac_ct_LIPO"; then
8166 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8167 else
8168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8169 for as_dir in $PATH
8171 IFS=$as_save_IFS
8172 test -z "$as_dir" && as_dir=.
8173 for ac_exec_ext in '' $ac_executable_extensions; do
8174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8175 ac_cv_prog_ac_ct_LIPO="lipo"
8176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8177 break 2
8179 done
8180 done
8181 IFS=$as_save_IFS
8185 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8186 if test -n "$ac_ct_LIPO"; then
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8188 $as_echo "$ac_ct_LIPO" >&6; }
8189 else
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8191 $as_echo "no" >&6; }
8194 if test "x$ac_ct_LIPO" = x; then
8195 LIPO=":"
8196 else
8197 case $cross_compiling:$ac_tool_warned in
8198 yes:)
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8200 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8201 ac_tool_warned=yes ;;
8202 esac
8203 LIPO=$ac_ct_LIPO
8205 else
8206 LIPO="$ac_cv_prog_LIPO"
8209 if test -n "$ac_tool_prefix"; then
8210 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8211 set dummy ${ac_tool_prefix}otool; ac_word=$2
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8213 $as_echo_n "checking for $ac_word... " >&6; }
8214 if test "${ac_cv_prog_OTOOL+set}" = set; then :
8215 $as_echo_n "(cached) " >&6
8216 else
8217 if test -n "$OTOOL"; then
8218 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8219 else
8220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8221 for as_dir in $PATH
8223 IFS=$as_save_IFS
8224 test -z "$as_dir" && as_dir=.
8225 for ac_exec_ext in '' $ac_executable_extensions; do
8226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8227 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8229 break 2
8231 done
8232 done
8233 IFS=$as_save_IFS
8237 OTOOL=$ac_cv_prog_OTOOL
8238 if test -n "$OTOOL"; then
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8240 $as_echo "$OTOOL" >&6; }
8241 else
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8243 $as_echo "no" >&6; }
8248 if test -z "$ac_cv_prog_OTOOL"; then
8249 ac_ct_OTOOL=$OTOOL
8250 # Extract the first word of "otool", so it can be a program name with args.
8251 set dummy otool; ac_word=$2
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8253 $as_echo_n "checking for $ac_word... " >&6; }
8254 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8255 $as_echo_n "(cached) " >&6
8256 else
8257 if test -n "$ac_ct_OTOOL"; then
8258 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8259 else
8260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8261 for as_dir in $PATH
8263 IFS=$as_save_IFS
8264 test -z "$as_dir" && as_dir=.
8265 for ac_exec_ext in '' $ac_executable_extensions; do
8266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8267 ac_cv_prog_ac_ct_OTOOL="otool"
8268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8269 break 2
8271 done
8272 done
8273 IFS=$as_save_IFS
8277 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8278 if test -n "$ac_ct_OTOOL"; then
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8280 $as_echo "$ac_ct_OTOOL" >&6; }
8281 else
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8283 $as_echo "no" >&6; }
8286 if test "x$ac_ct_OTOOL" = x; then
8287 OTOOL=":"
8288 else
8289 case $cross_compiling:$ac_tool_warned in
8290 yes:)
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8292 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8293 ac_tool_warned=yes ;;
8294 esac
8295 OTOOL=$ac_ct_OTOOL
8297 else
8298 OTOOL="$ac_cv_prog_OTOOL"
8301 if test -n "$ac_tool_prefix"; then
8302 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8303 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8305 $as_echo_n "checking for $ac_word... " >&6; }
8306 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8307 $as_echo_n "(cached) " >&6
8308 else
8309 if test -n "$OTOOL64"; then
8310 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8311 else
8312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8313 for as_dir in $PATH
8315 IFS=$as_save_IFS
8316 test -z "$as_dir" && as_dir=.
8317 for ac_exec_ext in '' $ac_executable_extensions; do
8318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8319 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8321 break 2
8323 done
8324 done
8325 IFS=$as_save_IFS
8329 OTOOL64=$ac_cv_prog_OTOOL64
8330 if test -n "$OTOOL64"; then
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8332 $as_echo "$OTOOL64" >&6; }
8333 else
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8335 $as_echo "no" >&6; }
8340 if test -z "$ac_cv_prog_OTOOL64"; then
8341 ac_ct_OTOOL64=$OTOOL64
8342 # Extract the first word of "otool64", so it can be a program name with args.
8343 set dummy otool64; ac_word=$2
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8345 $as_echo_n "checking for $ac_word... " >&6; }
8346 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8347 $as_echo_n "(cached) " >&6
8348 else
8349 if test -n "$ac_ct_OTOOL64"; then
8350 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8351 else
8352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8353 for as_dir in $PATH
8355 IFS=$as_save_IFS
8356 test -z "$as_dir" && as_dir=.
8357 for ac_exec_ext in '' $ac_executable_extensions; do
8358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8359 ac_cv_prog_ac_ct_OTOOL64="otool64"
8360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8361 break 2
8363 done
8364 done
8365 IFS=$as_save_IFS
8369 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8370 if test -n "$ac_ct_OTOOL64"; then
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8372 $as_echo "$ac_ct_OTOOL64" >&6; }
8373 else
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8375 $as_echo "no" >&6; }
8378 if test "x$ac_ct_OTOOL64" = x; then
8379 OTOOL64=":"
8380 else
8381 case $cross_compiling:$ac_tool_warned in
8382 yes:)
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8384 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8385 ac_tool_warned=yes ;;
8386 esac
8387 OTOOL64=$ac_ct_OTOOL64
8389 else
8390 OTOOL64="$ac_cv_prog_OTOOL64"
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8420 $as_echo_n "checking for -single_module linker flag... " >&6; }
8421 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8422 $as_echo_n "(cached) " >&6
8423 else
8424 lt_cv_apple_cc_single_mod=no
8425 if test -z "${LT_MULTI_MODULE}"; then
8426 # By default we will add the -single_module flag. You can override
8427 # by either setting the environment variable LT_MULTI_MODULE
8428 # non-empty at configure time, or by adding -multi_module to the
8429 # link flags.
8430 rm -rf libconftest.dylib*
8431 echo "int foo(void){return 1;}" > conftest.c
8432 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8433 -dynamiclib -Wl,-single_module conftest.c" >&5
8434 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8435 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8436 _lt_result=$?
8437 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8438 lt_cv_apple_cc_single_mod=yes
8439 else
8440 cat conftest.err >&5
8442 rm -rf libconftest.dylib*
8443 rm -f conftest.*
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8447 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8449 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8450 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8451 $as_echo_n "(cached) " >&6
8452 else
8453 lt_cv_ld_exported_symbols_list=no
8454 save_LDFLAGS=$LDFLAGS
8455 echo "_main" > conftest.sym
8456 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8458 /* end confdefs.h. */
8461 main ()
8465 return 0;
8467 _ACEOF
8468 if ac_fn_c_try_link "$LINENO"; then :
8469 lt_cv_ld_exported_symbols_list=yes
8470 else
8471 lt_cv_ld_exported_symbols_list=no
8473 rm -f core conftest.err conftest.$ac_objext \
8474 conftest$ac_exeext conftest.$ac_ext
8475 LDFLAGS="$save_LDFLAGS"
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8479 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8481 $as_echo_n "checking for -force_load linker flag... " >&6; }
8482 if test "${lt_cv_ld_force_load+set}" = set; then :
8483 $as_echo_n "(cached) " >&6
8484 else
8485 lt_cv_ld_force_load=no
8486 cat > conftest.c << _LT_EOF
8487 int forced_loaded() { return 2;}
8488 _LT_EOF
8489 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8490 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8491 echo "$AR cru libconftest.a conftest.o" >&5
8492 $AR cru libconftest.a conftest.o 2>&5
8493 cat > conftest.c << _LT_EOF
8494 int main() { return 0;}
8495 _LT_EOF
8496 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8497 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8498 _lt_result=$?
8499 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8500 lt_cv_ld_force_load=yes
8501 else
8502 cat conftest.err >&5
8504 rm -f conftest.err libconftest.a conftest conftest.c
8505 rm -rf conftest.dSYM
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8509 $as_echo "$lt_cv_ld_force_load" >&6; }
8510 case $host_os in
8511 rhapsody* | darwin1.[012])
8512 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8513 darwin1.*)
8514 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8515 darwin*) # darwin 5.x on
8516 # if running on 10.5 or later, the deployment target defaults
8517 # to the OS version, if on x86, and 10.4, the deployment
8518 # target defaults to 10.4. Don't you love it?
8519 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8520 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8521 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8522 10.[012][,.]*)
8523 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8524 10.*)
8525 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8526 esac
8528 esac
8529 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8530 _lt_dar_single_mod='$single_module'
8532 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8533 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8534 else
8535 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8537 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8538 _lt_dsymutil='~$DSYMUTIL $lib || :'
8539 else
8540 _lt_dsymutil=
8543 esac
8545 for ac_header in dlfcn.h
8546 do :
8547 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8549 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8550 cat >>confdefs.h <<_ACEOF
8551 #define HAVE_DLFCN_H 1
8552 _ACEOF
8556 done
8563 # Set options
8568 enable_win32_dll=no
8571 # Check whether --enable-shared was given.
8572 if test "${enable_shared+set}" = set; then :
8573 enableval=$enable_shared; p=${PACKAGE-default}
8574 case $enableval in
8575 yes) enable_shared=yes ;;
8576 no) enable_shared=no ;;
8578 enable_shared=no
8579 # Look at the argument we got. We use all the common list separators.
8580 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8581 for pkg in $enableval; do
8582 IFS="$lt_save_ifs"
8583 if test "X$pkg" = "X$p"; then
8584 enable_shared=yes
8586 done
8587 IFS="$lt_save_ifs"
8589 esac
8590 else
8591 enable_shared=yes
8602 # Check whether --enable-static was given.
8603 if test "${enable_static+set}" = set; then :
8604 enableval=$enable_static; p=${PACKAGE-default}
8605 case $enableval in
8606 yes) enable_static=yes ;;
8607 no) enable_static=no ;;
8609 enable_static=no
8610 # Look at the argument we got. We use all the common list separators.
8611 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8612 for pkg in $enableval; do
8613 IFS="$lt_save_ifs"
8614 if test "X$pkg" = "X$p"; then
8615 enable_static=yes
8617 done
8618 IFS="$lt_save_ifs"
8620 esac
8621 else
8622 enable_static=yes
8634 # Check whether --with-pic was given.
8635 if test "${with_pic+set}" = set; then :
8636 withval=$with_pic; pic_mode="$withval"
8637 else
8638 pic_mode=default
8642 test -z "$pic_mode" && pic_mode=default
8650 # Check whether --enable-fast-install was given.
8651 if test "${enable_fast_install+set}" = set; then :
8652 enableval=$enable_fast_install; p=${PACKAGE-default}
8653 case $enableval in
8654 yes) enable_fast_install=yes ;;
8655 no) enable_fast_install=no ;;
8657 enable_fast_install=no
8658 # Look at the argument we got. We use all the common list separators.
8659 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8660 for pkg in $enableval; do
8661 IFS="$lt_save_ifs"
8662 if test "X$pkg" = "X$p"; then
8663 enable_fast_install=yes
8665 done
8666 IFS="$lt_save_ifs"
8668 esac
8669 else
8670 enable_fast_install=yes
8683 # This can be used to rebuild libtool when needed
8684 LIBTOOL_DEPS="$ltmain"
8686 # Always use our own libtool.
8687 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8714 test -z "$LN_S" && LN_S="ln -s"
8729 if test -n "${ZSH_VERSION+set}" ; then
8730 setopt NO_GLOB_SUBST
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8734 $as_echo_n "checking for objdir... " >&6; }
8735 if test "${lt_cv_objdir+set}" = set; then :
8736 $as_echo_n "(cached) " >&6
8737 else
8738 rm -f .libs 2>/dev/null
8739 mkdir .libs 2>/dev/null
8740 if test -d .libs; then
8741 lt_cv_objdir=.libs
8742 else
8743 # MS-DOS does not allow filenames that begin with a dot.
8744 lt_cv_objdir=_libs
8746 rmdir .libs 2>/dev/null
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8749 $as_echo "$lt_cv_objdir" >&6; }
8750 objdir=$lt_cv_objdir
8756 cat >>confdefs.h <<_ACEOF
8757 #define LT_OBJDIR "$lt_cv_objdir/"
8758 _ACEOF
8763 case $host_os in
8764 aix3*)
8765 # AIX sometimes has problems with the GCC collect2 program. For some
8766 # reason, if we set the COLLECT_NAMES environment variable, the problems
8767 # vanish in a puff of smoke.
8768 if test "X${COLLECT_NAMES+set}" != Xset; then
8769 COLLECT_NAMES=
8770 export COLLECT_NAMES
8773 esac
8775 # Global variables:
8776 ofile=libtool
8777 can_build_shared=yes
8779 # All known linkers require a `.a' archive for static linking (except MSVC,
8780 # which needs '.lib').
8781 libext=a
8783 with_gnu_ld="$lt_cv_prog_gnu_ld"
8785 old_CC="$CC"
8786 old_CFLAGS="$CFLAGS"
8788 # Set sane defaults for various variables
8789 test -z "$CC" && CC=cc
8790 test -z "$LTCC" && LTCC=$CC
8791 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8792 test -z "$LD" && LD=ld
8793 test -z "$ac_objext" && ac_objext=o
8795 for cc_temp in $compiler""; do
8796 case $cc_temp in
8797 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8798 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8799 \-*) ;;
8800 *) break;;
8801 esac
8802 done
8803 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8806 # Only perform the check for file, if the check method requires it
8807 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8808 case $deplibs_check_method in
8809 file_magic*)
8810 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8812 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8813 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8814 $as_echo_n "(cached) " >&6
8815 else
8816 case $MAGIC_CMD in
8817 [\\/*] | ?:[\\/]*)
8818 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8821 lt_save_MAGIC_CMD="$MAGIC_CMD"
8822 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8823 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8824 for ac_dir in $ac_dummy; do
8825 IFS="$lt_save_ifs"
8826 test -z "$ac_dir" && ac_dir=.
8827 if test -f $ac_dir/${ac_tool_prefix}file; then
8828 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8829 if test -n "$file_magic_test_file"; then
8830 case $deplibs_check_method in
8831 "file_magic "*)
8832 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8833 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8834 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8835 $EGREP "$file_magic_regex" > /dev/null; then
8837 else
8838 cat <<_LT_EOF 1>&2
8840 *** Warning: the command libtool uses to detect shared libraries,
8841 *** $file_magic_cmd, produces output that libtool cannot recognize.
8842 *** The result is that libtool may fail to recognize shared libraries
8843 *** as such. This will affect the creation of libtool libraries that
8844 *** depend on shared libraries, but programs linked with such libtool
8845 *** libraries will work regardless of this problem. Nevertheless, you
8846 *** may want to report the problem to your system manager and/or to
8847 *** bug-libtool@gnu.org
8849 _LT_EOF
8850 fi ;;
8851 esac
8853 break
8855 done
8856 IFS="$lt_save_ifs"
8857 MAGIC_CMD="$lt_save_MAGIC_CMD"
8859 esac
8862 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8863 if test -n "$MAGIC_CMD"; then
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8865 $as_echo "$MAGIC_CMD" >&6; }
8866 else
8867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8868 $as_echo "no" >&6; }
8875 if test -z "$lt_cv_path_MAGIC_CMD"; then
8876 if test -n "$ac_tool_prefix"; then
8877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8878 $as_echo_n "checking for file... " >&6; }
8879 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8880 $as_echo_n "(cached) " >&6
8881 else
8882 case $MAGIC_CMD in
8883 [\\/*] | ?:[\\/]*)
8884 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8887 lt_save_MAGIC_CMD="$MAGIC_CMD"
8888 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8889 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8890 for ac_dir in $ac_dummy; do
8891 IFS="$lt_save_ifs"
8892 test -z "$ac_dir" && ac_dir=.
8893 if test -f $ac_dir/file; then
8894 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8895 if test -n "$file_magic_test_file"; then
8896 case $deplibs_check_method in
8897 "file_magic "*)
8898 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8899 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8900 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8901 $EGREP "$file_magic_regex" > /dev/null; then
8903 else
8904 cat <<_LT_EOF 1>&2
8906 *** Warning: the command libtool uses to detect shared libraries,
8907 *** $file_magic_cmd, produces output that libtool cannot recognize.
8908 *** The result is that libtool may fail to recognize shared libraries
8909 *** as such. This will affect the creation of libtool libraries that
8910 *** depend on shared libraries, but programs linked with such libtool
8911 *** libraries will work regardless of this problem. Nevertheless, you
8912 *** may want to report the problem to your system manager and/or to
8913 *** bug-libtool@gnu.org
8915 _LT_EOF
8916 fi ;;
8917 esac
8919 break
8921 done
8922 IFS="$lt_save_ifs"
8923 MAGIC_CMD="$lt_save_MAGIC_CMD"
8925 esac
8928 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8929 if test -n "$MAGIC_CMD"; then
8930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8931 $as_echo "$MAGIC_CMD" >&6; }
8932 else
8933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8934 $as_echo "no" >&6; }
8938 else
8939 MAGIC_CMD=:
8945 esac
8947 # Use C for the default configuration in the libtool script
8949 lt_save_CC="$CC"
8950 ac_ext=c
8951 ac_cpp='$CPP $CPPFLAGS'
8952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8957 # Source file extension for C test sources.
8958 ac_ext=c
8960 # Object file extension for compiled C test sources.
8961 objext=o
8962 objext=$objext
8964 # Code to be used in simple compile tests
8965 lt_simple_compile_test_code="int some_variable = 0;"
8967 # Code to be used in simple link tests
8968 lt_simple_link_test_code='int main(){return(0);}'
8976 # If no C compiler was specified, use CC.
8977 LTCC=${LTCC-"$CC"}
8979 # If no C compiler flags were specified, use CFLAGS.
8980 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8982 # Allow CC to be a program name with arguments.
8983 compiler=$CC
8985 # Save the default compiler, since it gets overwritten when the other
8986 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8987 compiler_DEFAULT=$CC
8989 # save warnings/boilerplate of simple test code
8990 ac_outfile=conftest.$ac_objext
8991 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8992 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8993 _lt_compiler_boilerplate=`cat conftest.err`
8994 $RM conftest*
8996 ac_outfile=conftest.$ac_objext
8997 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8998 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8999 _lt_linker_boilerplate=`cat conftest.err`
9000 $RM -r conftest*
9003 ## CAVEAT EMPTOR:
9004 ## There is no encapsulation within the following macros, do not change
9005 ## the running order or otherwise move them around unless you know exactly
9006 ## what you are doing...
9007 if test -n "$compiler"; then
9009 lt_prog_compiler_no_builtin_flag=
9011 if test "$GCC" = yes; then
9012 case $cc_basename in
9013 nvcc*)
9014 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9016 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9017 esac
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9020 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9021 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9022 $as_echo_n "(cached) " >&6
9023 else
9024 lt_cv_prog_compiler_rtti_exceptions=no
9025 ac_outfile=conftest.$ac_objext
9026 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9027 lt_compiler_flag="-fno-rtti -fno-exceptions"
9028 # Insert the option either (1) after the last *FLAGS variable, or
9029 # (2) before a word containing "conftest.", or (3) at the end.
9030 # Note that $ac_compile itself does not contain backslashes and begins
9031 # with a dollar sign (not a hyphen), so the echo should work correctly.
9032 # The option is referenced via a variable to avoid confusing sed.
9033 lt_compile=`echo "$ac_compile" | $SED \
9034 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9035 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9036 -e 's:$: $lt_compiler_flag:'`
9037 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9038 (eval "$lt_compile" 2>conftest.err)
9039 ac_status=$?
9040 cat conftest.err >&5
9041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9042 if (exit $ac_status) && test -s "$ac_outfile"; then
9043 # The compiler can only warn and ignore the option if not recognized
9044 # So say no if there are warnings other than the usual output.
9045 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9046 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9047 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9048 lt_cv_prog_compiler_rtti_exceptions=yes
9051 $RM conftest*
9054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9055 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9057 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9058 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9059 else
9070 lt_prog_compiler_wl=
9071 lt_prog_compiler_pic=
9072 lt_prog_compiler_static=
9074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9075 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9077 if test "$GCC" = yes; then
9078 lt_prog_compiler_wl='-Wl,'
9079 lt_prog_compiler_static='-static'
9081 case $host_os in
9082 aix*)
9083 # All AIX code is PIC.
9084 if test "$host_cpu" = ia64; then
9085 # AIX 5 now supports IA64 processor
9086 lt_prog_compiler_static='-Bstatic'
9088 lt_prog_compiler_pic='-fPIC'
9091 amigaos*)
9092 case $host_cpu in
9093 powerpc)
9094 # see comment about AmigaOS4 .so support
9095 lt_prog_compiler_pic='-fPIC'
9097 m68k)
9098 # FIXME: we need at least 68020 code to build shared libraries, but
9099 # adding the `-m68020' flag to GCC prevents building anything better,
9100 # like `-m68040'.
9101 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9103 esac
9106 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9107 # PIC is the default for these OSes.
9110 mingw* | cygwin* | pw32* | os2* | cegcc*)
9111 # This hack is so that the source file can tell whether it is being
9112 # built for inclusion in a dll (and should export symbols for example).
9113 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9114 # (--disable-auto-import) libraries
9115 lt_prog_compiler_pic='-DDLL_EXPORT'
9118 darwin* | rhapsody*)
9119 # PIC is the default on this platform
9120 # Common symbols not allowed in MH_DYLIB files
9121 lt_prog_compiler_pic='-fno-common'
9124 haiku*)
9125 # PIC is the default for Haiku.
9126 # The "-static" flag exists, but is broken.
9127 lt_prog_compiler_static=
9130 hpux*)
9131 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9132 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9133 # sets the default TLS model and affects inlining.
9134 case $host_cpu in
9135 hppa*64*)
9136 # +Z the default
9139 lt_prog_compiler_pic='-fPIC'
9141 esac
9144 interix[3-9]*)
9145 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9146 # Instead, we relocate shared libraries at runtime.
9149 msdosdjgpp*)
9150 # Just because we use GCC doesn't mean we suddenly get shared libraries
9151 # on systems that don't support them.
9152 lt_prog_compiler_can_build_shared=no
9153 enable_shared=no
9156 *nto* | *qnx*)
9157 # QNX uses GNU C++, but need to define -shared option too, otherwise
9158 # it will coredump.
9159 lt_prog_compiler_pic='-fPIC -shared'
9162 sysv4*MP*)
9163 if test -d /usr/nec; then
9164 lt_prog_compiler_pic=-Kconform_pic
9169 lt_prog_compiler_pic='-fPIC'
9171 esac
9173 case $cc_basename in
9174 nvcc*) # Cuda Compiler Driver 2.2
9175 lt_prog_compiler_wl='-Xlinker '
9176 lt_prog_compiler_pic='-Xcompiler -fPIC'
9178 esac
9179 else
9180 # PORTME Check for flag to pass linker flags through the system compiler.
9181 case $host_os in
9182 aix*)
9183 lt_prog_compiler_wl='-Wl,'
9184 if test "$host_cpu" = ia64; then
9185 # AIX 5 now supports IA64 processor
9186 lt_prog_compiler_static='-Bstatic'
9187 else
9188 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9192 mingw* | cygwin* | pw32* | os2* | cegcc*)
9193 # This hack is so that the source file can tell whether it is being
9194 # built for inclusion in a dll (and should export symbols for example).
9195 lt_prog_compiler_pic='-DDLL_EXPORT'
9198 hpux9* | hpux10* | hpux11*)
9199 lt_prog_compiler_wl='-Wl,'
9200 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9201 # not for PA HP-UX.
9202 case $host_cpu in
9203 hppa*64*|ia64*)
9204 # +Z the default
9207 lt_prog_compiler_pic='+Z'
9209 esac
9210 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9211 lt_prog_compiler_static='${wl}-a ${wl}archive'
9214 irix5* | irix6* | nonstopux*)
9215 lt_prog_compiler_wl='-Wl,'
9216 # PIC (with -KPIC) is the default.
9217 lt_prog_compiler_static='-non_shared'
9220 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9221 case $cc_basename in
9222 # old Intel for x86_64 which still supported -KPIC.
9223 ecc*)
9224 lt_prog_compiler_wl='-Wl,'
9225 lt_prog_compiler_pic='-KPIC'
9226 lt_prog_compiler_static='-static'
9228 # icc used to be incompatible with GCC.
9229 # ICC 10 doesn't accept -KPIC any more.
9230 icc* | ifort*)
9231 lt_prog_compiler_wl='-Wl,'
9232 lt_prog_compiler_pic='-fPIC'
9233 lt_prog_compiler_static='-static'
9235 # Lahey Fortran 8.1.
9236 lf95*)
9237 lt_prog_compiler_wl='-Wl,'
9238 lt_prog_compiler_pic='--shared'
9239 lt_prog_compiler_static='--static'
9241 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9242 # Portland Group compilers (*not* the Pentium gcc compiler,
9243 # which looks to be a dead project)
9244 lt_prog_compiler_wl='-Wl,'
9245 lt_prog_compiler_pic='-fpic'
9246 lt_prog_compiler_static='-Bstatic'
9248 ccc*)
9249 lt_prog_compiler_wl='-Wl,'
9250 # All Alpha code is PIC.
9251 lt_prog_compiler_static='-non_shared'
9253 xl* | bgxl* | bgf* | mpixl*)
9254 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9255 lt_prog_compiler_wl='-Wl,'
9256 lt_prog_compiler_pic='-qpic'
9257 lt_prog_compiler_static='-qstaticlink'
9260 case `$CC -V 2>&1 | sed 5q` in
9261 *Sun\ F* | *Sun*Fortran*)
9262 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9263 lt_prog_compiler_pic='-KPIC'
9264 lt_prog_compiler_static='-Bstatic'
9265 lt_prog_compiler_wl=''
9267 *Sun\ C*)
9268 # Sun C 5.9
9269 lt_prog_compiler_pic='-KPIC'
9270 lt_prog_compiler_static='-Bstatic'
9271 lt_prog_compiler_wl='-Wl,'
9273 esac
9275 esac
9278 newsos6)
9279 lt_prog_compiler_pic='-KPIC'
9280 lt_prog_compiler_static='-Bstatic'
9283 *nto* | *qnx*)
9284 # QNX uses GNU C++, but need to define -shared option too, otherwise
9285 # it will coredump.
9286 lt_prog_compiler_pic='-fPIC -shared'
9289 osf3* | osf4* | osf5*)
9290 lt_prog_compiler_wl='-Wl,'
9291 # All OSF/1 code is PIC.
9292 lt_prog_compiler_static='-non_shared'
9295 rdos*)
9296 lt_prog_compiler_static='-non_shared'
9299 solaris*)
9300 lt_prog_compiler_pic='-KPIC'
9301 lt_prog_compiler_static='-Bstatic'
9302 case $cc_basename in
9303 f77* | f90* | f95*)
9304 lt_prog_compiler_wl='-Qoption ld ';;
9306 lt_prog_compiler_wl='-Wl,';;
9307 esac
9310 sunos4*)
9311 lt_prog_compiler_wl='-Qoption ld '
9312 lt_prog_compiler_pic='-PIC'
9313 lt_prog_compiler_static='-Bstatic'
9316 sysv4 | sysv4.2uw2* | sysv4.3*)
9317 lt_prog_compiler_wl='-Wl,'
9318 lt_prog_compiler_pic='-KPIC'
9319 lt_prog_compiler_static='-Bstatic'
9322 sysv4*MP*)
9323 if test -d /usr/nec ;then
9324 lt_prog_compiler_pic='-Kconform_pic'
9325 lt_prog_compiler_static='-Bstatic'
9329 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9330 lt_prog_compiler_wl='-Wl,'
9331 lt_prog_compiler_pic='-KPIC'
9332 lt_prog_compiler_static='-Bstatic'
9335 unicos*)
9336 lt_prog_compiler_wl='-Wl,'
9337 lt_prog_compiler_can_build_shared=no
9340 uts4*)
9341 lt_prog_compiler_pic='-pic'
9342 lt_prog_compiler_static='-Bstatic'
9346 lt_prog_compiler_can_build_shared=no
9348 esac
9351 case $host_os in
9352 # For platforms which do not support PIC, -DPIC is meaningless:
9353 *djgpp*)
9354 lt_prog_compiler_pic=
9357 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9359 esac
9360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9361 $as_echo "$lt_prog_compiler_pic" >&6; }
9369 # Check to make sure the PIC flag actually works.
9371 if test -n "$lt_prog_compiler_pic"; then
9372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9373 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9374 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9375 $as_echo_n "(cached) " >&6
9376 else
9377 lt_cv_prog_compiler_pic_works=no
9378 ac_outfile=conftest.$ac_objext
9379 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9380 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9381 # Insert the option either (1) after the last *FLAGS variable, or
9382 # (2) before a word containing "conftest.", or (3) at the end.
9383 # Note that $ac_compile itself does not contain backslashes and begins
9384 # with a dollar sign (not a hyphen), so the echo should work correctly.
9385 # The option is referenced via a variable to avoid confusing sed.
9386 lt_compile=`echo "$ac_compile" | $SED \
9387 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9388 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9389 -e 's:$: $lt_compiler_flag:'`
9390 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9391 (eval "$lt_compile" 2>conftest.err)
9392 ac_status=$?
9393 cat conftest.err >&5
9394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9395 if (exit $ac_status) && test -s "$ac_outfile"; then
9396 # The compiler can only warn and ignore the option if not recognized
9397 # So say no if there are warnings other than the usual output.
9398 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9399 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9400 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9401 lt_cv_prog_compiler_pic_works=yes
9404 $RM conftest*
9407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9408 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9410 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9411 case $lt_prog_compiler_pic in
9412 "" | " "*) ;;
9413 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9414 esac
9415 else
9416 lt_prog_compiler_pic=
9417 lt_prog_compiler_can_build_shared=no
9428 # Check to make sure the static flag actually works.
9430 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9432 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9433 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9434 $as_echo_n "(cached) " >&6
9435 else
9436 lt_cv_prog_compiler_static_works=no
9437 save_LDFLAGS="$LDFLAGS"
9438 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9439 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9440 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9441 # The linker can only warn and ignore the option if not recognized
9442 # So say no if there are warnings
9443 if test -s conftest.err; then
9444 # Append any errors to the config.log.
9445 cat conftest.err 1>&5
9446 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9447 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9448 if diff conftest.exp conftest.er2 >/dev/null; then
9449 lt_cv_prog_compiler_static_works=yes
9451 else
9452 lt_cv_prog_compiler_static_works=yes
9455 $RM -r conftest*
9456 LDFLAGS="$save_LDFLAGS"
9459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9460 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9462 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9464 else
9465 lt_prog_compiler_static=
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9475 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9476 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9477 $as_echo_n "(cached) " >&6
9478 else
9479 lt_cv_prog_compiler_c_o=no
9480 $RM -r conftest 2>/dev/null
9481 mkdir conftest
9482 cd conftest
9483 mkdir out
9484 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9486 lt_compiler_flag="-o out/conftest2.$ac_objext"
9487 # Insert the option either (1) after the last *FLAGS variable, or
9488 # (2) before a word containing "conftest.", or (3) at the end.
9489 # Note that $ac_compile itself does not contain backslashes and begins
9490 # with a dollar sign (not a hyphen), so the echo should work correctly.
9491 lt_compile=`echo "$ac_compile" | $SED \
9492 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9493 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9494 -e 's:$: $lt_compiler_flag:'`
9495 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9496 (eval "$lt_compile" 2>out/conftest.err)
9497 ac_status=$?
9498 cat out/conftest.err >&5
9499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9500 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9501 then
9502 # The compiler can only warn and ignore the option if not recognized
9503 # So say no if there are warnings
9504 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9505 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9506 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9507 lt_cv_prog_compiler_c_o=yes
9510 chmod u+w . 2>&5
9511 $RM conftest*
9512 # SGI C++ compiler will create directory out/ii_files/ for
9513 # template instantiation
9514 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9515 $RM out/* && rmdir out
9516 cd ..
9517 $RM -r conftest
9518 $RM conftest*
9521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9522 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9530 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9531 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9532 $as_echo_n "(cached) " >&6
9533 else
9534 lt_cv_prog_compiler_c_o=no
9535 $RM -r conftest 2>/dev/null
9536 mkdir conftest
9537 cd conftest
9538 mkdir out
9539 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9541 lt_compiler_flag="-o out/conftest2.$ac_objext"
9542 # Insert the option either (1) after the last *FLAGS variable, or
9543 # (2) before a word containing "conftest.", or (3) at the end.
9544 # Note that $ac_compile itself does not contain backslashes and begins
9545 # with a dollar sign (not a hyphen), so the echo should work correctly.
9546 lt_compile=`echo "$ac_compile" | $SED \
9547 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9548 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9549 -e 's:$: $lt_compiler_flag:'`
9550 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9551 (eval "$lt_compile" 2>out/conftest.err)
9552 ac_status=$?
9553 cat out/conftest.err >&5
9554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9555 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9556 then
9557 # The compiler can only warn and ignore the option if not recognized
9558 # So say no if there are warnings
9559 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9560 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9561 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9562 lt_cv_prog_compiler_c_o=yes
9565 chmod u+w . 2>&5
9566 $RM conftest*
9567 # SGI C++ compiler will create directory out/ii_files/ for
9568 # template instantiation
9569 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9570 $RM out/* && rmdir out
9571 cd ..
9572 $RM -r conftest
9573 $RM conftest*
9576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9577 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9582 hard_links="nottested"
9583 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9584 # do not overwrite the value of need_locks provided by the user
9585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9586 $as_echo_n "checking if we can lock with hard links... " >&6; }
9587 hard_links=yes
9588 $RM conftest*
9589 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9590 touch conftest.a
9591 ln conftest.a conftest.b 2>&5 || hard_links=no
9592 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9594 $as_echo "$hard_links" >&6; }
9595 if test "$hard_links" = no; then
9596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9597 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9598 need_locks=warn
9600 else
9601 need_locks=no
9609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9610 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9612 runpath_var=
9613 allow_undefined_flag=
9614 always_export_symbols=no
9615 archive_cmds=
9616 archive_expsym_cmds=
9617 compiler_needs_object=no
9618 enable_shared_with_static_runtimes=no
9619 export_dynamic_flag_spec=
9620 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9621 hardcode_automatic=no
9622 hardcode_direct=no
9623 hardcode_direct_absolute=no
9624 hardcode_libdir_flag_spec=
9625 hardcode_libdir_flag_spec_ld=
9626 hardcode_libdir_separator=
9627 hardcode_minus_L=no
9628 hardcode_shlibpath_var=unsupported
9629 inherit_rpath=no
9630 link_all_deplibs=unknown
9631 module_cmds=
9632 module_expsym_cmds=
9633 old_archive_from_new_cmds=
9634 old_archive_from_expsyms_cmds=
9635 thread_safe_flag_spec=
9636 whole_archive_flag_spec=
9637 # include_expsyms should be a list of space-separated symbols to be *always*
9638 # included in the symbol list
9639 include_expsyms=
9640 # exclude_expsyms can be an extended regexp of symbols to exclude
9641 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9642 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9643 # as well as any symbol that contains `d'.
9644 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9645 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9646 # platforms (ab)use it in PIC code, but their linkers get confused if
9647 # the symbol is explicitly referenced. Since portable code cannot
9648 # rely on this symbol name, it's probably fine to never include it in
9649 # preloaded symbol tables.
9650 # Exclude shared library initialization/finalization symbols.
9651 extract_expsyms_cmds=
9653 case $host_os in
9654 cygwin* | mingw* | pw32* | cegcc*)
9655 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9656 # When not using gcc, we currently assume that we are using
9657 # Microsoft Visual C++.
9658 if test "$GCC" != yes; then
9659 with_gnu_ld=no
9662 interix*)
9663 # we just hope/assume this is gcc and not c89 (= MSVC++)
9664 with_gnu_ld=yes
9666 openbsd*)
9667 with_gnu_ld=no
9669 esac
9671 ld_shlibs=yes
9673 # On some targets, GNU ld is compatible enough with the native linker
9674 # that we're better off using the native interface for both.
9675 lt_use_gnu_ld_interface=no
9676 if test "$with_gnu_ld" = yes; then
9677 case $host_os in
9678 aix*)
9679 # The AIX port of GNU ld has always aspired to compatibility
9680 # with the native linker. However, as the warning in the GNU ld
9681 # block says, versions before 2.19.5* couldn't really create working
9682 # shared libraries, regardless of the interface used.
9683 case `$LD -v 2>&1` in
9684 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9685 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9686 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9688 lt_use_gnu_ld_interface=yes
9690 esac
9693 lt_use_gnu_ld_interface=yes
9695 esac
9698 if test "$lt_use_gnu_ld_interface" = yes; then
9699 # If archive_cmds runs LD, not CC, wlarc should be empty
9700 wlarc='${wl}'
9702 # Set some defaults for GNU ld with shared library support. These
9703 # are reset later if shared libraries are not supported. Putting them
9704 # here allows them to be overridden if necessary.
9705 runpath_var=LD_RUN_PATH
9706 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9707 export_dynamic_flag_spec='${wl}--export-dynamic'
9708 # ancient GNU ld didn't support --whole-archive et. al.
9709 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9710 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9711 else
9712 whole_archive_flag_spec=
9714 supports_anon_versioning=no
9715 case `$LD -v 2>&1` in
9716 *GNU\ gold*) supports_anon_versioning=yes ;;
9717 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9718 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9719 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9720 *\ 2.11.*) ;; # other 2.11 versions
9721 *) supports_anon_versioning=yes ;;
9722 esac
9724 # See if GNU ld supports shared libraries.
9725 case $host_os in
9726 aix[3-9]*)
9727 # On AIX/PPC, the GNU linker is very broken
9728 if test "$host_cpu" != ia64; then
9729 ld_shlibs=no
9730 cat <<_LT_EOF 1>&2
9732 *** Warning: the GNU linker, at least up to release 2.19, is reported
9733 *** to be unable to reliably create shared libraries on AIX.
9734 *** Therefore, libtool is disabling shared libraries support. If you
9735 *** really care for shared libraries, you may want to install binutils
9736 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9737 *** You will then need to restart the configuration process.
9739 _LT_EOF
9743 amigaos*)
9744 case $host_cpu in
9745 powerpc)
9746 # see comment about AmigaOS4 .so support
9747 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9748 archive_expsym_cmds=''
9750 m68k)
9751 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)'
9752 hardcode_libdir_flag_spec='-L$libdir'
9753 hardcode_minus_L=yes
9755 esac
9758 beos*)
9759 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9760 allow_undefined_flag=unsupported
9761 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9762 # support --undefined. This deserves some investigation. FIXME
9763 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9764 else
9765 ld_shlibs=no
9769 cygwin* | mingw* | pw32* | cegcc*)
9770 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9771 # as there is no search path for DLLs.
9772 hardcode_libdir_flag_spec='-L$libdir'
9773 export_dynamic_flag_spec='${wl}--export-all-symbols'
9774 allow_undefined_flag=unsupported
9775 always_export_symbols=no
9776 enable_shared_with_static_runtimes=yes
9777 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9779 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9780 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9781 # If the export-symbols file already is a .def file (1st line
9782 # is EXPORTS), use it as is; otherwise, prepend...
9783 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9784 cp $export_symbols $output_objdir/$soname.def;
9785 else
9786 echo EXPORTS > $output_objdir/$soname.def;
9787 cat $export_symbols >> $output_objdir/$soname.def;
9789 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9790 else
9791 ld_shlibs=no
9795 haiku*)
9796 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9797 link_all_deplibs=yes
9800 interix[3-9]*)
9801 hardcode_direct=no
9802 hardcode_shlibpath_var=no
9803 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9804 export_dynamic_flag_spec='${wl}-E'
9805 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9806 # Instead, shared libraries are loaded at an image base (0x10000000 by
9807 # default) and relocated if they conflict, which is a slow very memory
9808 # consuming and fragmenting process. To avoid this, we pick a random,
9809 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9810 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9811 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9812 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'
9815 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9816 tmp_diet=no
9817 if test "$host_os" = linux-dietlibc; then
9818 case $cc_basename in
9819 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9820 esac
9822 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9823 && test "$tmp_diet" = no
9824 then
9825 tmp_addflag=' $pic_flag'
9826 tmp_sharedflag='-shared'
9827 case $cc_basename,$host_cpu in
9828 pgcc*) # Portland Group C compiler
9829 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'
9830 tmp_addflag=' $pic_flag'
9832 pgf77* | pgf90* | pgf95* | pgfortran*)
9833 # Portland Group f77 and f90 compilers
9834 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'
9835 tmp_addflag=' $pic_flag -Mnomain' ;;
9836 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9837 tmp_addflag=' -i_dynamic' ;;
9838 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9839 tmp_addflag=' -i_dynamic -nofor_main' ;;
9840 ifc* | ifort*) # Intel Fortran compiler
9841 tmp_addflag=' -nofor_main' ;;
9842 lf95*) # Lahey Fortran 8.1
9843 whole_archive_flag_spec=
9844 tmp_sharedflag='--shared' ;;
9845 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9846 tmp_sharedflag='-qmkshrobj'
9847 tmp_addflag= ;;
9848 nvcc*) # Cuda Compiler Driver 2.2
9849 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'
9850 compiler_needs_object=yes
9852 esac
9853 case `$CC -V 2>&1 | sed 5q` in
9854 *Sun\ C*) # Sun C 5.9
9855 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'
9856 compiler_needs_object=yes
9857 tmp_sharedflag='-G' ;;
9858 *Sun\ F*) # Sun Fortran 8.3
9859 tmp_sharedflag='-G' ;;
9860 esac
9861 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9863 if test "x$supports_anon_versioning" = xyes; then
9864 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9865 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9866 echo "local: *; };" >> $output_objdir/$libname.ver~
9867 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9870 case $cc_basename in
9871 xlf* | bgf* | bgxlf* | mpixlf*)
9872 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9873 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9874 hardcode_libdir_flag_spec=
9875 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9876 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9877 if test "x$supports_anon_versioning" = xyes; then
9878 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9879 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9880 echo "local: *; };" >> $output_objdir/$libname.ver~
9881 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9884 esac
9885 else
9886 ld_shlibs=no
9890 netbsd*)
9891 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9892 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9893 wlarc=
9894 else
9895 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9896 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9900 solaris*)
9901 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9902 ld_shlibs=no
9903 cat <<_LT_EOF 1>&2
9905 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9906 *** create shared libraries on Solaris systems. Therefore, libtool
9907 *** is disabling shared libraries support. We urge you to upgrade GNU
9908 *** binutils to release 2.9.1 or newer. Another option is to modify
9909 *** your PATH or compiler configuration so that the native linker is
9910 *** used, and then restart.
9912 _LT_EOF
9913 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9914 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9915 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9916 else
9917 ld_shlibs=no
9921 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9922 case `$LD -v 2>&1` in
9923 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9924 ld_shlibs=no
9925 cat <<_LT_EOF 1>&2
9927 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9928 *** reliably create shared libraries on SCO systems. Therefore, libtool
9929 *** is disabling shared libraries support. We urge you to upgrade GNU
9930 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9931 *** your PATH or compiler configuration so that the native linker is
9932 *** used, and then restart.
9934 _LT_EOF
9937 # For security reasons, it is highly recommended that you always
9938 # use absolute paths for naming shared libraries, and exclude the
9939 # DT_RUNPATH tag from executables and libraries. But doing so
9940 # requires that you compile everything twice, which is a pain.
9941 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9942 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9943 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9944 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9945 else
9946 ld_shlibs=no
9949 esac
9952 sunos4*)
9953 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9954 wlarc=
9955 hardcode_direct=yes
9956 hardcode_shlibpath_var=no
9960 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9961 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9962 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9963 else
9964 ld_shlibs=no
9967 esac
9969 if test "$ld_shlibs" = no; then
9970 runpath_var=
9971 hardcode_libdir_flag_spec=
9972 export_dynamic_flag_spec=
9973 whole_archive_flag_spec=
9975 else
9976 # PORTME fill in a description of your system's linker (not GNU ld)
9977 case $host_os in
9978 aix3*)
9979 allow_undefined_flag=unsupported
9980 always_export_symbols=yes
9981 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'
9982 # Note: this linker hardcodes the directories in LIBPATH if there
9983 # are no directories specified by -L.
9984 hardcode_minus_L=yes
9985 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9986 # Neither direct hardcoding nor static linking is supported with a
9987 # broken collect2.
9988 hardcode_direct=unsupported
9992 aix[4-9]*)
9993 if test "$host_cpu" = ia64; then
9994 # On IA64, the linker does run time linking by default, so we don't
9995 # have to do anything special.
9996 aix_use_runtimelinking=no
9997 exp_sym_flag='-Bexport'
9998 no_entry_flag=""
9999 else
10000 # If we're using GNU nm, then we don't want the "-C" option.
10001 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10002 # Also, AIX nm treats weak defined symbols like other global
10003 # defined symbols, whereas GNU nm marks them as "W".
10004 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10005 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'
10006 else
10007 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10009 aix_use_runtimelinking=no
10011 # Test if we are trying to use run time linking or normal
10012 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10013 # need to do runtime linking.
10014 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10015 for ld_flag in $LDFLAGS; do
10016 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10017 aix_use_runtimelinking=yes
10018 break
10020 done
10022 esac
10024 exp_sym_flag='-bexport'
10025 no_entry_flag='-bnoentry'
10028 # When large executables or shared objects are built, AIX ld can
10029 # have problems creating the table of contents. If linking a library
10030 # or program results in "error TOC overflow" add -mminimal-toc to
10031 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10032 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10034 archive_cmds=''
10035 hardcode_direct=yes
10036 hardcode_direct_absolute=yes
10037 hardcode_libdir_separator=':'
10038 link_all_deplibs=yes
10039 file_list_spec='${wl}-f,'
10041 if test "$GCC" = yes; then
10042 case $host_os in aix4.[012]|aix4.[012].*)
10043 # We only want to do this on AIX 4.2 and lower, the check
10044 # below for broken collect2 doesn't work under 4.3+
10045 collect2name=`${CC} -print-prog-name=collect2`
10046 if test -f "$collect2name" &&
10047 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10048 then
10049 # We have reworked collect2
10051 else
10052 # We have old collect2
10053 hardcode_direct=unsupported
10054 # It fails to find uninstalled libraries when the uninstalled
10055 # path is not listed in the libpath. Setting hardcode_minus_L
10056 # to unsupported forces relinking
10057 hardcode_minus_L=yes
10058 hardcode_libdir_flag_spec='-L$libdir'
10059 hardcode_libdir_separator=
10062 esac
10063 shared_flag='-shared'
10064 if test "$aix_use_runtimelinking" = yes; then
10065 shared_flag="$shared_flag "'${wl}-G'
10067 else
10068 # not using gcc
10069 if test "$host_cpu" = ia64; then
10070 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10071 # chokes on -Wl,-G. The following line is correct:
10072 shared_flag='-G'
10073 else
10074 if test "$aix_use_runtimelinking" = yes; then
10075 shared_flag='${wl}-G'
10076 else
10077 shared_flag='${wl}-bM:SRE'
10082 export_dynamic_flag_spec='${wl}-bexpall'
10083 # It seems that -bexpall does not export symbols beginning with
10084 # underscore (_), so it is better to generate a list of symbols to export.
10085 always_export_symbols=yes
10086 if test "$aix_use_runtimelinking" = yes; then
10087 # Warning - without using the other runtime loading flags (-brtl),
10088 # -berok will link without error, but may produce a broken library.
10089 allow_undefined_flag='-berok'
10090 # Determine the default libpath from the value encoded in an
10091 # empty executable.
10092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10093 /* end confdefs.h. */
10096 main ()
10100 return 0;
10102 _ACEOF
10103 if ac_fn_c_try_link "$LINENO"; then :
10105 lt_aix_libpath_sed='
10106 /Import File Strings/,/^$/ {
10107 /^0/ {
10108 s/^0 *\(.*\)$/\1/
10112 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10113 # Check for a 64-bit object if we didn't find anything.
10114 if test -z "$aix_libpath"; then
10115 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10118 rm -f core conftest.err conftest.$ac_objext \
10119 conftest$ac_exeext conftest.$ac_ext
10120 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10122 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10123 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"
10124 else
10125 if test "$host_cpu" = ia64; then
10126 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10127 allow_undefined_flag="-z nodefs"
10128 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"
10129 else
10130 # Determine the default libpath from the value encoded in an
10131 # empty executable.
10132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10133 /* end confdefs.h. */
10136 main ()
10140 return 0;
10142 _ACEOF
10143 if ac_fn_c_try_link "$LINENO"; then :
10145 lt_aix_libpath_sed='
10146 /Import File Strings/,/^$/ {
10147 /^0/ {
10148 s/^0 *\(.*\)$/\1/
10152 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10153 # Check for a 64-bit object if we didn't find anything.
10154 if test -z "$aix_libpath"; then
10155 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10158 rm -f core conftest.err conftest.$ac_objext \
10159 conftest$ac_exeext conftest.$ac_ext
10160 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10162 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10163 # Warning - without using the other run time loading flags,
10164 # -berok will link without error, but may produce a broken library.
10165 no_undefined_flag=' ${wl}-bernotok'
10166 allow_undefined_flag=' ${wl}-berok'
10167 if test "$with_gnu_ld" = yes; then
10168 # We only use this code for GNU lds that support --whole-archive.
10169 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10170 else
10171 # Exported symbols can be pulled into shared objects from archives
10172 whole_archive_flag_spec='$convenience'
10174 archive_cmds_need_lc=yes
10175 # This is similar to how AIX traditionally builds its shared libraries.
10176 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'
10181 amigaos*)
10182 case $host_cpu in
10183 powerpc)
10184 # see comment about AmigaOS4 .so support
10185 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10186 archive_expsym_cmds=''
10188 m68k)
10189 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)'
10190 hardcode_libdir_flag_spec='-L$libdir'
10191 hardcode_minus_L=yes
10193 esac
10196 bsdi[45]*)
10197 export_dynamic_flag_spec=-rdynamic
10200 cygwin* | mingw* | pw32* | cegcc*)
10201 # When not using gcc, we currently assume that we are using
10202 # Microsoft Visual C++.
10203 # hardcode_libdir_flag_spec is actually meaningless, as there is
10204 # no search path for DLLs.
10205 hardcode_libdir_flag_spec=' '
10206 allow_undefined_flag=unsupported
10207 # Tell ltmain to make .lib files, not .a files.
10208 libext=lib
10209 # Tell ltmain to make .dll files, not .so files.
10210 shrext_cmds=".dll"
10211 # FIXME: Setting linknames here is a bad hack.
10212 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10213 # The linker will automatically build a .lib file if we build a DLL.
10214 old_archive_from_new_cmds='true'
10215 # FIXME: Should let the user specify the lib program.
10216 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10217 fix_srcfile_path='`cygpath -w "$srcfile"`'
10218 enable_shared_with_static_runtimes=yes
10221 darwin* | rhapsody*)
10224 archive_cmds_need_lc=no
10225 hardcode_direct=no
10226 hardcode_automatic=yes
10227 hardcode_shlibpath_var=unsupported
10228 if test "$lt_cv_ld_force_load" = "yes"; then
10229 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\"`'
10230 else
10231 whole_archive_flag_spec=''
10233 link_all_deplibs=yes
10234 allow_undefined_flag="$_lt_dar_allow_undefined"
10235 case $cc_basename in
10236 ifort*) _lt_dar_can_shared=yes ;;
10237 *) _lt_dar_can_shared=$GCC ;;
10238 esac
10239 if test "$_lt_dar_can_shared" = "yes"; then
10240 output_verbose_link_cmd=func_echo_all
10241 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10242 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10243 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}"
10244 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}"
10246 else
10247 ld_shlibs=no
10252 dgux*)
10253 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10254 hardcode_libdir_flag_spec='-L$libdir'
10255 hardcode_shlibpath_var=no
10258 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10259 # support. Future versions do this automatically, but an explicit c++rt0.o
10260 # does not break anything, and helps significantly (at the cost of a little
10261 # extra space).
10262 freebsd2.2*)
10263 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10264 hardcode_libdir_flag_spec='-R$libdir'
10265 hardcode_direct=yes
10266 hardcode_shlibpath_var=no
10269 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10270 freebsd2.*)
10271 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10272 hardcode_direct=yes
10273 hardcode_minus_L=yes
10274 hardcode_shlibpath_var=no
10277 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10278 freebsd* | dragonfly*)
10279 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10280 hardcode_libdir_flag_spec='-R$libdir'
10281 hardcode_direct=yes
10282 hardcode_shlibpath_var=no
10285 hpux9*)
10286 if test "$GCC" = yes; then
10287 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'
10288 else
10289 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'
10291 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10292 hardcode_libdir_separator=:
10293 hardcode_direct=yes
10295 # hardcode_minus_L: Not really in the search PATH,
10296 # but as the default location of the library.
10297 hardcode_minus_L=yes
10298 export_dynamic_flag_spec='${wl}-E'
10301 hpux10*)
10302 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10303 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10304 else
10305 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10307 if test "$with_gnu_ld" = no; then
10308 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10309 hardcode_libdir_flag_spec_ld='+b $libdir'
10310 hardcode_libdir_separator=:
10311 hardcode_direct=yes
10312 hardcode_direct_absolute=yes
10313 export_dynamic_flag_spec='${wl}-E'
10314 # hardcode_minus_L: Not really in the search PATH,
10315 # but as the default location of the library.
10316 hardcode_minus_L=yes
10320 hpux11*)
10321 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10322 case $host_cpu in
10323 hppa*64*)
10324 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10326 ia64*)
10327 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10330 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10332 esac
10333 else
10334 case $host_cpu in
10335 hppa*64*)
10336 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10338 ia64*)
10339 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10343 # Older versions of the 11.00 compiler do not understand -b yet
10344 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10346 $as_echo_n "checking if $CC understands -b... " >&6; }
10347 if test "${lt_cv_prog_compiler__b+set}" = set; then :
10348 $as_echo_n "(cached) " >&6
10349 else
10350 lt_cv_prog_compiler__b=no
10351 save_LDFLAGS="$LDFLAGS"
10352 LDFLAGS="$LDFLAGS -b"
10353 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10354 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10355 # The linker can only warn and ignore the option if not recognized
10356 # So say no if there are warnings
10357 if test -s conftest.err; then
10358 # Append any errors to the config.log.
10359 cat conftest.err 1>&5
10360 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10361 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10362 if diff conftest.exp conftest.er2 >/dev/null; then
10363 lt_cv_prog_compiler__b=yes
10365 else
10366 lt_cv_prog_compiler__b=yes
10369 $RM -r conftest*
10370 LDFLAGS="$save_LDFLAGS"
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10374 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10376 if test x"$lt_cv_prog_compiler__b" = xyes; then
10377 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10378 else
10379 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10383 esac
10385 if test "$with_gnu_ld" = no; then
10386 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10387 hardcode_libdir_separator=:
10389 case $host_cpu in
10390 hppa*64*|ia64*)
10391 hardcode_direct=no
10392 hardcode_shlibpath_var=no
10395 hardcode_direct=yes
10396 hardcode_direct_absolute=yes
10397 export_dynamic_flag_spec='${wl}-E'
10399 # hardcode_minus_L: Not really in the search PATH,
10400 # but as the default location of the library.
10401 hardcode_minus_L=yes
10403 esac
10407 irix5* | irix6* | nonstopux*)
10408 if test "$GCC" = yes; then
10409 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'
10410 # Try to use the -exported_symbol ld option, if it does not
10411 # work, assume that -exports_file does not work either and
10412 # implicitly export all symbols.
10413 save_LDFLAGS="$LDFLAGS"
10414 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10416 /* end confdefs.h. */
10417 int foo(void) {}
10418 _ACEOF
10419 if ac_fn_c_try_link "$LINENO"; then :
10420 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'
10423 rm -f core conftest.err conftest.$ac_objext \
10424 conftest$ac_exeext conftest.$ac_ext
10425 LDFLAGS="$save_LDFLAGS"
10426 else
10427 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'
10428 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'
10430 archive_cmds_need_lc='no'
10431 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10432 hardcode_libdir_separator=:
10433 inherit_rpath=yes
10434 link_all_deplibs=yes
10437 netbsd*)
10438 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10439 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10440 else
10441 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10443 hardcode_libdir_flag_spec='-R$libdir'
10444 hardcode_direct=yes
10445 hardcode_shlibpath_var=no
10448 newsos6)
10449 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10450 hardcode_direct=yes
10451 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10452 hardcode_libdir_separator=:
10453 hardcode_shlibpath_var=no
10456 *nto* | *qnx*)
10459 openbsd*)
10460 if test -f /usr/libexec/ld.so; then
10461 hardcode_direct=yes
10462 hardcode_shlibpath_var=no
10463 hardcode_direct_absolute=yes
10464 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10465 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10466 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10467 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10468 export_dynamic_flag_spec='${wl}-E'
10469 else
10470 case $host_os in
10471 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10472 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10473 hardcode_libdir_flag_spec='-R$libdir'
10476 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10477 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10479 esac
10481 else
10482 ld_shlibs=no
10486 os2*)
10487 hardcode_libdir_flag_spec='-L$libdir'
10488 hardcode_minus_L=yes
10489 allow_undefined_flag=unsupported
10490 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'
10491 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10494 osf3*)
10495 if test "$GCC" = yes; then
10496 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10497 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'
10498 else
10499 allow_undefined_flag=' -expect_unresolved \*'
10500 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'
10502 archive_cmds_need_lc='no'
10503 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10504 hardcode_libdir_separator=:
10507 osf4* | osf5*) # as osf3* with the addition of -msym flag
10508 if test "$GCC" = yes; then
10509 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10510 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'
10511 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10512 else
10513 allow_undefined_flag=' -expect_unresolved \*'
10514 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'
10515 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~
10516 $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'
10518 # Both c and cxx compiler support -rpath directly
10519 hardcode_libdir_flag_spec='-rpath $libdir'
10521 archive_cmds_need_lc='no'
10522 hardcode_libdir_separator=:
10525 solaris*)
10526 no_undefined_flag=' -z defs'
10527 if test "$GCC" = yes; then
10528 wlarc='${wl}'
10529 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10530 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10531 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10532 else
10533 case `$CC -V 2>&1` in
10534 *"Compilers 5.0"*)
10535 wlarc=''
10536 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10537 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10538 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10541 wlarc='${wl}'
10542 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10543 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10544 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10546 esac
10548 hardcode_libdir_flag_spec='-R$libdir'
10549 hardcode_shlibpath_var=no
10550 case $host_os in
10551 solaris2.[0-5] | solaris2.[0-5].*) ;;
10553 # The compiler driver will combine and reorder linker options,
10554 # but understands `-z linker_flag'. GCC discards it without `$wl',
10555 # but is careful enough not to reorder.
10556 # Supported since Solaris 2.6 (maybe 2.5.1?)
10557 if test "$GCC" = yes; then
10558 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10559 else
10560 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10563 esac
10564 link_all_deplibs=yes
10567 sunos4*)
10568 if test "x$host_vendor" = xsequent; then
10569 # Use $CC to link under sequent, because it throws in some extra .o
10570 # files that make .init and .fini sections work.
10571 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10572 else
10573 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10575 hardcode_libdir_flag_spec='-L$libdir'
10576 hardcode_direct=yes
10577 hardcode_minus_L=yes
10578 hardcode_shlibpath_var=no
10581 sysv4)
10582 case $host_vendor in
10583 sni)
10584 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10585 hardcode_direct=yes # is this really true???
10587 siemens)
10588 ## LD is ld it makes a PLAMLIB
10589 ## CC just makes a GrossModule.
10590 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10591 reload_cmds='$CC -r -o $output$reload_objs'
10592 hardcode_direct=no
10594 motorola)
10595 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10596 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10598 esac
10599 runpath_var='LD_RUN_PATH'
10600 hardcode_shlibpath_var=no
10603 sysv4.3*)
10604 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10605 hardcode_shlibpath_var=no
10606 export_dynamic_flag_spec='-Bexport'
10609 sysv4*MP*)
10610 if test -d /usr/nec; then
10611 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10612 hardcode_shlibpath_var=no
10613 runpath_var=LD_RUN_PATH
10614 hardcode_runpath_var=yes
10615 ld_shlibs=yes
10619 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10620 no_undefined_flag='${wl}-z,text'
10621 archive_cmds_need_lc=no
10622 hardcode_shlibpath_var=no
10623 runpath_var='LD_RUN_PATH'
10625 if test "$GCC" = yes; then
10626 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10627 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10628 else
10629 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10630 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10634 sysv5* | sco3.2v5* | sco5v6*)
10635 # Note: We can NOT use -z defs as we might desire, because we do not
10636 # link with -lc, and that would cause any symbols used from libc to
10637 # always be unresolved, which means just about no library would
10638 # ever link correctly. If we're not using GNU ld we use -z text
10639 # though, which does catch some bad symbols but isn't as heavy-handed
10640 # as -z defs.
10641 no_undefined_flag='${wl}-z,text'
10642 allow_undefined_flag='${wl}-z,nodefs'
10643 archive_cmds_need_lc=no
10644 hardcode_shlibpath_var=no
10645 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10646 hardcode_libdir_separator=':'
10647 link_all_deplibs=yes
10648 export_dynamic_flag_spec='${wl}-Bexport'
10649 runpath_var='LD_RUN_PATH'
10651 if test "$GCC" = yes; then
10652 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10653 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10654 else
10655 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10656 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10660 uts4*)
10661 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10662 hardcode_libdir_flag_spec='-L$libdir'
10663 hardcode_shlibpath_var=no
10667 ld_shlibs=no
10669 esac
10671 if test x$host_vendor = xsni; then
10672 case $host in
10673 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10674 export_dynamic_flag_spec='${wl}-Blargedynsym'
10676 esac
10680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10681 $as_echo "$ld_shlibs" >&6; }
10682 test "$ld_shlibs" = no && can_build_shared=no
10684 with_gnu_ld=$with_gnu_ld
10701 # Do we need to explicitly link libc?
10703 case "x$archive_cmds_need_lc" in
10704 x|xyes)
10705 # Assume -lc should be added
10706 archive_cmds_need_lc=yes
10708 if test "$enable_shared" = yes && test "$GCC" = yes; then
10709 case $archive_cmds in
10710 *'~'*)
10711 # FIXME: we may have to deal with multi-command sequences.
10713 '$CC '*)
10714 # Test whether the compiler implicitly links with -lc since on some
10715 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10716 # to ld, don't add -lc before -lgcc.
10717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10718 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10719 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10720 $as_echo_n "(cached) " >&6
10721 else
10722 $RM conftest*
10723 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10725 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10726 (eval $ac_compile) 2>&5
10727 ac_status=$?
10728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10729 test $ac_status = 0; } 2>conftest.err; then
10730 soname=conftest
10731 lib=conftest
10732 libobjs=conftest.$ac_objext
10733 deplibs=
10734 wl=$lt_prog_compiler_wl
10735 pic_flag=$lt_prog_compiler_pic
10736 compiler_flags=-v
10737 linker_flags=-v
10738 verstring=
10739 output_objdir=.
10740 libname=conftest
10741 lt_save_allow_undefined_flag=$allow_undefined_flag
10742 allow_undefined_flag=
10743 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10744 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10745 ac_status=$?
10746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10747 test $ac_status = 0; }
10748 then
10749 lt_cv_archive_cmds_need_lc=no
10750 else
10751 lt_cv_archive_cmds_need_lc=yes
10753 allow_undefined_flag=$lt_save_allow_undefined_flag
10754 else
10755 cat conftest.err 1>&5
10757 $RM conftest*
10760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10761 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10762 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10764 esac
10767 esac
10925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10926 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10928 if test "$GCC" = yes; then
10929 case $host_os in
10930 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10931 *) lt_awk_arg="/^libraries:/" ;;
10932 esac
10933 case $host_os in
10934 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10935 *) lt_sed_strip_eq="s,=/,/,g" ;;
10936 esac
10937 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10938 case $lt_search_path_spec in
10939 *\;*)
10940 # if the path contains ";" then we assume it to be the separator
10941 # otherwise default to the standard path separator (i.e. ":") - it is
10942 # assumed that no part of a normal pathname contains ";" but that should
10943 # okay in the real world where ";" in dirpaths is itself problematic.
10944 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10947 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10949 esac
10950 # Ok, now we have the path, separated by spaces, we can step through it
10951 # and add multilib dir if necessary.
10952 lt_tmp_lt_search_path_spec=
10953 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10954 for lt_sys_path in $lt_search_path_spec; do
10955 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10956 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10957 else
10958 test -d "$lt_sys_path" && \
10959 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10961 done
10962 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10963 BEGIN {RS=" "; FS="/|\n";} {
10964 lt_foo="";
10965 lt_count=0;
10966 for (lt_i = NF; lt_i > 0; lt_i--) {
10967 if ($lt_i != "" && $lt_i != ".") {
10968 if ($lt_i == "..") {
10969 lt_count++;
10970 } else {
10971 if (lt_count == 0) {
10972 lt_foo="/" $lt_i lt_foo;
10973 } else {
10974 lt_count--;
10979 if (lt_foo != "") { lt_freq[lt_foo]++; }
10980 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10982 # AWK program above erroneously prepends '/' to C:/dos/paths
10983 # for these hosts.
10984 case $host_os in
10985 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10986 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10987 esac
10988 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10989 else
10990 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10992 library_names_spec=
10993 libname_spec='lib$name'
10994 soname_spec=
10995 shrext_cmds=".so"
10996 postinstall_cmds=
10997 postuninstall_cmds=
10998 finish_cmds=
10999 finish_eval=
11000 shlibpath_var=
11001 shlibpath_overrides_runpath=unknown
11002 version_type=none
11003 dynamic_linker="$host_os ld.so"
11004 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11005 need_lib_prefix=unknown
11006 hardcode_into_libs=no
11008 # when you set need_version to no, make sure it does not cause -set_version
11009 # flags to be left without arguments
11010 need_version=unknown
11012 case $host_os in
11013 aix3*)
11014 version_type=linux
11015 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11016 shlibpath_var=LIBPATH
11018 # AIX 3 has no versioning support, so we append a major version to the name.
11019 soname_spec='${libname}${release}${shared_ext}$major'
11022 aix[4-9]*)
11023 version_type=linux
11024 need_lib_prefix=no
11025 need_version=no
11026 hardcode_into_libs=yes
11027 if test "$host_cpu" = ia64; then
11028 # AIX 5 supports IA64
11029 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11030 shlibpath_var=LD_LIBRARY_PATH
11031 else
11032 # With GCC up to 2.95.x, collect2 would create an import file
11033 # for dependence libraries. The import file would start with
11034 # the line `#! .'. This would cause the generated library to
11035 # depend on `.', always an invalid library. This was fixed in
11036 # development snapshots of GCC prior to 3.0.
11037 case $host_os in
11038 aix4 | aix4.[01] | aix4.[01].*)
11039 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11040 echo ' yes '
11041 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11043 else
11044 can_build_shared=no
11047 esac
11048 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11049 # soname into executable. Probably we can add versioning support to
11050 # collect2, so additional links can be useful in future.
11051 if test "$aix_use_runtimelinking" = yes; then
11052 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11053 # instead of lib<name>.a to let people know that these are not
11054 # typical AIX shared libraries.
11055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11056 else
11057 # We preserve .a as extension for shared libraries through AIX4.2
11058 # and later when we are not doing run time linking.
11059 library_names_spec='${libname}${release}.a $libname.a'
11060 soname_spec='${libname}${release}${shared_ext}$major'
11062 shlibpath_var=LIBPATH
11066 amigaos*)
11067 case $host_cpu in
11068 powerpc)
11069 # Since July 2007 AmigaOS4 officially supports .so libraries.
11070 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11073 m68k)
11074 library_names_spec='$libname.ixlibrary $libname.a'
11075 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11076 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'
11078 esac
11081 beos*)
11082 library_names_spec='${libname}${shared_ext}'
11083 dynamic_linker="$host_os ld.so"
11084 shlibpath_var=LIBRARY_PATH
11087 bsdi[45]*)
11088 version_type=linux
11089 need_version=no
11090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11091 soname_spec='${libname}${release}${shared_ext}$major'
11092 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11093 shlibpath_var=LD_LIBRARY_PATH
11094 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11095 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11096 # the default ld.so.conf also contains /usr/contrib/lib and
11097 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11098 # libtool to hard-code these into programs
11101 cygwin* | mingw* | pw32* | cegcc*)
11102 version_type=windows
11103 shrext_cmds=".dll"
11104 need_version=no
11105 need_lib_prefix=no
11107 case $GCC,$host_os in
11108 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11109 library_names_spec='$libname.dll.a'
11110 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11111 postinstall_cmds='base_file=`basename \${file}`~
11112 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11113 dldir=$destdir/`dirname \$dlpath`~
11114 test -d \$dldir || mkdir -p \$dldir~
11115 $install_prog $dir/$dlname \$dldir/$dlname~
11116 chmod a+x \$dldir/$dlname~
11117 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11118 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11120 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11121 dlpath=$dir/\$dldll~
11122 $RM \$dlpath'
11123 shlibpath_overrides_runpath=yes
11125 case $host_os in
11126 cygwin*)
11127 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11128 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11130 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11132 mingw* | cegcc*)
11133 # MinGW DLLs use traditional 'lib' prefix
11134 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11136 pw32*)
11137 # pw32 DLLs use 'pw' prefix rather than 'lib'
11138 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11140 esac
11144 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11146 esac
11147 dynamic_linker='Win32 ld.exe'
11148 # FIXME: first we should search . and the directory the executable is in
11149 shlibpath_var=PATH
11152 darwin* | rhapsody*)
11153 dynamic_linker="$host_os dyld"
11154 version_type=darwin
11155 need_lib_prefix=no
11156 need_version=no
11157 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11158 soname_spec='${libname}${release}${major}$shared_ext'
11159 shlibpath_overrides_runpath=yes
11160 shlibpath_var=DYLD_LIBRARY_PATH
11161 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11163 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11164 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11167 dgux*)
11168 version_type=linux
11169 need_lib_prefix=no
11170 need_version=no
11171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11172 soname_spec='${libname}${release}${shared_ext}$major'
11173 shlibpath_var=LD_LIBRARY_PATH
11176 freebsd* | dragonfly*)
11177 # DragonFly does not have aout. When/if they implement a new
11178 # versioning mechanism, adjust this.
11179 if test -x /usr/bin/objformat; then
11180 objformat=`/usr/bin/objformat`
11181 else
11182 case $host_os in
11183 freebsd[23].*) objformat=aout ;;
11184 *) objformat=elf ;;
11185 esac
11187 version_type=freebsd-$objformat
11188 case $version_type in
11189 freebsd-elf*)
11190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11191 need_version=no
11192 need_lib_prefix=no
11194 freebsd-*)
11195 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11196 need_version=yes
11198 esac
11199 shlibpath_var=LD_LIBRARY_PATH
11200 case $host_os in
11201 freebsd2.*)
11202 shlibpath_overrides_runpath=yes
11204 freebsd3.[01]* | freebsdelf3.[01]*)
11205 shlibpath_overrides_runpath=yes
11206 hardcode_into_libs=yes
11208 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11209 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11210 shlibpath_overrides_runpath=no
11211 hardcode_into_libs=yes
11213 *) # from 4.6 on, and DragonFly
11214 shlibpath_overrides_runpath=yes
11215 hardcode_into_libs=yes
11217 esac
11220 gnu*)
11221 version_type=linux
11222 need_lib_prefix=no
11223 need_version=no
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=LD_LIBRARY_PATH
11227 hardcode_into_libs=yes
11230 haiku*)
11231 version_type=linux
11232 need_lib_prefix=no
11233 need_version=no
11234 dynamic_linker="$host_os runtime_loader"
11235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11236 soname_spec='${libname}${release}${shared_ext}$major'
11237 shlibpath_var=LIBRARY_PATH
11238 shlibpath_overrides_runpath=yes
11239 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11240 hardcode_into_libs=yes
11243 hpux9* | hpux10* | hpux11*)
11244 # Give a soname corresponding to the major version so that dld.sl refuses to
11245 # link against other versions.
11246 version_type=sunos
11247 need_lib_prefix=no
11248 need_version=no
11249 case $host_cpu in
11250 ia64*)
11251 shrext_cmds='.so'
11252 hardcode_into_libs=yes
11253 dynamic_linker="$host_os dld.so"
11254 shlibpath_var=LD_LIBRARY_PATH
11255 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11257 soname_spec='${libname}${release}${shared_ext}$major'
11258 if test "X$HPUX_IA64_MODE" = X32; then
11259 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11260 else
11261 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11263 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11265 hppa*64*)
11266 shrext_cmds='.sl'
11267 hardcode_into_libs=yes
11268 dynamic_linker="$host_os dld.sl"
11269 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11270 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11272 soname_spec='${libname}${release}${shared_ext}$major'
11273 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11274 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11277 shrext_cmds='.sl'
11278 dynamic_linker="$host_os dld.sl"
11279 shlibpath_var=SHLIB_PATH
11280 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11282 soname_spec='${libname}${release}${shared_ext}$major'
11284 esac
11285 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11286 postinstall_cmds='chmod 555 $lib'
11287 # or fails outright, so override atomically:
11288 install_override_mode=555
11291 interix[3-9]*)
11292 version_type=linux
11293 need_lib_prefix=no
11294 need_version=no
11295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11296 soname_spec='${libname}${release}${shared_ext}$major'
11297 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11298 shlibpath_var=LD_LIBRARY_PATH
11299 shlibpath_overrides_runpath=no
11300 hardcode_into_libs=yes
11303 irix5* | irix6* | nonstopux*)
11304 case $host_os in
11305 nonstopux*) version_type=nonstopux ;;
11307 if test "$lt_cv_prog_gnu_ld" = yes; then
11308 version_type=linux
11309 else
11310 version_type=irix
11311 fi ;;
11312 esac
11313 need_lib_prefix=no
11314 need_version=no
11315 soname_spec='${libname}${release}${shared_ext}$major'
11316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11317 case $host_os in
11318 irix5* | nonstopux*)
11319 libsuff= shlibsuff=
11322 case $LD in # libtool.m4 will add one of these switches to LD
11323 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11324 libsuff= shlibsuff= libmagic=32-bit;;
11325 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11326 libsuff=32 shlibsuff=N32 libmagic=N32;;
11327 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11328 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11329 *) libsuff= shlibsuff= libmagic=never-match;;
11330 esac
11332 esac
11333 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11334 shlibpath_overrides_runpath=no
11335 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11336 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11337 hardcode_into_libs=yes
11340 # No shared lib support for Linux oldld, aout, or coff.
11341 linux*oldld* | linux*aout* | linux*coff*)
11342 dynamic_linker=no
11345 # This must be Linux ELF.
11346 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11347 version_type=linux
11348 need_lib_prefix=no
11349 need_version=no
11350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11351 soname_spec='${libname}${release}${shared_ext}$major'
11352 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11353 shlibpath_var=LD_LIBRARY_PATH
11354 shlibpath_overrides_runpath=no
11356 # Some binutils ld are patched to set DT_RUNPATH
11357 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11358 $as_echo_n "(cached) " >&6
11359 else
11360 lt_cv_shlibpath_overrides_runpath=no
11361 save_LDFLAGS=$LDFLAGS
11362 save_libdir=$libdir
11363 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11364 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11366 /* end confdefs.h. */
11369 main ()
11373 return 0;
11375 _ACEOF
11376 if ac_fn_c_try_link "$LINENO"; then :
11377 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11378 lt_cv_shlibpath_overrides_runpath=yes
11381 rm -f core conftest.err conftest.$ac_objext \
11382 conftest$ac_exeext conftest.$ac_ext
11383 LDFLAGS=$save_LDFLAGS
11384 libdir=$save_libdir
11388 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11390 # This implies no fast_install, which is unacceptable.
11391 # Some rework will be needed to allow for fast_install
11392 # before this can be enabled.
11393 hardcode_into_libs=yes
11395 # Append ld.so.conf contents to the search path
11396 if test -f /etc/ld.so.conf; then
11397 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' ' '`
11398 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11401 # We used to test for /lib/ld.so.1 and disable shared libraries on
11402 # powerpc, because MkLinux only supported shared libraries with the
11403 # GNU dynamic linker. Since this was broken with cross compilers,
11404 # most powerpc-linux boxes support dynamic linking these days and
11405 # people can always --disable-shared, the test was removed, and we
11406 # assume the GNU/Linux dynamic linker is in use.
11407 dynamic_linker='GNU/Linux ld.so'
11410 netbsd*)
11411 version_type=sunos
11412 need_lib_prefix=no
11413 need_version=no
11414 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11416 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11417 dynamic_linker='NetBSD (a.out) ld.so'
11418 else
11419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11420 soname_spec='${libname}${release}${shared_ext}$major'
11421 dynamic_linker='NetBSD ld.elf_so'
11423 shlibpath_var=LD_LIBRARY_PATH
11424 shlibpath_overrides_runpath=yes
11425 hardcode_into_libs=yes
11428 newsos6)
11429 version_type=linux
11430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11431 shlibpath_var=LD_LIBRARY_PATH
11432 shlibpath_overrides_runpath=yes
11435 *nto* | *qnx*)
11436 version_type=qnx
11437 need_lib_prefix=no
11438 need_version=no
11439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11440 soname_spec='${libname}${release}${shared_ext}$major'
11441 shlibpath_var=LD_LIBRARY_PATH
11442 shlibpath_overrides_runpath=no
11443 hardcode_into_libs=yes
11444 dynamic_linker='ldqnx.so'
11447 openbsd*)
11448 version_type=sunos
11449 sys_lib_dlsearch_path_spec="/usr/lib"
11450 need_lib_prefix=no
11451 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11452 case $host_os in
11453 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11454 *) need_version=no ;;
11455 esac
11456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11457 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11458 shlibpath_var=LD_LIBRARY_PATH
11459 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11460 case $host_os in
11461 openbsd2.[89] | openbsd2.[89].*)
11462 shlibpath_overrides_runpath=no
11465 shlibpath_overrides_runpath=yes
11467 esac
11468 else
11469 shlibpath_overrides_runpath=yes
11473 os2*)
11474 libname_spec='$name'
11475 shrext_cmds=".dll"
11476 need_lib_prefix=no
11477 library_names_spec='$libname${shared_ext} $libname.a'
11478 dynamic_linker='OS/2 ld.exe'
11479 shlibpath_var=LIBPATH
11482 osf3* | osf4* | osf5*)
11483 version_type=osf
11484 need_lib_prefix=no
11485 need_version=no
11486 soname_spec='${libname}${release}${shared_ext}$major'
11487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11488 shlibpath_var=LD_LIBRARY_PATH
11489 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11490 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11493 rdos*)
11494 dynamic_linker=no
11497 solaris*)
11498 version_type=linux
11499 need_lib_prefix=no
11500 need_version=no
11501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11502 soname_spec='${libname}${release}${shared_ext}$major'
11503 shlibpath_var=LD_LIBRARY_PATH
11504 shlibpath_overrides_runpath=yes
11505 hardcode_into_libs=yes
11506 # ldd complains unless libraries are executable
11507 postinstall_cmds='chmod +x $lib'
11510 sunos4*)
11511 version_type=sunos
11512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11513 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11514 shlibpath_var=LD_LIBRARY_PATH
11515 shlibpath_overrides_runpath=yes
11516 if test "$with_gnu_ld" = yes; then
11517 need_lib_prefix=no
11519 need_version=yes
11522 sysv4 | sysv4.3*)
11523 version_type=linux
11524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11525 soname_spec='${libname}${release}${shared_ext}$major'
11526 shlibpath_var=LD_LIBRARY_PATH
11527 case $host_vendor in
11528 sni)
11529 shlibpath_overrides_runpath=no
11530 need_lib_prefix=no
11531 runpath_var=LD_RUN_PATH
11533 siemens)
11534 need_lib_prefix=no
11536 motorola)
11537 need_lib_prefix=no
11538 need_version=no
11539 shlibpath_overrides_runpath=no
11540 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11542 esac
11545 sysv4*MP*)
11546 if test -d /usr/nec ;then
11547 version_type=linux
11548 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11549 soname_spec='$libname${shared_ext}.$major'
11550 shlibpath_var=LD_LIBRARY_PATH
11554 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11555 version_type=freebsd-elf
11556 need_lib_prefix=no
11557 need_version=no
11558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11559 soname_spec='${libname}${release}${shared_ext}$major'
11560 shlibpath_var=LD_LIBRARY_PATH
11561 shlibpath_overrides_runpath=yes
11562 hardcode_into_libs=yes
11563 if test "$with_gnu_ld" = yes; then
11564 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11565 else
11566 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11567 case $host_os in
11568 sco3.2v5*)
11569 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11571 esac
11573 sys_lib_dlsearch_path_spec='/usr/lib'
11576 tpf*)
11577 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11578 version_type=linux
11579 need_lib_prefix=no
11580 need_version=no
11581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11582 shlibpath_var=LD_LIBRARY_PATH
11583 shlibpath_overrides_runpath=no
11584 hardcode_into_libs=yes
11587 uts4*)
11588 version_type=linux
11589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11590 soname_spec='${libname}${release}${shared_ext}$major'
11591 shlibpath_var=LD_LIBRARY_PATH
11595 dynamic_linker=no
11597 esac
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11599 $as_echo "$dynamic_linker" >&6; }
11600 test "$dynamic_linker" = no && can_build_shared=no
11602 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11603 if test "$GCC" = yes; then
11604 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11607 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11608 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11610 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11611 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11706 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11707 hardcode_action=
11708 if test -n "$hardcode_libdir_flag_spec" ||
11709 test -n "$runpath_var" ||
11710 test "X$hardcode_automatic" = "Xyes" ; then
11712 # We can hardcode non-existent directories.
11713 if test "$hardcode_direct" != no &&
11714 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11715 # have to relink, otherwise we might link with an installed library
11716 # when we should be linking with a yet-to-be-installed one
11717 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11718 test "$hardcode_minus_L" != no; then
11719 # Linking always hardcodes the temporary library directory.
11720 hardcode_action=relink
11721 else
11722 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11723 hardcode_action=immediate
11725 else
11726 # We cannot hardcode anything, or else we can only hardcode existing
11727 # directories.
11728 hardcode_action=unsupported
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11731 $as_echo "$hardcode_action" >&6; }
11733 if test "$hardcode_action" = relink ||
11734 test "$inherit_rpath" = yes; then
11735 # Fast installation is not supported
11736 enable_fast_install=no
11737 elif test "$shlibpath_overrides_runpath" = yes ||
11738 test "$enable_shared" = no; then
11739 # Fast installation is not necessary
11740 enable_fast_install=needless
11748 if test "x$enable_dlopen" != xyes; then
11749 enable_dlopen=unknown
11750 enable_dlopen_self=unknown
11751 enable_dlopen_self_static=unknown
11752 else
11753 lt_cv_dlopen=no
11754 lt_cv_dlopen_libs=
11756 case $host_os in
11757 beos*)
11758 lt_cv_dlopen="load_add_on"
11759 lt_cv_dlopen_libs=
11760 lt_cv_dlopen_self=yes
11763 mingw* | pw32* | cegcc*)
11764 lt_cv_dlopen="LoadLibrary"
11765 lt_cv_dlopen_libs=
11768 cygwin*)
11769 lt_cv_dlopen="dlopen"
11770 lt_cv_dlopen_libs=
11773 darwin*)
11774 # if libdl is installed we need to link against it
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11776 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11777 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11778 $as_echo_n "(cached) " >&6
11779 else
11780 ac_check_lib_save_LIBS=$LIBS
11781 LIBS="-ldl $LIBS"
11782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11783 /* end confdefs.h. */
11785 /* Override any GCC internal prototype to avoid an error.
11786 Use char because int might match the return type of a GCC
11787 builtin and then its argument prototype would still apply. */
11788 #ifdef __cplusplus
11789 extern "C"
11790 #endif
11791 char dlopen ();
11793 main ()
11795 return dlopen ();
11797 return 0;
11799 _ACEOF
11800 if ac_fn_c_try_link "$LINENO"; then :
11801 ac_cv_lib_dl_dlopen=yes
11802 else
11803 ac_cv_lib_dl_dlopen=no
11805 rm -f core conftest.err conftest.$ac_objext \
11806 conftest$ac_exeext conftest.$ac_ext
11807 LIBS=$ac_check_lib_save_LIBS
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11810 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11811 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11812 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11813 else
11815 lt_cv_dlopen="dyld"
11816 lt_cv_dlopen_libs=
11817 lt_cv_dlopen_self=yes
11824 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11825 if test "x$ac_cv_func_shl_load" = x""yes; then :
11826 lt_cv_dlopen="shl_load"
11827 else
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11829 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11830 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11831 $as_echo_n "(cached) " >&6
11832 else
11833 ac_check_lib_save_LIBS=$LIBS
11834 LIBS="-ldld $LIBS"
11835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11836 /* end confdefs.h. */
11838 /* Override any GCC internal prototype to avoid an error.
11839 Use char because int might match the return type of a GCC
11840 builtin and then its argument prototype would still apply. */
11841 #ifdef __cplusplus
11842 extern "C"
11843 #endif
11844 char shl_load ();
11846 main ()
11848 return shl_load ();
11850 return 0;
11852 _ACEOF
11853 if ac_fn_c_try_link "$LINENO"; then :
11854 ac_cv_lib_dld_shl_load=yes
11855 else
11856 ac_cv_lib_dld_shl_load=no
11858 rm -f core conftest.err conftest.$ac_objext \
11859 conftest$ac_exeext conftest.$ac_ext
11860 LIBS=$ac_check_lib_save_LIBS
11862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11863 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11864 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11865 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11866 else
11867 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11868 if test "x$ac_cv_func_dlopen" = x""yes; then :
11869 lt_cv_dlopen="dlopen"
11870 else
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11872 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11873 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11874 $as_echo_n "(cached) " >&6
11875 else
11876 ac_check_lib_save_LIBS=$LIBS
11877 LIBS="-ldl $LIBS"
11878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11879 /* end confdefs.h. */
11881 /* Override any GCC internal prototype to avoid an error.
11882 Use char because int might match the return type of a GCC
11883 builtin and then its argument prototype would still apply. */
11884 #ifdef __cplusplus
11885 extern "C"
11886 #endif
11887 char dlopen ();
11889 main ()
11891 return dlopen ();
11893 return 0;
11895 _ACEOF
11896 if ac_fn_c_try_link "$LINENO"; then :
11897 ac_cv_lib_dl_dlopen=yes
11898 else
11899 ac_cv_lib_dl_dlopen=no
11901 rm -f core conftest.err conftest.$ac_objext \
11902 conftest$ac_exeext conftest.$ac_ext
11903 LIBS=$ac_check_lib_save_LIBS
11905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11906 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11907 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11908 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11909 else
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11911 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11912 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11913 $as_echo_n "(cached) " >&6
11914 else
11915 ac_check_lib_save_LIBS=$LIBS
11916 LIBS="-lsvld $LIBS"
11917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11918 /* end confdefs.h. */
11920 /* Override any GCC internal prototype to avoid an error.
11921 Use char because int might match the return type of a GCC
11922 builtin and then its argument prototype would still apply. */
11923 #ifdef __cplusplus
11924 extern "C"
11925 #endif
11926 char dlopen ();
11928 main ()
11930 return dlopen ();
11932 return 0;
11934 _ACEOF
11935 if ac_fn_c_try_link "$LINENO"; then :
11936 ac_cv_lib_svld_dlopen=yes
11937 else
11938 ac_cv_lib_svld_dlopen=no
11940 rm -f core conftest.err conftest.$ac_objext \
11941 conftest$ac_exeext conftest.$ac_ext
11942 LIBS=$ac_check_lib_save_LIBS
11944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11945 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11946 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11947 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11948 else
11949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11950 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11951 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11952 $as_echo_n "(cached) " >&6
11953 else
11954 ac_check_lib_save_LIBS=$LIBS
11955 LIBS="-ldld $LIBS"
11956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11957 /* end confdefs.h. */
11959 /* Override any GCC internal prototype to avoid an error.
11960 Use char because int might match the return type of a GCC
11961 builtin and then its argument prototype would still apply. */
11962 #ifdef __cplusplus
11963 extern "C"
11964 #endif
11965 char dld_link ();
11967 main ()
11969 return dld_link ();
11971 return 0;
11973 _ACEOF
11974 if ac_fn_c_try_link "$LINENO"; then :
11975 ac_cv_lib_dld_dld_link=yes
11976 else
11977 ac_cv_lib_dld_dld_link=no
11979 rm -f core conftest.err conftest.$ac_objext \
11980 conftest$ac_exeext conftest.$ac_ext
11981 LIBS=$ac_check_lib_save_LIBS
11983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11984 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11985 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11986 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12005 esac
12007 if test "x$lt_cv_dlopen" != xno; then
12008 enable_dlopen=yes
12009 else
12010 enable_dlopen=no
12013 case $lt_cv_dlopen in
12014 dlopen)
12015 save_CPPFLAGS="$CPPFLAGS"
12016 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12018 save_LDFLAGS="$LDFLAGS"
12019 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12021 save_LIBS="$LIBS"
12022 LIBS="$lt_cv_dlopen_libs $LIBS"
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12025 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12026 if test "${lt_cv_dlopen_self+set}" = set; then :
12027 $as_echo_n "(cached) " >&6
12028 else
12029 if test "$cross_compiling" = yes; then :
12030 lt_cv_dlopen_self=cross
12031 else
12032 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12033 lt_status=$lt_dlunknown
12034 cat > conftest.$ac_ext <<_LT_EOF
12035 #line 12035 "configure"
12036 #include "confdefs.h"
12038 #if HAVE_DLFCN_H
12039 #include <dlfcn.h>
12040 #endif
12042 #include <stdio.h>
12044 #ifdef RTLD_GLOBAL
12045 # define LT_DLGLOBAL RTLD_GLOBAL
12046 #else
12047 # ifdef DL_GLOBAL
12048 # define LT_DLGLOBAL DL_GLOBAL
12049 # else
12050 # define LT_DLGLOBAL 0
12051 # endif
12052 #endif
12054 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12055 find out it does not work in some platform. */
12056 #ifndef LT_DLLAZY_OR_NOW
12057 # ifdef RTLD_LAZY
12058 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12059 # else
12060 # ifdef DL_LAZY
12061 # define LT_DLLAZY_OR_NOW DL_LAZY
12062 # else
12063 # ifdef RTLD_NOW
12064 # define LT_DLLAZY_OR_NOW RTLD_NOW
12065 # else
12066 # ifdef DL_NOW
12067 # define LT_DLLAZY_OR_NOW DL_NOW
12068 # else
12069 # define LT_DLLAZY_OR_NOW 0
12070 # endif
12071 # endif
12072 # endif
12073 # endif
12074 #endif
12076 /* When -fvisbility=hidden is used, assume the code has been annotated
12077 correspondingly for the symbols needed. */
12078 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12079 void fnord () __attribute__((visibility("default")));
12080 #endif
12082 void fnord () { int i=42; }
12083 int main ()
12085 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12086 int status = $lt_dlunknown;
12088 if (self)
12090 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12091 else
12093 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12094 else puts (dlerror ());
12096 /* dlclose (self); */
12098 else
12099 puts (dlerror ());
12101 return status;
12103 _LT_EOF
12104 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12105 (eval $ac_link) 2>&5
12106 ac_status=$?
12107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12108 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12109 (./conftest; exit; ) >&5 2>/dev/null
12110 lt_status=$?
12111 case x$lt_status in
12112 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12113 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12114 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12115 esac
12116 else :
12117 # compilation failed
12118 lt_cv_dlopen_self=no
12121 rm -fr conftest*
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12126 $as_echo "$lt_cv_dlopen_self" >&6; }
12128 if test "x$lt_cv_dlopen_self" = xyes; then
12129 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12131 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12132 if test "${lt_cv_dlopen_self_static+set}" = set; then :
12133 $as_echo_n "(cached) " >&6
12134 else
12135 if test "$cross_compiling" = yes; then :
12136 lt_cv_dlopen_self_static=cross
12137 else
12138 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12139 lt_status=$lt_dlunknown
12140 cat > conftest.$ac_ext <<_LT_EOF
12141 #line 12141 "configure"
12142 #include "confdefs.h"
12144 #if HAVE_DLFCN_H
12145 #include <dlfcn.h>
12146 #endif
12148 #include <stdio.h>
12150 #ifdef RTLD_GLOBAL
12151 # define LT_DLGLOBAL RTLD_GLOBAL
12152 #else
12153 # ifdef DL_GLOBAL
12154 # define LT_DLGLOBAL DL_GLOBAL
12155 # else
12156 # define LT_DLGLOBAL 0
12157 # endif
12158 #endif
12160 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12161 find out it does not work in some platform. */
12162 #ifndef LT_DLLAZY_OR_NOW
12163 # ifdef RTLD_LAZY
12164 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12165 # else
12166 # ifdef DL_LAZY
12167 # define LT_DLLAZY_OR_NOW DL_LAZY
12168 # else
12169 # ifdef RTLD_NOW
12170 # define LT_DLLAZY_OR_NOW RTLD_NOW
12171 # else
12172 # ifdef DL_NOW
12173 # define LT_DLLAZY_OR_NOW DL_NOW
12174 # else
12175 # define LT_DLLAZY_OR_NOW 0
12176 # endif
12177 # endif
12178 # endif
12179 # endif
12180 #endif
12182 /* When -fvisbility=hidden is used, assume the code has been annotated
12183 correspondingly for the symbols needed. */
12184 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12185 void fnord () __attribute__((visibility("default")));
12186 #endif
12188 void fnord () { int i=42; }
12189 int main ()
12191 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12192 int status = $lt_dlunknown;
12194 if (self)
12196 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12197 else
12199 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12200 else puts (dlerror ());
12202 /* dlclose (self); */
12204 else
12205 puts (dlerror ());
12207 return status;
12209 _LT_EOF
12210 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12211 (eval $ac_link) 2>&5
12212 ac_status=$?
12213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12214 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12215 (./conftest; exit; ) >&5 2>/dev/null
12216 lt_status=$?
12217 case x$lt_status in
12218 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12219 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12220 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12221 esac
12222 else :
12223 # compilation failed
12224 lt_cv_dlopen_self_static=no
12227 rm -fr conftest*
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12232 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12235 CPPFLAGS="$save_CPPFLAGS"
12236 LDFLAGS="$save_LDFLAGS"
12237 LIBS="$save_LIBS"
12239 esac
12241 case $lt_cv_dlopen_self in
12242 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12243 *) enable_dlopen_self=unknown ;;
12244 esac
12246 case $lt_cv_dlopen_self_static in
12247 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12248 *) enable_dlopen_self_static=unknown ;;
12249 esac
12268 striplib=
12269 old_striplib=
12270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12271 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12272 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12273 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12274 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12276 $as_echo "yes" >&6; }
12277 else
12278 # FIXME - insert some real tests, host_os isn't really good enough
12279 case $host_os in
12280 darwin*)
12281 if test -n "$STRIP" ; then
12282 striplib="$STRIP -x"
12283 old_striplib="$STRIP -S"
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12285 $as_echo "yes" >&6; }
12286 else
12287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12288 $as_echo "no" >&6; }
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12293 $as_echo "no" >&6; }
12295 esac
12309 # Report which library types will actually be built
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12311 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12313 $as_echo "$can_build_shared" >&6; }
12315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12316 $as_echo_n "checking whether to build shared libraries... " >&6; }
12317 test "$can_build_shared" = "no" && enable_shared=no
12319 # On AIX, shared libraries and static libraries use the same namespace, and
12320 # are all built from PIC.
12321 case $host_os in
12322 aix3*)
12323 test "$enable_shared" = yes && enable_static=no
12324 if test -n "$RANLIB"; then
12325 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12326 postinstall_cmds='$RANLIB $lib'
12330 aix[4-9]*)
12331 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12332 test "$enable_shared" = yes && enable_static=no
12335 esac
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12337 $as_echo "$enable_shared" >&6; }
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12340 $as_echo_n "checking whether to build static libraries... " >&6; }
12341 # Make sure either enable_shared or enable_static is yes.
12342 test "$enable_shared" = yes || enable_static=yes
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12344 $as_echo "$enable_static" >&6; }
12350 ac_ext=c
12351 ac_cpp='$CPP $CPPFLAGS'
12352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12356 CC="$lt_save_CC"
12358 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12359 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12360 (test "X$CXX" != "Xg++"))) ; then
12361 ac_ext=cpp
12362 ac_cpp='$CXXCPP $CPPFLAGS'
12363 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12364 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12365 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12367 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12368 if test -z "$CXXCPP"; then
12369 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
12370 $as_echo_n "(cached) " >&6
12371 else
12372 # Double quotes because CXXCPP needs to be expanded
12373 for CXXCPP in "$CXX -E" "/lib/cpp"
12375 ac_preproc_ok=false
12376 for ac_cxx_preproc_warn_flag in '' yes
12378 # Use a header file that comes with gcc, so configuring glibc
12379 # with a fresh cross-compiler works.
12380 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12381 # <limits.h> exists even on freestanding compilers.
12382 # On the NeXT, cc -E runs the code through the compiler's parser,
12383 # not just through cpp. "Syntax error" is here to catch this case.
12384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12385 /* end confdefs.h. */
12386 #ifdef __STDC__
12387 # include <limits.h>
12388 #else
12389 # include <assert.h>
12390 #endif
12391 Syntax error
12392 _ACEOF
12393 if ac_fn_cxx_try_cpp "$LINENO"; then :
12395 else
12396 # Broken: fails on valid input.
12397 continue
12399 rm -f conftest.err conftest.$ac_ext
12401 # OK, works on sane cases. Now check whether nonexistent headers
12402 # can be detected and how.
12403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12404 /* end confdefs.h. */
12405 #include <ac_nonexistent.h>
12406 _ACEOF
12407 if ac_fn_cxx_try_cpp "$LINENO"; then :
12408 # Broken: success on invalid input.
12409 continue
12410 else
12411 # Passes both tests.
12412 ac_preproc_ok=:
12413 break
12415 rm -f conftest.err conftest.$ac_ext
12417 done
12418 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12419 rm -f conftest.err conftest.$ac_ext
12420 if $ac_preproc_ok; then :
12421 break
12424 done
12425 ac_cv_prog_CXXCPP=$CXXCPP
12428 CXXCPP=$ac_cv_prog_CXXCPP
12429 else
12430 ac_cv_prog_CXXCPP=$CXXCPP
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12433 $as_echo "$CXXCPP" >&6; }
12434 ac_preproc_ok=false
12435 for ac_cxx_preproc_warn_flag in '' yes
12437 # Use a header file that comes with gcc, so configuring glibc
12438 # with a fresh cross-compiler works.
12439 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12440 # <limits.h> exists even on freestanding compilers.
12441 # On the NeXT, cc -E runs the code through the compiler's parser,
12442 # not just through cpp. "Syntax error" is here to catch this case.
12443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12444 /* end confdefs.h. */
12445 #ifdef __STDC__
12446 # include <limits.h>
12447 #else
12448 # include <assert.h>
12449 #endif
12450 Syntax error
12451 _ACEOF
12452 if ac_fn_cxx_try_cpp "$LINENO"; then :
12454 else
12455 # Broken: fails on valid input.
12456 continue
12458 rm -f conftest.err conftest.$ac_ext
12460 # OK, works on sane cases. Now check whether nonexistent headers
12461 # can be detected and how.
12462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12463 /* end confdefs.h. */
12464 #include <ac_nonexistent.h>
12465 _ACEOF
12466 if ac_fn_cxx_try_cpp "$LINENO"; then :
12467 # Broken: success on invalid input.
12468 continue
12469 else
12470 # Passes both tests.
12471 ac_preproc_ok=:
12472 break
12474 rm -f conftest.err conftest.$ac_ext
12476 done
12477 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12478 rm -f conftest.err conftest.$ac_ext
12479 if $ac_preproc_ok; then :
12481 else
12482 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12483 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12484 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
12485 See \`config.log' for more details." "$LINENO" 5; }
12488 ac_ext=c
12489 ac_cpp='$CPP $CPPFLAGS'
12490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12494 else
12495 _lt_caught_CXX_error=yes
12498 ac_ext=cpp
12499 ac_cpp='$CXXCPP $CPPFLAGS'
12500 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12501 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12502 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12504 archive_cmds_need_lc_CXX=no
12505 allow_undefined_flag_CXX=
12506 always_export_symbols_CXX=no
12507 archive_expsym_cmds_CXX=
12508 compiler_needs_object_CXX=no
12509 export_dynamic_flag_spec_CXX=
12510 hardcode_direct_CXX=no
12511 hardcode_direct_absolute_CXX=no
12512 hardcode_libdir_flag_spec_CXX=
12513 hardcode_libdir_flag_spec_ld_CXX=
12514 hardcode_libdir_separator_CXX=
12515 hardcode_minus_L_CXX=no
12516 hardcode_shlibpath_var_CXX=unsupported
12517 hardcode_automatic_CXX=no
12518 inherit_rpath_CXX=no
12519 module_cmds_CXX=
12520 module_expsym_cmds_CXX=
12521 link_all_deplibs_CXX=unknown
12522 old_archive_cmds_CXX=$old_archive_cmds
12523 reload_flag_CXX=$reload_flag
12524 reload_cmds_CXX=$reload_cmds
12525 no_undefined_flag_CXX=
12526 whole_archive_flag_spec_CXX=
12527 enable_shared_with_static_runtimes_CXX=no
12529 # Source file extension for C++ test sources.
12530 ac_ext=cpp
12532 # Object file extension for compiled C++ test sources.
12533 objext=o
12534 objext_CXX=$objext
12536 # No sense in running all these tests if we already determined that
12537 # the CXX compiler isn't working. Some variables (like enable_shared)
12538 # are currently assumed to apply to all compilers on this platform,
12539 # and will be corrupted by setting them based on a non-working compiler.
12540 if test "$_lt_caught_CXX_error" != yes; then
12541 # Code to be used in simple compile tests
12542 lt_simple_compile_test_code="int some_variable = 0;"
12544 # Code to be used in simple link tests
12545 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12547 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12554 # If no C compiler was specified, use CC.
12555 LTCC=${LTCC-"$CC"}
12557 # If no C compiler flags were specified, use CFLAGS.
12558 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12560 # Allow CC to be a program name with arguments.
12561 compiler=$CC
12564 # save warnings/boilerplate of simple test code
12565 ac_outfile=conftest.$ac_objext
12566 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12567 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12568 _lt_compiler_boilerplate=`cat conftest.err`
12569 $RM conftest*
12571 ac_outfile=conftest.$ac_objext
12572 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12573 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12574 _lt_linker_boilerplate=`cat conftest.err`
12575 $RM -r conftest*
12578 # Allow CC to be a program name with arguments.
12579 lt_save_CC=$CC
12580 lt_save_LD=$LD
12581 lt_save_GCC=$GCC
12582 GCC=$GXX
12583 lt_save_with_gnu_ld=$with_gnu_ld
12584 lt_save_path_LD=$lt_cv_path_LD
12585 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12586 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12587 else
12588 $as_unset lt_cv_prog_gnu_ld
12590 if test -n "${lt_cv_path_LDCXX+set}"; then
12591 lt_cv_path_LD=$lt_cv_path_LDCXX
12592 else
12593 $as_unset lt_cv_path_LD
12595 test -z "${LDCXX+set}" || LD=$LDCXX
12596 CC=${CXX-"c++"}
12597 compiler=$CC
12598 compiler_CXX=$CC
12599 for cc_temp in $compiler""; do
12600 case $cc_temp in
12601 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12602 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12603 \-*) ;;
12604 *) break;;
12605 esac
12606 done
12607 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12610 if test -n "$compiler"; then
12611 # We don't want -fno-exception when compiling C++ code, so set the
12612 # no_builtin_flag separately
12613 if test "$GXX" = yes; then
12614 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12615 else
12616 lt_prog_compiler_no_builtin_flag_CXX=
12619 if test "$GXX" = yes; then
12620 # Set up default GNU C++ configuration
12624 # Check whether --with-gnu-ld was given.
12625 if test "${with_gnu_ld+set}" = set; then :
12626 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12627 else
12628 with_gnu_ld=no
12631 ac_prog=ld
12632 if test "$GCC" = yes; then
12633 # Check if gcc -print-prog-name=ld gives a path.
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12635 $as_echo_n "checking for ld used by $CC... " >&6; }
12636 case $host in
12637 *-*-mingw*)
12638 # gcc leaves a trailing carriage return which upsets mingw
12639 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12641 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12642 esac
12643 case $ac_prog in
12644 # Accept absolute paths.
12645 [\\/]* | ?:[\\/]*)
12646 re_direlt='/[^/][^/]*/\.\./'
12647 # Canonicalize the pathname of ld
12648 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12649 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12650 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12651 done
12652 test -z "$LD" && LD="$ac_prog"
12655 # If it fails, then pretend we aren't using GCC.
12656 ac_prog=ld
12659 # If it is relative, then search for the first ld in PATH.
12660 with_gnu_ld=unknown
12662 esac
12663 elif test "$with_gnu_ld" = yes; then
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12665 $as_echo_n "checking for GNU ld... " >&6; }
12666 else
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12668 $as_echo_n "checking for non-GNU ld... " >&6; }
12670 if test "${lt_cv_path_LD+set}" = set; then :
12671 $as_echo_n "(cached) " >&6
12672 else
12673 if test -z "$LD"; then
12674 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12675 for ac_dir in $PATH; do
12676 IFS="$lt_save_ifs"
12677 test -z "$ac_dir" && ac_dir=.
12678 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12679 lt_cv_path_LD="$ac_dir/$ac_prog"
12680 # Check to see if the program is GNU ld. I'd rather use --version,
12681 # but apparently some variants of GNU ld only accept -v.
12682 # Break only if it was the GNU/non-GNU ld that we prefer.
12683 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12684 *GNU* | *'with BFD'*)
12685 test "$with_gnu_ld" != no && break
12688 test "$with_gnu_ld" != yes && break
12690 esac
12692 done
12693 IFS="$lt_save_ifs"
12694 else
12695 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12699 LD="$lt_cv_path_LD"
12700 if test -n "$LD"; then
12701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12702 $as_echo "$LD" >&6; }
12703 else
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12705 $as_echo "no" >&6; }
12707 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12709 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12710 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12711 $as_echo_n "(cached) " >&6
12712 else
12713 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12714 case `$LD -v 2>&1 </dev/null` in
12715 *GNU* | *'with BFD'*)
12716 lt_cv_prog_gnu_ld=yes
12719 lt_cv_prog_gnu_ld=no
12721 esac
12723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12724 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12725 with_gnu_ld=$lt_cv_prog_gnu_ld
12733 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12734 # archiving commands below assume that GNU ld is being used.
12735 if test "$with_gnu_ld" = yes; then
12736 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12737 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'
12739 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12740 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12742 # If archive_cmds runs LD, not CC, wlarc should be empty
12743 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12744 # investigate it a little bit more. (MM)
12745 wlarc='${wl}'
12747 # ancient GNU ld didn't support --whole-archive et. al.
12748 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12749 $GREP 'no-whole-archive' > /dev/null; then
12750 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12751 else
12752 whole_archive_flag_spec_CXX=
12754 else
12755 with_gnu_ld=no
12756 wlarc=
12758 # A generic and very simple default shared library creation
12759 # command for GNU C++ for the case where it uses the native
12760 # linker, instead of GNU ld. If possible, this setting should
12761 # overridden to take advantage of the native linker features on
12762 # the platform it is being used on.
12763 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12766 # Commands to make compiler produce verbose output that lists
12767 # what "hidden" libraries, object files and flags are used when
12768 # linking a shared library.
12769 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12771 else
12772 GXX=no
12773 with_gnu_ld=no
12774 wlarc=
12777 # PORTME: fill in a description of your system's C++ link characteristics
12778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12779 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12780 ld_shlibs_CXX=yes
12781 case $host_os in
12782 aix3*)
12783 # FIXME: insert proper C++ library support
12784 ld_shlibs_CXX=no
12786 aix[4-9]*)
12787 if test "$host_cpu" = ia64; then
12788 # On IA64, the linker does run time linking by default, so we don't
12789 # have to do anything special.
12790 aix_use_runtimelinking=no
12791 exp_sym_flag='-Bexport'
12792 no_entry_flag=""
12793 else
12794 aix_use_runtimelinking=no
12796 # Test if we are trying to use run time linking or normal
12797 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12798 # need to do runtime linking.
12799 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12800 for ld_flag in $LDFLAGS; do
12801 case $ld_flag in
12802 *-brtl*)
12803 aix_use_runtimelinking=yes
12804 break
12806 esac
12807 done
12809 esac
12811 exp_sym_flag='-bexport'
12812 no_entry_flag='-bnoentry'
12815 # When large executables or shared objects are built, AIX ld can
12816 # have problems creating the table of contents. If linking a library
12817 # or program results in "error TOC overflow" add -mminimal-toc to
12818 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12819 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12821 archive_cmds_CXX=''
12822 hardcode_direct_CXX=yes
12823 hardcode_direct_absolute_CXX=yes
12824 hardcode_libdir_separator_CXX=':'
12825 link_all_deplibs_CXX=yes
12826 file_list_spec_CXX='${wl}-f,'
12828 if test "$GXX" = yes; then
12829 case $host_os in aix4.[012]|aix4.[012].*)
12830 # We only want to do this on AIX 4.2 and lower, the check
12831 # below for broken collect2 doesn't work under 4.3+
12832 collect2name=`${CC} -print-prog-name=collect2`
12833 if test -f "$collect2name" &&
12834 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12835 then
12836 # We have reworked collect2
12838 else
12839 # We have old collect2
12840 hardcode_direct_CXX=unsupported
12841 # It fails to find uninstalled libraries when the uninstalled
12842 # path is not listed in the libpath. Setting hardcode_minus_L
12843 # to unsupported forces relinking
12844 hardcode_minus_L_CXX=yes
12845 hardcode_libdir_flag_spec_CXX='-L$libdir'
12846 hardcode_libdir_separator_CXX=
12848 esac
12849 shared_flag='-shared'
12850 if test "$aix_use_runtimelinking" = yes; then
12851 shared_flag="$shared_flag "'${wl}-G'
12853 else
12854 # not using gcc
12855 if test "$host_cpu" = ia64; then
12856 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12857 # chokes on -Wl,-G. The following line is correct:
12858 shared_flag='-G'
12859 else
12860 if test "$aix_use_runtimelinking" = yes; then
12861 shared_flag='${wl}-G'
12862 else
12863 shared_flag='${wl}-bM:SRE'
12868 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12869 # It seems that -bexpall does not export symbols beginning with
12870 # underscore (_), so it is better to generate a list of symbols to
12871 # export.
12872 always_export_symbols_CXX=yes
12873 if test "$aix_use_runtimelinking" = yes; then
12874 # Warning - without using the other runtime loading flags (-brtl),
12875 # -berok will link without error, but may produce a broken library.
12876 allow_undefined_flag_CXX='-berok'
12877 # Determine the default libpath from the value encoded in an empty
12878 # executable.
12879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12880 /* end confdefs.h. */
12883 main ()
12887 return 0;
12889 _ACEOF
12890 if ac_fn_cxx_try_link "$LINENO"; then :
12892 lt_aix_libpath_sed='
12893 /Import File Strings/,/^$/ {
12894 /^0/ {
12895 s/^0 *\(.*\)$/\1/
12899 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12900 # Check for a 64-bit object if we didn't find anything.
12901 if test -z "$aix_libpath"; then
12902 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12905 rm -f core conftest.err conftest.$ac_objext \
12906 conftest$ac_exeext conftest.$ac_ext
12907 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12909 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12911 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"
12912 else
12913 if test "$host_cpu" = ia64; then
12914 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12915 allow_undefined_flag_CXX="-z nodefs"
12916 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"
12917 else
12918 # Determine the default libpath from the value encoded in an
12919 # empty executable.
12920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12921 /* end confdefs.h. */
12924 main ()
12928 return 0;
12930 _ACEOF
12931 if ac_fn_cxx_try_link "$LINENO"; then :
12933 lt_aix_libpath_sed='
12934 /Import File Strings/,/^$/ {
12935 /^0/ {
12936 s/^0 *\(.*\)$/\1/
12940 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12941 # Check for a 64-bit object if we didn't find anything.
12942 if test -z "$aix_libpath"; then
12943 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12946 rm -f core conftest.err conftest.$ac_objext \
12947 conftest$ac_exeext conftest.$ac_ext
12948 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12950 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12951 # Warning - without using the other run time loading flags,
12952 # -berok will link without error, but may produce a broken library.
12953 no_undefined_flag_CXX=' ${wl}-bernotok'
12954 allow_undefined_flag_CXX=' ${wl}-berok'
12955 if test "$with_gnu_ld" = yes; then
12956 # We only use this code for GNU lds that support --whole-archive.
12957 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12958 else
12959 # Exported symbols can be pulled into shared objects from archives
12960 whole_archive_flag_spec_CXX='$convenience'
12962 archive_cmds_need_lc_CXX=yes
12963 # This is similar to how AIX traditionally builds its shared
12964 # libraries.
12965 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'
12970 beos*)
12971 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12972 allow_undefined_flag_CXX=unsupported
12973 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12974 # support --undefined. This deserves some investigation. FIXME
12975 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12976 else
12977 ld_shlibs_CXX=no
12981 chorus*)
12982 case $cc_basename in
12984 # FIXME: insert proper C++ library support
12985 ld_shlibs_CXX=no
12987 esac
12990 cygwin* | mingw* | pw32* | cegcc*)
12991 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12992 # as there is no search path for DLLs.
12993 hardcode_libdir_flag_spec_CXX='-L$libdir'
12994 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12995 allow_undefined_flag_CXX=unsupported
12996 always_export_symbols_CXX=no
12997 enable_shared_with_static_runtimes_CXX=yes
12999 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13000 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'
13001 # If the export-symbols file already is a .def file (1st line
13002 # is EXPORTS), use it as is; otherwise, prepend...
13003 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13004 cp $export_symbols $output_objdir/$soname.def;
13005 else
13006 echo EXPORTS > $output_objdir/$soname.def;
13007 cat $export_symbols >> $output_objdir/$soname.def;
13009 $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'
13010 else
13011 ld_shlibs_CXX=no
13014 darwin* | rhapsody*)
13017 archive_cmds_need_lc_CXX=no
13018 hardcode_direct_CXX=no
13019 hardcode_automatic_CXX=yes
13020 hardcode_shlibpath_var_CXX=unsupported
13021 if test "$lt_cv_ld_force_load" = "yes"; then
13022 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\"`'
13023 else
13024 whole_archive_flag_spec_CXX=''
13026 link_all_deplibs_CXX=yes
13027 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13028 case $cc_basename in
13029 ifort*) _lt_dar_can_shared=yes ;;
13030 *) _lt_dar_can_shared=$GCC ;;
13031 esac
13032 if test "$_lt_dar_can_shared" = "yes"; then
13033 output_verbose_link_cmd=func_echo_all
13034 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}"
13035 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13036 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}"
13037 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}"
13038 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13039 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}"
13040 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}"
13043 else
13044 ld_shlibs_CXX=no
13049 dgux*)
13050 case $cc_basename in
13051 ec++*)
13052 # FIXME: insert proper C++ library support
13053 ld_shlibs_CXX=no
13055 ghcx*)
13056 # Green Hills C++ Compiler
13057 # FIXME: insert proper C++ library support
13058 ld_shlibs_CXX=no
13061 # FIXME: insert proper C++ library support
13062 ld_shlibs_CXX=no
13064 esac
13067 freebsd2.*)
13068 # C++ shared libraries reported to be fairly broken before
13069 # switch to ELF
13070 ld_shlibs_CXX=no
13073 freebsd-elf*)
13074 archive_cmds_need_lc_CXX=no
13077 freebsd* | dragonfly*)
13078 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13079 # conventions
13080 ld_shlibs_CXX=yes
13083 gnu*)
13086 haiku*)
13087 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13088 link_all_deplibs_CXX=yes
13091 hpux9*)
13092 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13093 hardcode_libdir_separator_CXX=:
13094 export_dynamic_flag_spec_CXX='${wl}-E'
13095 hardcode_direct_CXX=yes
13096 hardcode_minus_L_CXX=yes # Not in the search PATH,
13097 # but as the default
13098 # location of the library.
13100 case $cc_basename in
13101 CC*)
13102 # FIXME: insert proper C++ library support
13103 ld_shlibs_CXX=no
13105 aCC*)
13106 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'
13107 # Commands to make compiler produce verbose output that lists
13108 # what "hidden" libraries, object files and flags are used when
13109 # linking a shared library.
13111 # There doesn't appear to be a way to prevent this compiler from
13112 # explicitly linking system object files so we need to strip them
13113 # from the output so that they don't get included in the library
13114 # dependencies.
13115 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"'
13118 if test "$GXX" = yes; then
13119 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'
13120 else
13121 # FIXME: insert proper C++ library support
13122 ld_shlibs_CXX=no
13125 esac
13128 hpux10*|hpux11*)
13129 if test $with_gnu_ld = no; then
13130 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13131 hardcode_libdir_separator_CXX=:
13133 case $host_cpu in
13134 hppa*64*|ia64*)
13137 export_dynamic_flag_spec_CXX='${wl}-E'
13139 esac
13141 case $host_cpu in
13142 hppa*64*|ia64*)
13143 hardcode_direct_CXX=no
13144 hardcode_shlibpath_var_CXX=no
13147 hardcode_direct_CXX=yes
13148 hardcode_direct_absolute_CXX=yes
13149 hardcode_minus_L_CXX=yes # Not in the search PATH,
13150 # but as the default
13151 # location of the library.
13153 esac
13155 case $cc_basename in
13156 CC*)
13157 # FIXME: insert proper C++ library support
13158 ld_shlibs_CXX=no
13160 aCC*)
13161 case $host_cpu in
13162 hppa*64*)
13163 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13165 ia64*)
13166 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13169 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13171 esac
13172 # Commands to make compiler produce verbose output that lists
13173 # what "hidden" libraries, object files and flags are used when
13174 # linking a shared library.
13176 # There doesn't appear to be a way to prevent this compiler from
13177 # explicitly linking system object files so we need to strip them
13178 # from the output so that they don't get included in the library
13179 # dependencies.
13180 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"'
13183 if test "$GXX" = yes; then
13184 if test $with_gnu_ld = no; then
13185 case $host_cpu in
13186 hppa*64*)
13187 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13189 ia64*)
13190 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13193 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'
13195 esac
13197 else
13198 # FIXME: insert proper C++ library support
13199 ld_shlibs_CXX=no
13202 esac
13205 interix[3-9]*)
13206 hardcode_direct_CXX=no
13207 hardcode_shlibpath_var_CXX=no
13208 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13209 export_dynamic_flag_spec_CXX='${wl}-E'
13210 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13211 # Instead, shared libraries are loaded at an image base (0x10000000 by
13212 # default) and relocated if they conflict, which is a slow very memory
13213 # consuming and fragmenting process. To avoid this, we pick a random,
13214 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13215 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13216 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'
13217 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'
13219 irix5* | irix6*)
13220 case $cc_basename in
13221 CC*)
13222 # SGI C++
13223 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'
13225 # Archives containing C++ object files must be created using
13226 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13227 # necessary to make sure instantiated templates are included
13228 # in the archive.
13229 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13232 if test "$GXX" = yes; then
13233 if test "$with_gnu_ld" = no; then
13234 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'
13235 else
13236 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'
13239 link_all_deplibs_CXX=yes
13241 esac
13242 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13243 hardcode_libdir_separator_CXX=:
13244 inherit_rpath_CXX=yes
13247 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13248 case $cc_basename in
13249 KCC*)
13250 # Kuck and Associates, Inc. (KAI) C++ Compiler
13252 # KCC will only create a shared library if the output file
13253 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13254 # to its proper name (with version) after linking.
13255 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'
13256 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'
13257 # Commands to make compiler produce verbose output that lists
13258 # what "hidden" libraries, object files and flags are used when
13259 # linking a shared library.
13261 # There doesn't appear to be a way to prevent this compiler from
13262 # explicitly linking system object files so we need to strip them
13263 # from the output so that they don't get included in the library
13264 # dependencies.
13265 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"'
13267 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13268 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13270 # Archives containing C++ object files must be created using
13271 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13272 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13274 icpc* | ecpc* )
13275 # Intel C++
13276 with_gnu_ld=yes
13277 # version 8.0 and above of icpc choke on multiply defined symbols
13278 # if we add $predep_objects and $postdep_objects, however 7.1 and
13279 # earlier do not add the objects themselves.
13280 case `$CC -V 2>&1` in
13281 *"Version 7."*)
13282 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13283 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'
13285 *) # Version 8.0 or newer
13286 tmp_idyn=
13287 case $host_cpu in
13288 ia64*) tmp_idyn=' -i_dynamic';;
13289 esac
13290 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13291 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'
13293 esac
13294 archive_cmds_need_lc_CXX=no
13295 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13296 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13297 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13299 pgCC* | pgcpp*)
13300 # Portland Group C++ compiler
13301 case `$CC -V` in
13302 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13303 prelink_cmds_CXX='tpldir=Template.dir~
13304 rm -rf $tpldir~
13305 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13306 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13307 old_archive_cmds_CXX='tpldir=Template.dir~
13308 rm -rf $tpldir~
13309 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13310 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13311 $RANLIB $oldlib'
13312 archive_cmds_CXX='tpldir=Template.dir~
13313 rm -rf $tpldir~
13314 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13315 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13316 archive_expsym_cmds_CXX='tpldir=Template.dir~
13317 rm -rf $tpldir~
13318 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13319 $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'
13321 *) # Version 6 and above use weak symbols
13322 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13323 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'
13325 esac
13327 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13328 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13329 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'
13331 cxx*)
13332 # Compaq C++
13333 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13334 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'
13336 runpath_var=LD_RUN_PATH
13337 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13338 hardcode_libdir_separator_CXX=:
13340 # Commands to make compiler produce verbose output that lists
13341 # what "hidden" libraries, object files and flags are used when
13342 # linking a shared library.
13344 # There doesn't appear to be a way to prevent this compiler from
13345 # explicitly linking system object files so we need to strip them
13346 # from the output so that they don't get included in the library
13347 # dependencies.
13348 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'
13350 xl* | mpixl* | bgxl*)
13351 # IBM XL 8.0 on PPC, with GNU ld
13352 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13353 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13354 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13355 if test "x$supports_anon_versioning" = xyes; then
13356 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13357 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13358 echo "local: *; };" >> $output_objdir/$libname.ver~
13359 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13363 case `$CC -V 2>&1 | sed 5q` in
13364 *Sun\ C*)
13365 # Sun C++ 5.9
13366 no_undefined_flag_CXX=' -zdefs'
13367 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13368 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'
13369 hardcode_libdir_flag_spec_CXX='-R$libdir'
13370 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'
13371 compiler_needs_object_CXX=yes
13373 # Not sure whether something based on
13374 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13375 # would be better.
13376 output_verbose_link_cmd='func_echo_all'
13378 # Archives containing C++ object files must be created using
13379 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13380 # necessary to make sure instantiated templates are included
13381 # in the archive.
13382 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13384 esac
13386 esac
13389 lynxos*)
13390 # FIXME: insert proper C++ library support
13391 ld_shlibs_CXX=no
13394 m88k*)
13395 # FIXME: insert proper C++ library support
13396 ld_shlibs_CXX=no
13399 mvs*)
13400 case $cc_basename in
13401 cxx*)
13402 # FIXME: insert proper C++ library support
13403 ld_shlibs_CXX=no
13406 # FIXME: insert proper C++ library support
13407 ld_shlibs_CXX=no
13409 esac
13412 netbsd*)
13413 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13414 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13415 wlarc=
13416 hardcode_libdir_flag_spec_CXX='-R$libdir'
13417 hardcode_direct_CXX=yes
13418 hardcode_shlibpath_var_CXX=no
13420 # Workaround some broken pre-1.5 toolchains
13421 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13424 *nto* | *qnx*)
13425 ld_shlibs_CXX=yes
13428 openbsd2*)
13429 # C++ shared libraries are fairly broken
13430 ld_shlibs_CXX=no
13433 openbsd*)
13434 if test -f /usr/libexec/ld.so; then
13435 hardcode_direct_CXX=yes
13436 hardcode_shlibpath_var_CXX=no
13437 hardcode_direct_absolute_CXX=yes
13438 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13439 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13440 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13441 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13442 export_dynamic_flag_spec_CXX='${wl}-E'
13443 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13445 output_verbose_link_cmd=func_echo_all
13446 else
13447 ld_shlibs_CXX=no
13451 osf3* | osf4* | osf5*)
13452 case $cc_basename in
13453 KCC*)
13454 # Kuck and Associates, Inc. (KAI) C++ Compiler
13456 # KCC will only create a shared library if the output file
13457 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13458 # to its proper name (with version) after linking.
13459 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'
13461 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13462 hardcode_libdir_separator_CXX=:
13464 # Archives containing C++ object files must be created using
13465 # the KAI C++ compiler.
13466 case $host in
13467 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13468 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13469 esac
13471 RCC*)
13472 # Rational C++ 2.4.1
13473 # FIXME: insert proper C++ library support
13474 ld_shlibs_CXX=no
13476 cxx*)
13477 case $host in
13478 osf3*)
13479 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13480 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'
13481 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13484 allow_undefined_flag_CXX=' -expect_unresolved \*'
13485 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'
13486 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13487 echo "-hidden">> $lib.exp~
13488 $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~
13489 $RM $lib.exp'
13490 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13492 esac
13494 hardcode_libdir_separator_CXX=:
13496 # Commands to make compiler produce verbose output that lists
13497 # what "hidden" libraries, object files and flags are used when
13498 # linking a shared library.
13500 # There doesn't appear to be a way to prevent this compiler from
13501 # explicitly linking system object files so we need to strip them
13502 # from the output so that they don't get included in the library
13503 # dependencies.
13504 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"'
13507 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13508 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13509 case $host in
13510 osf3*)
13511 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'
13514 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'
13516 esac
13518 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13519 hardcode_libdir_separator_CXX=:
13521 # Commands to make compiler produce verbose output that lists
13522 # what "hidden" libraries, object files and flags are used when
13523 # linking a shared library.
13524 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13526 else
13527 # FIXME: insert proper C++ library support
13528 ld_shlibs_CXX=no
13531 esac
13534 psos*)
13535 # FIXME: insert proper C++ library support
13536 ld_shlibs_CXX=no
13539 sunos4*)
13540 case $cc_basename in
13541 CC*)
13542 # Sun C++ 4.x
13543 # FIXME: insert proper C++ library support
13544 ld_shlibs_CXX=no
13546 lcc*)
13547 # Lucid
13548 # FIXME: insert proper C++ library support
13549 ld_shlibs_CXX=no
13552 # FIXME: insert proper C++ library support
13553 ld_shlibs_CXX=no
13555 esac
13558 solaris*)
13559 case $cc_basename in
13560 CC*)
13561 # Sun C++ 4.2, 5.x and Centerline C++
13562 archive_cmds_need_lc_CXX=yes
13563 no_undefined_flag_CXX=' -zdefs'
13564 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13565 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13566 $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'
13568 hardcode_libdir_flag_spec_CXX='-R$libdir'
13569 hardcode_shlibpath_var_CXX=no
13570 case $host_os in
13571 solaris2.[0-5] | solaris2.[0-5].*) ;;
13573 # The compiler driver will combine and reorder linker options,
13574 # but understands `-z linker_flag'.
13575 # Supported since Solaris 2.6 (maybe 2.5.1?)
13576 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13578 esac
13579 link_all_deplibs_CXX=yes
13581 output_verbose_link_cmd='func_echo_all'
13583 # Archives containing C++ object files must be created using
13584 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13585 # necessary to make sure instantiated templates are included
13586 # in the archive.
13587 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13589 gcx*)
13590 # Green Hills C++ Compiler
13591 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13593 # The C++ compiler must be used to create the archive.
13594 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13597 # GNU C++ compiler with Solaris linker
13598 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13599 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13600 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13601 archive_cmds_CXX='$CC -shared -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 -shared -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 -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13609 else
13610 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13611 # platform.
13612 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13613 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13614 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13616 # Commands to make compiler produce verbose output that lists
13617 # what "hidden" libraries, object files and flags are used when
13618 # linking a shared library.
13619 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13622 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13623 case $host_os in
13624 solaris2.[0-5] | solaris2.[0-5].*) ;;
13626 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13628 esac
13631 esac
13634 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13635 no_undefined_flag_CXX='${wl}-z,text'
13636 archive_cmds_need_lc_CXX=no
13637 hardcode_shlibpath_var_CXX=no
13638 runpath_var='LD_RUN_PATH'
13640 case $cc_basename in
13641 CC*)
13642 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13643 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13646 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13647 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13649 esac
13652 sysv5* | sco3.2v5* | sco5v6*)
13653 # Note: We can NOT use -z defs as we might desire, because we do not
13654 # link with -lc, and that would cause any symbols used from libc to
13655 # always be unresolved, which means just about no library would
13656 # ever link correctly. If we're not using GNU ld we use -z text
13657 # though, which does catch some bad symbols but isn't as heavy-handed
13658 # as -z defs.
13659 no_undefined_flag_CXX='${wl}-z,text'
13660 allow_undefined_flag_CXX='${wl}-z,nodefs'
13661 archive_cmds_need_lc_CXX=no
13662 hardcode_shlibpath_var_CXX=no
13663 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13664 hardcode_libdir_separator_CXX=':'
13665 link_all_deplibs_CXX=yes
13666 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13667 runpath_var='LD_RUN_PATH'
13669 case $cc_basename in
13670 CC*)
13671 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13672 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13673 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13674 '"$old_archive_cmds_CXX"
13675 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13676 '"$reload_cmds_CXX"
13679 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13680 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13682 esac
13685 tandem*)
13686 case $cc_basename in
13687 NCC*)
13688 # NonStop-UX NCC 3.20
13689 # FIXME: insert proper C++ library support
13690 ld_shlibs_CXX=no
13693 # FIXME: insert proper C++ library support
13694 ld_shlibs_CXX=no
13696 esac
13699 vxworks*)
13700 # FIXME: insert proper C++ library support
13701 ld_shlibs_CXX=no
13705 # FIXME: insert proper C++ library support
13706 ld_shlibs_CXX=no
13708 esac
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13711 $as_echo "$ld_shlibs_CXX" >&6; }
13712 test "$ld_shlibs_CXX" = no && can_build_shared=no
13714 GCC_CXX="$GXX"
13715 LD_CXX="$LD"
13717 ## CAVEAT EMPTOR:
13718 ## There is no encapsulation within the following macros, do not change
13719 ## the running order or otherwise move them around unless you know exactly
13720 ## what you are doing...
13721 # Dependencies to place before and after the object being linked:
13722 predep_objects_CXX=
13723 postdep_objects_CXX=
13724 predeps_CXX=
13725 postdeps_CXX=
13726 compiler_lib_search_path_CXX=
13728 cat > conftest.$ac_ext <<_LT_EOF
13729 class Foo
13731 public:
13732 Foo (void) { a = 0; }
13733 private:
13734 int a;
13736 _LT_EOF
13738 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13739 (eval $ac_compile) 2>&5
13740 ac_status=$?
13741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13742 test $ac_status = 0; }; then
13743 # Parse the compiler output and extract the necessary
13744 # objects, libraries and library flags.
13746 # Sentinel used to keep track of whether or not we are before
13747 # the conftest object file.
13748 pre_test_object_deps_done=no
13750 for p in `eval "$output_verbose_link_cmd"`; do
13751 case $p in
13753 -L* | -R* | -l*)
13754 # Some compilers place space between "-{L,R}" and the path.
13755 # Remove the space.
13756 if test $p = "-L" ||
13757 test $p = "-R"; then
13758 prev=$p
13759 continue
13760 else
13761 prev=
13764 if test "$pre_test_object_deps_done" = no; then
13765 case $p in
13766 -L* | -R*)
13767 # Internal compiler library paths should come after those
13768 # provided the user. The postdeps already come after the
13769 # user supplied libs so there is no need to process them.
13770 if test -z "$compiler_lib_search_path_CXX"; then
13771 compiler_lib_search_path_CXX="${prev}${p}"
13772 else
13773 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13776 # The "-l" case would never come before the object being
13777 # linked, so don't bother handling this case.
13778 esac
13779 else
13780 if test -z "$postdeps_CXX"; then
13781 postdeps_CXX="${prev}${p}"
13782 else
13783 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13788 *.$objext)
13789 # This assumes that the test object file only shows up
13790 # once in the compiler output.
13791 if test "$p" = "conftest.$objext"; then
13792 pre_test_object_deps_done=yes
13793 continue
13796 if test "$pre_test_object_deps_done" = no; then
13797 if test -z "$predep_objects_CXX"; then
13798 predep_objects_CXX="$p"
13799 else
13800 predep_objects_CXX="$predep_objects_CXX $p"
13802 else
13803 if test -z "$postdep_objects_CXX"; then
13804 postdep_objects_CXX="$p"
13805 else
13806 postdep_objects_CXX="$postdep_objects_CXX $p"
13811 *) ;; # Ignore the rest.
13813 esac
13814 done
13816 # Clean up.
13817 rm -f a.out a.exe
13818 else
13819 echo "libtool.m4: error: problem compiling CXX test program"
13822 $RM -f confest.$objext
13824 # PORTME: override above test on systems where it is broken
13825 case $host_os in
13826 interix[3-9]*)
13827 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13828 # hack all around it, let's just trust "g++" to DTRT.
13829 predep_objects_CXX=
13830 postdep_objects_CXX=
13831 postdeps_CXX=
13834 linux*)
13835 case `$CC -V 2>&1 | sed 5q` in
13836 *Sun\ C*)
13837 # Sun C++ 5.9
13839 # The more standards-conforming stlport4 library is
13840 # incompatible with the Cstd library. Avoid specifying
13841 # it if it's in CXXFLAGS. Ignore libCrun as
13842 # -library=stlport4 depends on it.
13843 case " $CXX $CXXFLAGS " in
13844 *" -library=stlport4 "*)
13845 solaris_use_stlport4=yes
13847 esac
13849 if test "$solaris_use_stlport4" != yes; then
13850 postdeps_CXX='-library=Cstd -library=Crun'
13853 esac
13856 solaris*)
13857 case $cc_basename in
13858 CC*)
13859 # The more standards-conforming stlport4 library is
13860 # incompatible with the Cstd library. Avoid specifying
13861 # it if it's in CXXFLAGS. Ignore libCrun as
13862 # -library=stlport4 depends on it.
13863 case " $CXX $CXXFLAGS " in
13864 *" -library=stlport4 "*)
13865 solaris_use_stlport4=yes
13867 esac
13869 # Adding this requires a known-good setup of shared libraries for
13870 # Sun compiler versions before 5.6, else PIC objects from an old
13871 # archive will be linked into the output, leading to subtle bugs.
13872 if test "$solaris_use_stlport4" != yes; then
13873 postdeps_CXX='-library=Cstd -library=Crun'
13876 esac
13878 esac
13881 case " $postdeps_CXX " in
13882 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13883 esac
13884 compiler_lib_search_dirs_CXX=
13885 if test -n "${compiler_lib_search_path_CXX}"; then
13886 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13919 lt_prog_compiler_wl_CXX=
13920 lt_prog_compiler_pic_CXX=
13921 lt_prog_compiler_static_CXX=
13923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13924 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13926 # C++ specific cases for pic, static, wl, etc.
13927 if test "$GXX" = yes; then
13928 lt_prog_compiler_wl_CXX='-Wl,'
13929 lt_prog_compiler_static_CXX='-static'
13931 case $host_os in
13932 aix*)
13933 # All AIX code is PIC.
13934 if test "$host_cpu" = ia64; then
13935 # AIX 5 now supports IA64 processor
13936 lt_prog_compiler_static_CXX='-Bstatic'
13938 lt_prog_compiler_pic_CXX='-fPIC'
13941 amigaos*)
13942 case $host_cpu in
13943 powerpc)
13944 # see comment about AmigaOS4 .so support
13945 lt_prog_compiler_pic_CXX='-fPIC'
13947 m68k)
13948 # FIXME: we need at least 68020 code to build shared libraries, but
13949 # adding the `-m68020' flag to GCC prevents building anything better,
13950 # like `-m68040'.
13951 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13953 esac
13956 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13957 # PIC is the default for these OSes.
13959 mingw* | cygwin* | os2* | pw32* | cegcc*)
13960 # This hack is so that the source file can tell whether it is being
13961 # built for inclusion in a dll (and should export symbols for example).
13962 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13963 # (--disable-auto-import) libraries
13964 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13966 darwin* | rhapsody*)
13967 # PIC is the default on this platform
13968 # Common symbols not allowed in MH_DYLIB files
13969 lt_prog_compiler_pic_CXX='-fno-common'
13971 *djgpp*)
13972 # DJGPP does not support shared libraries at all
13973 lt_prog_compiler_pic_CXX=
13975 haiku*)
13976 # PIC is the default for Haiku.
13977 # The "-static" flag exists, but is broken.
13978 lt_prog_compiler_static_CXX=
13980 interix[3-9]*)
13981 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13982 # Instead, we relocate shared libraries at runtime.
13984 sysv4*MP*)
13985 if test -d /usr/nec; then
13986 lt_prog_compiler_pic_CXX=-Kconform_pic
13989 hpux*)
13990 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13991 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13992 # sets the default TLS model and affects inlining.
13993 case $host_cpu in
13994 hppa*64*)
13997 lt_prog_compiler_pic_CXX='-fPIC'
13999 esac
14001 *qnx* | *nto*)
14002 # QNX uses GNU C++, but need to define -shared option too, otherwise
14003 # it will coredump.
14004 lt_prog_compiler_pic_CXX='-fPIC -shared'
14007 lt_prog_compiler_pic_CXX='-fPIC'
14009 esac
14010 else
14011 case $host_os in
14012 aix[4-9]*)
14013 # All AIX code is PIC.
14014 if test "$host_cpu" = ia64; then
14015 # AIX 5 now supports IA64 processor
14016 lt_prog_compiler_static_CXX='-Bstatic'
14017 else
14018 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14021 chorus*)
14022 case $cc_basename in
14023 cxch68*)
14024 # Green Hills C++ Compiler
14025 # _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"
14027 esac
14029 dgux*)
14030 case $cc_basename in
14031 ec++*)
14032 lt_prog_compiler_pic_CXX='-KPIC'
14034 ghcx*)
14035 # Green Hills C++ Compiler
14036 lt_prog_compiler_pic_CXX='-pic'
14040 esac
14042 freebsd* | dragonfly*)
14043 # FreeBSD uses GNU C++
14045 hpux9* | hpux10* | hpux11*)
14046 case $cc_basename in
14047 CC*)
14048 lt_prog_compiler_wl_CXX='-Wl,'
14049 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14050 if test "$host_cpu" != ia64; then
14051 lt_prog_compiler_pic_CXX='+Z'
14054 aCC*)
14055 lt_prog_compiler_wl_CXX='-Wl,'
14056 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14057 case $host_cpu in
14058 hppa*64*|ia64*)
14059 # +Z the default
14062 lt_prog_compiler_pic_CXX='+Z'
14064 esac
14068 esac
14070 interix*)
14071 # This is c89, which is MS Visual C++ (no shared libs)
14072 # Anyone wants to do a port?
14074 irix5* | irix6* | nonstopux*)
14075 case $cc_basename in
14076 CC*)
14077 lt_prog_compiler_wl_CXX='-Wl,'
14078 lt_prog_compiler_static_CXX='-non_shared'
14079 # CC pic flag -KPIC is the default.
14083 esac
14085 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14086 case $cc_basename in
14087 KCC*)
14088 # KAI C++ Compiler
14089 lt_prog_compiler_wl_CXX='--backend -Wl,'
14090 lt_prog_compiler_pic_CXX='-fPIC'
14092 ecpc* )
14093 # old Intel C++ for x86_64 which still supported -KPIC.
14094 lt_prog_compiler_wl_CXX='-Wl,'
14095 lt_prog_compiler_pic_CXX='-KPIC'
14096 lt_prog_compiler_static_CXX='-static'
14098 icpc* )
14099 # Intel C++, used to be incompatible with GCC.
14100 # ICC 10 doesn't accept -KPIC any more.
14101 lt_prog_compiler_wl_CXX='-Wl,'
14102 lt_prog_compiler_pic_CXX='-fPIC'
14103 lt_prog_compiler_static_CXX='-static'
14105 pgCC* | pgcpp*)
14106 # Portland Group C++ compiler
14107 lt_prog_compiler_wl_CXX='-Wl,'
14108 lt_prog_compiler_pic_CXX='-fpic'
14109 lt_prog_compiler_static_CXX='-Bstatic'
14111 cxx*)
14112 # Compaq C++
14113 # Make sure the PIC flag is empty. It appears that all Alpha
14114 # Linux and Compaq Tru64 Unix objects are PIC.
14115 lt_prog_compiler_pic_CXX=
14116 lt_prog_compiler_static_CXX='-non_shared'
14118 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14119 # IBM XL 8.0, 9.0 on PPC and BlueGene
14120 lt_prog_compiler_wl_CXX='-Wl,'
14121 lt_prog_compiler_pic_CXX='-qpic'
14122 lt_prog_compiler_static_CXX='-qstaticlink'
14125 case `$CC -V 2>&1 | sed 5q` in
14126 *Sun\ C*)
14127 # Sun C++ 5.9
14128 lt_prog_compiler_pic_CXX='-KPIC'
14129 lt_prog_compiler_static_CXX='-Bstatic'
14130 lt_prog_compiler_wl_CXX='-Qoption ld '
14132 esac
14134 esac
14136 lynxos*)
14138 m88k*)
14140 mvs*)
14141 case $cc_basename in
14142 cxx*)
14143 lt_prog_compiler_pic_CXX='-W c,exportall'
14147 esac
14149 netbsd*)
14151 *qnx* | *nto*)
14152 # QNX uses GNU C++, but need to define -shared option too, otherwise
14153 # it will coredump.
14154 lt_prog_compiler_pic_CXX='-fPIC -shared'
14156 osf3* | osf4* | osf5*)
14157 case $cc_basename in
14158 KCC*)
14159 lt_prog_compiler_wl_CXX='--backend -Wl,'
14161 RCC*)
14162 # Rational C++ 2.4.1
14163 lt_prog_compiler_pic_CXX='-pic'
14165 cxx*)
14166 # Digital/Compaq C++
14167 lt_prog_compiler_wl_CXX='-Wl,'
14168 # Make sure the PIC flag is empty. It appears that all Alpha
14169 # Linux and Compaq Tru64 Unix objects are PIC.
14170 lt_prog_compiler_pic_CXX=
14171 lt_prog_compiler_static_CXX='-non_shared'
14175 esac
14177 psos*)
14179 solaris*)
14180 case $cc_basename in
14181 CC*)
14182 # Sun C++ 4.2, 5.x and Centerline C++
14183 lt_prog_compiler_pic_CXX='-KPIC'
14184 lt_prog_compiler_static_CXX='-Bstatic'
14185 lt_prog_compiler_wl_CXX='-Qoption ld '
14187 gcx*)
14188 # Green Hills C++ Compiler
14189 lt_prog_compiler_pic_CXX='-PIC'
14193 esac
14195 sunos4*)
14196 case $cc_basename in
14197 CC*)
14198 # Sun C++ 4.x
14199 lt_prog_compiler_pic_CXX='-pic'
14200 lt_prog_compiler_static_CXX='-Bstatic'
14202 lcc*)
14203 # Lucid
14204 lt_prog_compiler_pic_CXX='-pic'
14208 esac
14210 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14211 case $cc_basename in
14212 CC*)
14213 lt_prog_compiler_wl_CXX='-Wl,'
14214 lt_prog_compiler_pic_CXX='-KPIC'
14215 lt_prog_compiler_static_CXX='-Bstatic'
14217 esac
14219 tandem*)
14220 case $cc_basename in
14221 NCC*)
14222 # NonStop-UX NCC 3.20
14223 lt_prog_compiler_pic_CXX='-KPIC'
14227 esac
14229 vxworks*)
14232 lt_prog_compiler_can_build_shared_CXX=no
14234 esac
14237 case $host_os in
14238 # For platforms which do not support PIC, -DPIC is meaningless:
14239 *djgpp*)
14240 lt_prog_compiler_pic_CXX=
14243 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14245 esac
14246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14247 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14252 # Check to make sure the PIC flag actually works.
14254 if test -n "$lt_prog_compiler_pic_CXX"; then
14255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14256 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14257 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
14258 $as_echo_n "(cached) " >&6
14259 else
14260 lt_cv_prog_compiler_pic_works_CXX=no
14261 ac_outfile=conftest.$ac_objext
14262 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14263 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14264 # Insert the option either (1) after the last *FLAGS variable, or
14265 # (2) before a word containing "conftest.", or (3) at the end.
14266 # Note that $ac_compile itself does not contain backslashes and begins
14267 # with a dollar sign (not a hyphen), so the echo should work correctly.
14268 # The option is referenced via a variable to avoid confusing sed.
14269 lt_compile=`echo "$ac_compile" | $SED \
14270 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14271 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14272 -e 's:$: $lt_compiler_flag:'`
14273 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14274 (eval "$lt_compile" 2>conftest.err)
14275 ac_status=$?
14276 cat conftest.err >&5
14277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14278 if (exit $ac_status) && test -s "$ac_outfile"; then
14279 # The compiler can only warn and ignore the option if not recognized
14280 # So say no if there are warnings other than the usual output.
14281 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14282 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14283 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14284 lt_cv_prog_compiler_pic_works_CXX=yes
14287 $RM conftest*
14290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14291 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14293 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14294 case $lt_prog_compiler_pic_CXX in
14295 "" | " "*) ;;
14296 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14297 esac
14298 else
14299 lt_prog_compiler_pic_CXX=
14300 lt_prog_compiler_can_build_shared_CXX=no
14308 # Check to make sure the static flag actually works.
14310 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14312 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14313 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
14314 $as_echo_n "(cached) " >&6
14315 else
14316 lt_cv_prog_compiler_static_works_CXX=no
14317 save_LDFLAGS="$LDFLAGS"
14318 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14319 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14320 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14321 # The linker can only warn and ignore the option if not recognized
14322 # So say no if there are warnings
14323 if test -s conftest.err; then
14324 # Append any errors to the config.log.
14325 cat conftest.err 1>&5
14326 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14327 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14328 if diff conftest.exp conftest.er2 >/dev/null; then
14329 lt_cv_prog_compiler_static_works_CXX=yes
14331 else
14332 lt_cv_prog_compiler_static_works_CXX=yes
14335 $RM -r conftest*
14336 LDFLAGS="$save_LDFLAGS"
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14340 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14342 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14344 else
14345 lt_prog_compiler_static_CXX=
14351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14352 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14353 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14354 $as_echo_n "(cached) " >&6
14355 else
14356 lt_cv_prog_compiler_c_o_CXX=no
14357 $RM -r conftest 2>/dev/null
14358 mkdir conftest
14359 cd conftest
14360 mkdir out
14361 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14363 lt_compiler_flag="-o out/conftest2.$ac_objext"
14364 # Insert the option either (1) after the last *FLAGS variable, or
14365 # (2) before a word containing "conftest.", or (3) at the end.
14366 # Note that $ac_compile itself does not contain backslashes and begins
14367 # with a dollar sign (not a hyphen), so the echo should work correctly.
14368 lt_compile=`echo "$ac_compile" | $SED \
14369 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14370 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14371 -e 's:$: $lt_compiler_flag:'`
14372 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14373 (eval "$lt_compile" 2>out/conftest.err)
14374 ac_status=$?
14375 cat out/conftest.err >&5
14376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14377 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14378 then
14379 # The compiler can only warn and ignore the option if not recognized
14380 # So say no if there are warnings
14381 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14382 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14383 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14384 lt_cv_prog_compiler_c_o_CXX=yes
14387 chmod u+w . 2>&5
14388 $RM conftest*
14389 # SGI C++ compiler will create directory out/ii_files/ for
14390 # template instantiation
14391 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14392 $RM out/* && rmdir out
14393 cd ..
14394 $RM -r conftest
14395 $RM conftest*
14398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14399 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14404 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14405 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14406 $as_echo_n "(cached) " >&6
14407 else
14408 lt_cv_prog_compiler_c_o_CXX=no
14409 $RM -r conftest 2>/dev/null
14410 mkdir conftest
14411 cd conftest
14412 mkdir out
14413 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14415 lt_compiler_flag="-o out/conftest2.$ac_objext"
14416 # Insert the option either (1) after the last *FLAGS variable, or
14417 # (2) before a word containing "conftest.", or (3) at the end.
14418 # Note that $ac_compile itself does not contain backslashes and begins
14419 # with a dollar sign (not a hyphen), so the echo should work correctly.
14420 lt_compile=`echo "$ac_compile" | $SED \
14421 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14422 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14423 -e 's:$: $lt_compiler_flag:'`
14424 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14425 (eval "$lt_compile" 2>out/conftest.err)
14426 ac_status=$?
14427 cat out/conftest.err >&5
14428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14429 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14430 then
14431 # The compiler can only warn and ignore the option if not recognized
14432 # So say no if there are warnings
14433 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14434 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14435 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14436 lt_cv_prog_compiler_c_o_CXX=yes
14439 chmod u+w . 2>&5
14440 $RM conftest*
14441 # SGI C++ compiler will create directory out/ii_files/ for
14442 # template instantiation
14443 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14444 $RM out/* && rmdir out
14445 cd ..
14446 $RM -r conftest
14447 $RM conftest*
14450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14451 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14456 hard_links="nottested"
14457 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14458 # do not overwrite the value of need_locks provided by the user
14459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14460 $as_echo_n "checking if we can lock with hard links... " >&6; }
14461 hard_links=yes
14462 $RM conftest*
14463 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14464 touch conftest.a
14465 ln conftest.a conftest.b 2>&5 || hard_links=no
14466 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14468 $as_echo "$hard_links" >&6; }
14469 if test "$hard_links" = no; then
14470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14471 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14472 need_locks=warn
14474 else
14475 need_locks=no
14480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14481 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14483 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14484 case $host_os in
14485 aix[4-9]*)
14486 # If we're using GNU nm, then we don't want the "-C" option.
14487 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14488 # Also, AIX nm treats weak defined symbols like other global defined
14489 # symbols, whereas GNU nm marks them as "W".
14490 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14491 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'
14492 else
14493 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14496 pw32*)
14497 export_symbols_cmds_CXX="$ltdll_cmds"
14499 cygwin* | mingw* | cegcc*)
14500 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'
14503 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14505 esac
14506 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14509 $as_echo "$ld_shlibs_CXX" >&6; }
14510 test "$ld_shlibs_CXX" = no && can_build_shared=no
14512 with_gnu_ld_CXX=$with_gnu_ld
14520 # Do we need to explicitly link libc?
14522 case "x$archive_cmds_need_lc_CXX" in
14523 x|xyes)
14524 # Assume -lc should be added
14525 archive_cmds_need_lc_CXX=yes
14527 if test "$enable_shared" = yes && test "$GCC" = yes; then
14528 case $archive_cmds_CXX in
14529 *'~'*)
14530 # FIXME: we may have to deal with multi-command sequences.
14532 '$CC '*)
14533 # Test whether the compiler implicitly links with -lc since on some
14534 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14535 # to ld, don't add -lc before -lgcc.
14536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14537 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14538 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
14539 $as_echo_n "(cached) " >&6
14540 else
14541 $RM conftest*
14542 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14544 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14545 (eval $ac_compile) 2>&5
14546 ac_status=$?
14547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14548 test $ac_status = 0; } 2>conftest.err; then
14549 soname=conftest
14550 lib=conftest
14551 libobjs=conftest.$ac_objext
14552 deplibs=
14553 wl=$lt_prog_compiler_wl_CXX
14554 pic_flag=$lt_prog_compiler_pic_CXX
14555 compiler_flags=-v
14556 linker_flags=-v
14557 verstring=
14558 output_objdir=.
14559 libname=conftest
14560 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14561 allow_undefined_flag_CXX=
14562 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14563 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14564 ac_status=$?
14565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14566 test $ac_status = 0; }
14567 then
14568 lt_cv_archive_cmds_need_lc_CXX=no
14569 else
14570 lt_cv_archive_cmds_need_lc_CXX=yes
14572 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14573 else
14574 cat conftest.err 1>&5
14576 $RM conftest*
14579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14580 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14581 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14583 esac
14586 esac
14651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14652 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14654 library_names_spec=
14655 libname_spec='lib$name'
14656 soname_spec=
14657 shrext_cmds=".so"
14658 postinstall_cmds=
14659 postuninstall_cmds=
14660 finish_cmds=
14661 finish_eval=
14662 shlibpath_var=
14663 shlibpath_overrides_runpath=unknown
14664 version_type=none
14665 dynamic_linker="$host_os ld.so"
14666 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14667 need_lib_prefix=unknown
14668 hardcode_into_libs=no
14670 # when you set need_version to no, make sure it does not cause -set_version
14671 # flags to be left without arguments
14672 need_version=unknown
14674 case $host_os in
14675 aix3*)
14676 version_type=linux
14677 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14678 shlibpath_var=LIBPATH
14680 # AIX 3 has no versioning support, so we append a major version to the name.
14681 soname_spec='${libname}${release}${shared_ext}$major'
14684 aix[4-9]*)
14685 version_type=linux
14686 need_lib_prefix=no
14687 need_version=no
14688 hardcode_into_libs=yes
14689 if test "$host_cpu" = ia64; then
14690 # AIX 5 supports IA64
14691 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14692 shlibpath_var=LD_LIBRARY_PATH
14693 else
14694 # With GCC up to 2.95.x, collect2 would create an import file
14695 # for dependence libraries. The import file would start with
14696 # the line `#! .'. This would cause the generated library to
14697 # depend on `.', always an invalid library. This was fixed in
14698 # development snapshots of GCC prior to 3.0.
14699 case $host_os in
14700 aix4 | aix4.[01] | aix4.[01].*)
14701 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14702 echo ' yes '
14703 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14705 else
14706 can_build_shared=no
14709 esac
14710 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14711 # soname into executable. Probably we can add versioning support to
14712 # collect2, so additional links can be useful in future.
14713 if test "$aix_use_runtimelinking" = yes; then
14714 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14715 # instead of lib<name>.a to let people know that these are not
14716 # typical AIX shared libraries.
14717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14718 else
14719 # We preserve .a as extension for shared libraries through AIX4.2
14720 # and later when we are not doing run time linking.
14721 library_names_spec='${libname}${release}.a $libname.a'
14722 soname_spec='${libname}${release}${shared_ext}$major'
14724 shlibpath_var=LIBPATH
14728 amigaos*)
14729 case $host_cpu in
14730 powerpc)
14731 # Since July 2007 AmigaOS4 officially supports .so libraries.
14732 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14735 m68k)
14736 library_names_spec='$libname.ixlibrary $libname.a'
14737 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14738 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'
14740 esac
14743 beos*)
14744 library_names_spec='${libname}${shared_ext}'
14745 dynamic_linker="$host_os ld.so"
14746 shlibpath_var=LIBRARY_PATH
14749 bsdi[45]*)
14750 version_type=linux
14751 need_version=no
14752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14753 soname_spec='${libname}${release}${shared_ext}$major'
14754 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14755 shlibpath_var=LD_LIBRARY_PATH
14756 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14757 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14758 # the default ld.so.conf also contains /usr/contrib/lib and
14759 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14760 # libtool to hard-code these into programs
14763 cygwin* | mingw* | pw32* | cegcc*)
14764 version_type=windows
14765 shrext_cmds=".dll"
14766 need_version=no
14767 need_lib_prefix=no
14769 case $GCC,$host_os in
14770 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14771 library_names_spec='$libname.dll.a'
14772 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14773 postinstall_cmds='base_file=`basename \${file}`~
14774 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14775 dldir=$destdir/`dirname \$dlpath`~
14776 test -d \$dldir || mkdir -p \$dldir~
14777 $install_prog $dir/$dlname \$dldir/$dlname~
14778 chmod a+x \$dldir/$dlname~
14779 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14780 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14782 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14783 dlpath=$dir/\$dldll~
14784 $RM \$dlpath'
14785 shlibpath_overrides_runpath=yes
14787 case $host_os in
14788 cygwin*)
14789 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14790 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14793 mingw* | cegcc*)
14794 # MinGW DLLs use traditional 'lib' prefix
14795 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14797 pw32*)
14798 # pw32 DLLs use 'pw' prefix rather than 'lib'
14799 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14801 esac
14805 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14807 esac
14808 dynamic_linker='Win32 ld.exe'
14809 # FIXME: first we should search . and the directory the executable is in
14810 shlibpath_var=PATH
14813 darwin* | rhapsody*)
14814 dynamic_linker="$host_os dyld"
14815 version_type=darwin
14816 need_lib_prefix=no
14817 need_version=no
14818 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14819 soname_spec='${libname}${release}${major}$shared_ext'
14820 shlibpath_overrides_runpath=yes
14821 shlibpath_var=DYLD_LIBRARY_PATH
14822 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14824 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14827 dgux*)
14828 version_type=linux
14829 need_lib_prefix=no
14830 need_version=no
14831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14832 soname_spec='${libname}${release}${shared_ext}$major'
14833 shlibpath_var=LD_LIBRARY_PATH
14836 freebsd* | dragonfly*)
14837 # DragonFly does not have aout. When/if they implement a new
14838 # versioning mechanism, adjust this.
14839 if test -x /usr/bin/objformat; then
14840 objformat=`/usr/bin/objformat`
14841 else
14842 case $host_os in
14843 freebsd[23].*) objformat=aout ;;
14844 *) objformat=elf ;;
14845 esac
14847 version_type=freebsd-$objformat
14848 case $version_type in
14849 freebsd-elf*)
14850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14851 need_version=no
14852 need_lib_prefix=no
14854 freebsd-*)
14855 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14856 need_version=yes
14858 esac
14859 shlibpath_var=LD_LIBRARY_PATH
14860 case $host_os in
14861 freebsd2.*)
14862 shlibpath_overrides_runpath=yes
14864 freebsd3.[01]* | freebsdelf3.[01]*)
14865 shlibpath_overrides_runpath=yes
14866 hardcode_into_libs=yes
14868 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14869 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14870 shlibpath_overrides_runpath=no
14871 hardcode_into_libs=yes
14873 *) # from 4.6 on, and DragonFly
14874 shlibpath_overrides_runpath=yes
14875 hardcode_into_libs=yes
14877 esac
14880 gnu*)
14881 version_type=linux
14882 need_lib_prefix=no
14883 need_version=no
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=LD_LIBRARY_PATH
14887 hardcode_into_libs=yes
14890 haiku*)
14891 version_type=linux
14892 need_lib_prefix=no
14893 need_version=no
14894 dynamic_linker="$host_os runtime_loader"
14895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14896 soname_spec='${libname}${release}${shared_ext}$major'
14897 shlibpath_var=LIBRARY_PATH
14898 shlibpath_overrides_runpath=yes
14899 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14900 hardcode_into_libs=yes
14903 hpux9* | hpux10* | hpux11*)
14904 # Give a soname corresponding to the major version so that dld.sl refuses to
14905 # link against other versions.
14906 version_type=sunos
14907 need_lib_prefix=no
14908 need_version=no
14909 case $host_cpu in
14910 ia64*)
14911 shrext_cmds='.so'
14912 hardcode_into_libs=yes
14913 dynamic_linker="$host_os dld.so"
14914 shlibpath_var=LD_LIBRARY_PATH
14915 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14917 soname_spec='${libname}${release}${shared_ext}$major'
14918 if test "X$HPUX_IA64_MODE" = X32; then
14919 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14920 else
14921 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14923 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14925 hppa*64*)
14926 shrext_cmds='.sl'
14927 hardcode_into_libs=yes
14928 dynamic_linker="$host_os dld.sl"
14929 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14930 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14932 soname_spec='${libname}${release}${shared_ext}$major'
14933 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14934 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14937 shrext_cmds='.sl'
14938 dynamic_linker="$host_os dld.sl"
14939 shlibpath_var=SHLIB_PATH
14940 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14942 soname_spec='${libname}${release}${shared_ext}$major'
14944 esac
14945 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14946 postinstall_cmds='chmod 555 $lib'
14947 # or fails outright, so override atomically:
14948 install_override_mode=555
14951 interix[3-9]*)
14952 version_type=linux
14953 need_lib_prefix=no
14954 need_version=no
14955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14956 soname_spec='${libname}${release}${shared_ext}$major'
14957 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14958 shlibpath_var=LD_LIBRARY_PATH
14959 shlibpath_overrides_runpath=no
14960 hardcode_into_libs=yes
14963 irix5* | irix6* | nonstopux*)
14964 case $host_os in
14965 nonstopux*) version_type=nonstopux ;;
14967 if test "$lt_cv_prog_gnu_ld" = yes; then
14968 version_type=linux
14969 else
14970 version_type=irix
14971 fi ;;
14972 esac
14973 need_lib_prefix=no
14974 need_version=no
14975 soname_spec='${libname}${release}${shared_ext}$major'
14976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14977 case $host_os in
14978 irix5* | nonstopux*)
14979 libsuff= shlibsuff=
14982 case $LD in # libtool.m4 will add one of these switches to LD
14983 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14984 libsuff= shlibsuff= libmagic=32-bit;;
14985 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14986 libsuff=32 shlibsuff=N32 libmagic=N32;;
14987 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14988 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14989 *) libsuff= shlibsuff= libmagic=never-match;;
14990 esac
14992 esac
14993 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14994 shlibpath_overrides_runpath=no
14995 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14996 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14997 hardcode_into_libs=yes
15000 # No shared lib support for Linux oldld, aout, or coff.
15001 linux*oldld* | linux*aout* | linux*coff*)
15002 dynamic_linker=no
15005 # This must be Linux ELF.
15006 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15007 version_type=linux
15008 need_lib_prefix=no
15009 need_version=no
15010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15011 soname_spec='${libname}${release}${shared_ext}$major'
15012 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15013 shlibpath_var=LD_LIBRARY_PATH
15014 shlibpath_overrides_runpath=no
15016 # Some binutils ld are patched to set DT_RUNPATH
15017 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
15018 $as_echo_n "(cached) " >&6
15019 else
15020 lt_cv_shlibpath_overrides_runpath=no
15021 save_LDFLAGS=$LDFLAGS
15022 save_libdir=$libdir
15023 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15024 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15026 /* end confdefs.h. */
15029 main ()
15033 return 0;
15035 _ACEOF
15036 if ac_fn_cxx_try_link "$LINENO"; then :
15037 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15038 lt_cv_shlibpath_overrides_runpath=yes
15041 rm -f core conftest.err conftest.$ac_objext \
15042 conftest$ac_exeext conftest.$ac_ext
15043 LDFLAGS=$save_LDFLAGS
15044 libdir=$save_libdir
15048 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15050 # This implies no fast_install, which is unacceptable.
15051 # Some rework will be needed to allow for fast_install
15052 # before this can be enabled.
15053 hardcode_into_libs=yes
15055 # Append ld.so.conf contents to the search path
15056 if test -f /etc/ld.so.conf; then
15057 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' ' '`
15058 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15061 # We used to test for /lib/ld.so.1 and disable shared libraries on
15062 # powerpc, because MkLinux only supported shared libraries with the
15063 # GNU dynamic linker. Since this was broken with cross compilers,
15064 # most powerpc-linux boxes support dynamic linking these days and
15065 # people can always --disable-shared, the test was removed, and we
15066 # assume the GNU/Linux dynamic linker is in use.
15067 dynamic_linker='GNU/Linux ld.so'
15070 netbsd*)
15071 version_type=sunos
15072 need_lib_prefix=no
15073 need_version=no
15074 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15076 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15077 dynamic_linker='NetBSD (a.out) ld.so'
15078 else
15079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15080 soname_spec='${libname}${release}${shared_ext}$major'
15081 dynamic_linker='NetBSD ld.elf_so'
15083 shlibpath_var=LD_LIBRARY_PATH
15084 shlibpath_overrides_runpath=yes
15085 hardcode_into_libs=yes
15088 newsos6)
15089 version_type=linux
15090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15091 shlibpath_var=LD_LIBRARY_PATH
15092 shlibpath_overrides_runpath=yes
15095 *nto* | *qnx*)
15096 version_type=qnx
15097 need_lib_prefix=no
15098 need_version=no
15099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15100 soname_spec='${libname}${release}${shared_ext}$major'
15101 shlibpath_var=LD_LIBRARY_PATH
15102 shlibpath_overrides_runpath=no
15103 hardcode_into_libs=yes
15104 dynamic_linker='ldqnx.so'
15107 openbsd*)
15108 version_type=sunos
15109 sys_lib_dlsearch_path_spec="/usr/lib"
15110 need_lib_prefix=no
15111 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15112 case $host_os in
15113 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15114 *) need_version=no ;;
15115 esac
15116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15117 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15118 shlibpath_var=LD_LIBRARY_PATH
15119 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15120 case $host_os in
15121 openbsd2.[89] | openbsd2.[89].*)
15122 shlibpath_overrides_runpath=no
15125 shlibpath_overrides_runpath=yes
15127 esac
15128 else
15129 shlibpath_overrides_runpath=yes
15133 os2*)
15134 libname_spec='$name'
15135 shrext_cmds=".dll"
15136 need_lib_prefix=no
15137 library_names_spec='$libname${shared_ext} $libname.a'
15138 dynamic_linker='OS/2 ld.exe'
15139 shlibpath_var=LIBPATH
15142 osf3* | osf4* | osf5*)
15143 version_type=osf
15144 need_lib_prefix=no
15145 need_version=no
15146 soname_spec='${libname}${release}${shared_ext}$major'
15147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15148 shlibpath_var=LD_LIBRARY_PATH
15149 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15150 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15153 rdos*)
15154 dynamic_linker=no
15157 solaris*)
15158 version_type=linux
15159 need_lib_prefix=no
15160 need_version=no
15161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15162 soname_spec='${libname}${release}${shared_ext}$major'
15163 shlibpath_var=LD_LIBRARY_PATH
15164 shlibpath_overrides_runpath=yes
15165 hardcode_into_libs=yes
15166 # ldd complains unless libraries are executable
15167 postinstall_cmds='chmod +x $lib'
15170 sunos4*)
15171 version_type=sunos
15172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15173 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15174 shlibpath_var=LD_LIBRARY_PATH
15175 shlibpath_overrides_runpath=yes
15176 if test "$with_gnu_ld" = yes; then
15177 need_lib_prefix=no
15179 need_version=yes
15182 sysv4 | sysv4.3*)
15183 version_type=linux
15184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15185 soname_spec='${libname}${release}${shared_ext}$major'
15186 shlibpath_var=LD_LIBRARY_PATH
15187 case $host_vendor in
15188 sni)
15189 shlibpath_overrides_runpath=no
15190 need_lib_prefix=no
15191 runpath_var=LD_RUN_PATH
15193 siemens)
15194 need_lib_prefix=no
15196 motorola)
15197 need_lib_prefix=no
15198 need_version=no
15199 shlibpath_overrides_runpath=no
15200 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15202 esac
15205 sysv4*MP*)
15206 if test -d /usr/nec ;then
15207 version_type=linux
15208 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15209 soname_spec='$libname${shared_ext}.$major'
15210 shlibpath_var=LD_LIBRARY_PATH
15214 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15215 version_type=freebsd-elf
15216 need_lib_prefix=no
15217 need_version=no
15218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15219 soname_spec='${libname}${release}${shared_ext}$major'
15220 shlibpath_var=LD_LIBRARY_PATH
15221 shlibpath_overrides_runpath=yes
15222 hardcode_into_libs=yes
15223 if test "$with_gnu_ld" = yes; then
15224 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15225 else
15226 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15227 case $host_os in
15228 sco3.2v5*)
15229 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15231 esac
15233 sys_lib_dlsearch_path_spec='/usr/lib'
15236 tpf*)
15237 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15238 version_type=linux
15239 need_lib_prefix=no
15240 need_version=no
15241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15242 shlibpath_var=LD_LIBRARY_PATH
15243 shlibpath_overrides_runpath=no
15244 hardcode_into_libs=yes
15247 uts4*)
15248 version_type=linux
15249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15250 soname_spec='${libname}${release}${shared_ext}$major'
15251 shlibpath_var=LD_LIBRARY_PATH
15255 dynamic_linker=no
15257 esac
15258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15259 $as_echo "$dynamic_linker" >&6; }
15260 test "$dynamic_linker" = no && can_build_shared=no
15262 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15263 if test "$GCC" = yes; then
15264 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15267 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15268 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15270 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15271 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15312 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15313 hardcode_action_CXX=
15314 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15315 test -n "$runpath_var_CXX" ||
15316 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15318 # We can hardcode non-existent directories.
15319 if test "$hardcode_direct_CXX" != no &&
15320 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15321 # have to relink, otherwise we might link with an installed library
15322 # when we should be linking with a yet-to-be-installed one
15323 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15324 test "$hardcode_minus_L_CXX" != no; then
15325 # Linking always hardcodes the temporary library directory.
15326 hardcode_action_CXX=relink
15327 else
15328 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15329 hardcode_action_CXX=immediate
15331 else
15332 # We cannot hardcode anything, or else we can only hardcode existing
15333 # directories.
15334 hardcode_action_CXX=unsupported
15336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15337 $as_echo "$hardcode_action_CXX" >&6; }
15339 if test "$hardcode_action_CXX" = relink ||
15340 test "$inherit_rpath_CXX" = yes; then
15341 # Fast installation is not supported
15342 enable_fast_install=no
15343 elif test "$shlibpath_overrides_runpath" = yes ||
15344 test "$enable_shared" = no; then
15345 # Fast installation is not necessary
15346 enable_fast_install=needless
15355 fi # test -n "$compiler"
15357 CC=$lt_save_CC
15358 LDCXX=$LD
15359 LD=$lt_save_LD
15360 GCC=$lt_save_GCC
15361 with_gnu_ld=$lt_save_with_gnu_ld
15362 lt_cv_path_LDCXX=$lt_cv_path_LD
15363 lt_cv_path_LD=$lt_save_path_LD
15364 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15365 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15366 fi # test "$_lt_caught_CXX_error" != yes
15368 ac_ext=c
15369 ac_cpp='$CPP $CPPFLAGS'
15370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15386 ac_config_commands="$ac_config_commands libtool"
15391 # Only expand once:
15395 for ac_prog in gawk mawk nawk awk
15397 # Extract the first word of "$ac_prog", so it can be a program name with args.
15398 set dummy $ac_prog; ac_word=$2
15399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15400 $as_echo_n "checking for $ac_word... " >&6; }
15401 if test "${ac_cv_prog_AWK+set}" = set; then :
15402 $as_echo_n "(cached) " >&6
15403 else
15404 if test -n "$AWK"; then
15405 ac_cv_prog_AWK="$AWK" # Let the user override the test.
15406 else
15407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15408 for as_dir in $PATH
15410 IFS=$as_save_IFS
15411 test -z "$as_dir" && as_dir=.
15412 for ac_exec_ext in '' $ac_executable_extensions; do
15413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15414 ac_cv_prog_AWK="$ac_prog"
15415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15416 break 2
15418 done
15419 done
15420 IFS=$as_save_IFS
15424 AWK=$ac_cv_prog_AWK
15425 if test -n "$AWK"; then
15426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
15427 $as_echo "$AWK" >&6; }
15428 else
15429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15430 $as_echo "no" >&6; }
15434 test -n "$AWK" && break
15435 done
15437 case "$AWK" in
15438 "") as_fn_error "can't build without awk" "$LINENO" 5 ;;
15439 esac
15444 # The cast to long int works around a bug in the HP C Compiler
15445 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15446 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15447 # This bug is HP SR number 8606223364.
15448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15449 $as_echo_n "checking size of void *... " >&6; }
15450 if test "${ac_cv_sizeof_void_p+set}" = set; then :
15451 $as_echo_n "(cached) " >&6
15452 else
15453 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15455 else
15456 if test "$ac_cv_type_void_p" = yes; then
15457 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15458 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15459 { as_fn_set_status 77
15460 as_fn_error "cannot compute sizeof (void *)
15461 See \`config.log' for more details." "$LINENO" 5; }; }
15462 else
15463 ac_cv_sizeof_void_p=0
15468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15469 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15473 cat >>confdefs.h <<_ACEOF
15474 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15475 _ACEOF
15479 if test "${multilib}" = "yes"; then
15480 multilib_arg="--enable-multilib"
15481 else
15482 multilib_arg=
15485 # Get target configury.
15486 unset TSAN_SUPPORTED
15487 unset LSAN_SUPPORTED
15488 . ${srcdir}/configure.tgt
15489 if test "x$TSAN_SUPPORTED" = "xyes"; then
15490 TSAN_SUPPORTED_TRUE=
15491 TSAN_SUPPORTED_FALSE='#'
15492 else
15493 TSAN_SUPPORTED_TRUE='#'
15494 TSAN_SUPPORTED_FALSE=
15497 if test "x$LSAN_SUPPORTED" = "xyes"; then
15498 LSAN_SUPPORTED_TRUE=
15499 LSAN_SUPPORTED_FALSE='#'
15500 else
15501 LSAN_SUPPORTED_TRUE='#'
15502 LSAN_SUPPORTED_FALSE=
15506 # Check for functions needed.
15507 for ac_func in clock_getres clock_gettime clock_settime
15508 do :
15509 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15510 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15511 eval as_val=\$$as_ac_var
15512 if test "x$as_val" = x""yes; then :
15513 cat >>confdefs.h <<_ACEOF
15514 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15515 _ACEOF
15518 done
15521 # Common libraries that we need to link against for all sanitizer libs.
15522 link_sanitizer_common='-lpthread -lm'
15524 # At least for glibc, shm_open is in librt. But don't pull that
15525 # in if it still doesn't give us the function we want. This
15526 # test is copied from libgomp.
15527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shm_open in -lrt" >&5
15528 $as_echo_n "checking for shm_open in -lrt... " >&6; }
15529 if test "${ac_cv_lib_rt_shm_open+set}" = set; then :
15530 $as_echo_n "(cached) " >&6
15531 else
15532 ac_check_lib_save_LIBS=$LIBS
15533 LIBS="-lrt $LIBS"
15534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15535 /* end confdefs.h. */
15537 /* Override any GCC internal prototype to avoid an error.
15538 Use char because int might match the return type of a GCC
15539 builtin and then its argument prototype would still apply. */
15540 #ifdef __cplusplus
15541 extern "C"
15542 #endif
15543 char shm_open ();
15545 main ()
15547 return shm_open ();
15549 return 0;
15551 _ACEOF
15552 if ac_fn_c_try_link "$LINENO"; then :
15553 ac_cv_lib_rt_shm_open=yes
15554 else
15555 ac_cv_lib_rt_shm_open=no
15557 rm -f core conftest.err conftest.$ac_objext \
15558 conftest$ac_exeext conftest.$ac_ext
15559 LIBS=$ac_check_lib_save_LIBS
15561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_shm_open" >&5
15562 $as_echo "$ac_cv_lib_rt_shm_open" >&6; }
15563 if test "x$ac_cv_lib_rt_shm_open" = x""yes; then :
15564 link_sanitizer_common="-lrt $link_sanitizer_common"
15568 # Do a configure time check for -ldl
15569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
15570 $as_echo_n "checking for dlsym in -ldl... " >&6; }
15571 if test "${ac_cv_lib_dl_dlsym+set}" = set; then :
15572 $as_echo_n "(cached) " >&6
15573 else
15574 ac_check_lib_save_LIBS=$LIBS
15575 LIBS="-ldl $LIBS"
15576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15577 /* end confdefs.h. */
15579 /* Override any GCC internal prototype to avoid an error.
15580 Use char because int might match the return type of a GCC
15581 builtin and then its argument prototype would still apply. */
15582 #ifdef __cplusplus
15583 extern "C"
15584 #endif
15585 char dlsym ();
15587 main ()
15589 return dlsym ();
15591 return 0;
15593 _ACEOF
15594 if ac_fn_c_try_link "$LINENO"; then :
15595 ac_cv_lib_dl_dlsym=yes
15596 else
15597 ac_cv_lib_dl_dlsym=no
15599 rm -f core conftest.err conftest.$ac_objext \
15600 conftest$ac_exeext conftest.$ac_ext
15601 LIBS=$ac_check_lib_save_LIBS
15603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
15604 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
15605 if test "x$ac_cv_lib_dl_dlsym" = x""yes; then :
15606 link_sanitizer_common="-ldl $link_sanitizer_common"
15610 # Set up the set of additional libraries that we need to link against for libasan.
15611 link_libasan=$link_sanitizer_common
15614 # Set up the set of additional libraries that we need to link against for libtsan.
15615 link_libtsan=$link_sanitizer_common
15618 # Set up the set of additional libraries that we need to link against for libubsan.
15619 link_libubsan=$link_sanitizer_common
15622 # Set up the set of additional libraries that we need to link against for liblsan.
15623 link_liblsan=$link_sanitizer_common
15627 # At least for glibc, clock_gettime is in librt. But don't pull that
15628 # in if it still doesn't give us the function we want. This
15629 # test is copied from libgomp.
15630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
15631 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
15632 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
15633 $as_echo_n "(cached) " >&6
15634 else
15635 ac_check_lib_save_LIBS=$LIBS
15636 LIBS="-lrt $LIBS"
15637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15638 /* end confdefs.h. */
15640 /* Override any GCC internal prototype to avoid an error.
15641 Use char because int might match the return type of a GCC
15642 builtin and then its argument prototype would still apply. */
15643 #ifdef __cplusplus
15644 extern "C"
15645 #endif
15646 char clock_gettime ();
15648 main ()
15650 return clock_gettime ();
15652 return 0;
15654 _ACEOF
15655 if ac_fn_c_try_link "$LINENO"; then :
15656 ac_cv_lib_rt_clock_gettime=yes
15657 else
15658 ac_cv_lib_rt_clock_gettime=no
15660 rm -f core conftest.err conftest.$ac_objext \
15661 conftest$ac_exeext conftest.$ac_ext
15662 LIBS=$ac_check_lib_save_LIBS
15664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
15665 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
15666 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
15667 link_libasan="-lrt $link_libasan"
15668 link_libtsan="-lrt $link_libtsan"
15669 # Other sanitizers do not override clock_* API
15674 case "$host" in
15675 *-*-darwin*) MAC_INTERPOSE=true ; enable_static=no ;;
15676 *) MAC_INTERPOSE=false ;;
15677 esac
15678 if $MAC_INTERPOSE; then
15679 USING_MAC_INTERPOSE_TRUE=
15680 USING_MAC_INTERPOSE_FALSE='#'
15681 else
15682 USING_MAC_INTERPOSE_TRUE='#'
15683 USING_MAC_INTERPOSE_FALSE=
15687 backtrace_supported=yes
15689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary platform features" >&5
15690 $as_echo_n "checking for necessary platform features... " >&6; }
15691 case "$target" in
15692 *-*-linux*)
15693 # Some old Linux distributions miss required syscalls.
15694 sanitizer_supported=no
15695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15696 /* end confdefs.h. */
15697 #include <sys/syscall.h>
15699 main ()
15702 syscall (__NR_gettid);
15703 syscall (__NR_futex);
15704 syscall (__NR_exit_group);
15707 return 0;
15709 _ACEOF
15710 if ac_fn_c_try_compile "$LINENO"; then :
15711 sanitizer_supported=yes
15713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15716 sanitizer_supported=yes
15718 esac
15719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sanitizer_supported" >&5
15720 $as_echo "$sanitizer_supported" >&6; }
15721 if test "$sanitizer_supported" = yes; then
15722 SANITIZER_SUPPORTED_TRUE=
15723 SANITIZER_SUPPORTED_FALSE='#'
15724 else
15725 SANITIZER_SUPPORTED_TRUE='#'
15726 SANITIZER_SUPPORTED_FALSE=
15730 # Test for __sync support.
15731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __sync extensions" >&5
15732 $as_echo_n "checking __sync extensions... " >&6; }
15733 if test "${libsanitizer_cv_sys_sync+set}" = set; then :
15734 $as_echo_n "(cached) " >&6
15735 else
15736 if test -n "${with_target_subdir}"; then
15737 libsanitizer_cv_sys_sync=yes
15738 else
15739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15740 /* end confdefs.h. */
15741 int i;
15743 main ()
15745 __sync_bool_compare_and_swap (&i, i, i);
15746 __sync_lock_test_and_set (&i, 1);
15747 __sync_lock_release (&i);
15749 return 0;
15751 _ACEOF
15752 if ac_fn_c_try_link "$LINENO"; then :
15753 libsanitizer_cv_sys_sync=yes
15754 else
15755 libsanitizer_cv_sys_sync=no
15757 rm -f core conftest.err conftest.$ac_objext \
15758 conftest$ac_exeext conftest.$ac_ext
15761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libsanitizer_cv_sys_sync" >&5
15762 $as_echo "$libsanitizer_cv_sys_sync" >&6; }
15763 if test "$libsanitizer_cv_sys_sync" = "yes"; then
15765 $as_echo "#define HAVE_SYNC_FUNCTIONS 1" >>confdefs.h
15769 # Test for __atomic support.
15770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __atomic extensions" >&5
15771 $as_echo_n "checking __atomic extensions... " >&6; }
15772 if test "${libsanitizer_cv_sys_atomic+set}" = set; then :
15773 $as_echo_n "(cached) " >&6
15774 else
15775 if test -n "${with_target_subdir}"; then
15776 libsanitizer_cv_sys_atomic=yes
15777 else
15778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15779 /* end confdefs.h. */
15780 int i;
15782 main ()
15784 __atomic_load_n (&i, __ATOMIC_ACQUIRE);
15785 __atomic_store_n (&i, 1, __ATOMIC_RELEASE);
15787 return 0;
15789 _ACEOF
15790 if ac_fn_c_try_link "$LINENO"; then :
15791 libsanitizer_cv_sys_atomic=yes
15792 else
15793 libsanitizer_cv_sys_atomic=no
15795 rm -f core conftest.err conftest.$ac_objext \
15796 conftest$ac_exeext conftest.$ac_ext
15799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libsanitizer_cv_sys_atomic" >&5
15800 $as_echo "$libsanitizer_cv_sys_atomic" >&6; }
15801 if test "$libsanitizer_cv_sys_atomic" = "yes"; then
15803 $as_echo "#define HAVE_ATOMIC_FUNCTIONS 1" >>confdefs.h
15807 # The library needs to be able to read the executable itself. Compile
15808 # a file to determine the executable format. The awk script
15809 # filetype.awk prints out the file type.
15810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking output filetype" >&5
15811 $as_echo_n "checking output filetype... " >&6; }
15812 if test "${libsanitizer_cv_sys_filetype+set}" = set; then :
15813 $as_echo_n "(cached) " >&6
15814 else
15815 filetype=
15816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15817 /* end confdefs.h. */
15818 int i;
15820 main ()
15822 int j;
15824 return 0;
15826 _ACEOF
15827 if ac_fn_c_try_compile "$LINENO"; then :
15828 filetype=`${AWK} -f $srcdir/../libbacktrace/filetype.awk conftest.$ac_objext`
15829 else
15830 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15831 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15832 as_fn_error "compiler failed
15833 See \`config.log' for more details." "$LINENO" 5; }
15835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15836 libsanitizer_cv_sys_filetype=$filetype
15838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libsanitizer_cv_sys_filetype" >&5
15839 $as_echo "$libsanitizer_cv_sys_filetype" >&6; }
15841 # Match the file type to decide what files to compile.
15842 FORMAT_FILE=
15843 case "$libsanitizer_cv_sys_filetype" in
15844 elf*) FORMAT_FILE="elf.lo" ;;
15845 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not determine output file type" >&5
15846 $as_echo "$as_me: WARNING: could not determine output file type" >&2;}
15847 FORMAT_FILE="unknown.lo"
15848 backtrace_supported=no
15850 esac
15853 # ELF defines.
15854 elfsize=
15855 case "$libsanitizer_cv_sys_filetype" in
15856 elf32) elfsize=32 ;;
15857 elf64) elfsize=64 ;;
15858 esac
15860 cat >>confdefs.h <<_ACEOF
15861 #define BACKTRACE_ELF_SIZE $elfsize
15862 _ACEOF
15865 BACKTRACE_SUPPORTED=0
15866 if test "$backtrace_supported" = "yes"; then
15867 BACKTRACE_SUPPORTED=1
15873 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
15875 acx_cv_header_stdint=stddef.h
15876 acx_cv_header_stdint_kind="(already complete)"
15877 for i in stdint.h $inttype_headers; do
15878 unset ac_cv_type_uintptr_t
15879 unset ac_cv_type_uintmax_t
15880 unset ac_cv_type_int_least32_t
15881 unset ac_cv_type_int_fast32_t
15882 unset ac_cv_type_uint64_t
15883 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
15884 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
15885 #include <$i>
15887 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
15888 acx_cv_header_stdint=$i
15889 else
15890 continue
15893 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
15894 #include <$i>
15896 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
15898 else
15899 acx_cv_header_stdint_kind="(mostly complete)"
15902 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
15903 #include <$i>
15905 if test "x$ac_cv_type_int_least32_t" = x""yes; then :
15907 else
15908 acx_cv_header_stdint_kind="(mostly complete)"
15911 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
15912 #include <$i>
15914 if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
15916 else
15917 acx_cv_header_stdint_kind="(mostly complete)"
15920 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
15921 #include <$i>
15923 if test "x$ac_cv_type_uint64_t" = x""yes; then :
15925 else
15926 acx_cv_header_stdint_kind="(lacks uint64_t)"
15929 break
15930 done
15931 if test "$acx_cv_header_stdint" = stddef.h; then
15932 acx_cv_header_stdint_kind="(lacks uintmax_t)"
15933 for i in stdint.h $inttype_headers; do
15934 unset ac_cv_type_uintptr_t
15935 unset ac_cv_type_uint32_t
15936 unset ac_cv_type_uint64_t
15937 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
15938 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
15939 #include <$i>
15941 if test "x$ac_cv_type_uint32_t" = x""yes; then :
15942 acx_cv_header_stdint=$i
15943 else
15944 continue
15947 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
15948 #include <$i>
15950 if test "x$ac_cv_type_uint64_t" = x""yes; then :
15954 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
15955 #include <$i>
15957 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
15961 break
15962 done
15964 if test "$acx_cv_header_stdint" = stddef.h; then
15965 acx_cv_header_stdint_kind="(u_intXX_t style)"
15966 for i in sys/types.h $inttype_headers; do
15967 unset ac_cv_type_u_int32_t
15968 unset ac_cv_type_u_int64_t
15969 $as_echo_n "looking for u_intXX_t types in $i, " >&6
15970 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
15971 #include <$i>
15973 if test "x$ac_cv_type_u_int32_t" = x""yes; then :
15974 acx_cv_header_stdint=$i
15975 else
15976 continue
15979 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
15980 #include <$i>
15982 if test "x$ac_cv_type_u_int64_t" = x""yes; then :
15986 break
15987 done
15989 if test "$acx_cv_header_stdint" = stddef.h; then
15990 acx_cv_header_stdint_kind="(using manual detection)"
15993 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
15994 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
15995 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
15996 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
15997 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
15999 # ----------------- Summarize what we found so far
16001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
16002 $as_echo_n "checking what to include in gstdint.h... " >&6; }
16004 case `$as_basename -- gstdint.h ||
16005 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
16006 Xgstdint.h : 'X\(//\)$' \| \
16007 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
16008 $as_echo X/gstdint.h |
16009 sed '/^.*\/\([^/][^/]*\)\/*$/{
16010 s//\1/
16013 /^X\/\(\/\/\)$/{
16014 s//\1/
16017 /^X\/\(\/\).*/{
16018 s//\1/
16021 s/.*/./; q'` in
16022 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
16023 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16024 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
16025 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16026 *) ;;
16027 esac
16029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
16030 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
16032 # ----------------- done included file, check C basic types --------
16034 # Lacking an uintptr_t? Test size of void *
16035 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
16036 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
16037 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16038 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16039 # This bug is HP SR number 8606223364.
16040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
16041 $as_echo_n "checking size of void *... " >&6; }
16042 if test "${ac_cv_sizeof_void_p+set}" = set; then :
16043 $as_echo_n "(cached) " >&6
16044 else
16045 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
16047 else
16048 if test "$ac_cv_type_void_p" = yes; then
16049 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16050 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16051 { as_fn_set_status 77
16052 as_fn_error "cannot compute sizeof (void *)
16053 See \`config.log' for more details." "$LINENO" 5; }; }
16054 else
16055 ac_cv_sizeof_void_p=0
16060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
16061 $as_echo "$ac_cv_sizeof_void_p" >&6; }
16065 cat >>confdefs.h <<_ACEOF
16066 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16067 _ACEOF
16070 esac
16072 # Lacking an uint64_t? Test size of long
16073 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
16074 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
16075 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16076 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16077 # This bug is HP SR number 8606223364.
16078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
16079 $as_echo_n "checking size of long... " >&6; }
16080 if test "${ac_cv_sizeof_long+set}" = set; then :
16081 $as_echo_n "(cached) " >&6
16082 else
16083 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
16085 else
16086 if test "$ac_cv_type_long" = yes; then
16087 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16088 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16089 { as_fn_set_status 77
16090 as_fn_error "cannot compute sizeof (long)
16091 See \`config.log' for more details." "$LINENO" 5; }; }
16092 else
16093 ac_cv_sizeof_long=0
16098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16099 $as_echo "$ac_cv_sizeof_long" >&6; }
16103 cat >>confdefs.h <<_ACEOF
16104 #define SIZEOF_LONG $ac_cv_sizeof_long
16105 _ACEOF
16108 esac
16110 if test $acx_cv_header_stdint = stddef.h; then
16111 # Lacking a good header? Test size of everything and deduce all types.
16112 # The cast to long int works around a bug in the HP C Compiler
16113 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16114 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16115 # This bug is HP SR number 8606223364.
16116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
16117 $as_echo_n "checking size of int... " >&6; }
16118 if test "${ac_cv_sizeof_int+set}" = set; then :
16119 $as_echo_n "(cached) " >&6
16120 else
16121 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
16123 else
16124 if test "$ac_cv_type_int" = yes; then
16125 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16126 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16127 { as_fn_set_status 77
16128 as_fn_error "cannot compute sizeof (int)
16129 See \`config.log' for more details." "$LINENO" 5; }; }
16130 else
16131 ac_cv_sizeof_int=0
16136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
16137 $as_echo "$ac_cv_sizeof_int" >&6; }
16141 cat >>confdefs.h <<_ACEOF
16142 #define SIZEOF_INT $ac_cv_sizeof_int
16143 _ACEOF
16146 # The cast to long int works around a bug in the HP C Compiler
16147 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16148 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16149 # This bug is HP SR number 8606223364.
16150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
16151 $as_echo_n "checking size of short... " >&6; }
16152 if test "${ac_cv_sizeof_short+set}" = set; then :
16153 $as_echo_n "(cached) " >&6
16154 else
16155 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
16157 else
16158 if test "$ac_cv_type_short" = yes; then
16159 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16160 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16161 { as_fn_set_status 77
16162 as_fn_error "cannot compute sizeof (short)
16163 See \`config.log' for more details." "$LINENO" 5; }; }
16164 else
16165 ac_cv_sizeof_short=0
16170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
16171 $as_echo "$ac_cv_sizeof_short" >&6; }
16175 cat >>confdefs.h <<_ACEOF
16176 #define SIZEOF_SHORT $ac_cv_sizeof_short
16177 _ACEOF
16180 # The cast to long int works around a bug in the HP C Compiler
16181 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16182 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16183 # This bug is HP SR number 8606223364.
16184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
16185 $as_echo_n "checking size of char... " >&6; }
16186 if test "${ac_cv_sizeof_char+set}" = set; then :
16187 $as_echo_n "(cached) " >&6
16188 else
16189 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
16191 else
16192 if test "$ac_cv_type_char" = yes; then
16193 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16194 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16195 { as_fn_set_status 77
16196 as_fn_error "cannot compute sizeof (char)
16197 See \`config.log' for more details." "$LINENO" 5; }; }
16198 else
16199 ac_cv_sizeof_char=0
16204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
16205 $as_echo "$ac_cv_sizeof_char" >&6; }
16209 cat >>confdefs.h <<_ACEOF
16210 #define SIZEOF_CHAR $ac_cv_sizeof_char
16211 _ACEOF
16215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
16216 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
16217 case "$ac_cv_sizeof_char" in
16218 1) acx_cv_type_int8_t=char ;;
16219 *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
16220 esac
16221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
16222 $as_echo "$acx_cv_type_int8_t" >&6; }
16224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
16225 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
16226 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
16227 2:*) acx_cv_type_int16_t=int ;;
16228 *:2) acx_cv_type_int16_t=short ;;
16229 *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
16230 esac
16231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
16232 $as_echo "$acx_cv_type_int16_t" >&6; }
16234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
16235 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
16236 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
16237 4:*) acx_cv_type_int32_t=int ;;
16238 *:4) acx_cv_type_int32_t=long ;;
16239 *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
16240 esac
16241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
16242 $as_echo "$acx_cv_type_int32_t" >&6; }
16245 # These tests are here to make the output prettier
16247 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
16248 case "$ac_cv_sizeof_long" in
16249 8) acx_cv_type_int64_t=long ;;
16250 esac
16251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
16252 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
16253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
16254 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
16257 # Now we can use the above types
16259 if test "$ac_cv_type_uintptr_t" != yes; then
16260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
16261 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
16262 case $ac_cv_sizeof_void_p in
16263 2) acx_cv_type_intptr_t=int16_t ;;
16264 4) acx_cv_type_intptr_t=int32_t ;;
16265 8) acx_cv_type_intptr_t=int64_t ;;
16266 *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
16267 esac
16268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
16269 $as_echo "$acx_cv_type_intptr_t" >&6; }
16272 # ----------------- done all checks, emit header -------------
16273 ac_config_commands="$ac_config_commands gstdint.h"
16278 for ac_header in sys/mman.h alloca.h
16279 do :
16280 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16281 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16282 eval as_val=\$$as_ac_Header
16283 if test "x$as_val" = x""yes; then :
16284 cat >>confdefs.h <<_ACEOF
16285 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16286 _ACEOF
16290 done
16292 if test "$ac_cv_header_sys_mman_h" = "no"; then
16293 have_mmap=no
16294 else
16295 if test -n "${with_target_subdir}"; then
16296 # When built as a GCC target library, we can't do a link test. We
16297 # simply assume that if we have mman.h, we have mmap.
16298 have_mmap=yes
16299 else
16300 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
16301 if test "x$ac_cv_func_mmap" = x""yes; then :
16302 have_mmap=yes
16303 else
16304 have_mmap=no
16309 if test "$have_mmap" = "no"; then
16310 VIEW_FILE=read.lo
16311 ALLOC_FILE=alloc.lo
16312 else
16313 VIEW_FILE=mmapio.lo
16314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16315 /* end confdefs.h. */
16317 #include <sys/mman.h>
16318 #if !defined(MAP_ANONYMOUS) && !defined(MAP_ANON)
16319 #error no MAP_ANONYMOUS
16320 #endif
16322 _ACEOF
16323 if ac_fn_c_try_cpp "$LINENO"; then :
16324 ALLOC_FILE=mmap.lo
16325 else
16326 ALLOC_FILE=alloc.lo
16328 rm -f conftest.err conftest.$ac_ext
16333 BACKTRACE_USES_MALLOC=0
16334 if test "$ALLOC_FILE" = "alloc.lo"; then
16335 BACKTRACE_USES_MALLOC=1
16339 # Don't care about thread support
16340 BACKTRACE_SUPPORTS_THREADS=0
16343 # Check for dl_iterate_phdr.
16344 for ac_header in link.h
16345 do :
16346 ac_fn_c_check_header_mongrel "$LINENO" "link.h" "ac_cv_header_link_h" "$ac_includes_default"
16347 if test "x$ac_cv_header_link_h" = x""yes; then :
16348 cat >>confdefs.h <<_ACEOF
16349 #define HAVE_LINK_H 1
16350 _ACEOF
16354 done
16356 if test "$ac_cv_header_link_h" = "no"; then
16357 have_dl_iterate_phdr=no
16358 else
16359 # When built as a GCC target library, we can't do a link test.
16360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16361 /* end confdefs.h. */
16362 #include <link.h>
16364 _ACEOF
16365 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16366 $EGREP "dl_iterate_phdr" >/dev/null 2>&1; then :
16367 have_dl_iterate_phdr=yes
16368 else
16369 have_dl_iterate_phdr=no
16371 rm -f conftest*
16373 case "${host}" in
16374 *-*-solaris2.10*)
16375 # Avoid dl_iterate_phdr on Solaris 10, where it is in the
16376 # header file but is only in -ldl.
16377 have_dl_iterate_phdr=no ;;
16378 esac
16380 if test "$have_dl_iterate_phdr" = "yes"; then
16382 $as_echo "#define HAVE_DL_ITERATE_PHDR 1" >>confdefs.h
16386 # Check for the fcntl function.
16387 if test -n "${with_target_subdir}"; then
16388 case "${host}" in
16389 *-*-mingw*) have_fcntl=no ;;
16390 *) have_fcntl=yes ;;
16391 esac
16392 else
16393 ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
16394 if test "x$ac_cv_func_fcntl" = x""yes; then :
16395 have_fcntl=yes
16396 else
16397 have_fcntl=no
16401 if test "$have_fcntl" = "yes"; then
16403 $as_echo "#define HAVE_FCNTL 1" >>confdefs.h
16407 ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
16408 if test "x$ac_cv_have_decl_strnlen" = x""yes; then :
16409 ac_have_decl=1
16410 else
16411 ac_have_decl=0
16414 cat >>confdefs.h <<_ACEOF
16415 #define HAVE_DECL_STRNLEN $ac_have_decl
16416 _ACEOF
16419 # Check for getexecname function.
16420 if test -n "${with_target_subdir}"; then
16421 case "${host}" in
16422 *-*-solaris2*) have_getexecname=yes ;;
16423 *) have_getexecname=no ;;
16424 esac
16425 else
16426 ac_fn_c_check_func "$LINENO" "getexecname" "ac_cv_func_getexecname"
16427 if test "x$ac_cv_func_getexecname" = x""yes; then :
16428 have_getexecname=yes
16429 else
16430 have_getexecname=no
16434 if test "$have_getexecname" = "yes"; then
16436 $as_echo "#define HAVE_GETEXECNAME 1" >>confdefs.h
16440 # Check for rpc/xdr.h
16441 for ac_header in rpc/xdr.h
16442 do :
16443 ac_fn_c_check_header_mongrel "$LINENO" "rpc/xdr.h" "ac_cv_header_rpc_xdr_h" "$ac_includes_default"
16444 if test "x$ac_cv_header_rpc_xdr_h" = x""yes; then :
16445 cat >>confdefs.h <<_ACEOF
16446 #define HAVE_RPC_XDR_H 1
16447 _ACEOF
16451 done
16453 if test x"$ac_cv_header_rpc_xdr_h" = xyes; then
16454 rpc_defs="$rpc_defs -DHAVE_RPC_XDR_H=1"
16455 else
16456 rpc_defs="$rpc_defs -DHAVE_RPC_XDR_H=0"
16459 # Check for tirpc/rpc/xdr.h
16460 for ac_header in tirpc/rpc/xdr.h
16461 do :
16462 ac_fn_c_check_header_mongrel "$LINENO" "tirpc/rpc/xdr.h" "ac_cv_header_tirpc_rpc_xdr_h" "$ac_includes_default"
16463 if test "x$ac_cv_header_tirpc_rpc_xdr_h" = x""yes; then :
16464 cat >>confdefs.h <<_ACEOF
16465 #define HAVE_TIRPC_RPC_XDR_H 1
16466 _ACEOF
16470 done
16472 if test x"$ac_cv_header_tirpc_rpc_xdr_h" = xyes; then
16473 rpc_defs="$rpc_defs -DHAVE_TIRPC_RPC_XDR_H=1"
16474 else
16475 rpc_defs="$rpc_defs -DHAVE_TIRPC_RPC_XDR_H=0"
16478 RPC_DEFS=$rpc_defs
16481 if test "x${BACKTRACE_SUPPORTED}x${BACKTRACE_USES_MALLOC}" = "x1x0"; then
16482 LIBBACKTRACE_SUPPORTED_TRUE=
16483 LIBBACKTRACE_SUPPORTED_FALSE='#'
16484 else
16485 LIBBACKTRACE_SUPPORTED_TRUE='#'
16486 LIBBACKTRACE_SUPPORTED_FALSE=
16491 ac_config_files="$ac_config_files Makefile libsanitizer.spec libbacktrace/backtrace-supported.h"
16493 ac_config_headers="$ac_config_headers config.h"
16496 ac_config_files="$ac_config_files interception/Makefile sanitizer_common/Makefile libbacktrace/Makefile lsan/Makefile asan/Makefile ubsan/Makefile"
16499 if test "x$TSAN_SUPPORTED" = "xyes"; then
16500 ac_config_files="$ac_config_files tsan/Makefile"
16507 # Determine what GCC version number to use in filesystem paths.
16509 get_gcc_base_ver="cat"
16511 # Check whether --with-gcc-major-version-only was given.
16512 if test "${with_gcc_major_version_only+set}" = set; then :
16513 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
16514 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*\$\$/\1/'"
16522 cat >confcache <<\_ACEOF
16523 # This file is a shell script that caches the results of configure
16524 # tests run on this system so they can be shared between configure
16525 # scripts and configure runs, see configure's option --config-cache.
16526 # It is not useful on other systems. If it contains results you don't
16527 # want to keep, you may remove or edit it.
16529 # config.status only pays attention to the cache file if you give it
16530 # the --recheck option to rerun configure.
16532 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16533 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16534 # following values.
16536 _ACEOF
16538 # The following way of writing the cache mishandles newlines in values,
16539 # but we know of no workaround that is simple, portable, and efficient.
16540 # So, we kill variables containing newlines.
16541 # Ultrix sh set writes to stderr and can't be redirected directly,
16542 # and sets the high bit in the cache file unless we assign to the vars.
16544 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16545 eval ac_val=\$$ac_var
16546 case $ac_val in #(
16547 *${as_nl}*)
16548 case $ac_var in #(
16549 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16550 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16551 esac
16552 case $ac_var in #(
16553 _ | IFS | as_nl) ;; #(
16554 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16555 *) { eval $ac_var=; unset $ac_var;} ;;
16556 esac ;;
16557 esac
16558 done
16560 (set) 2>&1 |
16561 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16562 *${as_nl}ac_space=\ *)
16563 # `set' does not quote correctly, so add quotes: double-quote
16564 # substitution turns \\\\ into \\, and sed turns \\ into \.
16565 sed -n \
16566 "s/'/'\\\\''/g;
16567 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16568 ;; #(
16570 # `set' quotes correctly as required by POSIX, so do not add quotes.
16571 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16573 esac |
16574 sort
16576 sed '
16577 /^ac_cv_env_/b end
16578 t clear
16579 :clear
16580 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16581 t end
16582 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16583 :end' >>confcache
16584 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16585 if test -w "$cache_file"; then
16586 test "x$cache_file" != "x/dev/null" &&
16587 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16588 $as_echo "$as_me: updating cache $cache_file" >&6;}
16589 cat confcache >$cache_file
16590 else
16591 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16592 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16595 rm -f confcache
16597 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16598 # Let make expand exec_prefix.
16599 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16601 DEFS=-DHAVE_CONFIG_H
16603 ac_libobjs=
16604 ac_ltlibobjs=
16605 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16606 # 1. Remove the extension, and $U if already installed.
16607 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16608 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16609 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16610 # will be set to the directory where LIBOBJS objects are built.
16611 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16612 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16613 done
16614 LIBOBJS=$ac_libobjs
16616 LTLIBOBJS=$ac_ltlibobjs
16619 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16620 as_fn_error "conditional \"AMDEP\" was never defined.
16621 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16623 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16624 as_fn_error "conditional \"am__fastdepCC\" was never defined.
16625 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16627 if test -n "$EXEEXT"; then
16628 am__EXEEXT_TRUE=
16629 am__EXEEXT_FALSE='#'
16630 else
16631 am__EXEEXT_TRUE='#'
16632 am__EXEEXT_FALSE=
16635 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16636 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
16637 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16639 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16640 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
16641 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16643 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
16644 as_fn_error "conditional \"am__fastdepCCAS\" was never defined.
16645 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16647 if test -z "${TSAN_SUPPORTED_TRUE}" && test -z "${TSAN_SUPPORTED_FALSE}"; then
16648 as_fn_error "conditional \"TSAN_SUPPORTED\" was never defined.
16649 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16651 if test -z "${LSAN_SUPPORTED_TRUE}" && test -z "${LSAN_SUPPORTED_FALSE}"; then
16652 as_fn_error "conditional \"LSAN_SUPPORTED\" was never defined.
16653 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16655 if test -z "${USING_MAC_INTERPOSE_TRUE}" && test -z "${USING_MAC_INTERPOSE_FALSE}"; then
16656 as_fn_error "conditional \"USING_MAC_INTERPOSE\" was never defined.
16657 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16659 if test -z "${SANITIZER_SUPPORTED_TRUE}" && test -z "${SANITIZER_SUPPORTED_FALSE}"; then
16660 as_fn_error "conditional \"SANITIZER_SUPPORTED\" was never defined.
16661 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16663 if test -z "${LIBBACKTRACE_SUPPORTED_TRUE}" && test -z "${LIBBACKTRACE_SUPPORTED_FALSE}"; then
16664 as_fn_error "conditional \"LIBBACKTRACE_SUPPORTED\" was never defined.
16665 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16668 : ${CONFIG_STATUS=./config.status}
16669 ac_write_fail=0
16670 ac_clean_files_save=$ac_clean_files
16671 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16672 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16673 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16674 as_write_fail=0
16675 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16676 #! $SHELL
16677 # Generated by $as_me.
16678 # Run this file to recreate the current configuration.
16679 # Compiler output produced by configure, useful for debugging
16680 # configure, is in config.log if it exists.
16682 debug=false
16683 ac_cs_recheck=false
16684 ac_cs_silent=false
16686 SHELL=\${CONFIG_SHELL-$SHELL}
16687 export SHELL
16688 _ASEOF
16689 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16690 ## -------------------- ##
16691 ## M4sh Initialization. ##
16692 ## -------------------- ##
16694 # Be more Bourne compatible
16695 DUALCASE=1; export DUALCASE # for MKS sh
16696 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16697 emulate sh
16698 NULLCMD=:
16699 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16700 # is contrary to our usage. Disable this feature.
16701 alias -g '${1+"$@"}'='"$@"'
16702 setopt NO_GLOB_SUBST
16703 else
16704 case `(set -o) 2>/dev/null` in #(
16705 *posix*) :
16706 set -o posix ;; #(
16707 *) :
16709 esac
16713 as_nl='
16715 export as_nl
16716 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16717 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16718 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16719 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16720 # Prefer a ksh shell builtin over an external printf program on Solaris,
16721 # but without wasting forks for bash or zsh.
16722 if test -z "$BASH_VERSION$ZSH_VERSION" \
16723 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16724 as_echo='print -r --'
16725 as_echo_n='print -rn --'
16726 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16727 as_echo='printf %s\n'
16728 as_echo_n='printf %s'
16729 else
16730 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16731 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16732 as_echo_n='/usr/ucb/echo -n'
16733 else
16734 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16735 as_echo_n_body='eval
16736 arg=$1;
16737 case $arg in #(
16738 *"$as_nl"*)
16739 expr "X$arg" : "X\\(.*\\)$as_nl";
16740 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16741 esac;
16742 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16744 export as_echo_n_body
16745 as_echo_n='sh -c $as_echo_n_body as_echo'
16747 export as_echo_body
16748 as_echo='sh -c $as_echo_body as_echo'
16751 # The user is always right.
16752 if test "${PATH_SEPARATOR+set}" != set; then
16753 PATH_SEPARATOR=:
16754 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16755 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16756 PATH_SEPARATOR=';'
16761 # IFS
16762 # We need space, tab and new line, in precisely that order. Quoting is
16763 # there to prevent editors from complaining about space-tab.
16764 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16765 # splitting by setting IFS to empty value.)
16766 IFS=" "" $as_nl"
16768 # Find who we are. Look in the path if we contain no directory separator.
16769 case $0 in #((
16770 *[\\/]* ) as_myself=$0 ;;
16771 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16772 for as_dir in $PATH
16774 IFS=$as_save_IFS
16775 test -z "$as_dir" && as_dir=.
16776 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16777 done
16778 IFS=$as_save_IFS
16781 esac
16782 # We did not find ourselves, most probably we were run as `sh COMMAND'
16783 # in which case we are not to be found in the path.
16784 if test "x$as_myself" = x; then
16785 as_myself=$0
16787 if test ! -f "$as_myself"; then
16788 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16789 exit 1
16792 # Unset variables that we do not need and which cause bugs (e.g. in
16793 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16794 # suppresses any "Segmentation fault" message there. '((' could
16795 # trigger a bug in pdksh 5.2.14.
16796 for as_var in BASH_ENV ENV MAIL MAILPATH
16797 do eval test x\${$as_var+set} = xset \
16798 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16799 done
16800 PS1='$ '
16801 PS2='> '
16802 PS4='+ '
16804 # NLS nuisances.
16805 LC_ALL=C
16806 export LC_ALL
16807 LANGUAGE=C
16808 export LANGUAGE
16810 # CDPATH.
16811 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16814 # as_fn_error ERROR [LINENO LOG_FD]
16815 # ---------------------------------
16816 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16817 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16818 # script with status $?, using 1 if that was 0.
16819 as_fn_error ()
16821 as_status=$?; test $as_status -eq 0 && as_status=1
16822 if test "$3"; then
16823 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16824 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16826 $as_echo "$as_me: error: $1" >&2
16827 as_fn_exit $as_status
16828 } # as_fn_error
16831 # as_fn_set_status STATUS
16832 # -----------------------
16833 # Set $? to STATUS, without forking.
16834 as_fn_set_status ()
16836 return $1
16837 } # as_fn_set_status
16839 # as_fn_exit STATUS
16840 # -----------------
16841 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16842 as_fn_exit ()
16844 set +e
16845 as_fn_set_status $1
16846 exit $1
16847 } # as_fn_exit
16849 # as_fn_unset VAR
16850 # ---------------
16851 # Portably unset VAR.
16852 as_fn_unset ()
16854 { eval $1=; unset $1;}
16856 as_unset=as_fn_unset
16857 # as_fn_append VAR VALUE
16858 # ----------------------
16859 # Append the text in VALUE to the end of the definition contained in VAR. Take
16860 # advantage of any shell optimizations that allow amortized linear growth over
16861 # repeated appends, instead of the typical quadratic growth present in naive
16862 # implementations.
16863 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16864 eval 'as_fn_append ()
16866 eval $1+=\$2
16868 else
16869 as_fn_append ()
16871 eval $1=\$$1\$2
16873 fi # as_fn_append
16875 # as_fn_arith ARG...
16876 # ------------------
16877 # Perform arithmetic evaluation on the ARGs, and store the result in the
16878 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16879 # must be portable across $(()) and expr.
16880 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16881 eval 'as_fn_arith ()
16883 as_val=$(( $* ))
16885 else
16886 as_fn_arith ()
16888 as_val=`expr "$@" || test $? -eq 1`
16890 fi # as_fn_arith
16893 if expr a : '\(a\)' >/dev/null 2>&1 &&
16894 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16895 as_expr=expr
16896 else
16897 as_expr=false
16900 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16901 as_basename=basename
16902 else
16903 as_basename=false
16906 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16907 as_dirname=dirname
16908 else
16909 as_dirname=false
16912 as_me=`$as_basename -- "$0" ||
16913 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16914 X"$0" : 'X\(//\)$' \| \
16915 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16916 $as_echo X/"$0" |
16917 sed '/^.*\/\([^/][^/]*\)\/*$/{
16918 s//\1/
16921 /^X\/\(\/\/\)$/{
16922 s//\1/
16925 /^X\/\(\/\).*/{
16926 s//\1/
16929 s/.*/./; q'`
16931 # Avoid depending upon Character Ranges.
16932 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16933 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16934 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16935 as_cr_digits='0123456789'
16936 as_cr_alnum=$as_cr_Letters$as_cr_digits
16938 ECHO_C= ECHO_N= ECHO_T=
16939 case `echo -n x` in #(((((
16940 -n*)
16941 case `echo 'xy\c'` in
16942 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16943 xy) ECHO_C='\c';;
16944 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16945 ECHO_T=' ';;
16946 esac;;
16948 ECHO_N='-n';;
16949 esac
16951 rm -f conf$$ conf$$.exe conf$$.file
16952 if test -d conf$$.dir; then
16953 rm -f conf$$.dir/conf$$.file
16954 else
16955 rm -f conf$$.dir
16956 mkdir conf$$.dir 2>/dev/null
16958 if (echo >conf$$.file) 2>/dev/null; then
16959 if ln -s conf$$.file conf$$ 2>/dev/null; then
16960 as_ln_s='ln -s'
16961 # ... but there are two gotchas:
16962 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16963 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16964 # In both cases, we have to default to `cp -p'.
16965 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16966 as_ln_s='cp -p'
16967 elif ln conf$$.file conf$$ 2>/dev/null; then
16968 as_ln_s=ln
16969 else
16970 as_ln_s='cp -p'
16972 else
16973 as_ln_s='cp -p'
16975 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16976 rmdir conf$$.dir 2>/dev/null
16979 # as_fn_mkdir_p
16980 # -------------
16981 # Create "$as_dir" as a directory, including parents if necessary.
16982 as_fn_mkdir_p ()
16985 case $as_dir in #(
16986 -*) as_dir=./$as_dir;;
16987 esac
16988 test -d "$as_dir" || eval $as_mkdir_p || {
16989 as_dirs=
16990 while :; do
16991 case $as_dir in #(
16992 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16993 *) as_qdir=$as_dir;;
16994 esac
16995 as_dirs="'$as_qdir' $as_dirs"
16996 as_dir=`$as_dirname -- "$as_dir" ||
16997 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16998 X"$as_dir" : 'X\(//\)[^/]' \| \
16999 X"$as_dir" : 'X\(//\)$' \| \
17000 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17001 $as_echo X"$as_dir" |
17002 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17003 s//\1/
17006 /^X\(\/\/\)[^/].*/{
17007 s//\1/
17010 /^X\(\/\/\)$/{
17011 s//\1/
17014 /^X\(\/\).*/{
17015 s//\1/
17018 s/.*/./; q'`
17019 test -d "$as_dir" && break
17020 done
17021 test -z "$as_dirs" || eval "mkdir $as_dirs"
17022 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
17025 } # as_fn_mkdir_p
17026 if mkdir -p . 2>/dev/null; then
17027 as_mkdir_p='mkdir -p "$as_dir"'
17028 else
17029 test -d ./-p && rmdir ./-p
17030 as_mkdir_p=false
17033 if test -x / >/dev/null 2>&1; then
17034 as_test_x='test -x'
17035 else
17036 if ls -dL / >/dev/null 2>&1; then
17037 as_ls_L_option=L
17038 else
17039 as_ls_L_option=
17041 as_test_x='
17042 eval sh -c '\''
17043 if test -d "$1"; then
17044 test -d "$1/.";
17045 else
17046 case $1 in #(
17047 -*)set "./$1";;
17048 esac;
17049 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17050 ???[sx]*):;;*)false;;esac;fi
17051 '\'' sh
17054 as_executable_p=$as_test_x
17056 # Sed expression to map a string onto a valid CPP name.
17057 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17059 # Sed expression to map a string onto a valid variable name.
17060 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17063 exec 6>&1
17064 ## ----------------------------------- ##
17065 ## Main body of $CONFIG_STATUS script. ##
17066 ## ----------------------------------- ##
17067 _ASEOF
17068 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17070 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17071 # Save the log message, to keep $0 and so on meaningful, and to
17072 # report actual input values of CONFIG_FILES etc. instead of their
17073 # values after options handling.
17074 ac_log="
17075 This file was extended by package-unused $as_me version-unused, which was
17076 generated by GNU Autoconf 2.64. Invocation command line was
17078 CONFIG_FILES = $CONFIG_FILES
17079 CONFIG_HEADERS = $CONFIG_HEADERS
17080 CONFIG_LINKS = $CONFIG_LINKS
17081 CONFIG_COMMANDS = $CONFIG_COMMANDS
17082 $ $0 $@
17084 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17087 _ACEOF
17089 case $ac_config_files in *"
17090 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17091 esac
17093 case $ac_config_headers in *"
17094 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17095 esac
17098 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17099 # Files that config.status was made for.
17100 config_files="$ac_config_files"
17101 config_headers="$ac_config_headers"
17102 config_commands="$ac_config_commands"
17104 _ACEOF
17106 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17107 ac_cs_usage="\
17108 \`$as_me' instantiates files and other configuration actions
17109 from templates according to the current configuration. Unless the files
17110 and actions are specified as TAGs, all are instantiated by default.
17112 Usage: $0 [OPTION]... [TAG]...
17114 -h, --help print this help, then exit
17115 -V, --version print version number and configuration settings, then exit
17116 -q, --quiet, --silent
17117 do not print progress messages
17118 -d, --debug don't remove temporary files
17119 --recheck update $as_me by reconfiguring in the same conditions
17120 --file=FILE[:TEMPLATE]
17121 instantiate the configuration file FILE
17122 --header=FILE[:TEMPLATE]
17123 instantiate the configuration header FILE
17125 Configuration files:
17126 $config_files
17128 Configuration headers:
17129 $config_headers
17131 Configuration commands:
17132 $config_commands
17134 Report bugs to <libsanitizer>."
17136 _ACEOF
17137 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17138 ac_cs_version="\\
17139 package-unused config.status version-unused
17140 configured by $0, generated by GNU Autoconf 2.64,
17141 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17143 Copyright (C) 2009 Free Software Foundation, Inc.
17144 This config.status script is free software; the Free Software Foundation
17145 gives unlimited permission to copy, distribute and modify it."
17147 ac_pwd='$ac_pwd'
17148 srcdir='$srcdir'
17149 INSTALL='$INSTALL'
17150 MKDIR_P='$MKDIR_P'
17151 AWK='$AWK'
17152 test -n "\$AWK" || AWK=awk
17153 _ACEOF
17155 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17156 # The default lists apply if the user does not specify any file.
17157 ac_need_defaults=:
17158 while test $# != 0
17160 case $1 in
17161 --*=*)
17162 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17163 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17164 ac_shift=:
17167 ac_option=$1
17168 ac_optarg=$2
17169 ac_shift=shift
17171 esac
17173 case $ac_option in
17174 # Handling of the options.
17175 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17176 ac_cs_recheck=: ;;
17177 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17178 $as_echo "$ac_cs_version"; exit ;;
17179 --debug | --debu | --deb | --de | --d | -d )
17180 debug=: ;;
17181 --file | --fil | --fi | --f )
17182 $ac_shift
17183 case $ac_optarg in
17184 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17185 esac
17186 as_fn_append CONFIG_FILES " '$ac_optarg'"
17187 ac_need_defaults=false;;
17188 --header | --heade | --head | --hea )
17189 $ac_shift
17190 case $ac_optarg in
17191 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17192 esac
17193 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17194 ac_need_defaults=false;;
17195 --he | --h)
17196 # Conflict between --help and --header
17197 as_fn_error "ambiguous option: \`$1'
17198 Try \`$0 --help' for more information.";;
17199 --help | --hel | -h )
17200 $as_echo "$ac_cs_usage"; exit ;;
17201 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17202 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17203 ac_cs_silent=: ;;
17205 # This is an error.
17206 -*) as_fn_error "unrecognized option: \`$1'
17207 Try \`$0 --help' for more information." ;;
17209 *) as_fn_append ac_config_targets " $1"
17210 ac_need_defaults=false ;;
17212 esac
17213 shift
17214 done
17216 ac_configure_extra_args=
17218 if $ac_cs_silent; then
17219 exec 6>/dev/null
17220 ac_configure_extra_args="$ac_configure_extra_args --silent"
17223 _ACEOF
17224 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17225 if \$ac_cs_recheck; then
17226 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17227 shift
17228 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17229 CONFIG_SHELL='$SHELL'
17230 export CONFIG_SHELL
17231 exec "\$@"
17234 _ACEOF
17235 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17236 exec 5>>config.log
17238 echo
17239 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17240 ## Running $as_me. ##
17241 _ASBOX
17242 $as_echo "$ac_log"
17243 } >&5
17245 _ACEOF
17246 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17248 # INIT-COMMANDS
17251 srcdir="$srcdir"
17252 host="$host"
17253 target="$target"
17254 with_multisubdir="$with_multisubdir"
17255 with_multisrctop="$with_multisrctop"
17256 with_target_subdir="$with_target_subdir"
17257 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17258 multi_basedir="$multi_basedir"
17259 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17260 CC="$CC"
17261 CXX="$CXX"
17262 GFORTRAN="$GFORTRAN"
17263 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17266 # The HP-UX ksh and POSIX shell print the target directory to stdout
17267 # if CDPATH is set.
17268 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17270 sed_quote_subst='$sed_quote_subst'
17271 double_quote_subst='$double_quote_subst'
17272 delay_variable_subst='$delay_variable_subst'
17273 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17274 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17275 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17276 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17277 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17278 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17279 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17280 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17281 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17282 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17283 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17284 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17285 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17286 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17287 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17288 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17289 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17290 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17291 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17292 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17293 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17294 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17295 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17296 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17297 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17298 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17299 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17300 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17301 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17302 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17303 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17304 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17305 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17306 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17307 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17308 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17309 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17310 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17311 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17312 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17313 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17314 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17315 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17316 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17317 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17318 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17319 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17320 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17321 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"`'
17322 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17323 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17324 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17325 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17326 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17327 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17328 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17329 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17330 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17331 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17332 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17333 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17334 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17335 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17336 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17337 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17338 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17339 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17340 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17341 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17342 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17343 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17344 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17345 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17346 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17347 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17348 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17349 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17350 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17351 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17352 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17353 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17354 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17355 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17356 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17357 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17358 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17359 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17360 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17361 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17362 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17363 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17364 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17365 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17366 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17367 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17368 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17369 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17370 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17371 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17372 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17373 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17374 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17375 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17376 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17377 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17378 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17379 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17380 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17381 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17382 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17383 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17384 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17385 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17386 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17387 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17388 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17389 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17390 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17391 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17392 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17393 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17394 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17395 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17396 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17397 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17398 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17399 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17400 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17401 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17402 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17403 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17404 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17405 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17406 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17407 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17408 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17409 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17410 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17411 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17412 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17413 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17414 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17415 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17416 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17417 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17418 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17419 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17420 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17421 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17422 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17423 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17424 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17425 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
17426 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17427 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17428 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17429 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17430 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17431 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17432 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17433 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17434 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
17435 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17436 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17437 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17438 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17439 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17440 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17441 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17442 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17443 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17444 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17445 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17446 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17447 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17449 LTCC='$LTCC'
17450 LTCFLAGS='$LTCFLAGS'
17451 compiler='$compiler_DEFAULT'
17453 # A function that is used when there is no print builtin or printf.
17454 func_fallback_echo ()
17456 eval 'cat <<_LTECHO_EOF
17458 _LTECHO_EOF'
17461 # Quote evaled strings.
17462 for var in SHELL \
17463 ECHO \
17464 SED \
17465 GREP \
17466 EGREP \
17467 FGREP \
17468 LD \
17469 NM \
17470 LN_S \
17471 lt_SP2NL \
17472 lt_NL2SP \
17473 reload_flag \
17474 OBJDUMP \
17475 deplibs_check_method \
17476 file_magic_cmd \
17477 AR \
17478 AR_FLAGS \
17479 STRIP \
17480 RANLIB \
17481 CC \
17482 CFLAGS \
17483 compiler \
17484 lt_cv_sys_global_symbol_pipe \
17485 lt_cv_sys_global_symbol_to_cdecl \
17486 lt_cv_sys_global_symbol_to_c_name_address \
17487 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17488 lt_prog_compiler_no_builtin_flag \
17489 lt_prog_compiler_wl \
17490 lt_prog_compiler_pic \
17491 lt_prog_compiler_static \
17492 lt_cv_prog_compiler_c_o \
17493 need_locks \
17494 DSYMUTIL \
17495 NMEDIT \
17496 LIPO \
17497 OTOOL \
17498 OTOOL64 \
17499 shrext_cmds \
17500 export_dynamic_flag_spec \
17501 whole_archive_flag_spec \
17502 compiler_needs_object \
17503 with_gnu_ld \
17504 allow_undefined_flag \
17505 no_undefined_flag \
17506 hardcode_libdir_flag_spec \
17507 hardcode_libdir_flag_spec_ld \
17508 hardcode_libdir_separator \
17509 fix_srcfile_path \
17510 exclude_expsyms \
17511 include_expsyms \
17512 file_list_spec \
17513 variables_saved_for_relink \
17514 libname_spec \
17515 library_names_spec \
17516 soname_spec \
17517 install_override_mode \
17518 finish_eval \
17519 old_striplib \
17520 striplib \
17521 compiler_lib_search_dirs \
17522 predep_objects \
17523 postdep_objects \
17524 predeps \
17525 postdeps \
17526 compiler_lib_search_path \
17527 LD_CXX \
17528 reload_flag_CXX \
17529 compiler_CXX \
17530 lt_prog_compiler_no_builtin_flag_CXX \
17531 lt_prog_compiler_wl_CXX \
17532 lt_prog_compiler_pic_CXX \
17533 lt_prog_compiler_static_CXX \
17534 lt_cv_prog_compiler_c_o_CXX \
17535 export_dynamic_flag_spec_CXX \
17536 whole_archive_flag_spec_CXX \
17537 compiler_needs_object_CXX \
17538 with_gnu_ld_CXX \
17539 allow_undefined_flag_CXX \
17540 no_undefined_flag_CXX \
17541 hardcode_libdir_flag_spec_CXX \
17542 hardcode_libdir_flag_spec_ld_CXX \
17543 hardcode_libdir_separator_CXX \
17544 fix_srcfile_path_CXX \
17545 exclude_expsyms_CXX \
17546 include_expsyms_CXX \
17547 file_list_spec_CXX \
17548 compiler_lib_search_dirs_CXX \
17549 predep_objects_CXX \
17550 postdep_objects_CXX \
17551 predeps_CXX \
17552 postdeps_CXX \
17553 compiler_lib_search_path_CXX; do
17554 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17555 *[\\\\\\\`\\"\\\$]*)
17556 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17559 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17561 esac
17562 done
17564 # Double-quote double-evaled strings.
17565 for var in reload_cmds \
17566 old_postinstall_cmds \
17567 old_postuninstall_cmds \
17568 old_archive_cmds \
17569 extract_expsyms_cmds \
17570 old_archive_from_new_cmds \
17571 old_archive_from_expsyms_cmds \
17572 archive_cmds \
17573 archive_expsym_cmds \
17574 module_cmds \
17575 module_expsym_cmds \
17576 export_symbols_cmds \
17577 prelink_cmds \
17578 postinstall_cmds \
17579 postuninstall_cmds \
17580 finish_cmds \
17581 sys_lib_search_path_spec \
17582 sys_lib_dlsearch_path_spec \
17583 reload_cmds_CXX \
17584 old_archive_cmds_CXX \
17585 old_archive_from_new_cmds_CXX \
17586 old_archive_from_expsyms_cmds_CXX \
17587 archive_cmds_CXX \
17588 archive_expsym_cmds_CXX \
17589 module_cmds_CXX \
17590 module_expsym_cmds_CXX \
17591 export_symbols_cmds_CXX \
17592 prelink_cmds_CXX; do
17593 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17594 *[\\\\\\\`\\"\\\$]*)
17595 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17598 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17600 esac
17601 done
17603 ac_aux_dir='$ac_aux_dir'
17604 xsi_shell='$xsi_shell'
17605 lt_shell_append='$lt_shell_append'
17607 # See if we are running on zsh, and set the options which allow our
17608 # commands through without removal of \ escapes INIT.
17609 if test -n "\${ZSH_VERSION+set}" ; then
17610 setopt NO_GLOB_SUBST
17614 PACKAGE='$PACKAGE'
17615 VERSION='$VERSION'
17616 TIMESTAMP='$TIMESTAMP'
17617 RM='$RM'
17618 ofile='$ofile'
17625 GCC="$GCC"
17626 CC="$CC"
17627 acx_cv_header_stdint="$acx_cv_header_stdint"
17628 acx_cv_type_int8_t="$acx_cv_type_int8_t"
17629 acx_cv_type_int16_t="$acx_cv_type_int16_t"
17630 acx_cv_type_int32_t="$acx_cv_type_int32_t"
17631 acx_cv_type_int64_t="$acx_cv_type_int64_t"
17632 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
17633 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
17634 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
17635 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
17636 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
17637 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
17638 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
17639 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
17640 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
17643 _ACEOF
17645 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17647 # Handling of arguments.
17648 for ac_config_target in $ac_config_targets
17650 case $ac_config_target in
17651 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17652 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17653 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17654 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
17655 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17656 "libsanitizer.spec") CONFIG_FILES="$CONFIG_FILES libsanitizer.spec" ;;
17657 "libbacktrace/backtrace-supported.h") CONFIG_FILES="$CONFIG_FILES libbacktrace/backtrace-supported.h" ;;
17658 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17659 "interception/Makefile") CONFIG_FILES="$CONFIG_FILES interception/Makefile" ;;
17660 "sanitizer_common/Makefile") CONFIG_FILES="$CONFIG_FILES sanitizer_common/Makefile" ;;
17661 "libbacktrace/Makefile") CONFIG_FILES="$CONFIG_FILES libbacktrace/Makefile" ;;
17662 "lsan/Makefile") CONFIG_FILES="$CONFIG_FILES lsan/Makefile" ;;
17663 "asan/Makefile") CONFIG_FILES="$CONFIG_FILES asan/Makefile" ;;
17664 "ubsan/Makefile") CONFIG_FILES="$CONFIG_FILES ubsan/Makefile" ;;
17665 "tsan/Makefile") CONFIG_FILES="$CONFIG_FILES tsan/Makefile" ;;
17667 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17668 esac
17669 done
17672 # If the user did not use the arguments to specify the items to instantiate,
17673 # then the envvar interface is used. Set only those that are not.
17674 # We use the long form for the default assignment because of an extremely
17675 # bizarre bug on SunOS 4.1.3.
17676 if $ac_need_defaults; then
17677 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17678 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17679 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17682 # Have a temporary directory for convenience. Make it in the build tree
17683 # simply because there is no reason against having it here, and in addition,
17684 # creating and moving files from /tmp can sometimes cause problems.
17685 # Hook for its removal unless debugging.
17686 # Note that there is a small window in which the directory will not be cleaned:
17687 # after its creation but before its name has been assigned to `$tmp'.
17688 $debug ||
17690 tmp=
17691 trap 'exit_status=$?
17692 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17694 trap 'as_fn_exit 1' 1 2 13 15
17696 # Create a (secure) tmp directory for tmp files.
17699 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17700 test -n "$tmp" && test -d "$tmp"
17701 } ||
17703 tmp=./conf$$-$RANDOM
17704 (umask 077 && mkdir "$tmp")
17705 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
17707 # Set up the scripts for CONFIG_FILES section.
17708 # No need to generate them if there are no CONFIG_FILES.
17709 # This happens for instance with `./config.status config.h'.
17710 if test -n "$CONFIG_FILES"; then
17713 ac_cr=`echo X | tr X '\015'`
17714 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17715 # But we know of no other shell where ac_cr would be empty at this
17716 # point, so we can use a bashism as a fallback.
17717 if test "x$ac_cr" = x; then
17718 eval ac_cr=\$\'\\r\'
17720 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17721 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17722 ac_cs_awk_cr='\r'
17723 else
17724 ac_cs_awk_cr=$ac_cr
17727 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17728 _ACEOF
17732 echo "cat >conf$$subs.awk <<_ACEOF" &&
17733 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17734 echo "_ACEOF"
17735 } >conf$$subs.sh ||
17736 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17737 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17738 ac_delim='%!_!# '
17739 for ac_last_try in false false false false false :; do
17740 . ./conf$$subs.sh ||
17741 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17743 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17744 if test $ac_delim_n = $ac_delim_num; then
17745 break
17746 elif $ac_last_try; then
17747 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17748 else
17749 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17751 done
17752 rm -f conf$$subs.sh
17754 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17755 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17756 _ACEOF
17757 sed -n '
17759 s/^/S["/; s/!.*/"]=/
17762 s/^[^!]*!//
17763 :repl
17764 t repl
17765 s/'"$ac_delim"'$//
17766 t delim
17769 s/\(.\{148\}\).*/\1/
17770 t more1
17771 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17774 b repl
17775 :more1
17776 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17779 s/.\{148\}//
17780 t nl
17781 :delim
17783 s/\(.\{148\}\).*/\1/
17784 t more2
17785 s/["\\]/\\&/g; s/^/"/; s/$/"/
17788 :more2
17789 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17792 s/.\{148\}//
17793 t delim
17794 ' <conf$$subs.awk | sed '
17795 /^[^""]/{
17797 s/\n//
17799 ' >>$CONFIG_STATUS || ac_write_fail=1
17800 rm -f conf$$subs.awk
17801 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17802 _ACAWK
17803 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17804 for (key in S) S_is_set[key] = 1
17805 FS = "\a"
17809 line = $ 0
17810 nfields = split(line, field, "@")
17811 substed = 0
17812 len = length(field[1])
17813 for (i = 2; i < nfields; i++) {
17814 key = field[i]
17815 keylen = length(key)
17816 if (S_is_set[key]) {
17817 value = S[key]
17818 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17819 len += length(value) + length(field[++i])
17820 substed = 1
17821 } else
17822 len += 1 + keylen
17825 print line
17828 _ACAWK
17829 _ACEOF
17830 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17831 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17832 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17833 else
17835 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17836 || as_fn_error "could not setup config files machinery" "$LINENO" 5
17837 _ACEOF
17839 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17840 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17841 # trailing colons and then remove the whole line if VPATH becomes empty
17842 # (actually we leave an empty line to preserve line numbers).
17843 if test "x$srcdir" = x.; then
17844 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17845 s/:*\$(srcdir):*/:/
17846 s/:*\${srcdir}:*/:/
17847 s/:*@srcdir@:*/:/
17848 s/^\([^=]*=[ ]*\):*/\1/
17849 s/:*$//
17850 s/^[^=]*=[ ]*$//
17854 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17855 fi # test -n "$CONFIG_FILES"
17857 # Set up the scripts for CONFIG_HEADERS section.
17858 # No need to generate them if there are no CONFIG_HEADERS.
17859 # This happens for instance with `./config.status Makefile'.
17860 if test -n "$CONFIG_HEADERS"; then
17861 cat >"$tmp/defines.awk" <<\_ACAWK ||
17862 BEGIN {
17863 _ACEOF
17865 # Transform confdefs.h into an awk script `defines.awk', embedded as
17866 # here-document in config.status, that substitutes the proper values into
17867 # config.h.in to produce config.h.
17869 # Create a delimiter string that does not exist in confdefs.h, to ease
17870 # handling of long lines.
17871 ac_delim='%!_!# '
17872 for ac_last_try in false false :; do
17873 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17874 if test -z "$ac_t"; then
17875 break
17876 elif $ac_last_try; then
17877 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
17878 else
17879 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17881 done
17883 # For the awk script, D is an array of macro values keyed by name,
17884 # likewise P contains macro parameters if any. Preserve backslash
17885 # newline sequences.
17887 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17888 sed -n '
17889 s/.\{148\}/&'"$ac_delim"'/g
17890 t rset
17891 :rset
17892 s/^[ ]*#[ ]*define[ ][ ]*/ /
17893 t def
17895 :def
17896 s/\\$//
17897 t bsnl
17898 s/["\\]/\\&/g
17899 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17900 D["\1"]=" \3"/p
17901 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17903 :bsnl
17904 s/["\\]/\\&/g
17905 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17906 D["\1"]=" \3\\\\\\n"\\/p
17907 t cont
17908 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17909 t cont
17911 :cont
17913 s/.\{148\}/&'"$ac_delim"'/g
17914 t clear
17915 :clear
17916 s/\\$//
17917 t bsnlc
17918 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17920 :bsnlc
17921 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17922 b cont
17923 ' <confdefs.h | sed '
17924 s/'"$ac_delim"'/"\\\
17925 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17927 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17928 for (key in D) D_is_set[key] = 1
17929 FS = "\a"
17931 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17932 line = \$ 0
17933 split(line, arg, " ")
17934 if (arg[1] == "#") {
17935 defundef = arg[2]
17936 mac1 = arg[3]
17937 } else {
17938 defundef = substr(arg[1], 2)
17939 mac1 = arg[2]
17941 split(mac1, mac2, "(") #)
17942 macro = mac2[1]
17943 prefix = substr(line, 1, index(line, defundef) - 1)
17944 if (D_is_set[macro]) {
17945 # Preserve the white space surrounding the "#".
17946 print prefix "define", macro P[macro] D[macro]
17947 next
17948 } else {
17949 # Replace #undef with comments. This is necessary, for example,
17950 # in the case of _POSIX_SOURCE, which is predefined and required
17951 # on some systems where configure will not decide to define it.
17952 if (defundef == "undef") {
17953 print "/*", prefix defundef, macro, "*/"
17954 next
17958 { print }
17959 _ACAWK
17960 _ACEOF
17961 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17962 as_fn_error "could not setup config headers machinery" "$LINENO" 5
17963 fi # test -n "$CONFIG_HEADERS"
17966 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17967 shift
17968 for ac_tag
17970 case $ac_tag in
17971 :[FHLC]) ac_mode=$ac_tag; continue;;
17972 esac
17973 case $ac_mode$ac_tag in
17974 :[FHL]*:*);;
17975 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
17976 :[FH]-) ac_tag=-:-;;
17977 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17978 esac
17979 ac_save_IFS=$IFS
17980 IFS=:
17981 set x $ac_tag
17982 IFS=$ac_save_IFS
17983 shift
17984 ac_file=$1
17985 shift
17987 case $ac_mode in
17988 :L) ac_source=$1;;
17989 :[FH])
17990 ac_file_inputs=
17991 for ac_f
17993 case $ac_f in
17994 -) ac_f="$tmp/stdin";;
17995 *) # Look for the file first in the build tree, then in the source tree
17996 # (if the path is not absolute). The absolute path cannot be DOS-style,
17997 # because $ac_f cannot contain `:'.
17998 test -f "$ac_f" ||
17999 case $ac_f in
18000 [\\/$]*) false;;
18001 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18002 esac ||
18003 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18004 esac
18005 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18006 as_fn_append ac_file_inputs " '$ac_f'"
18007 done
18009 # Let's still pretend it is `configure' which instantiates (i.e., don't
18010 # use $as_me), people would be surprised to read:
18011 # /* config.h. Generated by config.status. */
18012 configure_input='Generated from '`
18013 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18014 `' by configure.'
18015 if test x"$ac_file" != x-; then
18016 configure_input="$ac_file. $configure_input"
18017 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18018 $as_echo "$as_me: creating $ac_file" >&6;}
18020 # Neutralize special characters interpreted by sed in replacement strings.
18021 case $configure_input in #(
18022 *\&* | *\|* | *\\* )
18023 ac_sed_conf_input=`$as_echo "$configure_input" |
18024 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18025 *) ac_sed_conf_input=$configure_input;;
18026 esac
18028 case $ac_tag in
18029 *:-:* | *:-) cat >"$tmp/stdin" \
18030 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
18031 esac
18033 esac
18035 ac_dir=`$as_dirname -- "$ac_file" ||
18036 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18037 X"$ac_file" : 'X\(//\)[^/]' \| \
18038 X"$ac_file" : 'X\(//\)$' \| \
18039 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18040 $as_echo X"$ac_file" |
18041 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18042 s//\1/
18045 /^X\(\/\/\)[^/].*/{
18046 s//\1/
18049 /^X\(\/\/\)$/{
18050 s//\1/
18053 /^X\(\/\).*/{
18054 s//\1/
18057 s/.*/./; q'`
18058 as_dir="$ac_dir"; as_fn_mkdir_p
18059 ac_builddir=.
18061 case "$ac_dir" in
18062 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18064 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18065 # A ".." for each directory in $ac_dir_suffix.
18066 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18067 case $ac_top_builddir_sub in
18068 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18069 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18070 esac ;;
18071 esac
18072 ac_abs_top_builddir=$ac_pwd
18073 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18074 # for backward compatibility:
18075 ac_top_builddir=$ac_top_build_prefix
18077 case $srcdir in
18078 .) # We are building in place.
18079 ac_srcdir=.
18080 ac_top_srcdir=$ac_top_builddir_sub
18081 ac_abs_top_srcdir=$ac_pwd ;;
18082 [\\/]* | ?:[\\/]* ) # Absolute name.
18083 ac_srcdir=$srcdir$ac_dir_suffix;
18084 ac_top_srcdir=$srcdir
18085 ac_abs_top_srcdir=$srcdir ;;
18086 *) # Relative name.
18087 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18088 ac_top_srcdir=$ac_top_build_prefix$srcdir
18089 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18090 esac
18091 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18094 case $ac_mode in
18097 # CONFIG_FILE
18100 case $INSTALL in
18101 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18102 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18103 esac
18104 ac_MKDIR_P=$MKDIR_P
18105 case $MKDIR_P in
18106 [\\/$]* | ?:[\\/]* ) ;;
18107 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18108 esac
18109 _ACEOF
18111 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18112 # If the template does not know about datarootdir, expand it.
18113 # FIXME: This hack should be removed a few years after 2.60.
18114 ac_datarootdir_hack=; ac_datarootdir_seen=
18115 ac_sed_dataroot='
18116 /datarootdir/ {
18120 /@datadir@/p
18121 /@docdir@/p
18122 /@infodir@/p
18123 /@localedir@/p
18124 /@mandir@/p'
18125 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18126 *datarootdir*) ac_datarootdir_seen=yes;;
18127 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18129 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18130 _ACEOF
18131 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18132 ac_datarootdir_hack='
18133 s&@datadir@&$datadir&g
18134 s&@docdir@&$docdir&g
18135 s&@infodir@&$infodir&g
18136 s&@localedir@&$localedir&g
18137 s&@mandir@&$mandir&g
18138 s&\\\${datarootdir}&$datarootdir&g' ;;
18139 esac
18140 _ACEOF
18142 # Neutralize VPATH when `$srcdir' = `.'.
18143 # Shell code in configure.ac might set extrasub.
18144 # FIXME: do we really want to maintain this feature?
18145 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18146 ac_sed_extra="$ac_vpsub
18147 $extrasub
18148 _ACEOF
18149 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18151 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18152 s|@configure_input@|$ac_sed_conf_input|;t t
18153 s&@top_builddir@&$ac_top_builddir_sub&;t t
18154 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18155 s&@srcdir@&$ac_srcdir&;t t
18156 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18157 s&@top_srcdir@&$ac_top_srcdir&;t t
18158 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18159 s&@builddir@&$ac_builddir&;t t
18160 s&@abs_builddir@&$ac_abs_builddir&;t t
18161 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18162 s&@INSTALL@&$ac_INSTALL&;t t
18163 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18164 $ac_datarootdir_hack
18166 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
18167 || as_fn_error "could not create $ac_file" "$LINENO" 5
18169 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18170 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18171 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18173 which seems to be undefined. Please make sure it is defined." >&5
18174 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18175 which seems to be undefined. Please make sure it is defined." >&2;}
18177 rm -f "$tmp/stdin"
18178 case $ac_file in
18179 -) cat "$tmp/out" && rm -f "$tmp/out";;
18180 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18181 esac \
18182 || as_fn_error "could not create $ac_file" "$LINENO" 5
18186 # CONFIG_HEADER
18188 if test x"$ac_file" != x-; then
18190 $as_echo "/* $configure_input */" \
18191 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18192 } >"$tmp/config.h" \
18193 || as_fn_error "could not create $ac_file" "$LINENO" 5
18194 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18195 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18196 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18197 else
18198 rm -f "$ac_file"
18199 mv "$tmp/config.h" "$ac_file" \
18200 || as_fn_error "could not create $ac_file" "$LINENO" 5
18202 else
18203 $as_echo "/* $configure_input */" \
18204 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18205 || as_fn_error "could not create -" "$LINENO" 5
18207 # Compute "$ac_file"'s index in $config_headers.
18208 _am_arg="$ac_file"
18209 _am_stamp_count=1
18210 for _am_header in $config_headers :; do
18211 case $_am_header in
18212 $_am_arg | $_am_arg:* )
18213 break ;;
18215 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18216 esac
18217 done
18218 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18219 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18220 X"$_am_arg" : 'X\(//\)[^/]' \| \
18221 X"$_am_arg" : 'X\(//\)$' \| \
18222 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18223 $as_echo X"$_am_arg" |
18224 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18225 s//\1/
18228 /^X\(\/\/\)[^/].*/{
18229 s//\1/
18232 /^X\(\/\/\)$/{
18233 s//\1/
18236 /^X\(\/\).*/{
18237 s//\1/
18240 s/.*/./; q'`/stamp-h$_am_stamp_count
18243 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18244 $as_echo "$as_me: executing $ac_file commands" >&6;}
18246 esac
18249 case $ac_file$ac_mode in
18250 "default-1":C)
18251 # Only add multilib support code if we just rebuilt the top-level
18252 # Makefile.
18253 case " $CONFIG_FILES " in
18254 *" Makefile "*)
18255 ac_file=Makefile . ${multi_basedir}/config-ml.in
18257 esac ;;
18258 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18259 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18260 # are listed without --file. Let's play safe and only enable the eval
18261 # if we detect the quoting.
18262 case $CONFIG_FILES in
18263 *\'*) eval set x "$CONFIG_FILES" ;;
18264 *) set x $CONFIG_FILES ;;
18265 esac
18266 shift
18267 for mf
18269 # Strip MF so we end up with the name of the file.
18270 mf=`echo "$mf" | sed -e 's/:.*$//'`
18271 # Check whether this is an Automake generated Makefile or not.
18272 # We used to match only the files named `Makefile.in', but
18273 # some people rename them; so instead we look at the file content.
18274 # Grep'ing the first line is not enough: some people post-process
18275 # each Makefile.in and add a new line on top of each file to say so.
18276 # Grep'ing the whole file is not good either: AIX grep has a line
18277 # limit of 2048, but all sed's we know have understand at least 4000.
18278 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18279 dirpart=`$as_dirname -- "$mf" ||
18280 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18281 X"$mf" : 'X\(//\)[^/]' \| \
18282 X"$mf" : 'X\(//\)$' \| \
18283 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18284 $as_echo X"$mf" |
18285 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18286 s//\1/
18289 /^X\(\/\/\)[^/].*/{
18290 s//\1/
18293 /^X\(\/\/\)$/{
18294 s//\1/
18297 /^X\(\/\).*/{
18298 s//\1/
18301 s/.*/./; q'`
18302 else
18303 continue
18305 # Extract the definition of DEPDIR, am__include, and am__quote
18306 # from the Makefile without running `make'.
18307 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18308 test -z "$DEPDIR" && continue
18309 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18310 test -z "am__include" && continue
18311 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18312 # When using ansi2knr, U may be empty or an underscore; expand it
18313 U=`sed -n 's/^U = //p' < "$mf"`
18314 # Find all dependency output files, they are included files with
18315 # $(DEPDIR) in their names. We invoke sed twice because it is the
18316 # simplest approach to changing $(DEPDIR) to its actual value in the
18317 # expansion.
18318 for file in `sed -n "
18319 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18320 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18321 # Make sure the directory exists.
18322 test -f "$dirpart/$file" && continue
18323 fdir=`$as_dirname -- "$file" ||
18324 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18325 X"$file" : 'X\(//\)[^/]' \| \
18326 X"$file" : 'X\(//\)$' \| \
18327 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18328 $as_echo X"$file" |
18329 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18330 s//\1/
18333 /^X\(\/\/\)[^/].*/{
18334 s//\1/
18337 /^X\(\/\/\)$/{
18338 s//\1/
18341 /^X\(\/\).*/{
18342 s//\1/
18345 s/.*/./; q'`
18346 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18347 # echo "creating $dirpart/$file"
18348 echo '# dummy' > "$dirpart/$file"
18349 done
18350 done
18353 "libtool":C)
18355 # See if we are running on zsh, and set the options which allow our
18356 # commands through without removal of \ escapes.
18357 if test -n "${ZSH_VERSION+set}" ; then
18358 setopt NO_GLOB_SUBST
18361 cfgfile="${ofile}T"
18362 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18363 $RM "$cfgfile"
18365 cat <<_LT_EOF >> "$cfgfile"
18366 #! $SHELL
18368 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18369 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18370 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18371 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18373 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18374 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18375 # Written by Gordon Matzigkeit, 1996
18377 # This file is part of GNU Libtool.
18379 # GNU Libtool is free software; you can redistribute it and/or
18380 # modify it under the terms of the GNU General Public License as
18381 # published by the Free Software Foundation; either version 2 of
18382 # the License, or (at your option) any later version.
18384 # As a special exception to the GNU General Public License,
18385 # if you distribute this file as part of a program or library that
18386 # is built using GNU Libtool, you may include this file under the
18387 # same distribution terms that you use for the rest of that program.
18389 # GNU Libtool is distributed in the hope that it will be useful,
18390 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18391 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18392 # GNU General Public License for more details.
18394 # You should have received a copy of the GNU General Public License
18395 # along with GNU Libtool; see the file COPYING. If not, a copy
18396 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18397 # obtained by writing to the Free Software Foundation, Inc.,
18398 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18401 # The names of the tagged configurations supported by this script.
18402 available_tags="CXX "
18404 # ### BEGIN LIBTOOL CONFIG
18406 # Which release of libtool.m4 was used?
18407 macro_version=$macro_version
18408 macro_revision=$macro_revision
18410 # Whether or not to build shared libraries.
18411 build_libtool_libs=$enable_shared
18413 # Whether or not to build static libraries.
18414 build_old_libs=$enable_static
18416 # What type of objects to build.
18417 pic_mode=$pic_mode
18419 # Whether or not to optimize for fast installation.
18420 fast_install=$enable_fast_install
18422 # Shell to use when invoking shell scripts.
18423 SHELL=$lt_SHELL
18425 # An echo program that protects backslashes.
18426 ECHO=$lt_ECHO
18428 # The host system.
18429 host_alias=$host_alias
18430 host=$host
18431 host_os=$host_os
18433 # The build system.
18434 build_alias=$build_alias
18435 build=$build
18436 build_os=$build_os
18438 # A sed program that does not truncate output.
18439 SED=$lt_SED
18441 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18442 Xsed="\$SED -e 1s/^X//"
18444 # A grep program that handles long lines.
18445 GREP=$lt_GREP
18447 # An ERE matcher.
18448 EGREP=$lt_EGREP
18450 # A literal string matcher.
18451 FGREP=$lt_FGREP
18453 # A BSD- or MS-compatible name lister.
18454 NM=$lt_NM
18456 # Whether we need soft or hard links.
18457 LN_S=$lt_LN_S
18459 # What is the maximum length of a command?
18460 max_cmd_len=$max_cmd_len
18462 # Object file suffix (normally "o").
18463 objext=$ac_objext
18465 # Executable file suffix (normally "").
18466 exeext=$exeext
18468 # whether the shell understands "unset".
18469 lt_unset=$lt_unset
18471 # turn spaces into newlines.
18472 SP2NL=$lt_lt_SP2NL
18474 # turn newlines into spaces.
18475 NL2SP=$lt_lt_NL2SP
18477 # An object symbol dumper.
18478 OBJDUMP=$lt_OBJDUMP
18480 # Method to check whether dependent libraries are shared objects.
18481 deplibs_check_method=$lt_deplibs_check_method
18483 # Command to use when deplibs_check_method == "file_magic".
18484 file_magic_cmd=$lt_file_magic_cmd
18486 # The archiver.
18487 AR=$lt_AR
18488 AR_FLAGS=$lt_AR_FLAGS
18490 # A symbol stripping program.
18491 STRIP=$lt_STRIP
18493 # Commands used to install an old-style archive.
18494 RANLIB=$lt_RANLIB
18495 old_postinstall_cmds=$lt_old_postinstall_cmds
18496 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18498 # Whether to use a lock for old archive extraction.
18499 lock_old_archive_extraction=$lock_old_archive_extraction
18501 # A C compiler.
18502 LTCC=$lt_CC
18504 # LTCC compiler flags.
18505 LTCFLAGS=$lt_CFLAGS
18507 # Take the output of nm and produce a listing of raw symbols and C names.
18508 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18510 # Transform the output of nm in a proper C declaration.
18511 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18513 # Transform the output of nm in a C name address pair.
18514 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18516 # Transform the output of nm in a C name address pair when lib prefix is needed.
18517 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18519 # The name of the directory that contains temporary libtool files.
18520 objdir=$objdir
18522 # Used to examine libraries when file_magic_cmd begins with "file".
18523 MAGIC_CMD=$MAGIC_CMD
18525 # Must we lock files when doing compilation?
18526 need_locks=$lt_need_locks
18528 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18529 DSYMUTIL=$lt_DSYMUTIL
18531 # Tool to change global to local symbols on Mac OS X.
18532 NMEDIT=$lt_NMEDIT
18534 # Tool to manipulate fat objects and archives on Mac OS X.
18535 LIPO=$lt_LIPO
18537 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18538 OTOOL=$lt_OTOOL
18540 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18541 OTOOL64=$lt_OTOOL64
18543 # Old archive suffix (normally "a").
18544 libext=$libext
18546 # Shared library suffix (normally ".so").
18547 shrext_cmds=$lt_shrext_cmds
18549 # The commands to extract the exported symbol list from a shared archive.
18550 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18552 # Variables whose values should be saved in libtool wrapper scripts and
18553 # restored at link time.
18554 variables_saved_for_relink=$lt_variables_saved_for_relink
18556 # Do we need the "lib" prefix for modules?
18557 need_lib_prefix=$need_lib_prefix
18559 # Do we need a version for libraries?
18560 need_version=$need_version
18562 # Library versioning type.
18563 version_type=$version_type
18565 # Shared library runtime path variable.
18566 runpath_var=$runpath_var
18568 # Shared library path variable.
18569 shlibpath_var=$shlibpath_var
18571 # Is shlibpath searched before the hard-coded library search path?
18572 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18574 # Format of library name prefix.
18575 libname_spec=$lt_libname_spec
18577 # List of archive names. First name is the real one, the rest are links.
18578 # The last name is the one that the linker finds with -lNAME
18579 library_names_spec=$lt_library_names_spec
18581 # The coded name of the library, if different from the real name.
18582 soname_spec=$lt_soname_spec
18584 # Permission mode override for installation of shared libraries.
18585 install_override_mode=$lt_install_override_mode
18587 # Command to use after installation of a shared archive.
18588 postinstall_cmds=$lt_postinstall_cmds
18590 # Command to use after uninstallation of a shared archive.
18591 postuninstall_cmds=$lt_postuninstall_cmds
18593 # Commands used to finish a libtool library installation in a directory.
18594 finish_cmds=$lt_finish_cmds
18596 # As "finish_cmds", except a single script fragment to be evaled but
18597 # not shown.
18598 finish_eval=$lt_finish_eval
18600 # Whether we should hardcode library paths into libraries.
18601 hardcode_into_libs=$hardcode_into_libs
18603 # Compile-time system search path for libraries.
18604 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18606 # Run-time system search path for libraries.
18607 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18609 # Whether dlopen is supported.
18610 dlopen_support=$enable_dlopen
18612 # Whether dlopen of programs is supported.
18613 dlopen_self=$enable_dlopen_self
18615 # Whether dlopen of statically linked programs is supported.
18616 dlopen_self_static=$enable_dlopen_self_static
18618 # Commands to strip libraries.
18619 old_striplib=$lt_old_striplib
18620 striplib=$lt_striplib
18623 # The linker used to build libraries.
18624 LD=$lt_LD
18626 # How to create reloadable object files.
18627 reload_flag=$lt_reload_flag
18628 reload_cmds=$lt_reload_cmds
18630 # Commands used to build an old-style archive.
18631 old_archive_cmds=$lt_old_archive_cmds
18633 # A language specific compiler.
18634 CC=$lt_compiler
18636 # Is the compiler the GNU compiler?
18637 with_gcc=$GCC
18639 # Compiler flag to turn off builtin functions.
18640 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18642 # How to pass a linker flag through the compiler.
18643 wl=$lt_lt_prog_compiler_wl
18645 # Additional compiler flags for building library objects.
18646 pic_flag=$lt_lt_prog_compiler_pic
18648 # Compiler flag to prevent dynamic linking.
18649 link_static_flag=$lt_lt_prog_compiler_static
18651 # Does compiler simultaneously support -c and -o options?
18652 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18654 # Whether or not to add -lc for building shared libraries.
18655 build_libtool_need_lc=$archive_cmds_need_lc
18657 # Whether or not to disallow shared libs when runtime libs are static.
18658 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18660 # Compiler flag to allow reflexive dlopens.
18661 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18663 # Compiler flag to generate shared objects directly from archives.
18664 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18666 # Whether the compiler copes with passing no objects directly.
18667 compiler_needs_object=$lt_compiler_needs_object
18669 # Create an old-style archive from a shared archive.
18670 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18672 # Create a temporary old-style archive to link instead of a shared archive.
18673 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18675 # Commands used to build a shared archive.
18676 archive_cmds=$lt_archive_cmds
18677 archive_expsym_cmds=$lt_archive_expsym_cmds
18679 # Commands used to build a loadable module if different from building
18680 # a shared archive.
18681 module_cmds=$lt_module_cmds
18682 module_expsym_cmds=$lt_module_expsym_cmds
18684 # Whether we are building with GNU ld or not.
18685 with_gnu_ld=$lt_with_gnu_ld
18687 # Flag that allows shared libraries with undefined symbols to be built.
18688 allow_undefined_flag=$lt_allow_undefined_flag
18690 # Flag that enforces no undefined symbols.
18691 no_undefined_flag=$lt_no_undefined_flag
18693 # Flag to hardcode \$libdir into a binary during linking.
18694 # This must work even if \$libdir does not exist
18695 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18697 # If ld is used when linking, flag to hardcode \$libdir into a binary
18698 # during linking. This must work even if \$libdir does not exist.
18699 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18701 # Whether we need a single "-rpath" flag with a separated argument.
18702 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18704 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18705 # DIR into the resulting binary.
18706 hardcode_direct=$hardcode_direct
18708 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18709 # DIR into the resulting binary and the resulting library dependency is
18710 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18711 # library is relocated.
18712 hardcode_direct_absolute=$hardcode_direct_absolute
18714 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18715 # into the resulting binary.
18716 hardcode_minus_L=$hardcode_minus_L
18718 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18719 # into the resulting binary.
18720 hardcode_shlibpath_var=$hardcode_shlibpath_var
18722 # Set to "yes" if building a shared library automatically hardcodes DIR
18723 # into the library and all subsequent libraries and executables linked
18724 # against it.
18725 hardcode_automatic=$hardcode_automatic
18727 # Set to yes if linker adds runtime paths of dependent libraries
18728 # to runtime path list.
18729 inherit_rpath=$inherit_rpath
18731 # Whether libtool must link a program against all its dependency libraries.
18732 link_all_deplibs=$link_all_deplibs
18734 # Fix the shell variable \$srcfile for the compiler.
18735 fix_srcfile_path=$lt_fix_srcfile_path
18737 # Set to "yes" if exported symbols are required.
18738 always_export_symbols=$always_export_symbols
18740 # The commands to list exported symbols.
18741 export_symbols_cmds=$lt_export_symbols_cmds
18743 # Symbols that should not be listed in the preloaded symbols.
18744 exclude_expsyms=$lt_exclude_expsyms
18746 # Symbols that must always be exported.
18747 include_expsyms=$lt_include_expsyms
18749 # Commands necessary for linking programs (against libraries) with templates.
18750 prelink_cmds=$lt_prelink_cmds
18752 # Specify filename containing input files.
18753 file_list_spec=$lt_file_list_spec
18755 # How to hardcode a shared library path into an executable.
18756 hardcode_action=$hardcode_action
18758 # The directories searched by this compiler when creating a shared library.
18759 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18761 # Dependencies to place before and after the objects being linked to
18762 # create a shared library.
18763 predep_objects=$lt_predep_objects
18764 postdep_objects=$lt_postdep_objects
18765 predeps=$lt_predeps
18766 postdeps=$lt_postdeps
18768 # The library search path used internally by the compiler when linking
18769 # a shared library.
18770 compiler_lib_search_path=$lt_compiler_lib_search_path
18772 # ### END LIBTOOL CONFIG
18774 _LT_EOF
18776 case $host_os in
18777 aix3*)
18778 cat <<\_LT_EOF >> "$cfgfile"
18779 # AIX sometimes has problems with the GCC collect2 program. For some
18780 # reason, if we set the COLLECT_NAMES environment variable, the problems
18781 # vanish in a puff of smoke.
18782 if test "X${COLLECT_NAMES+set}" != Xset; then
18783 COLLECT_NAMES=
18784 export COLLECT_NAMES
18786 _LT_EOF
18788 esac
18791 ltmain="$ac_aux_dir/ltmain.sh"
18794 # We use sed instead of cat because bash on DJGPP gets confused if
18795 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18796 # text mode, it properly converts lines to CR/LF. This bash problem
18797 # is reportedly fixed, but why not run on old versions too?
18798 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18799 || (rm -f "$cfgfile"; exit 1)
18801 case $xsi_shell in
18802 yes)
18803 cat << \_LT_EOF >> "$cfgfile"
18805 # func_dirname file append nondir_replacement
18806 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18807 # otherwise set result to NONDIR_REPLACEMENT.
18808 func_dirname ()
18810 case ${1} in
18811 */*) func_dirname_result="${1%/*}${2}" ;;
18812 * ) func_dirname_result="${3}" ;;
18813 esac
18816 # func_basename file
18817 func_basename ()
18819 func_basename_result="${1##*/}"
18822 # func_dirname_and_basename file append nondir_replacement
18823 # perform func_basename and func_dirname in a single function
18824 # call:
18825 # dirname: Compute the dirname of FILE. If nonempty,
18826 # add APPEND to the result, otherwise set result
18827 # to NONDIR_REPLACEMENT.
18828 # value returned in "$func_dirname_result"
18829 # basename: Compute filename of FILE.
18830 # value retuned in "$func_basename_result"
18831 # Implementation must be kept synchronized with func_dirname
18832 # and func_basename. For efficiency, we do not delegate to
18833 # those functions but instead duplicate the functionality here.
18834 func_dirname_and_basename ()
18836 case ${1} in
18837 */*) func_dirname_result="${1%/*}${2}" ;;
18838 * ) func_dirname_result="${3}" ;;
18839 esac
18840 func_basename_result="${1##*/}"
18843 # func_stripname prefix suffix name
18844 # strip PREFIX and SUFFIX off of NAME.
18845 # PREFIX and SUFFIX must not contain globbing or regex special
18846 # characters, hashes, percent signs, but SUFFIX may contain a leading
18847 # dot (in which case that matches only a dot).
18848 func_stripname ()
18850 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18851 # positional parameters, so assign one to ordinary parameter first.
18852 func_stripname_result=${3}
18853 func_stripname_result=${func_stripname_result#"${1}"}
18854 func_stripname_result=${func_stripname_result%"${2}"}
18857 # func_opt_split
18858 func_opt_split ()
18860 func_opt_split_opt=${1%%=*}
18861 func_opt_split_arg=${1#*=}
18864 # func_lo2o object
18865 func_lo2o ()
18867 case ${1} in
18868 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18869 *) func_lo2o_result=${1} ;;
18870 esac
18873 # func_xform libobj-or-source
18874 func_xform ()
18876 func_xform_result=${1%.*}.lo
18879 # func_arith arithmetic-term...
18880 func_arith ()
18882 func_arith_result=$(( $* ))
18885 # func_len string
18886 # STRING may not start with a hyphen.
18887 func_len ()
18889 func_len_result=${#1}
18892 _LT_EOF
18894 *) # Bourne compatible functions.
18895 cat << \_LT_EOF >> "$cfgfile"
18897 # func_dirname file append nondir_replacement
18898 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18899 # otherwise set result to NONDIR_REPLACEMENT.
18900 func_dirname ()
18902 # Extract subdirectory from the argument.
18903 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
18904 if test "X$func_dirname_result" = "X${1}"; then
18905 func_dirname_result="${3}"
18906 else
18907 func_dirname_result="$func_dirname_result${2}"
18911 # func_basename file
18912 func_basename ()
18914 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
18918 # func_stripname prefix suffix name
18919 # strip PREFIX and SUFFIX off of NAME.
18920 # PREFIX and SUFFIX must not contain globbing or regex special
18921 # characters, hashes, percent signs, but SUFFIX may contain a leading
18922 # dot (in which case that matches only a dot).
18923 # func_strip_suffix prefix name
18924 func_stripname ()
18926 case ${2} in
18927 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
18928 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
18929 esac
18932 # sed scripts:
18933 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18934 my_sed_long_arg='1s/^-[^=]*=//'
18936 # func_opt_split
18937 func_opt_split ()
18939 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
18940 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
18943 # func_lo2o object
18944 func_lo2o ()
18946 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
18949 # func_xform libobj-or-source
18950 func_xform ()
18952 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
18955 # func_arith arithmetic-term...
18956 func_arith ()
18958 func_arith_result=`expr "$@"`
18961 # func_len string
18962 # STRING may not start with a hyphen.
18963 func_len ()
18965 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18968 _LT_EOF
18969 esac
18971 case $lt_shell_append in
18972 yes)
18973 cat << \_LT_EOF >> "$cfgfile"
18975 # func_append var value
18976 # Append VALUE to the end of shell variable VAR.
18977 func_append ()
18979 eval "$1+=\$2"
18981 _LT_EOF
18984 cat << \_LT_EOF >> "$cfgfile"
18986 # func_append var value
18987 # Append VALUE to the end of shell variable VAR.
18988 func_append ()
18990 eval "$1=\$$1\$2"
18993 _LT_EOF
18995 esac
18998 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18999 || (rm -f "$cfgfile"; exit 1)
19001 mv -f "$cfgfile" "$ofile" ||
19002 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19003 chmod +x "$ofile"
19006 cat <<_LT_EOF >> "$ofile"
19008 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19010 # The linker used to build libraries.
19011 LD=$lt_LD_CXX
19013 # How to create reloadable object files.
19014 reload_flag=$lt_reload_flag_CXX
19015 reload_cmds=$lt_reload_cmds_CXX
19017 # Commands used to build an old-style archive.
19018 old_archive_cmds=$lt_old_archive_cmds_CXX
19020 # A language specific compiler.
19021 CC=$lt_compiler_CXX
19023 # Is the compiler the GNU compiler?
19024 with_gcc=$GCC_CXX
19026 # Compiler flag to turn off builtin functions.
19027 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19029 # How to pass a linker flag through the compiler.
19030 wl=$lt_lt_prog_compiler_wl_CXX
19032 # Additional compiler flags for building library objects.
19033 pic_flag=$lt_lt_prog_compiler_pic_CXX
19035 # Compiler flag to prevent dynamic linking.
19036 link_static_flag=$lt_lt_prog_compiler_static_CXX
19038 # Does compiler simultaneously support -c and -o options?
19039 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19041 # Whether or not to add -lc for building shared libraries.
19042 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19044 # Whether or not to disallow shared libs when runtime libs are static.
19045 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19047 # Compiler flag to allow reflexive dlopens.
19048 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19050 # Compiler flag to generate shared objects directly from archives.
19051 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19053 # Whether the compiler copes with passing no objects directly.
19054 compiler_needs_object=$lt_compiler_needs_object_CXX
19056 # Create an old-style archive from a shared archive.
19057 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19059 # Create a temporary old-style archive to link instead of a shared archive.
19060 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19062 # Commands used to build a shared archive.
19063 archive_cmds=$lt_archive_cmds_CXX
19064 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19066 # Commands used to build a loadable module if different from building
19067 # a shared archive.
19068 module_cmds=$lt_module_cmds_CXX
19069 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19071 # Whether we are building with GNU ld or not.
19072 with_gnu_ld=$lt_with_gnu_ld_CXX
19074 # Flag that allows shared libraries with undefined symbols to be built.
19075 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19077 # Flag that enforces no undefined symbols.
19078 no_undefined_flag=$lt_no_undefined_flag_CXX
19080 # Flag to hardcode \$libdir into a binary during linking.
19081 # This must work even if \$libdir does not exist
19082 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19084 # If ld is used when linking, flag to hardcode \$libdir into a binary
19085 # during linking. This must work even if \$libdir does not exist.
19086 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19088 # Whether we need a single "-rpath" flag with a separated argument.
19089 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19091 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19092 # DIR into the resulting binary.
19093 hardcode_direct=$hardcode_direct_CXX
19095 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19096 # DIR into the resulting binary and the resulting library dependency is
19097 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19098 # library is relocated.
19099 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19101 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19102 # into the resulting binary.
19103 hardcode_minus_L=$hardcode_minus_L_CXX
19105 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19106 # into the resulting binary.
19107 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19109 # Set to "yes" if building a shared library automatically hardcodes DIR
19110 # into the library and all subsequent libraries and executables linked
19111 # against it.
19112 hardcode_automatic=$hardcode_automatic_CXX
19114 # Set to yes if linker adds runtime paths of dependent libraries
19115 # to runtime path list.
19116 inherit_rpath=$inherit_rpath_CXX
19118 # Whether libtool must link a program against all its dependency libraries.
19119 link_all_deplibs=$link_all_deplibs_CXX
19121 # Fix the shell variable \$srcfile for the compiler.
19122 fix_srcfile_path=$lt_fix_srcfile_path_CXX
19124 # Set to "yes" if exported symbols are required.
19125 always_export_symbols=$always_export_symbols_CXX
19127 # The commands to list exported symbols.
19128 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19130 # Symbols that should not be listed in the preloaded symbols.
19131 exclude_expsyms=$lt_exclude_expsyms_CXX
19133 # Symbols that must always be exported.
19134 include_expsyms=$lt_include_expsyms_CXX
19136 # Commands necessary for linking programs (against libraries) with templates.
19137 prelink_cmds=$lt_prelink_cmds_CXX
19139 # Specify filename containing input files.
19140 file_list_spec=$lt_file_list_spec_CXX
19142 # How to hardcode a shared library path into an executable.
19143 hardcode_action=$hardcode_action_CXX
19145 # The directories searched by this compiler when creating a shared library.
19146 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19148 # Dependencies to place before and after the objects being linked to
19149 # create a shared library.
19150 predep_objects=$lt_predep_objects_CXX
19151 postdep_objects=$lt_postdep_objects_CXX
19152 predeps=$lt_predeps_CXX
19153 postdeps=$lt_postdeps_CXX
19155 # The library search path used internally by the compiler when linking
19156 # a shared library.
19157 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19159 # ### END LIBTOOL TAG CONFIG: CXX
19160 _LT_EOF
19163 "gstdint.h":C)
19164 if test "$GCC" = yes; then
19165 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
19166 else
19167 echo "/* generated for $CC */" > tmp-stdint.h
19170 sed 's/^ *//' >> tmp-stdint.h <<EOF
19172 #ifndef GCC_GENERATED_STDINT_H
19173 #define GCC_GENERATED_STDINT_H 1
19175 #include <sys/types.h>
19178 if test "$acx_cv_header_stdint" != stdint.h; then
19179 echo "#include <stddef.h>" >> tmp-stdint.h
19181 if test "$acx_cv_header_stdint" != stddef.h; then
19182 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
19185 sed 's/^ *//' >> tmp-stdint.h <<EOF
19186 /* glibc uses these symbols as guards to prevent redefinitions. */
19187 #ifdef __int8_t_defined
19188 #define _INT8_T
19189 #define _INT16_T
19190 #define _INT32_T
19191 #endif
19192 #ifdef __uint32_t_defined
19193 #define _UINT32_T
19194 #endif
19198 # ----------------- done header, emit basic int types -------------
19199 if test "$acx_cv_header_stdint" = stddef.h; then
19200 sed 's/^ *//' >> tmp-stdint.h <<EOF
19202 #ifndef _UINT8_T
19203 #define _UINT8_T
19204 #ifndef __uint8_t_defined
19205 #define __uint8_t_defined
19206 #ifndef uint8_t
19207 typedef unsigned $acx_cv_type_int8_t uint8_t;
19208 #endif
19209 #endif
19210 #endif
19212 #ifndef _UINT16_T
19213 #define _UINT16_T
19214 #ifndef __uint16_t_defined
19215 #define __uint16_t_defined
19216 #ifndef uint16_t
19217 typedef unsigned $acx_cv_type_int16_t uint16_t;
19218 #endif
19219 #endif
19220 #endif
19222 #ifndef _UINT32_T
19223 #define _UINT32_T
19224 #ifndef __uint32_t_defined
19225 #define __uint32_t_defined
19226 #ifndef uint32_t
19227 typedef unsigned $acx_cv_type_int32_t uint32_t;
19228 #endif
19229 #endif
19230 #endif
19232 #ifndef _INT8_T
19233 #define _INT8_T
19234 #ifndef __int8_t_defined
19235 #define __int8_t_defined
19236 #ifndef int8_t
19237 typedef $acx_cv_type_int8_t int8_t;
19238 #endif
19239 #endif
19240 #endif
19242 #ifndef _INT16_T
19243 #define _INT16_T
19244 #ifndef __int16_t_defined
19245 #define __int16_t_defined
19246 #ifndef int16_t
19247 typedef $acx_cv_type_int16_t int16_t;
19248 #endif
19249 #endif
19250 #endif
19252 #ifndef _INT32_T
19253 #define _INT32_T
19254 #ifndef __int32_t_defined
19255 #define __int32_t_defined
19256 #ifndef int32_t
19257 typedef $acx_cv_type_int32_t int32_t;
19258 #endif
19259 #endif
19260 #endif
19262 elif test "$ac_cv_type_u_int32_t" = yes; then
19263 sed 's/^ *//' >> tmp-stdint.h <<EOF
19265 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
19266 #ifndef _INT8_T
19267 #define _INT8_T
19268 #endif
19269 #ifndef _INT16_T
19270 #define _INT16_T
19271 #endif
19272 #ifndef _INT32_T
19273 #define _INT32_T
19274 #endif
19276 #ifndef _UINT8_T
19277 #define _UINT8_T
19278 #ifndef __uint8_t_defined
19279 #define __uint8_t_defined
19280 #ifndef uint8_t
19281 typedef u_int8_t uint8_t;
19282 #endif
19283 #endif
19284 #endif
19286 #ifndef _UINT16_T
19287 #define _UINT16_T
19288 #ifndef __uint16_t_defined
19289 #define __uint16_t_defined
19290 #ifndef uint16_t
19291 typedef u_int16_t uint16_t;
19292 #endif
19293 #endif
19294 #endif
19296 #ifndef _UINT32_T
19297 #define _UINT32_T
19298 #ifndef __uint32_t_defined
19299 #define __uint32_t_defined
19300 #ifndef uint32_t
19301 typedef u_int32_t uint32_t;
19302 #endif
19303 #endif
19304 #endif
19306 else
19307 sed 's/^ *//' >> tmp-stdint.h <<EOF
19309 /* Some systems have guard macros to prevent redefinitions, define them. */
19310 #ifndef _INT8_T
19311 #define _INT8_T
19312 #endif
19313 #ifndef _INT16_T
19314 #define _INT16_T
19315 #endif
19316 #ifndef _INT32_T
19317 #define _INT32_T
19318 #endif
19319 #ifndef _UINT8_T
19320 #define _UINT8_T
19321 #endif
19322 #ifndef _UINT16_T
19323 #define _UINT16_T
19324 #endif
19325 #ifndef _UINT32_T
19326 #define _UINT32_T
19327 #endif
19331 # ------------- done basic int types, emit int64_t types ------------
19332 if test "$ac_cv_type_uint64_t" = yes; then
19333 sed 's/^ *//' >> tmp-stdint.h <<EOF
19335 /* system headers have good uint64_t and int64_t */
19336 #ifndef _INT64_T
19337 #define _INT64_T
19338 #endif
19339 #ifndef _UINT64_T
19340 #define _UINT64_T
19341 #endif
19343 elif test "$ac_cv_type_u_int64_t" = yes; then
19344 sed 's/^ *//' >> tmp-stdint.h <<EOF
19346 /* system headers have an u_int64_t (and int64_t) */
19347 #ifndef _INT64_T
19348 #define _INT64_T
19349 #endif
19350 #ifndef _UINT64_T
19351 #define _UINT64_T
19352 #ifndef __uint64_t_defined
19353 #define __uint64_t_defined
19354 #ifndef uint64_t
19355 typedef u_int64_t uint64_t;
19356 #endif
19357 #endif
19358 #endif
19360 elif test -n "$acx_cv_type_int64_t"; then
19361 sed 's/^ *//' >> tmp-stdint.h <<EOF
19363 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
19364 #ifndef _INT64_T
19365 #define _INT64_T
19366 #ifndef int64_t
19367 typedef $acx_cv_type_int64_t int64_t;
19368 #endif
19369 #endif
19370 #ifndef _UINT64_T
19371 #define _UINT64_T
19372 #ifndef __uint64_t_defined
19373 #define __uint64_t_defined
19374 #ifndef uint64_t
19375 typedef unsigned $acx_cv_type_int64_t uint64_t;
19376 #endif
19377 #endif
19378 #endif
19380 else
19381 sed 's/^ *//' >> tmp-stdint.h <<EOF
19383 /* some common heuristics for int64_t, using compiler-specific tests */
19384 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
19385 #ifndef _INT64_T
19386 #define _INT64_T
19387 #ifndef __int64_t_defined
19388 #ifndef int64_t
19389 typedef long long int64_t;
19390 #endif
19391 #endif
19392 #endif
19393 #ifndef _UINT64_T
19394 #define _UINT64_T
19395 #ifndef uint64_t
19396 typedef unsigned long long uint64_t;
19397 #endif
19398 #endif
19400 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
19401 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
19402 does not implement __extension__. But that compiler doesn't define
19403 __GNUC_MINOR__. */
19404 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
19405 # define __extension__
19406 # endif
19408 # ifndef _INT64_T
19409 # define _INT64_T
19410 # ifndef int64_t
19411 __extension__ typedef long long int64_t;
19412 # endif
19413 # endif
19414 # ifndef _UINT64_T
19415 # define _UINT64_T
19416 # ifndef uint64_t
19417 __extension__ typedef unsigned long long uint64_t;
19418 # endif
19419 # endif
19421 #elif !defined __STRICT_ANSI__
19422 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
19424 # ifndef _INT64_T
19425 # define _INT64_T
19426 # ifndef int64_t
19427 typedef __int64 int64_t;
19428 # endif
19429 # endif
19430 # ifndef _UINT64_T
19431 # define _UINT64_T
19432 # ifndef uint64_t
19433 typedef unsigned __int64 uint64_t;
19434 # endif
19435 # endif
19436 # endif /* compiler */
19438 #endif /* ANSI version */
19442 # ------------- done int64_t types, emit intptr types ------------
19443 if test "$ac_cv_type_uintptr_t" != yes; then
19444 sed 's/^ *//' >> tmp-stdint.h <<EOF
19446 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
19447 #ifndef __uintptr_t_defined
19448 #ifndef uintptr_t
19449 typedef u$acx_cv_type_intptr_t uintptr_t;
19450 #endif
19451 #endif
19452 #ifndef __intptr_t_defined
19453 #ifndef intptr_t
19454 typedef $acx_cv_type_intptr_t intptr_t;
19455 #endif
19456 #endif
19460 # ------------- done intptr types, emit int_least types ------------
19461 if test "$ac_cv_type_int_least32_t" != yes; then
19462 sed 's/^ *//' >> tmp-stdint.h <<EOF
19464 /* Define int_least types */
19465 typedef int8_t int_least8_t;
19466 typedef int16_t int_least16_t;
19467 typedef int32_t int_least32_t;
19468 #ifdef _INT64_T
19469 typedef int64_t int_least64_t;
19470 #endif
19472 typedef uint8_t uint_least8_t;
19473 typedef uint16_t uint_least16_t;
19474 typedef uint32_t uint_least32_t;
19475 #ifdef _UINT64_T
19476 typedef uint64_t uint_least64_t;
19477 #endif
19481 # ------------- done intptr types, emit int_fast types ------------
19482 if test "$ac_cv_type_int_fast32_t" != yes; then
19483 sed 's/^ *//' >> tmp-stdint.h <<EOF
19485 /* Define int_fast types. short is often slow */
19486 typedef int8_t int_fast8_t;
19487 typedef int int_fast16_t;
19488 typedef int32_t int_fast32_t;
19489 #ifdef _INT64_T
19490 typedef int64_t int_fast64_t;
19491 #endif
19493 typedef uint8_t uint_fast8_t;
19494 typedef unsigned int uint_fast16_t;
19495 typedef uint32_t uint_fast32_t;
19496 #ifdef _UINT64_T
19497 typedef uint64_t uint_fast64_t;
19498 #endif
19502 if test "$ac_cv_type_uintmax_t" != yes; then
19503 sed 's/^ *//' >> tmp-stdint.h <<EOF
19505 /* Define intmax based on what we found */
19506 #ifndef intmax_t
19507 #ifdef _INT64_T
19508 typedef int64_t intmax_t;
19509 #else
19510 typedef long intmax_t;
19511 #endif
19512 #endif
19513 #ifndef uintmax_t
19514 #ifdef _UINT64_T
19515 typedef uint64_t uintmax_t;
19516 #else
19517 typedef unsigned long uintmax_t;
19518 #endif
19519 #endif
19523 sed 's/^ *//' >> tmp-stdint.h <<EOF
19525 #endif /* GCC_GENERATED_STDINT_H */
19528 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
19529 rm -f tmp-stdint.h
19530 else
19531 mv -f tmp-stdint.h gstdint.h
19535 "interception/Makefile":F) cat > vpsed$$ << \_EOF
19536 s!`test -f '$<' || echo '$(srcdir)/'`!!
19537 _EOF
19538 sed -f vpsed$$ $ac_file > tmp$$
19539 mv tmp$$ $ac_file
19540 rm vpsed$$
19541 echo 'MULTISUBDIR =' >> $ac_file
19542 ml_norecursion=yes
19543 . ${multi_basedir}/config-ml.in
19544 { ml_norecursion=; unset ml_norecursion;}
19546 "sanitizer_common/Makefile":F) cat > vpsed$$ << \_EOF
19547 s!`test -f '$<' || echo '$(srcdir)/'`!!
19548 _EOF
19549 sed -f vpsed$$ $ac_file > tmp$$
19550 mv tmp$$ $ac_file
19551 rm vpsed$$
19552 echo 'MULTISUBDIR =' >> $ac_file
19553 ml_norecursion=yes
19554 . ${multi_basedir}/config-ml.in
19555 { ml_norecursion=; unset ml_norecursion;}
19557 "libbacktrace/Makefile":F) cat > vpsed$$ << \_EOF
19558 s!`test -f '$<' || echo '$(srcdir)/'`!!
19559 _EOF
19560 sed -f vpsed$$ $ac_file > tmp$$
19561 mv tmp$$ $ac_file
19562 rm vpsed$$
19563 echo 'MULTISUBDIR =' >> $ac_file
19564 ml_norecursion=yes
19565 . ${multi_basedir}/config-ml.in
19566 { ml_norecursion=; unset ml_norecursion;}
19568 "lsan/Makefile":F) cat > vpsed$$ << \_EOF
19569 s!`test -f '$<' || echo '$(srcdir)/'`!!
19570 _EOF
19571 sed -f vpsed$$ $ac_file > tmp$$
19572 mv tmp$$ $ac_file
19573 rm vpsed$$
19574 echo 'MULTISUBDIR =' >> $ac_file
19575 ml_norecursion=yes
19576 . ${multi_basedir}/config-ml.in
19577 { ml_norecursion=; unset ml_norecursion;}
19579 "asan/Makefile":F) cat > vpsed$$ << \_EOF
19580 s!`test -f '$<' || echo '$(srcdir)/'`!!
19581 _EOF
19582 sed -f vpsed$$ $ac_file > tmp$$
19583 mv tmp$$ $ac_file
19584 rm vpsed$$
19585 echo 'MULTISUBDIR =' >> $ac_file
19586 ml_norecursion=yes
19587 . ${multi_basedir}/config-ml.in
19588 { ml_norecursion=; unset ml_norecursion;}
19590 "ubsan/Makefile":F) cat > vpsed$$ << \_EOF
19591 s!`test -f '$<' || echo '$(srcdir)/'`!!
19592 _EOF
19593 sed -f vpsed$$ $ac_file > tmp$$
19594 mv tmp$$ $ac_file
19595 rm vpsed$$
19596 echo 'MULTISUBDIR =' >> $ac_file
19597 ml_norecursion=yes
19598 . ${multi_basedir}/config-ml.in
19599 { ml_norecursion=; unset ml_norecursion;}
19601 "tsan/Makefile":F) cat > vpsed$$ << \_EOF
19602 s!`test -f '$<' || echo '$(srcdir)/'`!!
19603 _EOF
19604 sed -f vpsed$$ $ac_file > tmp$$
19605 mv tmp$$ $ac_file
19606 rm vpsed$$
19607 echo 'MULTISUBDIR =' >> $ac_file
19608 ml_norecursion=yes
19609 . ${multi_basedir}/config-ml.in
19610 { ml_norecursion=; unset ml_norecursion;}
19613 esac
19614 done # for ac_tag
19617 as_fn_exit 0
19618 _ACEOF
19619 ac_clean_files=$ac_clean_files_save
19621 test $ac_write_fail = 0 ||
19622 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
19625 # configure is writing to config.log, and then calls config.status.
19626 # config.status does its own redirection, appending to config.log.
19627 # Unfortunately, on DOS this fails, as config.log is still kept open
19628 # by configure, so config.status won't be able to write to it; its
19629 # output is simply discarded. So we exec the FD to /dev/null,
19630 # effectively closing config.log, so it can be properly (re)opened and
19631 # appended to by config.status. When coming back to configure, we
19632 # need to make the FD available again.
19633 if test "$no_create" != yes; then
19634 ac_cs_success=:
19635 ac_config_status_args=
19636 test "$silent" = yes &&
19637 ac_config_status_args="$ac_config_status_args --quiet"
19638 exec 5>/dev/null
19639 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19640 exec 5>>config.log
19641 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19642 # would make configure fail if this is the last instruction.
19643 $ac_cs_success || as_fn_exit $?
19645 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19647 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}