libstdc++: Define _GLIBCXX_USE_BUILTIN_TRAIT
[official-gcc.git] / libsanitizer / configure
blob0805d254fe531ab58e6d6401f48aaa912637d0a2
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for package-unused version-unused.
5 # Report bugs to <libsanitizer>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software 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 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
176 esac
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
192 else
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and libsanitizer about
278 $0: your system, including any error possibly output before
279 $0: this message. Then install a modern shell, or manually
280 $0: run the script under such a shell if you do have one."
282 exit 1
286 SHELL=${CONFIG_SHELL-/bin/sh}
287 export SHELL
288 # Unset more variables known to interfere with behavior of common tools.
289 CLICOLOR_FORCE= GREP_OPTIONS=
290 unset CLICOLOR_FORCE GREP_OPTIONS
292 ## --------------------- ##
293 ## M4sh Shell Functions. ##
294 ## --------------------- ##
295 # as_fn_unset VAR
296 # ---------------
297 # Portably unset VAR.
298 as_fn_unset ()
300 { eval $1=; unset $1;}
302 as_unset=as_fn_unset
304 # as_fn_set_status STATUS
305 # -----------------------
306 # Set $? to STATUS, without forking.
307 as_fn_set_status ()
309 return $1
310 } # as_fn_set_status
312 # as_fn_exit STATUS
313 # -----------------
314 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
315 as_fn_exit ()
317 set +e
318 as_fn_set_status $1
319 exit $1
320 } # as_fn_exit
322 # as_fn_mkdir_p
323 # -------------
324 # Create "$as_dir" as a directory, including parents if necessary.
325 as_fn_mkdir_p ()
328 case $as_dir in #(
329 -*) as_dir=./$as_dir;;
330 esac
331 test -d "$as_dir" || eval $as_mkdir_p || {
332 as_dirs=
333 while :; do
334 case $as_dir in #(
335 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336 *) as_qdir=$as_dir;;
337 esac
338 as_dirs="'$as_qdir' $as_dirs"
339 as_dir=`$as_dirname -- "$as_dir" ||
340 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
341 X"$as_dir" : 'X\(//\)[^/]' \| \
342 X"$as_dir" : 'X\(//\)$' \| \
343 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
344 $as_echo X"$as_dir" |
345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
346 s//\1/
349 /^X\(\/\/\)[^/].*/{
350 s//\1/
353 /^X\(\/\/\)$/{
354 s//\1/
357 /^X\(\/\).*/{
358 s//\1/
361 s/.*/./; q'`
362 test -d "$as_dir" && break
363 done
364 test -z "$as_dirs" || eval "mkdir $as_dirs"
365 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368 } # as_fn_mkdir_p
370 # as_fn_executable_p FILE
371 # -----------------------
372 # Test if FILE is an executable regular file.
373 as_fn_executable_p ()
375 test -f "$1" && test -x "$1"
376 } # as_fn_executable_p
377 # as_fn_append VAR VALUE
378 # ----------------------
379 # Append the text in VALUE to the end of the definition contained in VAR. Take
380 # advantage of any shell optimizations that allow amortized linear growth over
381 # repeated appends, instead of the typical quadratic growth present in naive
382 # implementations.
383 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
384 eval 'as_fn_append ()
386 eval $1+=\$2
388 else
389 as_fn_append ()
391 eval $1=\$$1\$2
393 fi # as_fn_append
395 # as_fn_arith ARG...
396 # ------------------
397 # Perform arithmetic evaluation on the ARGs, and store the result in the
398 # global $as_val. Take advantage of shells that can avoid forks. The arguments
399 # must be portable across $(()) and expr.
400 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
401 eval 'as_fn_arith ()
403 as_val=$(( $* ))
405 else
406 as_fn_arith ()
408 as_val=`expr "$@" || test $? -eq 1`
410 fi # as_fn_arith
413 # as_fn_error STATUS ERROR [LINENO LOG_FD]
414 # ----------------------------------------
415 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
416 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
417 # script with STATUS, using 1 if that was 0.
418 as_fn_error ()
420 as_status=$1; test $as_status -eq 0 && as_status=1
421 if test "$4"; then
422 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
423 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425 $as_echo "$as_me: error: $2" >&2
426 as_fn_exit $as_status
427 } # as_fn_error
429 if expr a : '\(a\)' >/dev/null 2>&1 &&
430 test "X`expr 00001 : '.*\(...\)'`" = X001; then
431 as_expr=expr
432 else
433 as_expr=false
436 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
437 as_basename=basename
438 else
439 as_basename=false
442 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
443 as_dirname=dirname
444 else
445 as_dirname=false
448 as_me=`$as_basename -- "$0" ||
449 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
450 X"$0" : 'X\(//\)$' \| \
451 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
452 $as_echo X/"$0" |
453 sed '/^.*\/\([^/][^/]*\)\/*$/{
454 s//\1/
457 /^X\/\(\/\/\)$/{
458 s//\1/
461 /^X\/\(\/\).*/{
462 s//\1/
465 s/.*/./; q'`
467 # Avoid depending upon Character Ranges.
468 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
469 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
470 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
471 as_cr_digits='0123456789'
472 as_cr_alnum=$as_cr_Letters$as_cr_digits
475 as_lineno_1=$LINENO as_lineno_1a=$LINENO
476 as_lineno_2=$LINENO as_lineno_2a=$LINENO
477 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
478 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
479 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
480 sed -n '
482 /[$]LINENO/=
483 ' <$as_myself |
484 sed '
485 s/[$]LINENO.*/&-/
486 t lineno
488 :lineno
490 :loop
491 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
492 t loop
493 s/-\n.*//
494 ' >$as_me.lineno &&
495 chmod +x "$as_me.lineno" ||
496 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
499 # already done that, so ensure we don't try to do so again and fall
500 # in an infinite loop. This has already happened in practice.
501 _as_can_reexec=no; export _as_can_reexec
502 # Don't try to exec as it changes $[0], causing all sort of problems
503 # (the dirname of $[0] is not the place where we might find the
504 # original and so on. Autoconf is especially sensitive to this).
505 . "./$as_me.lineno"
506 # Exit status is that of the last command.
507 exit
510 ECHO_C= ECHO_N= ECHO_T=
511 case `echo -n x` in #(((((
512 -n*)
513 case `echo 'xy\c'` in
514 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
515 xy) ECHO_C='\c';;
516 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
517 ECHO_T=' ';;
518 esac;;
520 ECHO_N='-n';;
521 esac
523 rm -f conf$$ conf$$.exe conf$$.file
524 if test -d conf$$.dir; then
525 rm -f conf$$.dir/conf$$.file
526 else
527 rm -f conf$$.dir
528 mkdir conf$$.dir 2>/dev/null
530 if (echo >conf$$.file) 2>/dev/null; then
531 if ln -s conf$$.file conf$$ 2>/dev/null; then
532 as_ln_s='ln -s'
533 # ... but there are two gotchas:
534 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
535 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
536 # In both cases, we have to default to `cp -pR'.
537 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
538 as_ln_s='cp -pR'
539 elif ln conf$$.file conf$$ 2>/dev/null; then
540 as_ln_s=ln
541 else
542 as_ln_s='cp -pR'
544 else
545 as_ln_s='cp -pR'
547 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
548 rmdir conf$$.dir 2>/dev/null
550 if mkdir -p . 2>/dev/null; then
551 as_mkdir_p='mkdir -p "$as_dir"'
552 else
553 test -d ./-p && rmdir ./-p
554 as_mkdir_p=false
557 as_test_x='test -x'
558 as_executable_p=as_fn_executable_p
560 # Sed expression to map a string onto a valid CPP name.
561 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563 # Sed expression to map a string onto a valid variable name.
564 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566 SHELL=${CONFIG_SHELL-/bin/sh}
569 test -n "$DJDIR" || exec 7<&0 </dev/null
570 exec 6>&1
572 # Name of the host.
573 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
574 # so uname gets run too.
575 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578 # Initializations.
580 ac_default_prefix=/usr/local
581 ac_clean_files=
582 ac_config_libobj_dir=.
583 LIBOBJS=
584 cross_compiling=no
585 subdirs=
586 MFLAGS=
587 MAKEFLAGS=
589 # Identity of this package.
590 PACKAGE_NAME='package-unused'
591 PACKAGE_TARNAME='package-unused'
592 PACKAGE_VERSION='version-unused'
593 PACKAGE_STRING='package-unused version-unused'
594 PACKAGE_BUGREPORT='libsanitizer'
595 PACKAGE_URL=''
597 ac_unique_file="include/sanitizer/common_interface_defs.h"
598 # Factoring default headers for most tests.
599 ac_includes_default="\
600 #include <stdio.h>
601 #ifdef HAVE_SYS_TYPES_H
602 # include <sys/types.h>
603 #endif
604 #ifdef HAVE_SYS_STAT_H
605 # include <sys/stat.h>
606 #endif
607 #ifdef STDC_HEADERS
608 # include <stdlib.h>
609 # include <stddef.h>
610 #else
611 # ifdef HAVE_STDLIB_H
612 # include <stdlib.h>
613 # endif
614 #endif
615 #ifdef HAVE_STRING_H
616 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617 # include <memory.h>
618 # endif
619 # include <string.h>
620 #endif
621 #ifdef HAVE_STRINGS_H
622 # include <strings.h>
623 #endif
624 #ifdef HAVE_INTTYPES_H
625 # include <inttypes.h>
626 #endif
627 #ifdef HAVE_STDINT_H
628 # include <stdint.h>
629 #endif
630 #ifdef HAVE_UNISTD_H
631 # include <unistd.h>
632 #endif"
634 ac_subst_vars='am__EXEEXT_FALSE
635 am__EXEEXT_TRUE
636 LTLIBOBJS
637 LIBOBJS
638 EXTRA_CXXFLAGS
639 EXTRA_CFLAGS
640 EXTRA_ASFLAGS
641 get_gcc_base_ver
642 WARN_FLAGS
643 SANITIZER_COMMON_TARGET_DEPENDENT_OBJECTS
644 TSAN_TARGET_DEPENDENT_OBJECTS
645 LIBBACKTRACE_SUPPORTED_FALSE
646 LIBBACKTRACE_SUPPORTED_TRUE
647 RPC_DEFS
648 BACKTRACE_SUPPORTS_THREADS
649 BACKTRACE_USES_MALLOC
650 ALLOC_FILE
651 VIEW_FILE
652 BACKTRACE_SUPPORTED
653 FORMAT_FILE
654 SANITIZER_SUPPORTED_FALSE
655 SANITIZER_SUPPORTED_TRUE
656 USING_MAC_INTERPOSE_FALSE
657 USING_MAC_INTERPOSE_TRUE
658 link_liblsan
659 link_libubsan
660 link_libtsan
661 link_libhwasan
662 link_libasan
663 HWASAN_SUPPORTED_FALSE
664 HWASAN_SUPPORTED_TRUE
665 LSAN_SUPPORTED_FALSE
666 LSAN_SUPPORTED_TRUE
667 TSAN_SUPPORTED_FALSE
668 TSAN_SUPPORTED_TRUE
669 enable_static
670 enable_shared
671 CXXCPP
672 OTOOL64
673 OTOOL
674 LIPO
675 NMEDIT
676 DSYMUTIL
678 OBJDUMP
679 LN_S
681 ac_ct_DUMPBIN
682 DUMPBIN
684 FGREP
686 LIBTOOL
687 RANLIB
688 am__fastdepCCAS_FALSE
689 am__fastdepCCAS_TRUE
690 CCASDEPMODE
691 CCASFLAGS
692 CCAS
693 am__fastdepCXX_FALSE
694 am__fastdepCXX_TRUE
695 CXXDEPMODE
696 ac_ct_CXX
697 CXXFLAGS
699 toolexeclibdir
700 toolexecdir
701 MAINT
702 MAINTAINER_MODE_FALSE
703 MAINTAINER_MODE_TRUE
704 AM_BACKSLASH
705 AM_DEFAULT_VERBOSITY
706 AM_DEFAULT_V
707 AM_V
708 am__fastdepCC_FALSE
709 am__fastdepCC_TRUE
710 CCDEPMODE
711 am__nodep
712 AMDEPBACKSLASH
713 AMDEP_FALSE
714 AMDEP_TRUE
715 am__quote
716 am__include
717 DEPDIR
718 am__untar
719 am__tar
720 AMTAR
721 am__leading_dot
722 SET_MAKE
724 mkdir_p
725 MKDIR_P
726 INSTALL_STRIP_PROGRAM
727 STRIP
728 install_sh
729 MAKEINFO
730 AUTOHEADER
731 AUTOMAKE
732 AUTOCONF
733 ACLOCAL
734 VERSION
735 PACKAGE
736 CYGPATH_W
737 am__isrc
738 INSTALL_DATA
739 INSTALL_SCRIPT
740 INSTALL_PROGRAM
741 LIBSTDCXX_RAW_CXX_LDFLAGS
742 LIBSTDCXX_RAW_CXX_CXXFLAGS
743 target_noncanonical
744 target_os
745 target_vendor
746 target_cpu
747 target
748 host_os
749 host_vendor
750 host_cpu
751 host
752 build_os
753 build_vendor
754 build_cpu
755 build
756 EGREP
757 GREP
759 OBJEXT
760 EXEEXT
761 ac_ct_CC
762 CPPFLAGS
763 LDFLAGS
764 CFLAGS
766 multi_basedir
767 target_alias
768 host_alias
769 build_alias
770 LIBS
771 ECHO_T
772 ECHO_N
773 ECHO_C
774 DEFS
775 mandir
776 localedir
777 libdir
778 psdir
779 pdfdir
780 dvidir
781 htmldir
782 infodir
783 docdir
784 oldincludedir
785 includedir
786 localstatedir
787 sharedstatedir
788 sysconfdir
789 datadir
790 datarootdir
791 libexecdir
792 sbindir
793 bindir
794 program_transform_name
795 prefix
796 exec_prefix
797 PACKAGE_URL
798 PACKAGE_BUGREPORT
799 PACKAGE_STRING
800 PACKAGE_VERSION
801 PACKAGE_TARNAME
802 PACKAGE_NAME
803 PATH_SEPARATOR
804 SHELL'
805 ac_subst_files=''
806 ac_user_opts='
807 enable_option_checking
808 enable_multilib
809 enable_version_specific_runtime_libs
810 enable_dependency_tracking
811 enable_silent_rules
812 enable_maintainer_mode
813 with_toolexeclibdir
814 enable_shared
815 enable_static
816 with_pic
817 enable_fast_install
818 with_gnu_ld
819 enable_libtool_lock
820 enable_werror
821 with_gcc_major_version_only
822 enable_cet
824 ac_precious_vars='build_alias
825 host_alias
826 target_alias
828 CFLAGS
829 LDFLAGS
830 LIBS
831 CPPFLAGS
834 CXXFLAGS
836 CCAS
837 CCASFLAGS
838 CXXCPP'
841 # Initialize some variables set by options.
842 ac_init_help=
843 ac_init_version=false
844 ac_unrecognized_opts=
845 ac_unrecognized_sep=
846 # The variables have the same names as the options, with
847 # dashes changed to underlines.
848 cache_file=/dev/null
849 exec_prefix=NONE
850 no_create=
851 no_recursion=
852 prefix=NONE
853 program_prefix=NONE
854 program_suffix=NONE
855 program_transform_name=s,x,x,
856 silent=
857 site=
858 srcdir=
859 verbose=
860 x_includes=NONE
861 x_libraries=NONE
863 # Installation directory options.
864 # These are left unexpanded so users can "make install exec_prefix=/foo"
865 # and all the variables that are supposed to be based on exec_prefix
866 # by default will actually change.
867 # Use braces instead of parens because sh, perl, etc. also accept them.
868 # (The list follows the same order as the GNU Coding Standards.)
869 bindir='${exec_prefix}/bin'
870 sbindir='${exec_prefix}/sbin'
871 libexecdir='${exec_prefix}/libexec'
872 datarootdir='${prefix}/share'
873 datadir='${datarootdir}'
874 sysconfdir='${prefix}/etc'
875 sharedstatedir='${prefix}/com'
876 localstatedir='${prefix}/var'
877 includedir='${prefix}/include'
878 oldincludedir='/usr/include'
879 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
880 infodir='${datarootdir}/info'
881 htmldir='${docdir}'
882 dvidir='${docdir}'
883 pdfdir='${docdir}'
884 psdir='${docdir}'
885 libdir='${exec_prefix}/lib'
886 localedir='${datarootdir}/locale'
887 mandir='${datarootdir}/man'
889 ac_prev=
890 ac_dashdash=
891 for ac_option
893 # If the previous option needs an argument, assign it.
894 if test -n "$ac_prev"; then
895 eval $ac_prev=\$ac_option
896 ac_prev=
897 continue
900 case $ac_option in
901 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
902 *=) ac_optarg= ;;
903 *) ac_optarg=yes ;;
904 esac
906 # Accept the important Cygnus configure options, so we can diagnose typos.
908 case $ac_dashdash$ac_option in
910 ac_dashdash=yes ;;
912 -bindir | --bindir | --bindi | --bind | --bin | --bi)
913 ac_prev=bindir ;;
914 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
915 bindir=$ac_optarg ;;
917 -build | --build | --buil | --bui | --bu)
918 ac_prev=build_alias ;;
919 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
920 build_alias=$ac_optarg ;;
922 -cache-file | --cache-file | --cache-fil | --cache-fi \
923 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
924 ac_prev=cache_file ;;
925 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
926 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
927 cache_file=$ac_optarg ;;
929 --config-cache | -C)
930 cache_file=config.cache ;;
932 -datadir | --datadir | --datadi | --datad)
933 ac_prev=datadir ;;
934 -datadir=* | --datadir=* | --datadi=* | --datad=*)
935 datadir=$ac_optarg ;;
937 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
938 | --dataroo | --dataro | --datar)
939 ac_prev=datarootdir ;;
940 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
941 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
942 datarootdir=$ac_optarg ;;
944 -disable-* | --disable-*)
945 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
946 # Reject names that are not valid shell variable names.
947 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
948 as_fn_error $? "invalid feature name: $ac_useropt"
949 ac_useropt_orig=$ac_useropt
950 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
951 case $ac_user_opts in
953 "enable_$ac_useropt"
954 "*) ;;
955 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
956 ac_unrecognized_sep=', ';;
957 esac
958 eval enable_$ac_useropt=no ;;
960 -docdir | --docdir | --docdi | --doc | --do)
961 ac_prev=docdir ;;
962 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
963 docdir=$ac_optarg ;;
965 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
966 ac_prev=dvidir ;;
967 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
968 dvidir=$ac_optarg ;;
970 -enable-* | --enable-*)
971 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
972 # Reject names that are not valid shell variable names.
973 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
974 as_fn_error $? "invalid feature name: $ac_useropt"
975 ac_useropt_orig=$ac_useropt
976 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
977 case $ac_user_opts in
979 "enable_$ac_useropt"
980 "*) ;;
981 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
982 ac_unrecognized_sep=', ';;
983 esac
984 eval enable_$ac_useropt=\$ac_optarg ;;
986 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
987 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
988 | --exec | --exe | --ex)
989 ac_prev=exec_prefix ;;
990 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
991 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
992 | --exec=* | --exe=* | --ex=*)
993 exec_prefix=$ac_optarg ;;
995 -gas | --gas | --ga | --g)
996 # Obsolete; use --with-gas.
997 with_gas=yes ;;
999 -help | --help | --hel | --he | -h)
1000 ac_init_help=long ;;
1001 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1002 ac_init_help=recursive ;;
1003 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1004 ac_init_help=short ;;
1006 -host | --host | --hos | --ho)
1007 ac_prev=host_alias ;;
1008 -host=* | --host=* | --hos=* | --ho=*)
1009 host_alias=$ac_optarg ;;
1011 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1012 ac_prev=htmldir ;;
1013 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1014 | --ht=*)
1015 htmldir=$ac_optarg ;;
1017 -includedir | --includedir | --includedi | --included | --include \
1018 | --includ | --inclu | --incl | --inc)
1019 ac_prev=includedir ;;
1020 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1021 | --includ=* | --inclu=* | --incl=* | --inc=*)
1022 includedir=$ac_optarg ;;
1024 -infodir | --infodir | --infodi | --infod | --info | --inf)
1025 ac_prev=infodir ;;
1026 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1027 infodir=$ac_optarg ;;
1029 -libdir | --libdir | --libdi | --libd)
1030 ac_prev=libdir ;;
1031 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1032 libdir=$ac_optarg ;;
1034 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1035 | --libexe | --libex | --libe)
1036 ac_prev=libexecdir ;;
1037 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1038 | --libexe=* | --libex=* | --libe=*)
1039 libexecdir=$ac_optarg ;;
1041 -localedir | --localedir | --localedi | --localed | --locale)
1042 ac_prev=localedir ;;
1043 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1044 localedir=$ac_optarg ;;
1046 -localstatedir | --localstatedir | --localstatedi | --localstated \
1047 | --localstate | --localstat | --localsta | --localst | --locals)
1048 ac_prev=localstatedir ;;
1049 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1050 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1051 localstatedir=$ac_optarg ;;
1053 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1054 ac_prev=mandir ;;
1055 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1056 mandir=$ac_optarg ;;
1058 -nfp | --nfp | --nf)
1059 # Obsolete; use --without-fp.
1060 with_fp=no ;;
1062 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1063 | --no-cr | --no-c | -n)
1064 no_create=yes ;;
1066 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1067 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1068 no_recursion=yes ;;
1070 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1071 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1072 | --oldin | --oldi | --old | --ol | --o)
1073 ac_prev=oldincludedir ;;
1074 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1075 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1076 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1077 oldincludedir=$ac_optarg ;;
1079 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1080 ac_prev=prefix ;;
1081 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1082 prefix=$ac_optarg ;;
1084 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1085 | --program-pre | --program-pr | --program-p)
1086 ac_prev=program_prefix ;;
1087 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1088 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1089 program_prefix=$ac_optarg ;;
1091 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1092 | --program-suf | --program-su | --program-s)
1093 ac_prev=program_suffix ;;
1094 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1095 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1096 program_suffix=$ac_optarg ;;
1098 -program-transform-name | --program-transform-name \
1099 | --program-transform-nam | --program-transform-na \
1100 | --program-transform-n | --program-transform- \
1101 | --program-transform | --program-transfor \
1102 | --program-transfo | --program-transf \
1103 | --program-trans | --program-tran \
1104 | --progr-tra | --program-tr | --program-t)
1105 ac_prev=program_transform_name ;;
1106 -program-transform-name=* | --program-transform-name=* \
1107 | --program-transform-nam=* | --program-transform-na=* \
1108 | --program-transform-n=* | --program-transform-=* \
1109 | --program-transform=* | --program-transfor=* \
1110 | --program-transfo=* | --program-transf=* \
1111 | --program-trans=* | --program-tran=* \
1112 | --progr-tra=* | --program-tr=* | --program-t=*)
1113 program_transform_name=$ac_optarg ;;
1115 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1116 ac_prev=pdfdir ;;
1117 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1118 pdfdir=$ac_optarg ;;
1120 -psdir | --psdir | --psdi | --psd | --ps)
1121 ac_prev=psdir ;;
1122 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1123 psdir=$ac_optarg ;;
1125 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1126 | -silent | --silent | --silen | --sile | --sil)
1127 silent=yes ;;
1129 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1130 ac_prev=sbindir ;;
1131 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1132 | --sbi=* | --sb=*)
1133 sbindir=$ac_optarg ;;
1135 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1136 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1137 | --sharedst | --shareds | --shared | --share | --shar \
1138 | --sha | --sh)
1139 ac_prev=sharedstatedir ;;
1140 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1141 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1142 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1143 | --sha=* | --sh=*)
1144 sharedstatedir=$ac_optarg ;;
1146 -site | --site | --sit)
1147 ac_prev=site ;;
1148 -site=* | --site=* | --sit=*)
1149 site=$ac_optarg ;;
1151 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1152 ac_prev=srcdir ;;
1153 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1154 srcdir=$ac_optarg ;;
1156 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1157 | --syscon | --sysco | --sysc | --sys | --sy)
1158 ac_prev=sysconfdir ;;
1159 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1160 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1161 sysconfdir=$ac_optarg ;;
1163 -target | --target | --targe | --targ | --tar | --ta | --t)
1164 ac_prev=target_alias ;;
1165 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1166 target_alias=$ac_optarg ;;
1168 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1169 verbose=yes ;;
1171 -version | --version | --versio | --versi | --vers | -V)
1172 ac_init_version=: ;;
1174 -with-* | --with-*)
1175 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1176 # Reject names that are not valid shell variable names.
1177 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1178 as_fn_error $? "invalid package name: $ac_useropt"
1179 ac_useropt_orig=$ac_useropt
1180 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1181 case $ac_user_opts in
1183 "with_$ac_useropt"
1184 "*) ;;
1185 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1186 ac_unrecognized_sep=', ';;
1187 esac
1188 eval with_$ac_useropt=\$ac_optarg ;;
1190 -without-* | --without-*)
1191 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1192 # Reject names that are not valid shell variable names.
1193 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1194 as_fn_error $? "invalid package name: $ac_useropt"
1195 ac_useropt_orig=$ac_useropt
1196 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1197 case $ac_user_opts in
1199 "with_$ac_useropt"
1200 "*) ;;
1201 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1202 ac_unrecognized_sep=', ';;
1203 esac
1204 eval with_$ac_useropt=no ;;
1206 --x)
1207 # Obsolete; use --with-x.
1208 with_x=yes ;;
1210 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1211 | --x-incl | --x-inc | --x-in | --x-i)
1212 ac_prev=x_includes ;;
1213 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1214 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1215 x_includes=$ac_optarg ;;
1217 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1218 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1219 ac_prev=x_libraries ;;
1220 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1221 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1222 x_libraries=$ac_optarg ;;
1224 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1225 Try \`$0 --help' for more information"
1228 *=*)
1229 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1230 # Reject names that are not valid shell variable names.
1231 case $ac_envvar in #(
1232 '' | [0-9]* | *[!_$as_cr_alnum]* )
1233 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1234 esac
1235 eval $ac_envvar=\$ac_optarg
1236 export $ac_envvar ;;
1239 # FIXME: should be removed in autoconf 3.0.
1240 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1241 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1242 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1243 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1246 esac
1247 done
1249 if test -n "$ac_prev"; then
1250 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1251 as_fn_error $? "missing argument to $ac_option"
1254 if test -n "$ac_unrecognized_opts"; then
1255 case $enable_option_checking in
1256 no) ;;
1257 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1258 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1259 esac
1262 # Check all directory arguments for consistency.
1263 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1264 datadir sysconfdir sharedstatedir localstatedir includedir \
1265 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1266 libdir localedir mandir
1268 eval ac_val=\$$ac_var
1269 # Remove trailing slashes.
1270 case $ac_val in
1271 */ )
1272 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1273 eval $ac_var=\$ac_val;;
1274 esac
1275 # Be sure to have absolute directory names.
1276 case $ac_val in
1277 [\\/$]* | ?:[\\/]* ) continue;;
1278 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1279 esac
1280 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1281 done
1283 # There might be people who depend on the old broken behavior: `$host'
1284 # used to hold the argument of --host etc.
1285 # FIXME: To remove some day.
1286 build=$build_alias
1287 host=$host_alias
1288 target=$target_alias
1290 # FIXME: To remove some day.
1291 if test "x$host_alias" != x; then
1292 if test "x$build_alias" = x; then
1293 cross_compiling=maybe
1294 elif test "x$build_alias" != "x$host_alias"; then
1295 cross_compiling=yes
1299 ac_tool_prefix=
1300 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1302 test "$silent" = yes && exec 6>/dev/null
1305 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1306 ac_ls_di=`ls -di .` &&
1307 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1308 as_fn_error $? "working directory cannot be determined"
1309 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1310 as_fn_error $? "pwd does not report name of working directory"
1313 # Find the source files, if location was not specified.
1314 if test -z "$srcdir"; then
1315 ac_srcdir_defaulted=yes
1316 # Try the directory containing this script, then the parent directory.
1317 ac_confdir=`$as_dirname -- "$as_myself" ||
1318 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1319 X"$as_myself" : 'X\(//\)[^/]' \| \
1320 X"$as_myself" : 'X\(//\)$' \| \
1321 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1322 $as_echo X"$as_myself" |
1323 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1324 s//\1/
1327 /^X\(\/\/\)[^/].*/{
1328 s//\1/
1331 /^X\(\/\/\)$/{
1332 s//\1/
1335 /^X\(\/\).*/{
1336 s//\1/
1339 s/.*/./; q'`
1340 srcdir=$ac_confdir
1341 if test ! -r "$srcdir/$ac_unique_file"; then
1342 srcdir=..
1344 else
1345 ac_srcdir_defaulted=no
1347 if test ! -r "$srcdir/$ac_unique_file"; then
1348 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1349 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1351 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1352 ac_abs_confdir=`(
1353 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1354 pwd)`
1355 # When building in place, set srcdir=.
1356 if test "$ac_abs_confdir" = "$ac_pwd"; then
1357 srcdir=.
1359 # Remove unnecessary trailing slashes from srcdir.
1360 # Double slashes in file names in object file debugging info
1361 # mess up M-x gdb in Emacs.
1362 case $srcdir in
1363 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1364 esac
1365 for ac_var in $ac_precious_vars; do
1366 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1367 eval ac_env_${ac_var}_value=\$${ac_var}
1368 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1369 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1370 done
1373 # Report the --help message.
1375 if test "$ac_init_help" = "long"; then
1376 # Omit some internal or obsolete options to make the list less imposing.
1377 # This message is too long to be a string in the A/UX 3.1 sh.
1378 cat <<_ACEOF
1379 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1381 Usage: $0 [OPTION]... [VAR=VALUE]...
1383 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1384 VAR=VALUE. See below for descriptions of some of the useful variables.
1386 Defaults for the options are specified in brackets.
1388 Configuration:
1389 -h, --help display this help and exit
1390 --help=short display options specific to this package
1391 --help=recursive display the short help of all the included packages
1392 -V, --version display version information and exit
1393 -q, --quiet, --silent do not print \`checking ...' messages
1394 --cache-file=FILE cache test results in FILE [disabled]
1395 -C, --config-cache alias for \`--cache-file=config.cache'
1396 -n, --no-create do not create output files
1397 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1399 Installation directories:
1400 --prefix=PREFIX install architecture-independent files in PREFIX
1401 [$ac_default_prefix]
1402 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1403 [PREFIX]
1405 By default, \`make install' will install all the files in
1406 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1407 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1408 for instance \`--prefix=\$HOME'.
1410 For better control, use the options below.
1412 Fine tuning of the installation directories:
1413 --bindir=DIR user executables [EPREFIX/bin]
1414 --sbindir=DIR system admin executables [EPREFIX/sbin]
1415 --libexecdir=DIR program executables [EPREFIX/libexec]
1416 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1417 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1418 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1419 --libdir=DIR object code libraries [EPREFIX/lib]
1420 --includedir=DIR C header files [PREFIX/include]
1421 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1422 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1423 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1424 --infodir=DIR info documentation [DATAROOTDIR/info]
1425 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1426 --mandir=DIR man documentation [DATAROOTDIR/man]
1427 --docdir=DIR documentation root [DATAROOTDIR/doc/package-unused]
1428 --htmldir=DIR html documentation [DOCDIR]
1429 --dvidir=DIR dvi documentation [DOCDIR]
1430 --pdfdir=DIR pdf documentation [DOCDIR]
1431 --psdir=DIR ps documentation [DOCDIR]
1432 _ACEOF
1434 cat <<\_ACEOF
1436 Program names:
1437 --program-prefix=PREFIX prepend PREFIX to installed program names
1438 --program-suffix=SUFFIX append SUFFIX to installed program names
1439 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1441 System types:
1442 --build=BUILD configure for building on BUILD [guessed]
1443 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1444 --target=TARGET configure for building compilers for TARGET [HOST]
1445 _ACEOF
1448 if test -n "$ac_init_help"; then
1449 case $ac_init_help in
1450 short | recursive ) echo "Configuration of package-unused version-unused:";;
1451 esac
1452 cat <<\_ACEOF
1454 Optional Features:
1455 --disable-option-checking ignore unrecognized --enable/--with options
1456 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1457 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1458 --enable-multilib build many library versions (default)
1459 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
1460 --enable-dependency-tracking
1461 do not reject slow dependency extractors
1462 --disable-dependency-tracking
1463 speeds up one-time build
1464 --enable-silent-rules less verbose build output (undo: "make V=1")
1465 --disable-silent-rules verbose build output (undo: "make V=0")
1466 --enable-maintainer-mode
1467 enable make rules and dependencies not useful (and
1468 sometimes confusing) to the casual installer
1469 --enable-shared[=PKGS] build shared libraries [default=yes]
1470 --enable-static[=PKGS] build static libraries [default=yes]
1471 --enable-fast-install[=PKGS]
1472 optimize for fast installation [default=yes]
1473 --disable-libtool-lock avoid locking (might break parallel builds)
1474 --disable-werror disable building with -Werror
1475 --enable-cet enable Intel CET in target libraries [default=auto]
1477 Optional Packages:
1478 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1479 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1480 --with-toolexeclibdir=DIR
1481 install libraries built with a cross compiler within
1483 --with-pic try to use only PIC/non-PIC objects [default=use
1484 both]
1485 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1486 --with-gcc-major-version-only
1487 use only GCC major number in filesystem paths
1489 Some influential environment variables:
1490 CC C compiler command
1491 CFLAGS C compiler flags
1492 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1493 nonstandard directory <lib dir>
1494 LIBS libraries to pass to the linker, e.g. -l<library>
1495 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1496 you have headers in a nonstandard directory <include dir>
1497 CPP C preprocessor
1498 CXX C++ compiler command
1499 CXXFLAGS C++ compiler flags
1500 CCAS assembler compiler command (defaults to CC)
1501 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1502 CXXCPP C++ preprocessor
1504 Use these variables to override the choices made by `configure' or to help
1505 it to find libraries and programs with nonstandard names/locations.
1507 Report bugs to <libsanitizer>.
1508 _ACEOF
1509 ac_status=$?
1512 if test "$ac_init_help" = "recursive"; then
1513 # If there are subdirs, report their specific --help.
1514 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1515 test -d "$ac_dir" ||
1516 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1517 continue
1518 ac_builddir=.
1520 case "$ac_dir" in
1521 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1523 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1524 # A ".." for each directory in $ac_dir_suffix.
1525 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1526 case $ac_top_builddir_sub in
1527 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1528 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1529 esac ;;
1530 esac
1531 ac_abs_top_builddir=$ac_pwd
1532 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1533 # for backward compatibility:
1534 ac_top_builddir=$ac_top_build_prefix
1536 case $srcdir in
1537 .) # We are building in place.
1538 ac_srcdir=.
1539 ac_top_srcdir=$ac_top_builddir_sub
1540 ac_abs_top_srcdir=$ac_pwd ;;
1541 [\\/]* | ?:[\\/]* ) # Absolute name.
1542 ac_srcdir=$srcdir$ac_dir_suffix;
1543 ac_top_srcdir=$srcdir
1544 ac_abs_top_srcdir=$srcdir ;;
1545 *) # Relative name.
1546 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1547 ac_top_srcdir=$ac_top_build_prefix$srcdir
1548 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1549 esac
1550 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1552 cd "$ac_dir" || { ac_status=$?; continue; }
1553 # Check for guested configure.
1554 if test -f "$ac_srcdir/configure.gnu"; then
1555 echo &&
1556 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1557 elif test -f "$ac_srcdir/configure"; then
1558 echo &&
1559 $SHELL "$ac_srcdir/configure" --help=recursive
1560 else
1561 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1562 fi || ac_status=$?
1563 cd "$ac_pwd" || { ac_status=$?; break; }
1564 done
1567 test -n "$ac_init_help" && exit $ac_status
1568 if $ac_init_version; then
1569 cat <<\_ACEOF
1570 package-unused configure version-unused
1571 generated by GNU Autoconf 2.69
1573 Copyright (C) 2012 Free Software Foundation, Inc.
1574 This configure script is free software; the Free Software Foundation
1575 gives unlimited permission to copy, distribute and modify it.
1576 _ACEOF
1577 exit
1580 ## ------------------------ ##
1581 ## Autoconf initialization. ##
1582 ## ------------------------ ##
1584 # ac_fn_c_try_compile LINENO
1585 # --------------------------
1586 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1587 ac_fn_c_try_compile ()
1589 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1590 rm -f conftest.$ac_objext
1591 if { { ac_try="$ac_compile"
1592 case "(($ac_try" in
1593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1594 *) ac_try_echo=$ac_try;;
1595 esac
1596 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1597 $as_echo "$ac_try_echo"; } >&5
1598 (eval "$ac_compile") 2>conftest.err
1599 ac_status=$?
1600 if test -s conftest.err; then
1601 grep -v '^ *+' conftest.err >conftest.er1
1602 cat conftest.er1 >&5
1603 mv -f conftest.er1 conftest.err
1605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1606 test $ac_status = 0; } && {
1607 test -z "$ac_c_werror_flag" ||
1608 test ! -s conftest.err
1609 } && test -s conftest.$ac_objext; then :
1610 ac_retval=0
1611 else
1612 $as_echo "$as_me: failed program was:" >&5
1613 sed 's/^/| /' conftest.$ac_ext >&5
1615 ac_retval=1
1617 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1618 as_fn_set_status $ac_retval
1620 } # ac_fn_c_try_compile
1622 # ac_fn_c_try_cpp LINENO
1623 # ----------------------
1624 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1625 ac_fn_c_try_cpp ()
1627 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1628 if { { ac_try="$ac_cpp conftest.$ac_ext"
1629 case "(($ac_try" in
1630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1631 *) ac_try_echo=$ac_try;;
1632 esac
1633 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1634 $as_echo "$ac_try_echo"; } >&5
1635 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1636 ac_status=$?
1637 if test -s conftest.err; then
1638 grep -v '^ *+' conftest.err >conftest.er1
1639 cat conftest.er1 >&5
1640 mv -f conftest.er1 conftest.err
1642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1643 test $ac_status = 0; } > conftest.i && {
1644 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1645 test ! -s conftest.err
1646 }; then :
1647 ac_retval=0
1648 else
1649 $as_echo "$as_me: failed program was:" >&5
1650 sed 's/^/| /' conftest.$ac_ext >&5
1652 ac_retval=1
1654 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1655 as_fn_set_status $ac_retval
1657 } # ac_fn_c_try_cpp
1659 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1660 # -------------------------------------------------------
1661 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1662 # the include files in INCLUDES and setting the cache variable VAR
1663 # accordingly.
1664 ac_fn_c_check_header_mongrel ()
1666 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1667 if eval \${$3+:} false; then :
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1669 $as_echo_n "checking for $2... " >&6; }
1670 if eval \${$3+:} false; then :
1671 $as_echo_n "(cached) " >&6
1673 eval ac_res=\$$3
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1675 $as_echo "$ac_res" >&6; }
1676 else
1677 # Is the header compilable?
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1679 $as_echo_n "checking $2 usability... " >&6; }
1680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1681 /* end confdefs.h. */
1683 #include <$2>
1684 _ACEOF
1685 if ac_fn_c_try_compile "$LINENO"; then :
1686 ac_header_compiler=yes
1687 else
1688 ac_header_compiler=no
1690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1692 $as_echo "$ac_header_compiler" >&6; }
1694 # Is the header present?
1695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1696 $as_echo_n "checking $2 presence... " >&6; }
1697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1698 /* end confdefs.h. */
1699 #include <$2>
1700 _ACEOF
1701 if ac_fn_c_try_cpp "$LINENO"; then :
1702 ac_header_preproc=yes
1703 else
1704 ac_header_preproc=no
1706 rm -f conftest.err conftest.i conftest.$ac_ext
1707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1708 $as_echo "$ac_header_preproc" >&6; }
1710 # So? What about this header?
1711 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1712 yes:no: )
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1714 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1716 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1718 no:yes:* )
1719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1720 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1722 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1724 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1726 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1728 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1729 ( $as_echo "## --------------------------- ##
1730 ## Report this to libsanitizer ##
1731 ## --------------------------- ##"
1732 ) | sed "s/^/$as_me: WARNING: /" >&2
1734 esac
1735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1736 $as_echo_n "checking for $2... " >&6; }
1737 if eval \${$3+:} false; then :
1738 $as_echo_n "(cached) " >&6
1739 else
1740 eval "$3=\$ac_header_compiler"
1742 eval ac_res=\$$3
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1744 $as_echo "$ac_res" >&6; }
1746 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1748 } # ac_fn_c_check_header_mongrel
1750 # ac_fn_c_try_run LINENO
1751 # ----------------------
1752 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1753 # that executables *can* be run.
1754 ac_fn_c_try_run ()
1756 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1757 if { { ac_try="$ac_link"
1758 case "(($ac_try" in
1759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1760 *) ac_try_echo=$ac_try;;
1761 esac
1762 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1763 $as_echo "$ac_try_echo"; } >&5
1764 (eval "$ac_link") 2>&5
1765 ac_status=$?
1766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1767 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1768 { { case "(($ac_try" in
1769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1770 *) ac_try_echo=$ac_try;;
1771 esac
1772 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1773 $as_echo "$ac_try_echo"; } >&5
1774 (eval "$ac_try") 2>&5
1775 ac_status=$?
1776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1777 test $ac_status = 0; }; }; then :
1778 ac_retval=0
1779 else
1780 $as_echo "$as_me: program exited with status $ac_status" >&5
1781 $as_echo "$as_me: failed program was:" >&5
1782 sed 's/^/| /' conftest.$ac_ext >&5
1784 ac_retval=$ac_status
1786 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1787 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1788 as_fn_set_status $ac_retval
1790 } # ac_fn_c_try_run
1792 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1793 # -------------------------------------------------------
1794 # Tests whether HEADER exists and can be compiled using the include files in
1795 # INCLUDES, setting the cache variable VAR accordingly.
1796 ac_fn_c_check_header_compile ()
1798 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1800 $as_echo_n "checking for $2... " >&6; }
1801 if eval \${$3+:} false; then :
1802 $as_echo_n "(cached) " >&6
1803 else
1804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1805 /* end confdefs.h. */
1807 #include <$2>
1808 _ACEOF
1809 if ac_fn_c_try_compile "$LINENO"; then :
1810 eval "$3=yes"
1811 else
1812 eval "$3=no"
1814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1816 eval ac_res=\$$3
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1818 $as_echo "$ac_res" >&6; }
1819 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1821 } # ac_fn_c_check_header_compile
1823 # ac_fn_cxx_try_compile LINENO
1824 # ----------------------------
1825 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1826 ac_fn_cxx_try_compile ()
1828 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1829 rm -f conftest.$ac_objext
1830 if { { ac_try="$ac_compile"
1831 case "(($ac_try" in
1832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1833 *) ac_try_echo=$ac_try;;
1834 esac
1835 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1836 $as_echo "$ac_try_echo"; } >&5
1837 (eval "$ac_compile") 2>conftest.err
1838 ac_status=$?
1839 if test -s conftest.err; then
1840 grep -v '^ *+' conftest.err >conftest.er1
1841 cat conftest.er1 >&5
1842 mv -f conftest.er1 conftest.err
1844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1845 test $ac_status = 0; } && {
1846 test -z "$ac_cxx_werror_flag" ||
1847 test ! -s conftest.err
1848 } && test -s conftest.$ac_objext; then :
1849 ac_retval=0
1850 else
1851 $as_echo "$as_me: failed program was:" >&5
1852 sed 's/^/| /' conftest.$ac_ext >&5
1854 ac_retval=1
1856 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1857 as_fn_set_status $ac_retval
1859 } # ac_fn_cxx_try_compile
1861 # ac_fn_c_try_link LINENO
1862 # -----------------------
1863 # Try to link conftest.$ac_ext, and return whether this succeeded.
1864 ac_fn_c_try_link ()
1866 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1867 rm -f conftest.$ac_objext conftest$ac_exeext
1868 if { { ac_try="$ac_link"
1869 case "(($ac_try" in
1870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1871 *) ac_try_echo=$ac_try;;
1872 esac
1873 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1874 $as_echo "$ac_try_echo"; } >&5
1875 (eval "$ac_link") 2>conftest.err
1876 ac_status=$?
1877 if test -s conftest.err; then
1878 grep -v '^ *+' conftest.err >conftest.er1
1879 cat conftest.er1 >&5
1880 mv -f conftest.er1 conftest.err
1882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1883 test $ac_status = 0; } && {
1884 test -z "$ac_c_werror_flag" ||
1885 test ! -s conftest.err
1886 } && test -s conftest$ac_exeext && {
1887 test "$cross_compiling" = yes ||
1888 test -x conftest$ac_exeext
1889 }; then :
1890 ac_retval=0
1891 else
1892 $as_echo "$as_me: failed program was:" >&5
1893 sed 's/^/| /' conftest.$ac_ext >&5
1895 ac_retval=1
1897 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1898 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1899 # interfere with the next link command; also delete a directory that is
1900 # left behind by Apple's compiler. We do this before executing the actions.
1901 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1902 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1903 as_fn_set_status $ac_retval
1905 } # ac_fn_c_try_link
1907 # ac_fn_c_check_func LINENO FUNC VAR
1908 # ----------------------------------
1909 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1910 ac_fn_c_check_func ()
1912 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1914 $as_echo_n "checking for $2... " >&6; }
1915 if eval \${$3+:} false; then :
1916 $as_echo_n "(cached) " >&6
1917 else
1918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1919 /* end confdefs.h. */
1920 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1921 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1922 #define $2 innocuous_$2
1924 /* System header to define __stub macros and hopefully few prototypes,
1925 which can conflict with char $2 (); below.
1926 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1927 <limits.h> exists even on freestanding compilers. */
1929 #ifdef __STDC__
1930 # include <limits.h>
1931 #else
1932 # include <assert.h>
1933 #endif
1935 #undef $2
1937 /* Override any GCC internal prototype to avoid an error.
1938 Use char because int might match the return type of a GCC
1939 builtin and then its argument prototype would still apply. */
1940 #ifdef __cplusplus
1941 extern "C"
1942 #endif
1943 char $2 ();
1944 /* The GNU C library defines this for functions which it implements
1945 to always fail with ENOSYS. Some functions are actually named
1946 something starting with __ and the normal name is an alias. */
1947 #if defined __stub_$2 || defined __stub___$2
1948 choke me
1949 #endif
1952 main ()
1954 return $2 ();
1956 return 0;
1958 _ACEOF
1959 if ac_fn_c_try_link "$LINENO"; then :
1960 eval "$3=yes"
1961 else
1962 eval "$3=no"
1964 rm -f core conftest.err conftest.$ac_objext \
1965 conftest$ac_exeext conftest.$ac_ext
1967 eval ac_res=\$$3
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1969 $as_echo "$ac_res" >&6; }
1970 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1972 } # ac_fn_c_check_func
1974 # ac_fn_cxx_try_cpp LINENO
1975 # ------------------------
1976 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1977 ac_fn_cxx_try_cpp ()
1979 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1980 if { { ac_try="$ac_cpp conftest.$ac_ext"
1981 case "(($ac_try" in
1982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1983 *) ac_try_echo=$ac_try;;
1984 esac
1985 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1986 $as_echo "$ac_try_echo"; } >&5
1987 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1988 ac_status=$?
1989 if test -s conftest.err; then
1990 grep -v '^ *+' conftest.err >conftest.er1
1991 cat conftest.er1 >&5
1992 mv -f conftest.er1 conftest.err
1994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1995 test $ac_status = 0; } > conftest.i && {
1996 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1997 test ! -s conftest.err
1998 }; then :
1999 ac_retval=0
2000 else
2001 $as_echo "$as_me: failed program was:" >&5
2002 sed 's/^/| /' conftest.$ac_ext >&5
2004 ac_retval=1
2006 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2007 as_fn_set_status $ac_retval
2009 } # ac_fn_cxx_try_cpp
2011 # ac_fn_cxx_try_link LINENO
2012 # -------------------------
2013 # Try to link conftest.$ac_ext, and return whether this succeeded.
2014 ac_fn_cxx_try_link ()
2016 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2017 rm -f conftest.$ac_objext conftest$ac_exeext
2018 if { { ac_try="$ac_link"
2019 case "(($ac_try" in
2020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2021 *) ac_try_echo=$ac_try;;
2022 esac
2023 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2024 $as_echo "$ac_try_echo"; } >&5
2025 (eval "$ac_link") 2>conftest.err
2026 ac_status=$?
2027 if test -s conftest.err; then
2028 grep -v '^ *+' conftest.err >conftest.er1
2029 cat conftest.er1 >&5
2030 mv -f conftest.er1 conftest.err
2032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2033 test $ac_status = 0; } && {
2034 test -z "$ac_cxx_werror_flag" ||
2035 test ! -s conftest.err
2036 } && test -s conftest$ac_exeext && {
2037 test "$cross_compiling" = yes ||
2038 test -x conftest$ac_exeext
2039 }; then :
2040 ac_retval=0
2041 else
2042 $as_echo "$as_me: failed program was:" >&5
2043 sed 's/^/| /' conftest.$ac_ext >&5
2045 ac_retval=1
2047 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2048 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2049 # interfere with the next link command; also delete a directory that is
2050 # left behind by Apple's compiler. We do this before executing the actions.
2051 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2052 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2053 as_fn_set_status $ac_retval
2055 } # ac_fn_cxx_try_link
2057 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2058 # --------------------------------------------
2059 # Tries to find the compile-time value of EXPR in a program that includes
2060 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2061 # computed
2062 ac_fn_c_compute_int ()
2064 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2065 if test "$cross_compiling" = yes; then
2066 # Depending upon the size, compute the lo and hi bounds.
2067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2068 /* end confdefs.h. */
2071 main ()
2073 static int test_array [1 - 2 * !(($2) >= 0)];
2074 test_array [0] = 0;
2075 return test_array [0];
2078 return 0;
2080 _ACEOF
2081 if ac_fn_c_try_compile "$LINENO"; then :
2082 ac_lo=0 ac_mid=0
2083 while :; do
2084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2085 /* end confdefs.h. */
2088 main ()
2090 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2091 test_array [0] = 0;
2092 return test_array [0];
2095 return 0;
2097 _ACEOF
2098 if ac_fn_c_try_compile "$LINENO"; then :
2099 ac_hi=$ac_mid; break
2100 else
2101 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2102 if test $ac_lo -le $ac_mid; then
2103 ac_lo= ac_hi=
2104 break
2106 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2109 done
2110 else
2111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2112 /* end confdefs.h. */
2115 main ()
2117 static int test_array [1 - 2 * !(($2) < 0)];
2118 test_array [0] = 0;
2119 return test_array [0];
2122 return 0;
2124 _ACEOF
2125 if ac_fn_c_try_compile "$LINENO"; then :
2126 ac_hi=-1 ac_mid=-1
2127 while :; do
2128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2129 /* end confdefs.h. */
2132 main ()
2134 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2135 test_array [0] = 0;
2136 return test_array [0];
2139 return 0;
2141 _ACEOF
2142 if ac_fn_c_try_compile "$LINENO"; then :
2143 ac_lo=$ac_mid; break
2144 else
2145 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2146 if test $ac_mid -le $ac_hi; then
2147 ac_lo= ac_hi=
2148 break
2150 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2153 done
2154 else
2155 ac_lo= ac_hi=
2157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2160 # Binary search between lo and hi bounds.
2161 while test "x$ac_lo" != "x$ac_hi"; do
2162 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2164 /* end confdefs.h. */
2167 main ()
2169 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2170 test_array [0] = 0;
2171 return test_array [0];
2174 return 0;
2176 _ACEOF
2177 if ac_fn_c_try_compile "$LINENO"; then :
2178 ac_hi=$ac_mid
2179 else
2180 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2183 done
2184 case $ac_lo in #((
2185 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2186 '') ac_retval=1 ;;
2187 esac
2188 else
2189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2190 /* end confdefs.h. */
2192 static long int longval () { return $2; }
2193 static unsigned long int ulongval () { return $2; }
2194 #include <stdio.h>
2195 #include <stdlib.h>
2197 main ()
2200 FILE *f = fopen ("conftest.val", "w");
2201 if (! f)
2202 return 1;
2203 if (($2) < 0)
2205 long int i = longval ();
2206 if (i != ($2))
2207 return 1;
2208 fprintf (f, "%ld", i);
2210 else
2212 unsigned long int i = ulongval ();
2213 if (i != ($2))
2214 return 1;
2215 fprintf (f, "%lu", i);
2217 /* Do not output a trailing newline, as this causes \r\n confusion
2218 on some platforms. */
2219 return ferror (f) || fclose (f) != 0;
2222 return 0;
2224 _ACEOF
2225 if ac_fn_c_try_run "$LINENO"; then :
2226 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2227 else
2228 ac_retval=1
2230 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2231 conftest.$ac_objext conftest.beam conftest.$ac_ext
2232 rm -f conftest.val
2235 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2236 as_fn_set_status $ac_retval
2238 } # ac_fn_c_compute_int
2240 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2241 # -------------------------------------------
2242 # Tests whether TYPE exists after having included INCLUDES, setting cache
2243 # variable VAR accordingly.
2244 ac_fn_c_check_type ()
2246 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2248 $as_echo_n "checking for $2... " >&6; }
2249 if eval \${$3+:} false; then :
2250 $as_echo_n "(cached) " >&6
2251 else
2252 eval "$3=no"
2253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2254 /* end confdefs.h. */
2257 main ()
2259 if (sizeof ($2))
2260 return 0;
2262 return 0;
2264 _ACEOF
2265 if ac_fn_c_try_compile "$LINENO"; then :
2266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2267 /* end confdefs.h. */
2270 main ()
2272 if (sizeof (($2)))
2273 return 0;
2275 return 0;
2277 _ACEOF
2278 if ac_fn_c_try_compile "$LINENO"; then :
2280 else
2281 eval "$3=yes"
2283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2287 eval ac_res=\$$3
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2289 $as_echo "$ac_res" >&6; }
2290 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2292 } # ac_fn_c_check_type
2294 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2295 # ---------------------------------------------
2296 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2297 # accordingly.
2298 ac_fn_c_check_decl ()
2300 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2301 as_decl_name=`echo $2|sed 's/ *(.*//'`
2302 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2304 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2305 if eval \${$3+:} false; then :
2306 $as_echo_n "(cached) " >&6
2307 else
2308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2309 /* end confdefs.h. */
2312 main ()
2314 #ifndef $as_decl_name
2315 #ifdef __cplusplus
2316 (void) $as_decl_use;
2317 #else
2318 (void) $as_decl_name;
2319 #endif
2320 #endif
2323 return 0;
2325 _ACEOF
2326 if ac_fn_c_try_compile "$LINENO"; then :
2327 eval "$3=yes"
2328 else
2329 eval "$3=no"
2331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2333 eval ac_res=\$$3
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2335 $as_echo "$ac_res" >&6; }
2336 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2338 } # ac_fn_c_check_decl
2339 cat >config.log <<_ACEOF
2340 This file contains any messages produced by compilers while
2341 running configure, to aid debugging if configure makes a mistake.
2343 It was created by package-unused $as_me version-unused, which was
2344 generated by GNU Autoconf 2.69. Invocation command line was
2346 $ $0 $@
2348 _ACEOF
2349 exec 5>>config.log
2351 cat <<_ASUNAME
2352 ## --------- ##
2353 ## Platform. ##
2354 ## --------- ##
2356 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2357 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2358 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2359 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2360 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2362 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2363 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2365 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2366 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2367 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2368 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2369 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2370 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2371 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2373 _ASUNAME
2375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2376 for as_dir in $PATH
2378 IFS=$as_save_IFS
2379 test -z "$as_dir" && as_dir=.
2380 $as_echo "PATH: $as_dir"
2381 done
2382 IFS=$as_save_IFS
2384 } >&5
2386 cat >&5 <<_ACEOF
2389 ## ----------- ##
2390 ## Core tests. ##
2391 ## ----------- ##
2393 _ACEOF
2396 # Keep a trace of the command line.
2397 # Strip out --no-create and --no-recursion so they do not pile up.
2398 # Strip out --silent because we don't want to record it for future runs.
2399 # Also quote any args containing shell meta-characters.
2400 # Make two passes to allow for proper duplicate-argument suppression.
2401 ac_configure_args=
2402 ac_configure_args0=
2403 ac_configure_args1=
2404 ac_must_keep_next=false
2405 for ac_pass in 1 2
2407 for ac_arg
2409 case $ac_arg in
2410 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2411 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2412 | -silent | --silent | --silen | --sile | --sil)
2413 continue ;;
2414 *\'*)
2415 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2416 esac
2417 case $ac_pass in
2418 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2420 as_fn_append ac_configure_args1 " '$ac_arg'"
2421 if test $ac_must_keep_next = true; then
2422 ac_must_keep_next=false # Got value, back to normal.
2423 else
2424 case $ac_arg in
2425 *=* | --config-cache | -C | -disable-* | --disable-* \
2426 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2427 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2428 | -with-* | --with-* | -without-* | --without-* | --x)
2429 case "$ac_configure_args0 " in
2430 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2431 esac
2433 -* ) ac_must_keep_next=true ;;
2434 esac
2436 as_fn_append ac_configure_args " '$ac_arg'"
2438 esac
2439 done
2440 done
2441 { ac_configure_args0=; unset ac_configure_args0;}
2442 { ac_configure_args1=; unset ac_configure_args1;}
2444 # When interrupted or exit'd, cleanup temporary files, and complete
2445 # config.log. We remove comments because anyway the quotes in there
2446 # would cause problems or look ugly.
2447 # WARNING: Use '\'' to represent an apostrophe within the trap.
2448 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2449 trap 'exit_status=$?
2450 # Save into config.log some information that might help in debugging.
2452 echo
2454 $as_echo "## ---------------- ##
2455 ## Cache variables. ##
2456 ## ---------------- ##"
2457 echo
2458 # The following way of writing the cache mishandles newlines in values,
2460 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2461 eval ac_val=\$$ac_var
2462 case $ac_val in #(
2463 *${as_nl}*)
2464 case $ac_var in #(
2465 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2466 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2467 esac
2468 case $ac_var in #(
2469 _ | IFS | as_nl) ;; #(
2470 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2471 *) { eval $ac_var=; unset $ac_var;} ;;
2472 esac ;;
2473 esac
2474 done
2475 (set) 2>&1 |
2476 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2477 *${as_nl}ac_space=\ *)
2478 sed -n \
2479 "s/'\''/'\''\\\\'\'''\''/g;
2480 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2481 ;; #(
2483 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2485 esac |
2486 sort
2488 echo
2490 $as_echo "## ----------------- ##
2491 ## Output variables. ##
2492 ## ----------------- ##"
2493 echo
2494 for ac_var in $ac_subst_vars
2496 eval ac_val=\$$ac_var
2497 case $ac_val in
2498 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2499 esac
2500 $as_echo "$ac_var='\''$ac_val'\''"
2501 done | sort
2502 echo
2504 if test -n "$ac_subst_files"; then
2505 $as_echo "## ------------------- ##
2506 ## File substitutions. ##
2507 ## ------------------- ##"
2508 echo
2509 for ac_var in $ac_subst_files
2511 eval ac_val=\$$ac_var
2512 case $ac_val in
2513 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2514 esac
2515 $as_echo "$ac_var='\''$ac_val'\''"
2516 done | sort
2517 echo
2520 if test -s confdefs.h; then
2521 $as_echo "## ----------- ##
2522 ## confdefs.h. ##
2523 ## ----------- ##"
2524 echo
2525 cat confdefs.h
2526 echo
2528 test "$ac_signal" != 0 &&
2529 $as_echo "$as_me: caught signal $ac_signal"
2530 $as_echo "$as_me: exit $exit_status"
2531 } >&5
2532 rm -f core *.core core.conftest.* &&
2533 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2534 exit $exit_status
2536 for ac_signal in 1 2 13 15; do
2537 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2538 done
2539 ac_signal=0
2541 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2542 rm -f -r conftest* confdefs.h
2544 $as_echo "/* confdefs.h */" > confdefs.h
2546 # Predefined preprocessor variables.
2548 cat >>confdefs.h <<_ACEOF
2549 #define PACKAGE_NAME "$PACKAGE_NAME"
2550 _ACEOF
2552 cat >>confdefs.h <<_ACEOF
2553 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2554 _ACEOF
2556 cat >>confdefs.h <<_ACEOF
2557 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2558 _ACEOF
2560 cat >>confdefs.h <<_ACEOF
2561 #define PACKAGE_STRING "$PACKAGE_STRING"
2562 _ACEOF
2564 cat >>confdefs.h <<_ACEOF
2565 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2566 _ACEOF
2568 cat >>confdefs.h <<_ACEOF
2569 #define PACKAGE_URL "$PACKAGE_URL"
2570 _ACEOF
2573 # Let the site file select an alternate cache file if it wants to.
2574 # Prefer an explicitly selected file to automatically selected ones.
2575 ac_site_file1=NONE
2576 ac_site_file2=NONE
2577 if test -n "$CONFIG_SITE"; then
2578 # We do not want a PATH search for config.site.
2579 case $CONFIG_SITE in #((
2580 -*) ac_site_file1=./$CONFIG_SITE;;
2581 */*) ac_site_file1=$CONFIG_SITE;;
2582 *) ac_site_file1=./$CONFIG_SITE;;
2583 esac
2584 elif test "x$prefix" != xNONE; then
2585 ac_site_file1=$prefix/share/config.site
2586 ac_site_file2=$prefix/etc/config.site
2587 else
2588 ac_site_file1=$ac_default_prefix/share/config.site
2589 ac_site_file2=$ac_default_prefix/etc/config.site
2591 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2593 test "x$ac_site_file" = xNONE && continue
2594 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2596 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2597 sed 's/^/| /' "$ac_site_file" >&5
2598 . "$ac_site_file" \
2599 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2600 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2601 as_fn_error $? "failed to load site script $ac_site_file
2602 See \`config.log' for more details" "$LINENO" 5; }
2604 done
2606 if test -r "$cache_file"; then
2607 # Some versions of bash will fail to source /dev/null (special files
2608 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2609 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2611 $as_echo "$as_me: loading cache $cache_file" >&6;}
2612 case $cache_file in
2613 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2614 *) . "./$cache_file";;
2615 esac
2617 else
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2619 $as_echo "$as_me: creating cache $cache_file" >&6;}
2620 >$cache_file
2623 # Check that the precious variables saved in the cache have kept the same
2624 # value.
2625 ac_cache_corrupted=false
2626 for ac_var in $ac_precious_vars; do
2627 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2628 eval ac_new_set=\$ac_env_${ac_var}_set
2629 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2630 eval ac_new_val=\$ac_env_${ac_var}_value
2631 case $ac_old_set,$ac_new_set in
2632 set,)
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2634 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2635 ac_cache_corrupted=: ;;
2636 ,set)
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2638 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2639 ac_cache_corrupted=: ;;
2640 ,);;
2642 if test "x$ac_old_val" != "x$ac_new_val"; then
2643 # differences in whitespace do not lead to failure.
2644 ac_old_val_w=`echo x $ac_old_val`
2645 ac_new_val_w=`echo x $ac_new_val`
2646 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2648 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2649 ac_cache_corrupted=:
2650 else
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2652 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2653 eval $ac_var=\$ac_old_val
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2656 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2658 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2659 fi;;
2660 esac
2661 # Pass precious variables to config.status.
2662 if test "$ac_new_set" = set; then
2663 case $ac_new_val in
2664 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2665 *) ac_arg=$ac_var=$ac_new_val ;;
2666 esac
2667 case " $ac_configure_args " in
2668 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2669 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2670 esac
2672 done
2673 if $ac_cache_corrupted; then
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2675 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2677 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2678 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2680 ## -------------------- ##
2681 ## Main body of script. ##
2682 ## -------------------- ##
2684 ac_ext=c
2685 ac_cpp='$CPP $CPPFLAGS'
2686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2696 # Default to --enable-multilib
2697 # Check whether --enable-multilib was given.
2698 if test "${enable_multilib+set}" = set; then :
2699 enableval=$enable_multilib; case "$enableval" in
2700 yes) multilib=yes ;;
2701 no) multilib=no ;;
2702 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
2703 esac
2704 else
2705 multilib=yes
2709 # We may get other options which we leave undocumented:
2710 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2711 # See config-ml.in if you want the gory details.
2713 if test "$srcdir" = "."; then
2714 if test "$with_target_subdir" != "."; then
2715 multi_basedir="$srcdir/$with_multisrctop../.."
2716 else
2717 multi_basedir="$srcdir/$with_multisrctop.."
2719 else
2720 multi_basedir="$srcdir/.."
2724 # Even if the default multilib is not a cross compilation,
2725 # it may be that some of the other multilibs are.
2726 if test $cross_compiling = no && test $multilib = yes \
2727 && test "x${with_multisubdir}" != x ; then
2728 cross_compiling=maybe
2731 ac_config_commands="$ac_config_commands default-1"
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2735 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2736 # Check whether --enable-version-specific-runtime-libs was given.
2737 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2738 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2739 yes) version_specific_libs=yes ;;
2740 no) version_specific_libs=no ;;
2741 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2742 esac
2743 else
2744 version_specific_libs=no
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2748 $as_echo "$version_specific_libs" >&6; }
2750 ac_aux_dir=
2751 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2752 if test -f "$ac_dir/install-sh"; then
2753 ac_aux_dir=$ac_dir
2754 ac_install_sh="$ac_aux_dir/install-sh -c"
2755 break
2756 elif test -f "$ac_dir/install.sh"; then
2757 ac_aux_dir=$ac_dir
2758 ac_install_sh="$ac_aux_dir/install.sh -c"
2759 break
2760 elif test -f "$ac_dir/shtool"; then
2761 ac_aux_dir=$ac_dir
2762 ac_install_sh="$ac_aux_dir/shtool install -c"
2763 break
2765 done
2766 if test -z "$ac_aux_dir"; then
2767 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2770 # These three variables are undocumented and unsupported,
2771 # and are intended to be withdrawn in a future Autoconf release.
2772 # They can cause serious problems if a builder's source tree is in a directory
2773 # whose full name contains unusual characters.
2774 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2775 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2776 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2779 # Expand $ac_aux_dir to an absolute path.
2780 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2782 ac_ext=c
2783 ac_cpp='$CPP $CPPFLAGS'
2784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2787 if test -n "$ac_tool_prefix"; then
2788 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2789 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2791 $as_echo_n "checking for $ac_word... " >&6; }
2792 if ${ac_cv_prog_CC+:} false; then :
2793 $as_echo_n "(cached) " >&6
2794 else
2795 if test -n "$CC"; then
2796 ac_cv_prog_CC="$CC" # Let the user override the test.
2797 else
2798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2799 for as_dir in $PATH
2801 IFS=$as_save_IFS
2802 test -z "$as_dir" && as_dir=.
2803 for ac_exec_ext in '' $ac_executable_extensions; do
2804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2805 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2807 break 2
2809 done
2810 done
2811 IFS=$as_save_IFS
2815 CC=$ac_cv_prog_CC
2816 if test -n "$CC"; then
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2818 $as_echo "$CC" >&6; }
2819 else
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2821 $as_echo "no" >&6; }
2826 if test -z "$ac_cv_prog_CC"; then
2827 ac_ct_CC=$CC
2828 # Extract the first word of "gcc", so it can be a program name with args.
2829 set dummy gcc; ac_word=$2
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2831 $as_echo_n "checking for $ac_word... " >&6; }
2832 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2833 $as_echo_n "(cached) " >&6
2834 else
2835 if test -n "$ac_ct_CC"; then
2836 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2837 else
2838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2839 for as_dir in $PATH
2841 IFS=$as_save_IFS
2842 test -z "$as_dir" && as_dir=.
2843 for ac_exec_ext in '' $ac_executable_extensions; do
2844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2845 ac_cv_prog_ac_ct_CC="gcc"
2846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2847 break 2
2849 done
2850 done
2851 IFS=$as_save_IFS
2855 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2856 if test -n "$ac_ct_CC"; then
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2858 $as_echo "$ac_ct_CC" >&6; }
2859 else
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2861 $as_echo "no" >&6; }
2864 if test "x$ac_ct_CC" = x; then
2865 CC=""
2866 else
2867 case $cross_compiling:$ac_tool_warned in
2868 yes:)
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2870 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2871 ac_tool_warned=yes ;;
2872 esac
2873 CC=$ac_ct_CC
2875 else
2876 CC="$ac_cv_prog_CC"
2879 if test -z "$CC"; then
2880 if test -n "$ac_tool_prefix"; then
2881 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2882 set dummy ${ac_tool_prefix}cc; ac_word=$2
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2884 $as_echo_n "checking for $ac_word... " >&6; }
2885 if ${ac_cv_prog_CC+:} false; then :
2886 $as_echo_n "(cached) " >&6
2887 else
2888 if test -n "$CC"; then
2889 ac_cv_prog_CC="$CC" # Let the user override the test.
2890 else
2891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2892 for as_dir in $PATH
2894 IFS=$as_save_IFS
2895 test -z "$as_dir" && as_dir=.
2896 for ac_exec_ext in '' $ac_executable_extensions; do
2897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2898 ac_cv_prog_CC="${ac_tool_prefix}cc"
2899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2900 break 2
2902 done
2903 done
2904 IFS=$as_save_IFS
2908 CC=$ac_cv_prog_CC
2909 if test -n "$CC"; then
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2911 $as_echo "$CC" >&6; }
2912 else
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2914 $as_echo "no" >&6; }
2920 if test -z "$CC"; then
2921 # Extract the first word of "cc", so it can be a program name with args.
2922 set dummy cc; ac_word=$2
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2924 $as_echo_n "checking for $ac_word... " >&6; }
2925 if ${ac_cv_prog_CC+:} false; then :
2926 $as_echo_n "(cached) " >&6
2927 else
2928 if test -n "$CC"; then
2929 ac_cv_prog_CC="$CC" # Let the user override the test.
2930 else
2931 ac_prog_rejected=no
2932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2933 for as_dir in $PATH
2935 IFS=$as_save_IFS
2936 test -z "$as_dir" && as_dir=.
2937 for ac_exec_ext in '' $ac_executable_extensions; do
2938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2939 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2940 ac_prog_rejected=yes
2941 continue
2943 ac_cv_prog_CC="cc"
2944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2945 break 2
2947 done
2948 done
2949 IFS=$as_save_IFS
2951 if test $ac_prog_rejected = yes; then
2952 # We found a bogon in the path, so make sure we never use it.
2953 set dummy $ac_cv_prog_CC
2954 shift
2955 if test $# != 0; then
2956 # We chose a different compiler from the bogus one.
2957 # However, it has the same basename, so the bogon will be chosen
2958 # first if we set CC to just the basename; use the full file name.
2959 shift
2960 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2965 CC=$ac_cv_prog_CC
2966 if test -n "$CC"; then
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2968 $as_echo "$CC" >&6; }
2969 else
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2971 $as_echo "no" >&6; }
2976 if test -z "$CC"; then
2977 if test -n "$ac_tool_prefix"; then
2978 for ac_prog in cl.exe
2980 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2981 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2983 $as_echo_n "checking for $ac_word... " >&6; }
2984 if ${ac_cv_prog_CC+:} false; then :
2985 $as_echo_n "(cached) " >&6
2986 else
2987 if test -n "$CC"; then
2988 ac_cv_prog_CC="$CC" # Let the user override the test.
2989 else
2990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2991 for as_dir in $PATH
2993 IFS=$as_save_IFS
2994 test -z "$as_dir" && as_dir=.
2995 for ac_exec_ext in '' $ac_executable_extensions; do
2996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2997 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2999 break 2
3001 done
3002 done
3003 IFS=$as_save_IFS
3007 CC=$ac_cv_prog_CC
3008 if test -n "$CC"; then
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3010 $as_echo "$CC" >&6; }
3011 else
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3013 $as_echo "no" >&6; }
3017 test -n "$CC" && break
3018 done
3020 if test -z "$CC"; then
3021 ac_ct_CC=$CC
3022 for ac_prog in cl.exe
3024 # Extract the first word of "$ac_prog", so it can be a program name with args.
3025 set dummy $ac_prog; ac_word=$2
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3027 $as_echo_n "checking for $ac_word... " >&6; }
3028 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3029 $as_echo_n "(cached) " >&6
3030 else
3031 if test -n "$ac_ct_CC"; then
3032 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3033 else
3034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3035 for as_dir in $PATH
3037 IFS=$as_save_IFS
3038 test -z "$as_dir" && as_dir=.
3039 for ac_exec_ext in '' $ac_executable_extensions; do
3040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3041 ac_cv_prog_ac_ct_CC="$ac_prog"
3042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3043 break 2
3045 done
3046 done
3047 IFS=$as_save_IFS
3051 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3052 if test -n "$ac_ct_CC"; then
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3054 $as_echo "$ac_ct_CC" >&6; }
3055 else
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3057 $as_echo "no" >&6; }
3061 test -n "$ac_ct_CC" && break
3062 done
3064 if test "x$ac_ct_CC" = x; then
3065 CC=""
3066 else
3067 case $cross_compiling:$ac_tool_warned in
3068 yes:)
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3070 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3071 ac_tool_warned=yes ;;
3072 esac
3073 CC=$ac_ct_CC
3080 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3081 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3082 as_fn_error $? "no acceptable C compiler found in \$PATH
3083 See \`config.log' for more details" "$LINENO" 5; }
3085 # Provide some information about the compiler.
3086 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3087 set X $ac_compile
3088 ac_compiler=$2
3089 for ac_option in --version -v -V -qversion; do
3090 { { ac_try="$ac_compiler $ac_option >&5"
3091 case "(($ac_try" in
3092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3093 *) ac_try_echo=$ac_try;;
3094 esac
3095 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3096 $as_echo "$ac_try_echo"; } >&5
3097 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3098 ac_status=$?
3099 if test -s conftest.err; then
3100 sed '10a\
3101 ... rest of stderr output deleted ...
3102 10q' conftest.err >conftest.er1
3103 cat conftest.er1 >&5
3105 rm -f conftest.er1 conftest.err
3106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3107 test $ac_status = 0; }
3108 done
3110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3111 /* end confdefs.h. */
3114 main ()
3118 return 0;
3120 _ACEOF
3121 ac_clean_files_save=$ac_clean_files
3122 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3123 # Try to create an executable without -o first, disregard a.out.
3124 # It will help us diagnose broken compilers, and finding out an intuition
3125 # of exeext.
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3127 $as_echo_n "checking whether the C compiler works... " >&6; }
3128 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3130 # The possible output files:
3131 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3133 ac_rmfiles=
3134 for ac_file in $ac_files
3136 case $ac_file in
3137 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3138 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3139 esac
3140 done
3141 rm -f $ac_rmfiles
3143 if { { ac_try="$ac_link_default"
3144 case "(($ac_try" in
3145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3146 *) ac_try_echo=$ac_try;;
3147 esac
3148 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3149 $as_echo "$ac_try_echo"; } >&5
3150 (eval "$ac_link_default") 2>&5
3151 ac_status=$?
3152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3153 test $ac_status = 0; }; then :
3154 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3155 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3156 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3157 # so that the user can short-circuit this test for compilers unknown to
3158 # Autoconf.
3159 for ac_file in $ac_files ''
3161 test -f "$ac_file" || continue
3162 case $ac_file in
3163 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3165 [ab].out )
3166 # We found the default executable, but exeext='' is most
3167 # certainly right.
3168 break;;
3169 *.* )
3170 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3171 then :; else
3172 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3174 # We set ac_cv_exeext here because the later test for it is not
3175 # safe: cross compilers may not add the suffix if given an `-o'
3176 # argument, so we may need to know it at that point already.
3177 # Even if this section looks crufty: it has the advantage of
3178 # actually working.
3179 break;;
3181 break;;
3182 esac
3183 done
3184 test "$ac_cv_exeext" = no && ac_cv_exeext=
3186 else
3187 ac_file=''
3189 if test -z "$ac_file"; then :
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3191 $as_echo "no" >&6; }
3192 $as_echo "$as_me: failed program was:" >&5
3193 sed 's/^/| /' conftest.$ac_ext >&5
3195 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3196 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3197 as_fn_error 77 "C compiler cannot create executables
3198 See \`config.log' for more details" "$LINENO" 5; }
3199 else
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3201 $as_echo "yes" >&6; }
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3204 $as_echo_n "checking for C compiler default output file name... " >&6; }
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3206 $as_echo "$ac_file" >&6; }
3207 ac_exeext=$ac_cv_exeext
3209 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3210 ac_clean_files=$ac_clean_files_save
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3212 $as_echo_n "checking for suffix of executables... " >&6; }
3213 if { { ac_try="$ac_link"
3214 case "(($ac_try" in
3215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3216 *) ac_try_echo=$ac_try;;
3217 esac
3218 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3219 $as_echo "$ac_try_echo"; } >&5
3220 (eval "$ac_link") 2>&5
3221 ac_status=$?
3222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3223 test $ac_status = 0; }; then :
3224 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3225 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3226 # work properly (i.e., refer to `conftest.exe'), while it won't with
3227 # `rm'.
3228 for ac_file in conftest.exe conftest conftest.*; do
3229 test -f "$ac_file" || continue
3230 case $ac_file in
3231 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3232 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3233 break;;
3234 * ) break;;
3235 esac
3236 done
3237 else
3238 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3239 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3240 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3241 See \`config.log' for more details" "$LINENO" 5; }
3243 rm -f conftest conftest$ac_cv_exeext
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3245 $as_echo "$ac_cv_exeext" >&6; }
3247 rm -f conftest.$ac_ext
3248 EXEEXT=$ac_cv_exeext
3249 ac_exeext=$EXEEXT
3250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3251 /* end confdefs.h. */
3252 #include <stdio.h>
3254 main ()
3256 FILE *f = fopen ("conftest.out", "w");
3257 return ferror (f) || fclose (f) != 0;
3260 return 0;
3262 _ACEOF
3263 ac_clean_files="$ac_clean_files conftest.out"
3264 # Check that the compiler produces executables we can run. If not, either
3265 # the compiler is broken, or we cross compile.
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3267 $as_echo_n "checking whether we are cross compiling... " >&6; }
3268 if test "$cross_compiling" != yes; then
3269 { { ac_try="$ac_link"
3270 case "(($ac_try" in
3271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3272 *) ac_try_echo=$ac_try;;
3273 esac
3274 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3275 $as_echo "$ac_try_echo"; } >&5
3276 (eval "$ac_link") 2>&5
3277 ac_status=$?
3278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3279 test $ac_status = 0; }
3280 if { ac_try='./conftest$ac_cv_exeext'
3281 { { case "(($ac_try" in
3282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3283 *) ac_try_echo=$ac_try;;
3284 esac
3285 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3286 $as_echo "$ac_try_echo"; } >&5
3287 (eval "$ac_try") 2>&5
3288 ac_status=$?
3289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3290 test $ac_status = 0; }; }; then
3291 cross_compiling=no
3292 else
3293 if test "$cross_compiling" = maybe; then
3294 cross_compiling=yes
3295 else
3296 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3297 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3298 as_fn_error $? "cannot run C compiled programs.
3299 If you meant to cross compile, use \`--host'.
3300 See \`config.log' for more details" "$LINENO" 5; }
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3305 $as_echo "$cross_compiling" >&6; }
3307 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3308 ac_clean_files=$ac_clean_files_save
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3310 $as_echo_n "checking for suffix of object files... " >&6; }
3311 if ${ac_cv_objext+:} false; then :
3312 $as_echo_n "(cached) " >&6
3313 else
3314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3315 /* end confdefs.h. */
3318 main ()
3322 return 0;
3324 _ACEOF
3325 rm -f conftest.o conftest.obj
3326 if { { ac_try="$ac_compile"
3327 case "(($ac_try" in
3328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3329 *) ac_try_echo=$ac_try;;
3330 esac
3331 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3332 $as_echo "$ac_try_echo"; } >&5
3333 (eval "$ac_compile") 2>&5
3334 ac_status=$?
3335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3336 test $ac_status = 0; }; then :
3337 for ac_file in conftest.o conftest.obj conftest.*; do
3338 test -f "$ac_file" || continue;
3339 case $ac_file in
3340 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3341 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3342 break;;
3343 esac
3344 done
3345 else
3346 $as_echo "$as_me: failed program was:" >&5
3347 sed 's/^/| /' conftest.$ac_ext >&5
3349 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3350 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3351 as_fn_error $? "cannot compute suffix of object files: cannot compile
3352 See \`config.log' for more details" "$LINENO" 5; }
3354 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3357 $as_echo "$ac_cv_objext" >&6; }
3358 OBJEXT=$ac_cv_objext
3359 ac_objext=$OBJEXT
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3361 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3362 if ${ac_cv_c_compiler_gnu+:} false; then :
3363 $as_echo_n "(cached) " >&6
3364 else
3365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3366 /* end confdefs.h. */
3369 main ()
3371 #ifndef __GNUC__
3372 choke me
3373 #endif
3376 return 0;
3378 _ACEOF
3379 if ac_fn_c_try_compile "$LINENO"; then :
3380 ac_compiler_gnu=yes
3381 else
3382 ac_compiler_gnu=no
3384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3385 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3389 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3390 if test $ac_compiler_gnu = yes; then
3391 GCC=yes
3392 else
3393 GCC=
3395 ac_test_CFLAGS=${CFLAGS+set}
3396 ac_save_CFLAGS=$CFLAGS
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3398 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3399 if ${ac_cv_prog_cc_g+:} false; then :
3400 $as_echo_n "(cached) " >&6
3401 else
3402 ac_save_c_werror_flag=$ac_c_werror_flag
3403 ac_c_werror_flag=yes
3404 ac_cv_prog_cc_g=no
3405 CFLAGS="-g"
3406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3407 /* end confdefs.h. */
3410 main ()
3414 return 0;
3416 _ACEOF
3417 if ac_fn_c_try_compile "$LINENO"; then :
3418 ac_cv_prog_cc_g=yes
3419 else
3420 CFLAGS=""
3421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3422 /* end confdefs.h. */
3425 main ()
3429 return 0;
3431 _ACEOF
3432 if ac_fn_c_try_compile "$LINENO"; then :
3434 else
3435 ac_c_werror_flag=$ac_save_c_werror_flag
3436 CFLAGS="-g"
3437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3438 /* end confdefs.h. */
3441 main ()
3445 return 0;
3447 _ACEOF
3448 if ac_fn_c_try_compile "$LINENO"; then :
3449 ac_cv_prog_cc_g=yes
3451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3456 ac_c_werror_flag=$ac_save_c_werror_flag
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3459 $as_echo "$ac_cv_prog_cc_g" >&6; }
3460 if test "$ac_test_CFLAGS" = set; then
3461 CFLAGS=$ac_save_CFLAGS
3462 elif test $ac_cv_prog_cc_g = yes; then
3463 if test "$GCC" = yes; then
3464 CFLAGS="-g -O2"
3465 else
3466 CFLAGS="-g"
3468 else
3469 if test "$GCC" = yes; then
3470 CFLAGS="-O2"
3471 else
3472 CFLAGS=
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3476 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3477 if ${ac_cv_prog_cc_c89+:} false; then :
3478 $as_echo_n "(cached) " >&6
3479 else
3480 ac_cv_prog_cc_c89=no
3481 ac_save_CC=$CC
3482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3483 /* end confdefs.h. */
3484 #include <stdarg.h>
3485 #include <stdio.h>
3486 struct stat;
3487 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3488 struct buf { int x; };
3489 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3490 static char *e (p, i)
3491 char **p;
3492 int i;
3494 return p[i];
3496 static char *f (char * (*g) (char **, int), char **p, ...)
3498 char *s;
3499 va_list v;
3500 va_start (v,p);
3501 s = g (p, va_arg (v,int));
3502 va_end (v);
3503 return s;
3506 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3507 function prototypes and stuff, but not '\xHH' hex character constants.
3508 These don't provoke an error unfortunately, instead are silently treated
3509 as 'x'. The following induces an error, until -std is added to get
3510 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3511 array size at least. It's necessary to write '\x00'==0 to get something
3512 that's true only with -std. */
3513 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3515 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3516 inside strings and character constants. */
3517 #define FOO(x) 'x'
3518 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3520 int test (int i, double x);
3521 struct s1 {int (*f) (int a);};
3522 struct s2 {int (*f) (double a);};
3523 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3524 int argc;
3525 char **argv;
3527 main ()
3529 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3531 return 0;
3533 _ACEOF
3534 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3535 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3537 CC="$ac_save_CC $ac_arg"
3538 if ac_fn_c_try_compile "$LINENO"; then :
3539 ac_cv_prog_cc_c89=$ac_arg
3541 rm -f core conftest.err conftest.$ac_objext
3542 test "x$ac_cv_prog_cc_c89" != "xno" && break
3543 done
3544 rm -f conftest.$ac_ext
3545 CC=$ac_save_CC
3548 # AC_CACHE_VAL
3549 case "x$ac_cv_prog_cc_c89" in
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3552 $as_echo "none needed" >&6; } ;;
3553 xno)
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3555 $as_echo "unsupported" >&6; } ;;
3557 CC="$CC $ac_cv_prog_cc_c89"
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3559 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3560 esac
3561 if test "x$ac_cv_prog_cc_c89" != xno; then :
3565 ac_ext=c
3566 ac_cpp='$CPP $CPPFLAGS'
3567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3571 ac_ext=c
3572 ac_cpp='$CPP $CPPFLAGS'
3573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3577 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3578 if ${am_cv_prog_cc_c_o+:} false; then :
3579 $as_echo_n "(cached) " >&6
3580 else
3581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3582 /* end confdefs.h. */
3585 main ()
3589 return 0;
3591 _ACEOF
3592 # Make sure it works both with $CC and with simple cc.
3593 # Following AC_PROG_CC_C_O, we do the test twice because some
3594 # compilers refuse to overwrite an existing .o file with -o,
3595 # though they will create one.
3596 am_cv_prog_cc_c_o=yes
3597 for am_i in 1 2; do
3598 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3599 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3600 ac_status=$?
3601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602 (exit $ac_status); } \
3603 && test -f conftest2.$ac_objext; then
3604 : OK
3605 else
3606 am_cv_prog_cc_c_o=no
3607 break
3609 done
3610 rm -f core conftest*
3611 unset am_i
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3614 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3615 if test "$am_cv_prog_cc_c_o" != yes; then
3616 # Losing compiler, so override with the script.
3617 # FIXME: It is wrong to rewrite CC.
3618 # But if we don't then we get into trouble of one sort or another.
3619 # A longer-term fix would be to have automake use am__CC in this case,
3620 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3621 CC="$am_aux_dir/compile $CC"
3623 ac_ext=c
3624 ac_cpp='$CPP $CPPFLAGS'
3625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3631 ac_ext=c
3632 ac_cpp='$CPP $CPPFLAGS'
3633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3637 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3638 # On Suns, sometimes $CPP names a directory.
3639 if test -n "$CPP" && test -d "$CPP"; then
3640 CPP=
3642 if test -z "$CPP"; then
3643 if ${ac_cv_prog_CPP+:} false; then :
3644 $as_echo_n "(cached) " >&6
3645 else
3646 # Double quotes because CPP needs to be expanded
3647 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3649 ac_preproc_ok=false
3650 for ac_c_preproc_warn_flag in '' yes
3652 # Use a header file that comes with gcc, so configuring glibc
3653 # with a fresh cross-compiler works.
3654 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3655 # <limits.h> exists even on freestanding compilers.
3656 # On the NeXT, cc -E runs the code through the compiler's parser,
3657 # not just through cpp. "Syntax error" is here to catch this case.
3658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3659 /* end confdefs.h. */
3660 #ifdef __STDC__
3661 # include <limits.h>
3662 #else
3663 # include <assert.h>
3664 #endif
3665 Syntax error
3666 _ACEOF
3667 if ac_fn_c_try_cpp "$LINENO"; then :
3669 else
3670 # Broken: fails on valid input.
3671 continue
3673 rm -f conftest.err conftest.i conftest.$ac_ext
3675 # OK, works on sane cases. Now check whether nonexistent headers
3676 # can be detected and how.
3677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3678 /* end confdefs.h. */
3679 #include <ac_nonexistent.h>
3680 _ACEOF
3681 if ac_fn_c_try_cpp "$LINENO"; then :
3682 # Broken: success on invalid input.
3683 continue
3684 else
3685 # Passes both tests.
3686 ac_preproc_ok=:
3687 break
3689 rm -f conftest.err conftest.i conftest.$ac_ext
3691 done
3692 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3693 rm -f conftest.i conftest.err conftest.$ac_ext
3694 if $ac_preproc_ok; then :
3695 break
3698 done
3699 ac_cv_prog_CPP=$CPP
3702 CPP=$ac_cv_prog_CPP
3703 else
3704 ac_cv_prog_CPP=$CPP
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3707 $as_echo "$CPP" >&6; }
3708 ac_preproc_ok=false
3709 for ac_c_preproc_warn_flag in '' yes
3711 # Use a header file that comes with gcc, so configuring glibc
3712 # with a fresh cross-compiler works.
3713 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3714 # <limits.h> exists even on freestanding compilers.
3715 # On the NeXT, cc -E runs the code through the compiler's parser,
3716 # not just through cpp. "Syntax error" is here to catch this case.
3717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3718 /* end confdefs.h. */
3719 #ifdef __STDC__
3720 # include <limits.h>
3721 #else
3722 # include <assert.h>
3723 #endif
3724 Syntax error
3725 _ACEOF
3726 if ac_fn_c_try_cpp "$LINENO"; then :
3728 else
3729 # Broken: fails on valid input.
3730 continue
3732 rm -f conftest.err conftest.i conftest.$ac_ext
3734 # OK, works on sane cases. Now check whether nonexistent headers
3735 # can be detected and how.
3736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3737 /* end confdefs.h. */
3738 #include <ac_nonexistent.h>
3739 _ACEOF
3740 if ac_fn_c_try_cpp "$LINENO"; then :
3741 # Broken: success on invalid input.
3742 continue
3743 else
3744 # Passes both tests.
3745 ac_preproc_ok=:
3746 break
3748 rm -f conftest.err conftest.i conftest.$ac_ext
3750 done
3751 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3752 rm -f conftest.i conftest.err conftest.$ac_ext
3753 if $ac_preproc_ok; then :
3755 else
3756 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3757 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3758 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3759 See \`config.log' for more details" "$LINENO" 5; }
3762 ac_ext=c
3763 ac_cpp='$CPP $CPPFLAGS'
3764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3770 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3771 if ${ac_cv_path_GREP+:} false; then :
3772 $as_echo_n "(cached) " >&6
3773 else
3774 if test -z "$GREP"; then
3775 ac_path_GREP_found=false
3776 # Loop through the user's path and test for each of PROGNAME-LIST
3777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3778 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3780 IFS=$as_save_IFS
3781 test -z "$as_dir" && as_dir=.
3782 for ac_prog in grep ggrep; do
3783 for ac_exec_ext in '' $ac_executable_extensions; do
3784 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3785 as_fn_executable_p "$ac_path_GREP" || continue
3786 # Check for GNU ac_path_GREP and select it if it is found.
3787 # Check for GNU $ac_path_GREP
3788 case `"$ac_path_GREP" --version 2>&1` in
3789 *GNU*)
3790 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3792 ac_count=0
3793 $as_echo_n 0123456789 >"conftest.in"
3794 while :
3796 cat "conftest.in" "conftest.in" >"conftest.tmp"
3797 mv "conftest.tmp" "conftest.in"
3798 cp "conftest.in" "conftest.nl"
3799 $as_echo 'GREP' >> "conftest.nl"
3800 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3801 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3802 as_fn_arith $ac_count + 1 && ac_count=$as_val
3803 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3804 # Best one so far, save it but keep looking for a better one
3805 ac_cv_path_GREP="$ac_path_GREP"
3806 ac_path_GREP_max=$ac_count
3808 # 10*(2^10) chars as input seems more than enough
3809 test $ac_count -gt 10 && break
3810 done
3811 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3812 esac
3814 $ac_path_GREP_found && break 3
3815 done
3816 done
3817 done
3818 IFS=$as_save_IFS
3819 if test -z "$ac_cv_path_GREP"; then
3820 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3822 else
3823 ac_cv_path_GREP=$GREP
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3828 $as_echo "$ac_cv_path_GREP" >&6; }
3829 GREP="$ac_cv_path_GREP"
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3833 $as_echo_n "checking for egrep... " >&6; }
3834 if ${ac_cv_path_EGREP+:} false; then :
3835 $as_echo_n "(cached) " >&6
3836 else
3837 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3838 then ac_cv_path_EGREP="$GREP -E"
3839 else
3840 if test -z "$EGREP"; then
3841 ac_path_EGREP_found=false
3842 # Loop through the user's path and test for each of PROGNAME-LIST
3843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3844 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3846 IFS=$as_save_IFS
3847 test -z "$as_dir" && as_dir=.
3848 for ac_prog in egrep; do
3849 for ac_exec_ext in '' $ac_executable_extensions; do
3850 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3851 as_fn_executable_p "$ac_path_EGREP" || continue
3852 # Check for GNU ac_path_EGREP and select it if it is found.
3853 # Check for GNU $ac_path_EGREP
3854 case `"$ac_path_EGREP" --version 2>&1` in
3855 *GNU*)
3856 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3858 ac_count=0
3859 $as_echo_n 0123456789 >"conftest.in"
3860 while :
3862 cat "conftest.in" "conftest.in" >"conftest.tmp"
3863 mv "conftest.tmp" "conftest.in"
3864 cp "conftest.in" "conftest.nl"
3865 $as_echo 'EGREP' >> "conftest.nl"
3866 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3867 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3868 as_fn_arith $ac_count + 1 && ac_count=$as_val
3869 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3870 # Best one so far, save it but keep looking for a better one
3871 ac_cv_path_EGREP="$ac_path_EGREP"
3872 ac_path_EGREP_max=$ac_count
3874 # 10*(2^10) chars as input seems more than enough
3875 test $ac_count -gt 10 && break
3876 done
3877 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3878 esac
3880 $ac_path_EGREP_found && break 3
3881 done
3882 done
3883 done
3884 IFS=$as_save_IFS
3885 if test -z "$ac_cv_path_EGREP"; then
3886 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3888 else
3889 ac_cv_path_EGREP=$EGREP
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3895 $as_echo "$ac_cv_path_EGREP" >&6; }
3896 EGREP="$ac_cv_path_EGREP"
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3900 $as_echo_n "checking for ANSI C header files... " >&6; }
3901 if ${ac_cv_header_stdc+:} false; then :
3902 $as_echo_n "(cached) " >&6
3903 else
3904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3905 /* end confdefs.h. */
3906 #include <stdlib.h>
3907 #include <stdarg.h>
3908 #include <string.h>
3909 #include <float.h>
3912 main ()
3916 return 0;
3918 _ACEOF
3919 if ac_fn_c_try_compile "$LINENO"; then :
3920 ac_cv_header_stdc=yes
3921 else
3922 ac_cv_header_stdc=no
3924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3926 if test $ac_cv_header_stdc = yes; then
3927 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3929 /* end confdefs.h. */
3930 #include <string.h>
3932 _ACEOF
3933 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3934 $EGREP "memchr" >/dev/null 2>&1; then :
3936 else
3937 ac_cv_header_stdc=no
3939 rm -f conftest*
3943 if test $ac_cv_header_stdc = yes; then
3944 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3946 /* end confdefs.h. */
3947 #include <stdlib.h>
3949 _ACEOF
3950 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3951 $EGREP "free" >/dev/null 2>&1; then :
3953 else
3954 ac_cv_header_stdc=no
3956 rm -f conftest*
3960 if test $ac_cv_header_stdc = yes; then
3961 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3962 if test "$cross_compiling" = yes; then :
3964 else
3965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3966 /* end confdefs.h. */
3967 #include <ctype.h>
3968 #include <stdlib.h>
3969 #if ((' ' & 0x0FF) == 0x020)
3970 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3971 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3972 #else
3973 # define ISLOWER(c) \
3974 (('a' <= (c) && (c) <= 'i') \
3975 || ('j' <= (c) && (c) <= 'r') \
3976 || ('s' <= (c) && (c) <= 'z'))
3977 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3978 #endif
3980 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3982 main ()
3984 int i;
3985 for (i = 0; i < 256; i++)
3986 if (XOR (islower (i), ISLOWER (i))
3987 || toupper (i) != TOUPPER (i))
3988 return 2;
3989 return 0;
3991 _ACEOF
3992 if ac_fn_c_try_run "$LINENO"; then :
3994 else
3995 ac_cv_header_stdc=no
3997 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3998 conftest.$ac_objext conftest.beam conftest.$ac_ext
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4004 $as_echo "$ac_cv_header_stdc" >&6; }
4005 if test $ac_cv_header_stdc = yes; then
4007 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4011 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4012 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4013 inttypes.h stdint.h unistd.h
4014 do :
4015 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4016 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4018 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4019 cat >>confdefs.h <<_ACEOF
4020 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4021 _ACEOF
4025 done
4029 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4030 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4031 MINIX=yes
4032 else
4033 MINIX=
4037 if test "$MINIX" = yes; then
4039 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4042 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4045 $as_echo "#define _MINIX 1" >>confdefs.h
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4051 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4052 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4053 $as_echo_n "(cached) " >&6
4054 else
4055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4056 /* end confdefs.h. */
4058 # define __EXTENSIONS__ 1
4059 $ac_includes_default
4061 main ()
4065 return 0;
4067 _ACEOF
4068 if ac_fn_c_try_compile "$LINENO"; then :
4069 ac_cv_safe_to_define___extensions__=yes
4070 else
4071 ac_cv_safe_to_define___extensions__=no
4073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4076 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4077 test $ac_cv_safe_to_define___extensions__ = yes &&
4078 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4080 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4082 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4084 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4086 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4090 # Do not delete or change the following two lines. For why, see
4091 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
4092 # Make sure we can run config.sub.
4093 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4094 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4097 $as_echo_n "checking build system type... " >&6; }
4098 if ${ac_cv_build+:} false; then :
4099 $as_echo_n "(cached) " >&6
4100 else
4101 ac_build_alias=$build_alias
4102 test "x$ac_build_alias" = x &&
4103 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4104 test "x$ac_build_alias" = x &&
4105 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4106 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4107 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4111 $as_echo "$ac_cv_build" >&6; }
4112 case $ac_cv_build in
4113 *-*-*) ;;
4114 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4115 esac
4116 build=$ac_cv_build
4117 ac_save_IFS=$IFS; IFS='-'
4118 set x $ac_cv_build
4119 shift
4120 build_cpu=$1
4121 build_vendor=$2
4122 shift; shift
4123 # Remember, the first character of IFS is used to create $*,
4124 # except with old shells:
4125 build_os=$*
4126 IFS=$ac_save_IFS
4127 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4131 $as_echo_n "checking host system type... " >&6; }
4132 if ${ac_cv_host+:} false; then :
4133 $as_echo_n "(cached) " >&6
4134 else
4135 if test "x$host_alias" = x; then
4136 ac_cv_host=$ac_cv_build
4137 else
4138 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4139 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4144 $as_echo "$ac_cv_host" >&6; }
4145 case $ac_cv_host in
4146 *-*-*) ;;
4147 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4148 esac
4149 host=$ac_cv_host
4150 ac_save_IFS=$IFS; IFS='-'
4151 set x $ac_cv_host
4152 shift
4153 host_cpu=$1
4154 host_vendor=$2
4155 shift; shift
4156 # Remember, the first character of IFS is used to create $*,
4157 # except with old shells:
4158 host_os=$*
4159 IFS=$ac_save_IFS
4160 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4164 $as_echo_n "checking target system type... " >&6; }
4165 if ${ac_cv_target+:} false; then :
4166 $as_echo_n "(cached) " >&6
4167 else
4168 if test "x$target_alias" = x; then
4169 ac_cv_target=$ac_cv_host
4170 else
4171 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4172 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4177 $as_echo "$ac_cv_target" >&6; }
4178 case $ac_cv_target in
4179 *-*-*) ;;
4180 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
4181 esac
4182 target=$ac_cv_target
4183 ac_save_IFS=$IFS; IFS='-'
4184 set x $ac_cv_target
4185 shift
4186 target_cpu=$1
4187 target_vendor=$2
4188 shift; shift
4189 # Remember, the first character of IFS is used to create $*,
4190 # except with old shells:
4191 target_os=$*
4192 IFS=$ac_save_IFS
4193 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4196 # The aliases save the names the user supplied, while $host etc.
4197 # will get canonicalized.
4198 test -n "$target_alias" &&
4199 test "$program_prefix$program_suffix$program_transform_name" = \
4200 NONENONEs,x,x, &&
4201 program_prefix=${target_alias}-
4203 target_alias=${target_alias-$host_alias}
4205 case ${build_alias} in
4206 "") build_noncanonical=${build} ;;
4207 *) build_noncanonical=${build_alias} ;;
4208 esac
4210 case ${host_alias} in
4211 "") host_noncanonical=${build_noncanonical} ;;
4212 *) host_noncanonical=${host_alias} ;;
4213 esac
4215 case ${target_alias} in
4216 "") target_noncanonical=${host_noncanonical} ;;
4217 *) target_noncanonical=${target_alias} ;;
4218 esac
4224 LIBSTDCXX_RAW_CXX_CXXFLAGS="\
4225 -I\$(top_builddir)/../libstdc++-v3/include \
4226 -I\$(top_builddir)/../libstdc++-v3/include/\$(target_noncanonical) \
4227 -I\$(top_srcdir)/../libstdc++-v3/libsupc++"
4228 LIBSTDCXX_RAW_CXX_LDFLAGS="\
4229 \$(top_builddir)/../libstdc++-v3/src/libstdc++.la"
4234 am__api_version='1.15'
4236 # Find a good install program. We prefer a C program (faster),
4237 # so one script is as good as another. But avoid the broken or
4238 # incompatible versions:
4239 # SysV /etc/install, /usr/sbin/install
4240 # SunOS /usr/etc/install
4241 # IRIX /sbin/install
4242 # AIX /bin/install
4243 # AmigaOS /C/install, which installs bootblocks on floppy discs
4244 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4245 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4246 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4247 # OS/2's system install, which has a completely different semantic
4248 # ./install, which can be erroneously created by make from ./install.sh.
4249 # Reject install programs that cannot install multiple files.
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4251 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4252 if test -z "$INSTALL"; then
4253 if ${ac_cv_path_install+:} false; then :
4254 $as_echo_n "(cached) " >&6
4255 else
4256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4257 for as_dir in $PATH
4259 IFS=$as_save_IFS
4260 test -z "$as_dir" && as_dir=.
4261 # Account for people who put trailing slashes in PATH elements.
4262 case $as_dir/ in #((
4263 ./ | .// | /[cC]/* | \
4264 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4265 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4266 /usr/ucb/* ) ;;
4268 # OSF1 and SCO ODT 3.0 have their own names for install.
4269 # Don't use installbsd from OSF since it installs stuff as root
4270 # by default.
4271 for ac_prog in ginstall scoinst install; do
4272 for ac_exec_ext in '' $ac_executable_extensions; do
4273 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4274 if test $ac_prog = install &&
4275 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4276 # AIX install. It has an incompatible calling convention.
4278 elif test $ac_prog = install &&
4279 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4280 # program-specific install script used by HP pwplus--don't use.
4282 else
4283 rm -rf conftest.one conftest.two conftest.dir
4284 echo one > conftest.one
4285 echo two > conftest.two
4286 mkdir conftest.dir
4287 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4288 test -s conftest.one && test -s conftest.two &&
4289 test -s conftest.dir/conftest.one &&
4290 test -s conftest.dir/conftest.two
4291 then
4292 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4293 break 3
4297 done
4298 done
4300 esac
4302 done
4303 IFS=$as_save_IFS
4305 rm -rf conftest.one conftest.two conftest.dir
4308 if test "${ac_cv_path_install+set}" = set; then
4309 INSTALL=$ac_cv_path_install
4310 else
4311 # As a last resort, use the slow shell script. Don't cache a
4312 # value for INSTALL within a source directory, because that will
4313 # break other packages using the cache if that directory is
4314 # removed, or if the value is a relative name.
4315 INSTALL=$ac_install_sh
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4319 $as_echo "$INSTALL" >&6; }
4321 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4322 # It thinks the first close brace ends the variable substitution.
4323 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4325 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4327 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4330 $as_echo_n "checking whether build environment is sane... " >&6; }
4331 # Reject unsafe characters in $srcdir or the absolute working directory
4332 # name. Accept space and tab only in the latter.
4333 am_lf='
4335 case `pwd` in
4336 *[\\\"\#\$\&\'\`$am_lf]*)
4337 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4338 esac
4339 case $srcdir in
4340 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4341 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4342 esac
4344 # Do 'set' in a subshell so we don't clobber the current shell's
4345 # arguments. Must try -L first in case configure is actually a
4346 # symlink; some systems play weird games with the mod time of symlinks
4347 # (eg FreeBSD returns the mod time of the symlink's containing
4348 # directory).
4349 if (
4350 am_has_slept=no
4351 for am_try in 1 2; do
4352 echo "timestamp, slept: $am_has_slept" > conftest.file
4353 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4354 if test "$*" = "X"; then
4355 # -L didn't work.
4356 set X `ls -t "$srcdir/configure" conftest.file`
4358 if test "$*" != "X $srcdir/configure conftest.file" \
4359 && test "$*" != "X conftest.file $srcdir/configure"; then
4361 # If neither matched, then we have a broken ls. This can happen
4362 # if, for instance, CONFIG_SHELL is bash and it inherits a
4363 # broken ls alias from the environment. This has actually
4364 # happened. Such a system could not be considered "sane".
4365 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4366 alias in your environment" "$LINENO" 5
4368 if test "$2" = conftest.file || test $am_try -eq 2; then
4369 break
4371 # Just in case.
4372 sleep 1
4373 am_has_slept=yes
4374 done
4375 test "$2" = conftest.file
4377 then
4378 # Ok.
4380 else
4381 as_fn_error $? "newly created file is older than distributed files!
4382 Check your system clock" "$LINENO" 5
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4385 $as_echo "yes" >&6; }
4386 # If we didn't sleep, we still need to ensure time stamps of config.status and
4387 # generated files are strictly newer.
4388 am_sleep_pid=
4389 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4390 ( sleep 1 ) &
4391 am_sleep_pid=$!
4394 rm -f conftest.file
4396 test "$program_prefix" != NONE &&
4397 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4398 # Use a double $ so make ignores it.
4399 test "$program_suffix" != NONE &&
4400 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4401 # Double any \ or $.
4402 # By default was `s,x,x', remove it if useless.
4403 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4404 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4406 if test x"${MISSING+set}" != xset; then
4407 case $am_aux_dir in
4408 *\ * | *\ *)
4409 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4411 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4412 esac
4414 # Use eval to expand $SHELL
4415 if eval "$MISSING --is-lightweight"; then
4416 am_missing_run="$MISSING "
4417 else
4418 am_missing_run=
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4420 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4423 if test x"${install_sh+set}" != xset; then
4424 case $am_aux_dir in
4425 *\ * | *\ *)
4426 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4428 install_sh="\${SHELL} $am_aux_dir/install-sh"
4429 esac
4432 # Installed binaries are usually stripped using 'strip' when the user
4433 # run "make install-strip". However 'strip' might not be the right
4434 # tool to use in cross-compilation environments, therefore Automake
4435 # will honor the 'STRIP' environment variable to overrule this program.
4436 if test "$cross_compiling" != no; then
4437 if test -n "$ac_tool_prefix"; then
4438 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4439 set dummy ${ac_tool_prefix}strip; ac_word=$2
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4441 $as_echo_n "checking for $ac_word... " >&6; }
4442 if ${ac_cv_prog_STRIP+:} false; then :
4443 $as_echo_n "(cached) " >&6
4444 else
4445 if test -n "$STRIP"; then
4446 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4447 else
4448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4449 for as_dir in $PATH
4451 IFS=$as_save_IFS
4452 test -z "$as_dir" && as_dir=.
4453 for ac_exec_ext in '' $ac_executable_extensions; do
4454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4455 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4457 break 2
4459 done
4460 done
4461 IFS=$as_save_IFS
4465 STRIP=$ac_cv_prog_STRIP
4466 if test -n "$STRIP"; then
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4468 $as_echo "$STRIP" >&6; }
4469 else
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4471 $as_echo "no" >&6; }
4476 if test -z "$ac_cv_prog_STRIP"; then
4477 ac_ct_STRIP=$STRIP
4478 # Extract the first word of "strip", so it can be a program name with args.
4479 set dummy strip; ac_word=$2
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4481 $as_echo_n "checking for $ac_word... " >&6; }
4482 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4483 $as_echo_n "(cached) " >&6
4484 else
4485 if test -n "$ac_ct_STRIP"; then
4486 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4487 else
4488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4489 for as_dir in $PATH
4491 IFS=$as_save_IFS
4492 test -z "$as_dir" && as_dir=.
4493 for ac_exec_ext in '' $ac_executable_extensions; do
4494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4495 ac_cv_prog_ac_ct_STRIP="strip"
4496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4497 break 2
4499 done
4500 done
4501 IFS=$as_save_IFS
4505 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4506 if test -n "$ac_ct_STRIP"; then
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4508 $as_echo "$ac_ct_STRIP" >&6; }
4509 else
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4511 $as_echo "no" >&6; }
4514 if test "x$ac_ct_STRIP" = x; then
4515 STRIP=":"
4516 else
4517 case $cross_compiling:$ac_tool_warned in
4518 yes:)
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4520 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4521 ac_tool_warned=yes ;;
4522 esac
4523 STRIP=$ac_ct_STRIP
4525 else
4526 STRIP="$ac_cv_prog_STRIP"
4530 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4533 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4534 if test -z "$MKDIR_P"; then
4535 if ${ac_cv_path_mkdir+:} false; then :
4536 $as_echo_n "(cached) " >&6
4537 else
4538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4539 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4541 IFS=$as_save_IFS
4542 test -z "$as_dir" && as_dir=.
4543 for ac_prog in mkdir gmkdir; do
4544 for ac_exec_ext in '' $ac_executable_extensions; do
4545 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4546 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4547 'mkdir (GNU coreutils) '* | \
4548 'mkdir (coreutils) '* | \
4549 'mkdir (fileutils) '4.1*)
4550 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4551 break 3;;
4552 esac
4553 done
4554 done
4555 done
4556 IFS=$as_save_IFS
4560 test -d ./--version && rmdir ./--version
4561 if test "${ac_cv_path_mkdir+set}" = set; then
4562 MKDIR_P="$ac_cv_path_mkdir -p"
4563 else
4564 # As a last resort, use the slow shell script. Don't cache a
4565 # value for MKDIR_P within a source directory, because that will
4566 # break other packages using the cache if that directory is
4567 # removed, or if the value is a relative name.
4568 MKDIR_P="$ac_install_sh -d"
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4572 $as_echo "$MKDIR_P" >&6; }
4574 for ac_prog in gawk mawk nawk awk
4576 # Extract the first word of "$ac_prog", so it can be a program name with args.
4577 set dummy $ac_prog; ac_word=$2
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4579 $as_echo_n "checking for $ac_word... " >&6; }
4580 if ${ac_cv_prog_AWK+:} false; then :
4581 $as_echo_n "(cached) " >&6
4582 else
4583 if test -n "$AWK"; then
4584 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4585 else
4586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4587 for as_dir in $PATH
4589 IFS=$as_save_IFS
4590 test -z "$as_dir" && as_dir=.
4591 for ac_exec_ext in '' $ac_executable_extensions; do
4592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4593 ac_cv_prog_AWK="$ac_prog"
4594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4595 break 2
4597 done
4598 done
4599 IFS=$as_save_IFS
4603 AWK=$ac_cv_prog_AWK
4604 if test -n "$AWK"; then
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4606 $as_echo "$AWK" >&6; }
4607 else
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4609 $as_echo "no" >&6; }
4613 test -n "$AWK" && break
4614 done
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4617 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4618 set x ${MAKE-make}
4619 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4620 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4621 $as_echo_n "(cached) " >&6
4622 else
4623 cat >conftest.make <<\_ACEOF
4624 SHELL = /bin/sh
4625 all:
4626 @echo '@@@%%%=$(MAKE)=@@@%%%'
4627 _ACEOF
4628 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4629 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4630 *@@@%%%=?*=@@@%%%*)
4631 eval ac_cv_prog_make_${ac_make}_set=yes;;
4633 eval ac_cv_prog_make_${ac_make}_set=no;;
4634 esac
4635 rm -f conftest.make
4637 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4639 $as_echo "yes" >&6; }
4640 SET_MAKE=
4641 else
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4643 $as_echo "no" >&6; }
4644 SET_MAKE="MAKE=${MAKE-make}"
4647 rm -rf .tst 2>/dev/null
4648 mkdir .tst 2>/dev/null
4649 if test -d .tst; then
4650 am__leading_dot=.
4651 else
4652 am__leading_dot=_
4654 rmdir .tst 2>/dev/null
4656 DEPDIR="${am__leading_dot}deps"
4658 ac_config_commands="$ac_config_commands depfiles"
4661 am_make=${MAKE-make}
4662 cat > confinc << 'END'
4663 am__doit:
4664 @echo this is the am__doit target
4665 .PHONY: am__doit
4667 # If we don't find an include directive, just comment out the code.
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4669 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4670 am__include="#"
4671 am__quote=
4672 _am_result=none
4673 # First try GNU make style include.
4674 echo "include confinc" > confmf
4675 # Ignore all kinds of additional output from 'make'.
4676 case `$am_make -s -f confmf 2> /dev/null` in #(
4677 *the\ am__doit\ target*)
4678 am__include=include
4679 am__quote=
4680 _am_result=GNU
4682 esac
4683 # Now try BSD make style include.
4684 if test "$am__include" = "#"; then
4685 echo '.include "confinc"' > confmf
4686 case `$am_make -s -f confmf 2> /dev/null` in #(
4687 *the\ am__doit\ target*)
4688 am__include=.include
4689 am__quote="\""
4690 _am_result=BSD
4692 esac
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4697 $as_echo "$_am_result" >&6; }
4698 rm -f confinc confmf
4700 # Check whether --enable-dependency-tracking was given.
4701 if test "${enable_dependency_tracking+set}" = set; then :
4702 enableval=$enable_dependency_tracking;
4705 if test "x$enable_dependency_tracking" != xno; then
4706 am_depcomp="$ac_aux_dir/depcomp"
4707 AMDEPBACKSLASH='\'
4708 am__nodep='_no'
4710 if test "x$enable_dependency_tracking" != xno; then
4711 AMDEP_TRUE=
4712 AMDEP_FALSE='#'
4713 else
4714 AMDEP_TRUE='#'
4715 AMDEP_FALSE=
4719 # Check whether --enable-silent-rules was given.
4720 if test "${enable_silent_rules+set}" = set; then :
4721 enableval=$enable_silent_rules;
4724 case $enable_silent_rules in # (((
4725 yes) AM_DEFAULT_VERBOSITY=0;;
4726 no) AM_DEFAULT_VERBOSITY=1;;
4727 *) AM_DEFAULT_VERBOSITY=1;;
4728 esac
4729 am_make=${MAKE-make}
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4731 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4732 if ${am_cv_make_support_nested_variables+:} false; then :
4733 $as_echo_n "(cached) " >&6
4734 else
4735 if $as_echo 'TRUE=$(BAR$(V))
4736 BAR0=false
4737 BAR1=true
4739 am__doit:
4740 @$(TRUE)
4741 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4742 am_cv_make_support_nested_variables=yes
4743 else
4744 am_cv_make_support_nested_variables=no
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4748 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4749 if test $am_cv_make_support_nested_variables = yes; then
4750 AM_V='$(V)'
4751 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4752 else
4753 AM_V=$AM_DEFAULT_VERBOSITY
4754 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4756 AM_BACKSLASH='\'
4758 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4759 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4760 # is not polluted with repeated "-I."
4761 am__isrc=' -I$(srcdir)'
4762 # test to see if srcdir already configured
4763 if test -f $srcdir/config.status; then
4764 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4768 # test whether we have cygpath
4769 if test -z "$CYGPATH_W"; then
4770 if (cygpath --version) >/dev/null 2>/dev/null; then
4771 CYGPATH_W='cygpath -w'
4772 else
4773 CYGPATH_W=echo
4778 # Define the identity of the package.
4779 PACKAGE='package-unused'
4780 VERSION='version-unused'
4783 cat >>confdefs.h <<_ACEOF
4784 #define PACKAGE "$PACKAGE"
4785 _ACEOF
4788 cat >>confdefs.h <<_ACEOF
4789 #define VERSION "$VERSION"
4790 _ACEOF
4792 # Some tools Automake needs.
4794 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4797 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4800 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4803 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4806 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4808 # For better backward compatibility. To be removed once Automake 1.9.x
4809 # dies out for good. For more background, see:
4810 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4811 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4812 mkdir_p='$(MKDIR_P)'
4814 # We need awk for the "check" target (and possibly the TAP driver). The
4815 # system "awk" is bad on some platforms.
4816 # Always define AMTAR for backward compatibility. Yes, it's still used
4817 # in the wild :-( We should find a proper way to deprecate it ...
4818 AMTAR='$${TAR-tar}'
4821 # We'll loop over all known methods to create a tar archive until one works.
4822 _am_tools='gnutar pax cpio none'
4824 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4830 depcc="$CC" am_compiler_list=
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4833 $as_echo_n "checking dependency style of $depcc... " >&6; }
4834 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4835 $as_echo_n "(cached) " >&6
4836 else
4837 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4838 # We make a subdir and do the tests there. Otherwise we can end up
4839 # making bogus files that we don't know about and never remove. For
4840 # instance it was reported that on HP-UX the gcc test will end up
4841 # making a dummy file named 'D' -- because '-MD' means "put the output
4842 # in D".
4843 rm -rf conftest.dir
4844 mkdir conftest.dir
4845 # Copy depcomp to subdir because otherwise we won't find it if we're
4846 # using a relative directory.
4847 cp "$am_depcomp" conftest.dir
4848 cd conftest.dir
4849 # We will build objects and dependencies in a subdirectory because
4850 # it helps to detect inapplicable dependency modes. For instance
4851 # both Tru64's cc and ICC support -MD to output dependencies as a
4852 # side effect of compilation, but ICC will put the dependencies in
4853 # the current directory while Tru64 will put them in the object
4854 # directory.
4855 mkdir sub
4857 am_cv_CC_dependencies_compiler_type=none
4858 if test "$am_compiler_list" = ""; then
4859 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4861 am__universal=false
4862 case " $depcc " in #(
4863 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4864 esac
4866 for depmode in $am_compiler_list; do
4867 # Setup a source with many dependencies, because some compilers
4868 # like to wrap large dependency lists on column 80 (with \), and
4869 # we should not choose a depcomp mode which is confused by this.
4871 # We need to recreate these files for each test, as the compiler may
4872 # overwrite some of them when testing with obscure command lines.
4873 # This happens at least with the AIX C compiler.
4874 : > sub/conftest.c
4875 for i in 1 2 3 4 5 6; do
4876 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4877 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4878 # Solaris 10 /bin/sh.
4879 echo '/* dummy */' > sub/conftst$i.h
4880 done
4881 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4883 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4884 # mode. It turns out that the SunPro C++ compiler does not properly
4885 # handle '-M -o', and we need to detect this. Also, some Intel
4886 # versions had trouble with output in subdirs.
4887 am__obj=sub/conftest.${OBJEXT-o}
4888 am__minus_obj="-o $am__obj"
4889 case $depmode in
4890 gcc)
4891 # This depmode causes a compiler race in universal mode.
4892 test "$am__universal" = false || continue
4894 nosideeffect)
4895 # After this tag, mechanisms are not by side-effect, so they'll
4896 # only be used when explicitly requested.
4897 if test "x$enable_dependency_tracking" = xyes; then
4898 continue
4899 else
4900 break
4903 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4904 # This compiler won't grok '-c -o', but also, the minuso test has
4905 # not run yet. These depmodes are late enough in the game, and
4906 # so weak that their functioning should not be impacted.
4907 am__obj=conftest.${OBJEXT-o}
4908 am__minus_obj=
4910 none) break ;;
4911 esac
4912 if depmode=$depmode \
4913 source=sub/conftest.c object=$am__obj \
4914 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4915 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4916 >/dev/null 2>conftest.err &&
4917 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4918 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4919 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4920 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4921 # icc doesn't choke on unknown options, it will just issue warnings
4922 # or remarks (even with -Werror). So we grep stderr for any message
4923 # that says an option was ignored or not supported.
4924 # When given -MP, icc 7.0 and 7.1 complain thusly:
4925 # icc: Command line warning: ignoring option '-M'; no argument required
4926 # The diagnosis changed in icc 8.0:
4927 # icc: Command line remark: option '-MP' not supported
4928 if (grep 'ignoring option' conftest.err ||
4929 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4930 am_cv_CC_dependencies_compiler_type=$depmode
4931 break
4934 done
4936 cd ..
4937 rm -rf conftest.dir
4938 else
4939 am_cv_CC_dependencies_compiler_type=none
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4944 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4945 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4948 test "x$enable_dependency_tracking" != xno \
4949 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4950 am__fastdepCC_TRUE=
4951 am__fastdepCC_FALSE='#'
4952 else
4953 am__fastdepCC_TRUE='#'
4954 am__fastdepCC_FALSE=
4959 # POSIX will say in a future version that running "rm -f" with no argument
4960 # is OK; and we want to be able to make that assumption in our Makefile
4961 # recipes. So use an aggressive probe to check that the usage we want is
4962 # actually supported "in the wild" to an acceptable degree.
4963 # See automake bug#10828.
4964 # To make any issue more visible, cause the running configure to be aborted
4965 # by default if the 'rm' program in use doesn't match our expectations; the
4966 # user can still override this though.
4967 if rm -f && rm -fr && rm -rf; then : OK; else
4968 cat >&2 <<'END'
4969 Oops!
4971 Your 'rm' program seems unable to run without file operands specified
4972 on the command line, even when the '-f' option is present. This is contrary
4973 to the behaviour of most rm programs out there, and not conforming with
4974 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4976 Please tell bug-automake@gnu.org about your system, including the value
4977 of your $PATH and any error possibly output before this message. This
4978 can help us improve future automake versions.
4981 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4982 echo 'Configuration will proceed anyway, since you have set the' >&2
4983 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4984 echo >&2
4985 else
4986 cat >&2 <<'END'
4987 Aborting the configuration process, to ensure you take notice of the issue.
4989 You can download and install GNU coreutils to get an 'rm' implementation
4990 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4992 If you want to complete the configuration process using your problematic
4993 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4994 to "yes", and re-run configure.
4997 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5003 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5004 # Check whether --enable-maintainer-mode was given.
5005 if test "${enable_maintainer_mode+set}" = set; then :
5006 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5007 else
5008 USE_MAINTAINER_MODE=no
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5012 $as_echo "$USE_MAINTAINER_MODE" >&6; }
5013 if test $USE_MAINTAINER_MODE = yes; then
5014 MAINTAINER_MODE_TRUE=
5015 MAINTAINER_MODE_FALSE='#'
5016 else
5017 MAINTAINER_MODE_TRUE='#'
5018 MAINTAINER_MODE_FALSE=
5021 MAINT=$MAINTAINER_MODE_TRUE
5026 # Check whether --with-toolexeclibdir was given.
5027 if test "${with_toolexeclibdir+set}" = set; then :
5028 withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
5032 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
5034 esac
5035 else
5036 with_toolexeclibdir=no
5041 # Calculate toolexeclibdir
5042 # Also toolexecdir, though it's only used in toolexeclibdir
5043 case ${version_specific_libs} in
5044 yes)
5045 # Need the gcc compiler version to know where to install libraries
5046 # and header files if --enable-version-specific-runtime-libs option
5047 # is selected.
5048 toolexecdir='$(libdir)/gcc/$(target_alias)'
5049 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
5052 if test -n "$with_cross_host" &&
5053 test x"$with_cross_host" != x"no"; then
5054 # Install a library built with a cross compiler in tooldir, not libdir.
5055 toolexecdir='$(exec_prefix)/$(target_alias)'
5056 case ${with_toolexeclibdir} in
5058 toolexeclibdir='$(toolexecdir)/lib'
5061 toolexeclibdir=${with_toolexeclibdir}
5063 esac
5064 else
5065 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
5066 toolexeclibdir='$(libdir)'
5068 multi_os_directory=`$CC -print-multi-os-directory`
5069 case $multi_os_directory in
5070 .) ;; # Avoid trailing /.
5071 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
5072 esac
5074 esac
5078 # Checks for programs.
5079 ac_ext=c
5080 ac_cpp='$CPP $CPPFLAGS'
5081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5084 if test -n "$ac_tool_prefix"; then
5085 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5086 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5088 $as_echo_n "checking for $ac_word... " >&6; }
5089 if ${ac_cv_prog_CC+:} false; then :
5090 $as_echo_n "(cached) " >&6
5091 else
5092 if test -n "$CC"; then
5093 ac_cv_prog_CC="$CC" # Let the user override the test.
5094 else
5095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5096 for as_dir in $PATH
5098 IFS=$as_save_IFS
5099 test -z "$as_dir" && as_dir=.
5100 for ac_exec_ext in '' $ac_executable_extensions; do
5101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5102 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5104 break 2
5106 done
5107 done
5108 IFS=$as_save_IFS
5112 CC=$ac_cv_prog_CC
5113 if test -n "$CC"; then
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5115 $as_echo "$CC" >&6; }
5116 else
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5118 $as_echo "no" >&6; }
5123 if test -z "$ac_cv_prog_CC"; then
5124 ac_ct_CC=$CC
5125 # Extract the first word of "gcc", so it can be a program name with args.
5126 set dummy gcc; ac_word=$2
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5128 $as_echo_n "checking for $ac_word... " >&6; }
5129 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5130 $as_echo_n "(cached) " >&6
5131 else
5132 if test -n "$ac_ct_CC"; then
5133 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5134 else
5135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5136 for as_dir in $PATH
5138 IFS=$as_save_IFS
5139 test -z "$as_dir" && as_dir=.
5140 for ac_exec_ext in '' $ac_executable_extensions; do
5141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5142 ac_cv_prog_ac_ct_CC="gcc"
5143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5144 break 2
5146 done
5147 done
5148 IFS=$as_save_IFS
5152 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5153 if test -n "$ac_ct_CC"; then
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5155 $as_echo "$ac_ct_CC" >&6; }
5156 else
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5158 $as_echo "no" >&6; }
5161 if test "x$ac_ct_CC" = x; then
5162 CC=""
5163 else
5164 case $cross_compiling:$ac_tool_warned in
5165 yes:)
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5167 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5168 ac_tool_warned=yes ;;
5169 esac
5170 CC=$ac_ct_CC
5172 else
5173 CC="$ac_cv_prog_CC"
5176 if test -z "$CC"; then
5177 if test -n "$ac_tool_prefix"; then
5178 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5179 set dummy ${ac_tool_prefix}cc; ac_word=$2
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5181 $as_echo_n "checking for $ac_word... " >&6; }
5182 if ${ac_cv_prog_CC+:} false; then :
5183 $as_echo_n "(cached) " >&6
5184 else
5185 if test -n "$CC"; then
5186 ac_cv_prog_CC="$CC" # Let the user override the test.
5187 else
5188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5189 for as_dir in $PATH
5191 IFS=$as_save_IFS
5192 test -z "$as_dir" && as_dir=.
5193 for ac_exec_ext in '' $ac_executable_extensions; do
5194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5195 ac_cv_prog_CC="${ac_tool_prefix}cc"
5196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5197 break 2
5199 done
5200 done
5201 IFS=$as_save_IFS
5205 CC=$ac_cv_prog_CC
5206 if test -n "$CC"; then
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5208 $as_echo "$CC" >&6; }
5209 else
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5211 $as_echo "no" >&6; }
5217 if test -z "$CC"; then
5218 # Extract the first word of "cc", so it can be a program name with args.
5219 set dummy cc; ac_word=$2
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5221 $as_echo_n "checking for $ac_word... " >&6; }
5222 if ${ac_cv_prog_CC+:} false; then :
5223 $as_echo_n "(cached) " >&6
5224 else
5225 if test -n "$CC"; then
5226 ac_cv_prog_CC="$CC" # Let the user override the test.
5227 else
5228 ac_prog_rejected=no
5229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5230 for as_dir in $PATH
5232 IFS=$as_save_IFS
5233 test -z "$as_dir" && as_dir=.
5234 for ac_exec_ext in '' $ac_executable_extensions; do
5235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5236 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5237 ac_prog_rejected=yes
5238 continue
5240 ac_cv_prog_CC="cc"
5241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5242 break 2
5244 done
5245 done
5246 IFS=$as_save_IFS
5248 if test $ac_prog_rejected = yes; then
5249 # We found a bogon in the path, so make sure we never use it.
5250 set dummy $ac_cv_prog_CC
5251 shift
5252 if test $# != 0; then
5253 # We chose a different compiler from the bogus one.
5254 # However, it has the same basename, so the bogon will be chosen
5255 # first if we set CC to just the basename; use the full file name.
5256 shift
5257 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5262 CC=$ac_cv_prog_CC
5263 if test -n "$CC"; then
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5265 $as_echo "$CC" >&6; }
5266 else
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5268 $as_echo "no" >&6; }
5273 if test -z "$CC"; then
5274 if test -n "$ac_tool_prefix"; then
5275 for ac_prog in cl.exe
5277 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5278 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5280 $as_echo_n "checking for $ac_word... " >&6; }
5281 if ${ac_cv_prog_CC+:} false; then :
5282 $as_echo_n "(cached) " >&6
5283 else
5284 if test -n "$CC"; then
5285 ac_cv_prog_CC="$CC" # Let the user override the test.
5286 else
5287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5288 for as_dir in $PATH
5290 IFS=$as_save_IFS
5291 test -z "$as_dir" && as_dir=.
5292 for ac_exec_ext in '' $ac_executable_extensions; do
5293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5294 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5296 break 2
5298 done
5299 done
5300 IFS=$as_save_IFS
5304 CC=$ac_cv_prog_CC
5305 if test -n "$CC"; then
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5307 $as_echo "$CC" >&6; }
5308 else
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5310 $as_echo "no" >&6; }
5314 test -n "$CC" && break
5315 done
5317 if test -z "$CC"; then
5318 ac_ct_CC=$CC
5319 for ac_prog in cl.exe
5321 # Extract the first word of "$ac_prog", so it can be a program name with args.
5322 set dummy $ac_prog; ac_word=$2
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5324 $as_echo_n "checking for $ac_word... " >&6; }
5325 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5326 $as_echo_n "(cached) " >&6
5327 else
5328 if test -n "$ac_ct_CC"; then
5329 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5330 else
5331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5332 for as_dir in $PATH
5334 IFS=$as_save_IFS
5335 test -z "$as_dir" && as_dir=.
5336 for ac_exec_ext in '' $ac_executable_extensions; do
5337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5338 ac_cv_prog_ac_ct_CC="$ac_prog"
5339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5340 break 2
5342 done
5343 done
5344 IFS=$as_save_IFS
5348 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5349 if test -n "$ac_ct_CC"; then
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5351 $as_echo "$ac_ct_CC" >&6; }
5352 else
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5354 $as_echo "no" >&6; }
5358 test -n "$ac_ct_CC" && break
5359 done
5361 if test "x$ac_ct_CC" = x; then
5362 CC=""
5363 else
5364 case $cross_compiling:$ac_tool_warned in
5365 yes:)
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5367 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5368 ac_tool_warned=yes ;;
5369 esac
5370 CC=$ac_ct_CC
5377 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5378 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5379 as_fn_error $? "no acceptable C compiler found in \$PATH
5380 See \`config.log' for more details" "$LINENO" 5; }
5382 # Provide some information about the compiler.
5383 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5384 set X $ac_compile
5385 ac_compiler=$2
5386 for ac_option in --version -v -V -qversion; do
5387 { { ac_try="$ac_compiler $ac_option >&5"
5388 case "(($ac_try" in
5389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5390 *) ac_try_echo=$ac_try;;
5391 esac
5392 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5393 $as_echo "$ac_try_echo"; } >&5
5394 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5395 ac_status=$?
5396 if test -s conftest.err; then
5397 sed '10a\
5398 ... rest of stderr output deleted ...
5399 10q' conftest.err >conftest.er1
5400 cat conftest.er1 >&5
5402 rm -f conftest.er1 conftest.err
5403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5404 test $ac_status = 0; }
5405 done
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5408 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5409 if ${ac_cv_c_compiler_gnu+:} false; then :
5410 $as_echo_n "(cached) " >&6
5411 else
5412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5413 /* end confdefs.h. */
5416 main ()
5418 #ifndef __GNUC__
5419 choke me
5420 #endif
5423 return 0;
5425 _ACEOF
5426 if ac_fn_c_try_compile "$LINENO"; then :
5427 ac_compiler_gnu=yes
5428 else
5429 ac_compiler_gnu=no
5431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5432 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5436 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5437 if test $ac_compiler_gnu = yes; then
5438 GCC=yes
5439 else
5440 GCC=
5442 ac_test_CFLAGS=${CFLAGS+set}
5443 ac_save_CFLAGS=$CFLAGS
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5445 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5446 if ${ac_cv_prog_cc_g+:} false; then :
5447 $as_echo_n "(cached) " >&6
5448 else
5449 ac_save_c_werror_flag=$ac_c_werror_flag
5450 ac_c_werror_flag=yes
5451 ac_cv_prog_cc_g=no
5452 CFLAGS="-g"
5453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5454 /* end confdefs.h. */
5457 main ()
5461 return 0;
5463 _ACEOF
5464 if ac_fn_c_try_compile "$LINENO"; then :
5465 ac_cv_prog_cc_g=yes
5466 else
5467 CFLAGS=""
5468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5469 /* end confdefs.h. */
5472 main ()
5476 return 0;
5478 _ACEOF
5479 if ac_fn_c_try_compile "$LINENO"; then :
5481 else
5482 ac_c_werror_flag=$ac_save_c_werror_flag
5483 CFLAGS="-g"
5484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5485 /* end confdefs.h. */
5488 main ()
5492 return 0;
5494 _ACEOF
5495 if ac_fn_c_try_compile "$LINENO"; then :
5496 ac_cv_prog_cc_g=yes
5498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5503 ac_c_werror_flag=$ac_save_c_werror_flag
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5506 $as_echo "$ac_cv_prog_cc_g" >&6; }
5507 if test "$ac_test_CFLAGS" = set; then
5508 CFLAGS=$ac_save_CFLAGS
5509 elif test $ac_cv_prog_cc_g = yes; then
5510 if test "$GCC" = yes; then
5511 CFLAGS="-g -O2"
5512 else
5513 CFLAGS="-g"
5515 else
5516 if test "$GCC" = yes; then
5517 CFLAGS="-O2"
5518 else
5519 CFLAGS=
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5523 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5524 if ${ac_cv_prog_cc_c89+:} false; then :
5525 $as_echo_n "(cached) " >&6
5526 else
5527 ac_cv_prog_cc_c89=no
5528 ac_save_CC=$CC
5529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5530 /* end confdefs.h. */
5531 #include <stdarg.h>
5532 #include <stdio.h>
5533 struct stat;
5534 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5535 struct buf { int x; };
5536 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5537 static char *e (p, i)
5538 char **p;
5539 int i;
5541 return p[i];
5543 static char *f (char * (*g) (char **, int), char **p, ...)
5545 char *s;
5546 va_list v;
5547 va_start (v,p);
5548 s = g (p, va_arg (v,int));
5549 va_end (v);
5550 return s;
5553 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5554 function prototypes and stuff, but not '\xHH' hex character constants.
5555 These don't provoke an error unfortunately, instead are silently treated
5556 as 'x'. The following induces an error, until -std is added to get
5557 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5558 array size at least. It's necessary to write '\x00'==0 to get something
5559 that's true only with -std. */
5560 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5562 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5563 inside strings and character constants. */
5564 #define FOO(x) 'x'
5565 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5567 int test (int i, double x);
5568 struct s1 {int (*f) (int a);};
5569 struct s2 {int (*f) (double a);};
5570 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5571 int argc;
5572 char **argv;
5574 main ()
5576 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5578 return 0;
5580 _ACEOF
5581 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5582 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5584 CC="$ac_save_CC $ac_arg"
5585 if ac_fn_c_try_compile "$LINENO"; then :
5586 ac_cv_prog_cc_c89=$ac_arg
5588 rm -f core conftest.err conftest.$ac_objext
5589 test "x$ac_cv_prog_cc_c89" != "xno" && break
5590 done
5591 rm -f conftest.$ac_ext
5592 CC=$ac_save_CC
5595 # AC_CACHE_VAL
5596 case "x$ac_cv_prog_cc_c89" in
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5599 $as_echo "none needed" >&6; } ;;
5600 xno)
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5602 $as_echo "unsupported" >&6; } ;;
5604 CC="$CC $ac_cv_prog_cc_c89"
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5606 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5607 esac
5608 if test "x$ac_cv_prog_cc_c89" != xno; then :
5612 ac_ext=c
5613 ac_cpp='$CPP $CPPFLAGS'
5614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5618 ac_ext=c
5619 ac_cpp='$CPP $CPPFLAGS'
5620 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5621 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5622 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5624 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5625 if ${am_cv_prog_cc_c_o+:} false; then :
5626 $as_echo_n "(cached) " >&6
5627 else
5628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5629 /* end confdefs.h. */
5632 main ()
5636 return 0;
5638 _ACEOF
5639 # Make sure it works both with $CC and with simple cc.
5640 # Following AC_PROG_CC_C_O, we do the test twice because some
5641 # compilers refuse to overwrite an existing .o file with -o,
5642 # though they will create one.
5643 am_cv_prog_cc_c_o=yes
5644 for am_i in 1 2; do
5645 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5646 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5647 ac_status=$?
5648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5649 (exit $ac_status); } \
5650 && test -f conftest2.$ac_objext; then
5651 : OK
5652 else
5653 am_cv_prog_cc_c_o=no
5654 break
5656 done
5657 rm -f core conftest*
5658 unset am_i
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5661 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5662 if test "$am_cv_prog_cc_c_o" != yes; then
5663 # Losing compiler, so override with the script.
5664 # FIXME: It is wrong to rewrite CC.
5665 # But if we don't then we get into trouble of one sort or another.
5666 # A longer-term fix would be to have automake use am__CC in this case,
5667 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5668 CC="$am_aux_dir/compile $CC"
5670 ac_ext=c
5671 ac_cpp='$CPP $CPPFLAGS'
5672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5677 ac_ext=cpp
5678 ac_cpp='$CXXCPP $CPPFLAGS'
5679 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5680 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5681 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5682 if test -z "$CXX"; then
5683 if test -n "$CCC"; then
5684 CXX=$CCC
5685 else
5686 if test -n "$ac_tool_prefix"; then
5687 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5689 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5690 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5692 $as_echo_n "checking for $ac_word... " >&6; }
5693 if ${ac_cv_prog_CXX+:} false; then :
5694 $as_echo_n "(cached) " >&6
5695 else
5696 if test -n "$CXX"; then
5697 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5698 else
5699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5700 for as_dir in $PATH
5702 IFS=$as_save_IFS
5703 test -z "$as_dir" && as_dir=.
5704 for ac_exec_ext in '' $ac_executable_extensions; do
5705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5706 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5708 break 2
5710 done
5711 done
5712 IFS=$as_save_IFS
5716 CXX=$ac_cv_prog_CXX
5717 if test -n "$CXX"; then
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5719 $as_echo "$CXX" >&6; }
5720 else
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5722 $as_echo "no" >&6; }
5726 test -n "$CXX" && break
5727 done
5729 if test -z "$CXX"; then
5730 ac_ct_CXX=$CXX
5731 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5733 # Extract the first word of "$ac_prog", so it can be a program name with args.
5734 set dummy $ac_prog; ac_word=$2
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5736 $as_echo_n "checking for $ac_word... " >&6; }
5737 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5738 $as_echo_n "(cached) " >&6
5739 else
5740 if test -n "$ac_ct_CXX"; then
5741 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5742 else
5743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5744 for as_dir in $PATH
5746 IFS=$as_save_IFS
5747 test -z "$as_dir" && as_dir=.
5748 for ac_exec_ext in '' $ac_executable_extensions; do
5749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5750 ac_cv_prog_ac_ct_CXX="$ac_prog"
5751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5752 break 2
5754 done
5755 done
5756 IFS=$as_save_IFS
5760 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5761 if test -n "$ac_ct_CXX"; then
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5763 $as_echo "$ac_ct_CXX" >&6; }
5764 else
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5766 $as_echo "no" >&6; }
5770 test -n "$ac_ct_CXX" && break
5771 done
5773 if test "x$ac_ct_CXX" = x; then
5774 CXX="g++"
5775 else
5776 case $cross_compiling:$ac_tool_warned in
5777 yes:)
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5779 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5780 ac_tool_warned=yes ;;
5781 esac
5782 CXX=$ac_ct_CXX
5788 # Provide some information about the compiler.
5789 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5790 set X $ac_compile
5791 ac_compiler=$2
5792 for ac_option in --version -v -V -qversion; do
5793 { { ac_try="$ac_compiler $ac_option >&5"
5794 case "(($ac_try" in
5795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5796 *) ac_try_echo=$ac_try;;
5797 esac
5798 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5799 $as_echo "$ac_try_echo"; } >&5
5800 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5801 ac_status=$?
5802 if test -s conftest.err; then
5803 sed '10a\
5804 ... rest of stderr output deleted ...
5805 10q' conftest.err >conftest.er1
5806 cat conftest.er1 >&5
5808 rm -f conftest.er1 conftest.err
5809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5810 test $ac_status = 0; }
5811 done
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5814 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5815 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5816 $as_echo_n "(cached) " >&6
5817 else
5818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5819 /* end confdefs.h. */
5822 main ()
5824 #ifndef __GNUC__
5825 choke me
5826 #endif
5829 return 0;
5831 _ACEOF
5832 if ac_fn_cxx_try_compile "$LINENO"; then :
5833 ac_compiler_gnu=yes
5834 else
5835 ac_compiler_gnu=no
5837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5838 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5842 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5843 if test $ac_compiler_gnu = yes; then
5844 GXX=yes
5845 else
5846 GXX=
5848 ac_test_CXXFLAGS=${CXXFLAGS+set}
5849 ac_save_CXXFLAGS=$CXXFLAGS
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5851 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5852 if ${ac_cv_prog_cxx_g+:} false; then :
5853 $as_echo_n "(cached) " >&6
5854 else
5855 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5856 ac_cxx_werror_flag=yes
5857 ac_cv_prog_cxx_g=no
5858 CXXFLAGS="-g"
5859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5860 /* end confdefs.h. */
5863 main ()
5867 return 0;
5869 _ACEOF
5870 if ac_fn_cxx_try_compile "$LINENO"; then :
5871 ac_cv_prog_cxx_g=yes
5872 else
5873 CXXFLAGS=""
5874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5875 /* end confdefs.h. */
5878 main ()
5882 return 0;
5884 _ACEOF
5885 if ac_fn_cxx_try_compile "$LINENO"; then :
5887 else
5888 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5889 CXXFLAGS="-g"
5890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5891 /* end confdefs.h. */
5894 main ()
5898 return 0;
5900 _ACEOF
5901 if ac_fn_cxx_try_compile "$LINENO"; then :
5902 ac_cv_prog_cxx_g=yes
5904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5909 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5912 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5913 if test "$ac_test_CXXFLAGS" = set; then
5914 CXXFLAGS=$ac_save_CXXFLAGS
5915 elif test $ac_cv_prog_cxx_g = yes; then
5916 if test "$GXX" = yes; then
5917 CXXFLAGS="-g -O2"
5918 else
5919 CXXFLAGS="-g"
5921 else
5922 if test "$GXX" = yes; then
5923 CXXFLAGS="-O2"
5924 else
5925 CXXFLAGS=
5928 ac_ext=c
5929 ac_cpp='$CPP $CPPFLAGS'
5930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5934 depcc="$CXX" am_compiler_list=
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5937 $as_echo_n "checking dependency style of $depcc... " >&6; }
5938 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5939 $as_echo_n "(cached) " >&6
5940 else
5941 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5942 # We make a subdir and do the tests there. Otherwise we can end up
5943 # making bogus files that we don't know about and never remove. For
5944 # instance it was reported that on HP-UX the gcc test will end up
5945 # making a dummy file named 'D' -- because '-MD' means "put the output
5946 # in D".
5947 rm -rf conftest.dir
5948 mkdir conftest.dir
5949 # Copy depcomp to subdir because otherwise we won't find it if we're
5950 # using a relative directory.
5951 cp "$am_depcomp" conftest.dir
5952 cd conftest.dir
5953 # We will build objects and dependencies in a subdirectory because
5954 # it helps to detect inapplicable dependency modes. For instance
5955 # both Tru64's cc and ICC support -MD to output dependencies as a
5956 # side effect of compilation, but ICC will put the dependencies in
5957 # the current directory while Tru64 will put them in the object
5958 # directory.
5959 mkdir sub
5961 am_cv_CXX_dependencies_compiler_type=none
5962 if test "$am_compiler_list" = ""; then
5963 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5965 am__universal=false
5966 case " $depcc " in #(
5967 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5968 esac
5970 for depmode in $am_compiler_list; do
5971 # Setup a source with many dependencies, because some compilers
5972 # like to wrap large dependency lists on column 80 (with \), and
5973 # we should not choose a depcomp mode which is confused by this.
5975 # We need to recreate these files for each test, as the compiler may
5976 # overwrite some of them when testing with obscure command lines.
5977 # This happens at least with the AIX C compiler.
5978 : > sub/conftest.c
5979 for i in 1 2 3 4 5 6; do
5980 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5981 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5982 # Solaris 10 /bin/sh.
5983 echo '/* dummy */' > sub/conftst$i.h
5984 done
5985 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5987 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5988 # mode. It turns out that the SunPro C++ compiler does not properly
5989 # handle '-M -o', and we need to detect this. Also, some Intel
5990 # versions had trouble with output in subdirs.
5991 am__obj=sub/conftest.${OBJEXT-o}
5992 am__minus_obj="-o $am__obj"
5993 case $depmode in
5994 gcc)
5995 # This depmode causes a compiler race in universal mode.
5996 test "$am__universal" = false || continue
5998 nosideeffect)
5999 # After this tag, mechanisms are not by side-effect, so they'll
6000 # only be used when explicitly requested.
6001 if test "x$enable_dependency_tracking" = xyes; then
6002 continue
6003 else
6004 break
6007 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6008 # This compiler won't grok '-c -o', but also, the minuso test has
6009 # not run yet. These depmodes are late enough in the game, and
6010 # so weak that their functioning should not be impacted.
6011 am__obj=conftest.${OBJEXT-o}
6012 am__minus_obj=
6014 none) break ;;
6015 esac
6016 if depmode=$depmode \
6017 source=sub/conftest.c object=$am__obj \
6018 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6019 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6020 >/dev/null 2>conftest.err &&
6021 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6022 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6023 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6024 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6025 # icc doesn't choke on unknown options, it will just issue warnings
6026 # or remarks (even with -Werror). So we grep stderr for any message
6027 # that says an option was ignored or not supported.
6028 # When given -MP, icc 7.0 and 7.1 complain thusly:
6029 # icc: Command line warning: ignoring option '-M'; no argument required
6030 # The diagnosis changed in icc 8.0:
6031 # icc: Command line remark: option '-MP' not supported
6032 if (grep 'ignoring option' conftest.err ||
6033 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6034 am_cv_CXX_dependencies_compiler_type=$depmode
6035 break
6038 done
6040 cd ..
6041 rm -rf conftest.dir
6042 else
6043 am_cv_CXX_dependencies_compiler_type=none
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6048 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6049 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6052 test "x$enable_dependency_tracking" != xno \
6053 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6054 am__fastdepCXX_TRUE=
6055 am__fastdepCXX_FALSE='#'
6056 else
6057 am__fastdepCXX_TRUE='#'
6058 am__fastdepCXX_FALSE=
6062 # By default we simply use the C compiler to build assembly code.
6064 test "${CCAS+set}" = set || CCAS=$CC
6065 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
6069 depcc="$CCAS" am_compiler_list=
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6072 $as_echo_n "checking dependency style of $depcc... " >&6; }
6073 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
6074 $as_echo_n "(cached) " >&6
6075 else
6076 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6077 # We make a subdir and do the tests there. Otherwise we can end up
6078 # making bogus files that we don't know about and never remove. For
6079 # instance it was reported that on HP-UX the gcc test will end up
6080 # making a dummy file named 'D' -- because '-MD' means "put the output
6081 # in D".
6082 rm -rf conftest.dir
6083 mkdir conftest.dir
6084 # Copy depcomp to subdir because otherwise we won't find it if we're
6085 # using a relative directory.
6086 cp "$am_depcomp" conftest.dir
6087 cd conftest.dir
6088 # We will build objects and dependencies in a subdirectory because
6089 # it helps to detect inapplicable dependency modes. For instance
6090 # both Tru64's cc and ICC support -MD to output dependencies as a
6091 # side effect of compilation, but ICC will put the dependencies in
6092 # the current directory while Tru64 will put them in the object
6093 # directory.
6094 mkdir sub
6096 am_cv_CCAS_dependencies_compiler_type=none
6097 if test "$am_compiler_list" = ""; then
6098 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6100 am__universal=false
6103 for depmode in $am_compiler_list; do
6104 # Setup a source with many dependencies, because some compilers
6105 # like to wrap large dependency lists on column 80 (with \), and
6106 # we should not choose a depcomp mode which is confused by this.
6108 # We need to recreate these files for each test, as the compiler may
6109 # overwrite some of them when testing with obscure command lines.
6110 # This happens at least with the AIX C compiler.
6111 : > sub/conftest.c
6112 for i in 1 2 3 4 5 6; do
6113 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6114 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6115 # Solaris 10 /bin/sh.
6116 echo '/* dummy */' > sub/conftst$i.h
6117 done
6118 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6120 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6121 # mode. It turns out that the SunPro C++ compiler does not properly
6122 # handle '-M -o', and we need to detect this. Also, some Intel
6123 # versions had trouble with output in subdirs.
6124 am__obj=sub/conftest.${OBJEXT-o}
6125 am__minus_obj="-o $am__obj"
6126 case $depmode in
6127 gcc)
6128 # This depmode causes a compiler race in universal mode.
6129 test "$am__universal" = false || continue
6131 nosideeffect)
6132 # After this tag, mechanisms are not by side-effect, so they'll
6133 # only be used when explicitly requested.
6134 if test "x$enable_dependency_tracking" = xyes; then
6135 continue
6136 else
6137 break
6140 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6141 # This compiler won't grok '-c -o', but also, the minuso test has
6142 # not run yet. These depmodes are late enough in the game, and
6143 # so weak that their functioning should not be impacted.
6144 am__obj=conftest.${OBJEXT-o}
6145 am__minus_obj=
6147 none) break ;;
6148 esac
6149 if depmode=$depmode \
6150 source=sub/conftest.c object=$am__obj \
6151 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6152 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6153 >/dev/null 2>conftest.err &&
6154 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6155 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6156 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6157 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6158 # icc doesn't choke on unknown options, it will just issue warnings
6159 # or remarks (even with -Werror). So we grep stderr for any message
6160 # that says an option was ignored or not supported.
6161 # When given -MP, icc 7.0 and 7.1 complain thusly:
6162 # icc: Command line warning: ignoring option '-M'; no argument required
6163 # The diagnosis changed in icc 8.0:
6164 # icc: Command line remark: option '-MP' not supported
6165 if (grep 'ignoring option' conftest.err ||
6166 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6167 am_cv_CCAS_dependencies_compiler_type=$depmode
6168 break
6171 done
6173 cd ..
6174 rm -rf conftest.dir
6175 else
6176 am_cv_CCAS_dependencies_compiler_type=none
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
6181 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
6182 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
6185 test "x$enable_dependency_tracking" != xno \
6186 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
6187 am__fastdepCCAS_TRUE=
6188 am__fastdepCCAS_FALSE='#'
6189 else
6190 am__fastdepCCAS_TRUE='#'
6191 am__fastdepCCAS_FALSE=
6195 if test -n "$ac_tool_prefix"; then
6196 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6197 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6199 $as_echo_n "checking for $ac_word... " >&6; }
6200 if ${ac_cv_prog_RANLIB+:} false; then :
6201 $as_echo_n "(cached) " >&6
6202 else
6203 if test -n "$RANLIB"; then
6204 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6205 else
6206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6207 for as_dir in $PATH
6209 IFS=$as_save_IFS
6210 test -z "$as_dir" && as_dir=.
6211 for ac_exec_ext in '' $ac_executable_extensions; do
6212 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6213 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6215 break 2
6217 done
6218 done
6219 IFS=$as_save_IFS
6223 RANLIB=$ac_cv_prog_RANLIB
6224 if test -n "$RANLIB"; then
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6226 $as_echo "$RANLIB" >&6; }
6227 else
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6229 $as_echo "no" >&6; }
6234 if test -z "$ac_cv_prog_RANLIB"; then
6235 ac_ct_RANLIB=$RANLIB
6236 # Extract the first word of "ranlib", so it can be a program name with args.
6237 set dummy ranlib; ac_word=$2
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6239 $as_echo_n "checking for $ac_word... " >&6; }
6240 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6241 $as_echo_n "(cached) " >&6
6242 else
6243 if test -n "$ac_ct_RANLIB"; then
6244 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6245 else
6246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6247 for as_dir in $PATH
6249 IFS=$as_save_IFS
6250 test -z "$as_dir" && as_dir=.
6251 for ac_exec_ext in '' $ac_executable_extensions; do
6252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6253 ac_cv_prog_ac_ct_RANLIB="ranlib"
6254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6255 break 2
6257 done
6258 done
6259 IFS=$as_save_IFS
6263 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6264 if test -n "$ac_ct_RANLIB"; then
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6266 $as_echo "$ac_ct_RANLIB" >&6; }
6267 else
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6269 $as_echo "no" >&6; }
6272 if test "x$ac_ct_RANLIB" = x; then
6273 RANLIB=":"
6274 else
6275 case $cross_compiling:$ac_tool_warned in
6276 yes:)
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6278 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6279 ac_tool_warned=yes ;;
6280 esac
6281 RANLIB=$ac_ct_RANLIB
6283 else
6284 RANLIB="$ac_cv_prog_RANLIB"
6288 enable_dlopen=yes
6292 case `pwd` in
6293 *\ * | *\ *)
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6295 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6296 esac
6300 macro_version='2.2.7a'
6301 macro_revision='1.3134'
6315 ltmain="$ac_aux_dir/ltmain.sh"
6317 # Backslashify metacharacters that are still active within
6318 # double-quoted strings.
6319 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6321 # Same as above, but do not quote variable references.
6322 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6324 # Sed substitution to delay expansion of an escaped shell variable in a
6325 # double_quote_subst'ed string.
6326 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6328 # Sed substitution to delay expansion of an escaped single quote.
6329 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6331 # Sed substitution to avoid accidental globbing in evaled expressions
6332 no_glob_subst='s/\*/\\\*/g'
6334 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6335 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6336 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6339 $as_echo_n "checking how to print strings... " >&6; }
6340 # Test print first, because it will be a builtin if present.
6341 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6342 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6343 ECHO='print -r --'
6344 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6345 ECHO='printf %s\n'
6346 else
6347 # Use this function as a fallback that always works.
6348 func_fallback_echo ()
6350 eval 'cat <<_LTECHO_EOF
6352 _LTECHO_EOF'
6354 ECHO='func_fallback_echo'
6357 # func_echo_all arg...
6358 # Invoke $ECHO with all args, space-separated.
6359 func_echo_all ()
6361 $ECHO ""
6364 case "$ECHO" in
6365 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6366 $as_echo "printf" >&6; } ;;
6367 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6368 $as_echo "print -r" >&6; } ;;
6369 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6370 $as_echo "cat" >&6; } ;;
6371 esac
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6387 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6388 if ${ac_cv_path_SED+:} false; then :
6389 $as_echo_n "(cached) " >&6
6390 else
6391 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6392 for ac_i in 1 2 3 4 5 6 7; do
6393 ac_script="$ac_script$as_nl$ac_script"
6394 done
6395 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6396 { ac_script=; unset ac_script;}
6397 if test -z "$SED"; then
6398 ac_path_SED_found=false
6399 # Loop through the user's path and test for each of PROGNAME-LIST
6400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6401 for as_dir in $PATH
6403 IFS=$as_save_IFS
6404 test -z "$as_dir" && as_dir=.
6405 for ac_prog in sed gsed; do
6406 for ac_exec_ext in '' $ac_executable_extensions; do
6407 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6408 as_fn_executable_p "$ac_path_SED" || continue
6409 # Check for GNU ac_path_SED and select it if it is found.
6410 # Check for GNU $ac_path_SED
6411 case `"$ac_path_SED" --version 2>&1` in
6412 *GNU*)
6413 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6415 ac_count=0
6416 $as_echo_n 0123456789 >"conftest.in"
6417 while :
6419 cat "conftest.in" "conftest.in" >"conftest.tmp"
6420 mv "conftest.tmp" "conftest.in"
6421 cp "conftest.in" "conftest.nl"
6422 $as_echo '' >> "conftest.nl"
6423 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6424 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6425 as_fn_arith $ac_count + 1 && ac_count=$as_val
6426 if test $ac_count -gt ${ac_path_SED_max-0}; then
6427 # Best one so far, save it but keep looking for a better one
6428 ac_cv_path_SED="$ac_path_SED"
6429 ac_path_SED_max=$ac_count
6431 # 10*(2^10) chars as input seems more than enough
6432 test $ac_count -gt 10 && break
6433 done
6434 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6435 esac
6437 $ac_path_SED_found && break 3
6438 done
6439 done
6440 done
6441 IFS=$as_save_IFS
6442 if test -z "$ac_cv_path_SED"; then
6443 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6445 else
6446 ac_cv_path_SED=$SED
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6451 $as_echo "$ac_cv_path_SED" >&6; }
6452 SED="$ac_cv_path_SED"
6453 rm -f conftest.sed
6455 test -z "$SED" && SED=sed
6456 Xsed="$SED -e 1s/^X//"
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6469 $as_echo_n "checking for fgrep... " >&6; }
6470 if ${ac_cv_path_FGREP+:} false; then :
6471 $as_echo_n "(cached) " >&6
6472 else
6473 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6474 then ac_cv_path_FGREP="$GREP -F"
6475 else
6476 if test -z "$FGREP"; then
6477 ac_path_FGREP_found=false
6478 # Loop through the user's path and test for each of PROGNAME-LIST
6479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6480 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6482 IFS=$as_save_IFS
6483 test -z "$as_dir" && as_dir=.
6484 for ac_prog in fgrep; do
6485 for ac_exec_ext in '' $ac_executable_extensions; do
6486 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6487 as_fn_executable_p "$ac_path_FGREP" || continue
6488 # Check for GNU ac_path_FGREP and select it if it is found.
6489 # Check for GNU $ac_path_FGREP
6490 case `"$ac_path_FGREP" --version 2>&1` in
6491 *GNU*)
6492 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6494 ac_count=0
6495 $as_echo_n 0123456789 >"conftest.in"
6496 while :
6498 cat "conftest.in" "conftest.in" >"conftest.tmp"
6499 mv "conftest.tmp" "conftest.in"
6500 cp "conftest.in" "conftest.nl"
6501 $as_echo 'FGREP' >> "conftest.nl"
6502 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6503 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6504 as_fn_arith $ac_count + 1 && ac_count=$as_val
6505 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6506 # Best one so far, save it but keep looking for a better one
6507 ac_cv_path_FGREP="$ac_path_FGREP"
6508 ac_path_FGREP_max=$ac_count
6510 # 10*(2^10) chars as input seems more than enough
6511 test $ac_count -gt 10 && break
6512 done
6513 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6514 esac
6516 $ac_path_FGREP_found && break 3
6517 done
6518 done
6519 done
6520 IFS=$as_save_IFS
6521 if test -z "$ac_cv_path_FGREP"; then
6522 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6524 else
6525 ac_cv_path_FGREP=$FGREP
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6531 $as_echo "$ac_cv_path_FGREP" >&6; }
6532 FGREP="$ac_cv_path_FGREP"
6535 test -z "$GREP" && GREP=grep
6555 # Check whether --with-gnu-ld was given.
6556 if test "${with_gnu_ld+set}" = set; then :
6557 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6558 else
6559 with_gnu_ld=no
6562 ac_prog=ld
6563 if test "$GCC" = yes; then
6564 # Check if gcc -print-prog-name=ld gives a path.
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6566 $as_echo_n "checking for ld used by $CC... " >&6; }
6567 case $host in
6568 *-*-mingw*)
6569 # gcc leaves a trailing carriage return which upsets mingw
6570 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6572 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6573 esac
6574 case $ac_prog in
6575 # Accept absolute paths.
6576 [\\/]* | ?:[\\/]*)
6577 re_direlt='/[^/][^/]*/\.\./'
6578 # Canonicalize the pathname of ld
6579 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6580 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6581 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6582 done
6583 test -z "$LD" && LD="$ac_prog"
6586 # If it fails, then pretend we aren't using GCC.
6587 ac_prog=ld
6590 # If it is relative, then search for the first ld in PATH.
6591 with_gnu_ld=unknown
6593 esac
6594 elif test "$with_gnu_ld" = yes; then
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6596 $as_echo_n "checking for GNU ld... " >&6; }
6597 else
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6599 $as_echo_n "checking for non-GNU ld... " >&6; }
6601 if ${lt_cv_path_LD+:} false; then :
6602 $as_echo_n "(cached) " >&6
6603 else
6604 if test -z "$LD"; then
6605 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6606 for ac_dir in $PATH; do
6607 IFS="$lt_save_ifs"
6608 test -z "$ac_dir" && ac_dir=.
6609 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6610 lt_cv_path_LD="$ac_dir/$ac_prog"
6611 # Check to see if the program is GNU ld. I'd rather use --version,
6612 # but apparently some variants of GNU ld only accept -v.
6613 # Break only if it was the GNU/non-GNU ld that we prefer.
6614 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6615 *GNU* | *'with BFD'*)
6616 test "$with_gnu_ld" != no && break
6619 test "$with_gnu_ld" != yes && break
6621 esac
6623 done
6624 IFS="$lt_save_ifs"
6625 else
6626 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6630 LD="$lt_cv_path_LD"
6631 if test -n "$LD"; then
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6633 $as_echo "$LD" >&6; }
6634 else
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6636 $as_echo "no" >&6; }
6638 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6640 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6641 if ${lt_cv_prog_gnu_ld+:} false; then :
6642 $as_echo_n "(cached) " >&6
6643 else
6644 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6645 case `$LD -v 2>&1 </dev/null` in
6646 *GNU* | *'with BFD'*)
6647 lt_cv_prog_gnu_ld=yes
6650 lt_cv_prog_gnu_ld=no
6652 esac
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6655 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6656 with_gnu_ld=$lt_cv_prog_gnu_ld
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6667 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6668 if ${lt_cv_path_NM+:} false; then :
6669 $as_echo_n "(cached) " >&6
6670 else
6671 if test -n "$NM"; then
6672 # Let the user override the nm to test.
6673 lt_nm_to_check="$NM"
6674 else
6675 lt_nm_to_check="${ac_tool_prefix}nm"
6676 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6677 lt_nm_to_check="$lt_nm_to_check nm"
6680 for lt_tmp_nm in "$lt_nm_to_check"; do
6681 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6682 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6683 IFS="$lt_save_ifs"
6684 test -z "$ac_dir" && ac_dir=.
6685 # Strip out any user-provided options from the nm to test twice,
6686 # the first time to test to see if nm (rather than its options) has
6687 # an explicit path, the second time to yield a file which can be
6688 # nm'ed itself.
6689 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
6690 case "$tmp_nm_path" in
6691 */*|*\\*) tmp_nm="$lt_tmp_nm";;
6692 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
6693 esac
6694 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
6695 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
6696 # Check to see if the nm accepts a BSD-compat flag.
6697 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6698 # nm: unknown option "B" ignored
6699 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
6700 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
6701 break
6704 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
6705 *$tmp_nm*)
6706 lt_cv_path_NM="$tmp_nm -p"
6707 break
6710 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6711 continue # so that we can try to find one that supports BSD flags
6713 esac
6715 esac
6717 done
6718 IFS="$lt_save_ifs"
6719 done
6720 : ${lt_cv_path_NM=no}
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6723 $as_echo "$lt_cv_path_NM" >&6; }
6724 if test "$lt_cv_path_NM" != "no"; then
6725 NM="$lt_cv_path_NM"
6726 else
6727 # Didn't find any BSD compatible name lister, look for dumpbin.
6728 if test -n "$DUMPBIN"; then :
6729 # Let the user override the test.
6730 else
6731 if test -n "$ac_tool_prefix"; then
6732 for ac_prog in dumpbin "link -dump"
6734 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6735 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6737 $as_echo_n "checking for $ac_word... " >&6; }
6738 if ${ac_cv_prog_DUMPBIN+:} false; then :
6739 $as_echo_n "(cached) " >&6
6740 else
6741 if test -n "$DUMPBIN"; then
6742 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6743 else
6744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6745 for as_dir in $PATH
6747 IFS=$as_save_IFS
6748 test -z "$as_dir" && as_dir=.
6749 for ac_exec_ext in '' $ac_executable_extensions; do
6750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6751 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6753 break 2
6755 done
6756 done
6757 IFS=$as_save_IFS
6761 DUMPBIN=$ac_cv_prog_DUMPBIN
6762 if test -n "$DUMPBIN"; then
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6764 $as_echo "$DUMPBIN" >&6; }
6765 else
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6767 $as_echo "no" >&6; }
6771 test -n "$DUMPBIN" && break
6772 done
6774 if test -z "$DUMPBIN"; then
6775 ac_ct_DUMPBIN=$DUMPBIN
6776 for ac_prog in dumpbin "link -dump"
6778 # Extract the first word of "$ac_prog", so it can be a program name with args.
6779 set dummy $ac_prog; ac_word=$2
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6781 $as_echo_n "checking for $ac_word... " >&6; }
6782 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6783 $as_echo_n "(cached) " >&6
6784 else
6785 if test -n "$ac_ct_DUMPBIN"; then
6786 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6787 else
6788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6789 for as_dir in $PATH
6791 IFS=$as_save_IFS
6792 test -z "$as_dir" && as_dir=.
6793 for ac_exec_ext in '' $ac_executable_extensions; do
6794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6795 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6797 break 2
6799 done
6800 done
6801 IFS=$as_save_IFS
6805 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6806 if test -n "$ac_ct_DUMPBIN"; then
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6808 $as_echo "$ac_ct_DUMPBIN" >&6; }
6809 else
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6811 $as_echo "no" >&6; }
6815 test -n "$ac_ct_DUMPBIN" && break
6816 done
6818 if test "x$ac_ct_DUMPBIN" = x; then
6819 DUMPBIN=":"
6820 else
6821 case $cross_compiling:$ac_tool_warned in
6822 yes:)
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6824 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6825 ac_tool_warned=yes ;;
6826 esac
6827 DUMPBIN=$ac_ct_DUMPBIN
6831 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6832 *COFF*)
6833 DUMPBIN="$DUMPBIN -symbols"
6836 DUMPBIN=:
6838 esac
6841 if test "$DUMPBIN" != ":"; then
6842 NM="$DUMPBIN"
6845 test -z "$NM" && NM=nm
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6853 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6854 if ${lt_cv_nm_interface+:} false; then :
6855 $as_echo_n "(cached) " >&6
6856 else
6857 lt_cv_nm_interface="BSD nm"
6858 echo "int some_variable = 0;" > conftest.$ac_ext
6859 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6860 (eval "$ac_compile" 2>conftest.err)
6861 cat conftest.err >&5
6862 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6863 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6864 cat conftest.err >&5
6865 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6866 cat conftest.out >&5
6867 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6868 lt_cv_nm_interface="MS dumpbin"
6870 rm -f conftest*
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6873 $as_echo "$lt_cv_nm_interface" >&6; }
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6876 $as_echo_n "checking whether ln -s works... " >&6; }
6877 LN_S=$as_ln_s
6878 if test "$LN_S" = "ln -s"; then
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6880 $as_echo "yes" >&6; }
6881 else
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6883 $as_echo "no, using $LN_S" >&6; }
6886 # find the maximum length of command line arguments
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6888 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6889 if ${lt_cv_sys_max_cmd_len+:} false; then :
6890 $as_echo_n "(cached) " >&6
6891 else
6893 teststring="ABCD"
6895 case $build_os in
6896 msdosdjgpp*)
6897 # On DJGPP, this test can blow up pretty badly due to problems in libc
6898 # (any single argument exceeding 2000 bytes causes a buffer overrun
6899 # during glob expansion). Even if it were fixed, the result of this
6900 # check would be larger than it should be.
6901 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6904 gnu*)
6905 # Under GNU Hurd, this test is not required because there is
6906 # no limit to the length of command line arguments.
6907 # Libtool will interpret -1 as no limit whatsoever
6908 lt_cv_sys_max_cmd_len=-1;
6911 cygwin* | mingw* | cegcc*)
6912 # On Win9x/ME, this test blows up -- it succeeds, but takes
6913 # about 5 minutes as the teststring grows exponentially.
6914 # Worse, since 9x/ME are not pre-emptively multitasking,
6915 # you end up with a "frozen" computer, even though with patience
6916 # the test eventually succeeds (with a max line length of 256k).
6917 # Instead, let's just punt: use the minimum linelength reported by
6918 # all of the supported platforms: 8192 (on NT/2K/XP).
6919 lt_cv_sys_max_cmd_len=8192;
6922 mint*)
6923 # On MiNT this can take a long time and run out of memory.
6924 lt_cv_sys_max_cmd_len=8192;
6927 amigaos*)
6928 # On AmigaOS with pdksh, this test takes hours, literally.
6929 # So we just punt and use a minimum line length of 8192.
6930 lt_cv_sys_max_cmd_len=8192;
6933 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6934 # This has been around since 386BSD, at least. Likely further.
6935 if test -x /sbin/sysctl; then
6936 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6937 elif test -x /usr/sbin/sysctl; then
6938 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6939 else
6940 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6942 # And add a safety zone
6943 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6944 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6947 interix*)
6948 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6949 lt_cv_sys_max_cmd_len=196608
6952 osf*)
6953 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6954 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6955 # nice to cause kernel panics so lets avoid the loop below.
6956 # First set a reasonable default.
6957 lt_cv_sys_max_cmd_len=16384
6959 if test -x /sbin/sysconfig; then
6960 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6961 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6962 esac
6965 sco3.2v5*)
6966 lt_cv_sys_max_cmd_len=102400
6968 sysv5* | sco5v6* | sysv4.2uw2*)
6969 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6970 if test -n "$kargmax"; then
6971 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6972 else
6973 lt_cv_sys_max_cmd_len=32768
6977 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6978 if test -n "$lt_cv_sys_max_cmd_len"; then
6979 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6980 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6981 else
6982 # Make teststring a little bigger before we do anything with it.
6983 # a 1K string should be a reasonable start.
6984 for i in 1 2 3 4 5 6 7 8 ; do
6985 teststring=$teststring$teststring
6986 done
6987 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6988 # If test is not a shell built-in, we'll probably end up computing a
6989 # maximum length that is only half of the actual maximum length, but
6990 # we can't tell.
6991 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6992 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6993 test $i != 17 # 1/2 MB should be enough
6995 i=`expr $i + 1`
6996 teststring=$teststring$teststring
6997 done
6998 # Only check the string length outside the loop.
6999 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7000 teststring=
7001 # Add a significant safety factor because C++ compilers can tack on
7002 # massive amounts of additional arguments before passing them to the
7003 # linker. It appears as though 1/2 is a usable value.
7004 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7007 esac
7011 if test -n $lt_cv_sys_max_cmd_len ; then
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7013 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7014 else
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7016 $as_echo "none" >&6; }
7018 max_cmd_len=$lt_cv_sys_max_cmd_len
7025 : ${CP="cp -f"}
7026 : ${MV="mv -f"}
7027 : ${RM="rm -f"}
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7030 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7031 # Try some XSI features
7032 xsi_shell=no
7033 ( _lt_dummy="a/b/c"
7034 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7035 = c,a/b,, \
7036 && eval 'test $(( 1 + 1 )) -eq 2 \
7037 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7038 && xsi_shell=yes
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7040 $as_echo "$xsi_shell" >&6; }
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7044 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7045 lt_shell_append=no
7046 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7047 >/dev/null 2>&1 \
7048 && lt_shell_append=yes
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7050 $as_echo "$lt_shell_append" >&6; }
7053 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7054 lt_unset=unset
7055 else
7056 lt_unset=false
7063 # test EBCDIC or ASCII
7064 case `echo X|tr X '\101'` in
7065 A) # ASCII based system
7066 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7067 lt_SP2NL='tr \040 \012'
7068 lt_NL2SP='tr \015\012 \040\040'
7070 *) # EBCDIC based system
7071 lt_SP2NL='tr \100 \n'
7072 lt_NL2SP='tr \r\n \100\100'
7074 esac
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7085 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7086 if ${lt_cv_ld_reload_flag+:} false; then :
7087 $as_echo_n "(cached) " >&6
7088 else
7089 lt_cv_ld_reload_flag='-r'
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7092 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7093 reload_flag=$lt_cv_ld_reload_flag
7094 case $reload_flag in
7095 "" | " "*) ;;
7096 *) reload_flag=" $reload_flag" ;;
7097 esac
7098 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7099 case $host_os in
7100 darwin*)
7101 if test "$GCC" = yes; then
7102 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7103 else
7104 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7107 esac
7117 if test -n "$ac_tool_prefix"; then
7118 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7119 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7121 $as_echo_n "checking for $ac_word... " >&6; }
7122 if ${ac_cv_prog_OBJDUMP+:} false; then :
7123 $as_echo_n "(cached) " >&6
7124 else
7125 if test -n "$OBJDUMP"; then
7126 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7127 else
7128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7129 for as_dir in $PATH
7131 IFS=$as_save_IFS
7132 test -z "$as_dir" && as_dir=.
7133 for ac_exec_ext in '' $ac_executable_extensions; do
7134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7135 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7137 break 2
7139 done
7140 done
7141 IFS=$as_save_IFS
7145 OBJDUMP=$ac_cv_prog_OBJDUMP
7146 if test -n "$OBJDUMP"; then
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7148 $as_echo "$OBJDUMP" >&6; }
7149 else
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7151 $as_echo "no" >&6; }
7156 if test -z "$ac_cv_prog_OBJDUMP"; then
7157 ac_ct_OBJDUMP=$OBJDUMP
7158 # Extract the first word of "objdump", so it can be a program name with args.
7159 set dummy objdump; ac_word=$2
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7161 $as_echo_n "checking for $ac_word... " >&6; }
7162 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7163 $as_echo_n "(cached) " >&6
7164 else
7165 if test -n "$ac_ct_OBJDUMP"; then
7166 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7167 else
7168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7169 for as_dir in $PATH
7171 IFS=$as_save_IFS
7172 test -z "$as_dir" && as_dir=.
7173 for ac_exec_ext in '' $ac_executable_extensions; do
7174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7175 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7177 break 2
7179 done
7180 done
7181 IFS=$as_save_IFS
7185 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7186 if test -n "$ac_ct_OBJDUMP"; then
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7188 $as_echo "$ac_ct_OBJDUMP" >&6; }
7189 else
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7191 $as_echo "no" >&6; }
7194 if test "x$ac_ct_OBJDUMP" = x; then
7195 OBJDUMP="false"
7196 else
7197 case $cross_compiling:$ac_tool_warned in
7198 yes:)
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7200 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7201 ac_tool_warned=yes ;;
7202 esac
7203 OBJDUMP=$ac_ct_OBJDUMP
7205 else
7206 OBJDUMP="$ac_cv_prog_OBJDUMP"
7209 test -z "$OBJDUMP" && OBJDUMP=objdump
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7220 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7221 if ${lt_cv_deplibs_check_method+:} false; then :
7222 $as_echo_n "(cached) " >&6
7223 else
7224 lt_cv_file_magic_cmd='$MAGIC_CMD'
7225 lt_cv_file_magic_test_file=
7226 lt_cv_deplibs_check_method='unknown'
7227 # Need to set the preceding variable on all platforms that support
7228 # interlibrary dependencies.
7229 # 'none' -- dependencies not supported.
7230 # `unknown' -- same as none, but documents that we really don't know.
7231 # 'pass_all' -- all dependencies passed with no checks.
7232 # 'test_compile' -- check by making test program.
7233 # 'file_magic [[regex]]' -- check by looking for files in library path
7234 # which responds to the $file_magic_cmd with a given extended regex.
7235 # If you have `file' or equivalent on your system and you're not sure
7236 # whether `pass_all' will *always* work, you probably want this one.
7238 case $host_os in
7239 aix[4-9]*)
7240 lt_cv_deplibs_check_method=pass_all
7243 beos*)
7244 lt_cv_deplibs_check_method=pass_all
7247 bsdi[45]*)
7248 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7249 lt_cv_file_magic_cmd='/usr/bin/file -L'
7250 lt_cv_file_magic_test_file=/shlib/libc.so
7253 cygwin*)
7254 # func_win32_libid is a shell function defined in ltmain.sh
7255 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7256 lt_cv_file_magic_cmd='func_win32_libid'
7259 mingw* | pw32*)
7260 # Base MSYS/MinGW do not provide the 'file' command needed by
7261 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7262 # unless we find 'file', for example because we are cross-compiling.
7263 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7264 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7265 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7266 lt_cv_file_magic_cmd='func_win32_libid'
7267 else
7268 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7269 lt_cv_file_magic_cmd='$OBJDUMP -f'
7273 cegcc*)
7274 # use the weaker test based on 'objdump'. See mingw*.
7275 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7276 lt_cv_file_magic_cmd='$OBJDUMP -f'
7279 darwin* | rhapsody*)
7280 lt_cv_deplibs_check_method=pass_all
7283 freebsd* | dragonfly*)
7284 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7285 case $host_cpu in
7286 i*86 )
7287 # Not sure whether the presence of OpenBSD here was a mistake.
7288 # Let's accept both of them until this is cleared up.
7289 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7290 lt_cv_file_magic_cmd=/usr/bin/file
7291 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7293 esac
7294 else
7295 lt_cv_deplibs_check_method=pass_all
7299 gnu*)
7300 lt_cv_deplibs_check_method=pass_all
7303 haiku*)
7304 lt_cv_deplibs_check_method=pass_all
7307 hpux10.20* | hpux11*)
7308 lt_cv_file_magic_cmd=/usr/bin/file
7309 case $host_cpu in
7310 ia64*)
7311 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7312 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7314 hppa*64*)
7315 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]'
7316 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7319 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7320 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7322 esac
7325 interix[3-9]*)
7326 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7327 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7330 irix5* | irix6* | nonstopux*)
7331 case $LD in
7332 *-32|*"-32 ") libmagic=32-bit;;
7333 *-n32|*"-n32 ") libmagic=N32;;
7334 *-64|*"-64 ") libmagic=64-bit;;
7335 *) libmagic=never-match;;
7336 esac
7337 lt_cv_deplibs_check_method=pass_all
7340 # This must be Linux ELF.
7341 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
7342 lt_cv_deplibs_check_method=pass_all
7345 netbsd*)
7346 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7347 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7348 else
7349 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7353 newos6*)
7354 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7355 lt_cv_file_magic_cmd=/usr/bin/file
7356 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7359 *nto* | *qnx*)
7360 lt_cv_deplibs_check_method=pass_all
7363 openbsd*)
7364 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7365 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7366 else
7367 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7371 osf3* | osf4* | osf5*)
7372 lt_cv_deplibs_check_method=pass_all
7375 rdos*)
7376 lt_cv_deplibs_check_method=pass_all
7379 solaris*)
7380 lt_cv_deplibs_check_method=pass_all
7383 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7384 lt_cv_deplibs_check_method=pass_all
7387 sysv4 | sysv4.3*)
7388 case $host_vendor in
7389 motorola)
7390 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]'
7391 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7393 ncr)
7394 lt_cv_deplibs_check_method=pass_all
7396 sequent)
7397 lt_cv_file_magic_cmd='/bin/file'
7398 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7400 sni)
7401 lt_cv_file_magic_cmd='/bin/file'
7402 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7403 lt_cv_file_magic_test_file=/lib/libc.so
7405 siemens)
7406 lt_cv_deplibs_check_method=pass_all
7409 lt_cv_deplibs_check_method=pass_all
7411 esac
7414 tpf*)
7415 lt_cv_deplibs_check_method=pass_all
7417 vxworks*)
7418 # Assume VxWorks cross toolchains are built on Linux, possibly
7419 # as canadian for Windows hosts.
7420 lt_cv_deplibs_check_method=pass_all
7422 esac
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7426 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7427 file_magic_cmd=$lt_cv_file_magic_cmd
7428 deplibs_check_method=$lt_cv_deplibs_check_method
7429 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7442 plugin_option=
7443 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
7444 for plugin in $plugin_names; do
7445 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
7446 if test x$plugin_so = x$plugin; then
7447 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
7449 if test x$plugin_so != x$plugin; then
7450 plugin_option="--plugin $plugin_so"
7451 break
7453 done
7455 if test -n "$ac_tool_prefix"; then
7456 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7457 set dummy ${ac_tool_prefix}ar; ac_word=$2
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7459 $as_echo_n "checking for $ac_word... " >&6; }
7460 if ${ac_cv_prog_AR+:} false; then :
7461 $as_echo_n "(cached) " >&6
7462 else
7463 if test -n "$AR"; then
7464 ac_cv_prog_AR="$AR" # Let the user override the test.
7465 else
7466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7467 for as_dir in $PATH
7469 IFS=$as_save_IFS
7470 test -z "$as_dir" && as_dir=.
7471 for ac_exec_ext in '' $ac_executable_extensions; do
7472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7473 ac_cv_prog_AR="${ac_tool_prefix}ar"
7474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7475 break 2
7477 done
7478 done
7479 IFS=$as_save_IFS
7483 AR=$ac_cv_prog_AR
7484 if test -n "$AR"; then
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7486 $as_echo "$AR" >&6; }
7487 else
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7489 $as_echo "no" >&6; }
7494 if test -z "$ac_cv_prog_AR"; then
7495 ac_ct_AR=$AR
7496 # Extract the first word of "ar", so it can be a program name with args.
7497 set dummy ar; ac_word=$2
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7499 $as_echo_n "checking for $ac_word... " >&6; }
7500 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7501 $as_echo_n "(cached) " >&6
7502 else
7503 if test -n "$ac_ct_AR"; then
7504 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7505 else
7506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7507 for as_dir in $PATH
7509 IFS=$as_save_IFS
7510 test -z "$as_dir" && as_dir=.
7511 for ac_exec_ext in '' $ac_executable_extensions; do
7512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7513 ac_cv_prog_ac_ct_AR="ar"
7514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7515 break 2
7517 done
7518 done
7519 IFS=$as_save_IFS
7523 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7524 if test -n "$ac_ct_AR"; then
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7526 $as_echo "$ac_ct_AR" >&6; }
7527 else
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7529 $as_echo "no" >&6; }
7532 if test "x$ac_ct_AR" = x; then
7533 AR="false"
7534 else
7535 case $cross_compiling:$ac_tool_warned in
7536 yes:)
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7538 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7539 ac_tool_warned=yes ;;
7540 esac
7541 AR=$ac_ct_AR
7543 else
7544 AR="$ac_cv_prog_AR"
7547 test -z "$AR" && AR=ar
7548 if test -n "$plugin_option"; then
7549 if $AR --help 2>&1 | grep -q "\--plugin"; then
7550 touch conftest.c
7551 $AR $plugin_option rc conftest.a conftest.c
7552 if test "$?" != 0; then
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
7554 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
7555 else
7556 AR="$AR $plugin_option"
7558 rm -f conftest.*
7561 test -z "$AR_FLAGS" && AR_FLAGS=cru
7573 if test -n "$ac_tool_prefix"; then
7574 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7575 set dummy ${ac_tool_prefix}strip; ac_word=$2
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7577 $as_echo_n "checking for $ac_word... " >&6; }
7578 if ${ac_cv_prog_STRIP+:} false; then :
7579 $as_echo_n "(cached) " >&6
7580 else
7581 if test -n "$STRIP"; then
7582 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7583 else
7584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7585 for as_dir in $PATH
7587 IFS=$as_save_IFS
7588 test -z "$as_dir" && as_dir=.
7589 for ac_exec_ext in '' $ac_executable_extensions; do
7590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7591 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7593 break 2
7595 done
7596 done
7597 IFS=$as_save_IFS
7601 STRIP=$ac_cv_prog_STRIP
7602 if test -n "$STRIP"; then
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7604 $as_echo "$STRIP" >&6; }
7605 else
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7607 $as_echo "no" >&6; }
7612 if test -z "$ac_cv_prog_STRIP"; then
7613 ac_ct_STRIP=$STRIP
7614 # Extract the first word of "strip", so it can be a program name with args.
7615 set dummy strip; ac_word=$2
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7617 $as_echo_n "checking for $ac_word... " >&6; }
7618 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7619 $as_echo_n "(cached) " >&6
7620 else
7621 if test -n "$ac_ct_STRIP"; then
7622 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7623 else
7624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7625 for as_dir in $PATH
7627 IFS=$as_save_IFS
7628 test -z "$as_dir" && as_dir=.
7629 for ac_exec_ext in '' $ac_executable_extensions; do
7630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7631 ac_cv_prog_ac_ct_STRIP="strip"
7632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7633 break 2
7635 done
7636 done
7637 IFS=$as_save_IFS
7641 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7642 if test -n "$ac_ct_STRIP"; then
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7644 $as_echo "$ac_ct_STRIP" >&6; }
7645 else
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7647 $as_echo "no" >&6; }
7650 if test "x$ac_ct_STRIP" = x; then
7651 STRIP=":"
7652 else
7653 case $cross_compiling:$ac_tool_warned in
7654 yes:)
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7656 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7657 ac_tool_warned=yes ;;
7658 esac
7659 STRIP=$ac_ct_STRIP
7661 else
7662 STRIP="$ac_cv_prog_STRIP"
7665 test -z "$STRIP" && STRIP=:
7672 if test -n "$ac_tool_prefix"; then
7673 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7674 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7676 $as_echo_n "checking for $ac_word... " >&6; }
7677 if ${ac_cv_prog_RANLIB+:} false; then :
7678 $as_echo_n "(cached) " >&6
7679 else
7680 if test -n "$RANLIB"; then
7681 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7682 else
7683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7684 for as_dir in $PATH
7686 IFS=$as_save_IFS
7687 test -z "$as_dir" && as_dir=.
7688 for ac_exec_ext in '' $ac_executable_extensions; do
7689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7690 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7692 break 2
7694 done
7695 done
7696 IFS=$as_save_IFS
7700 RANLIB=$ac_cv_prog_RANLIB
7701 if test -n "$RANLIB"; then
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7703 $as_echo "$RANLIB" >&6; }
7704 else
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7706 $as_echo "no" >&6; }
7711 if test -z "$ac_cv_prog_RANLIB"; then
7712 ac_ct_RANLIB=$RANLIB
7713 # Extract the first word of "ranlib", so it can be a program name with args.
7714 set dummy ranlib; ac_word=$2
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7716 $as_echo_n "checking for $ac_word... " >&6; }
7717 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7718 $as_echo_n "(cached) " >&6
7719 else
7720 if test -n "$ac_ct_RANLIB"; then
7721 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7722 else
7723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7724 for as_dir in $PATH
7726 IFS=$as_save_IFS
7727 test -z "$as_dir" && as_dir=.
7728 for ac_exec_ext in '' $ac_executable_extensions; do
7729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7730 ac_cv_prog_ac_ct_RANLIB="ranlib"
7731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7732 break 2
7734 done
7735 done
7736 IFS=$as_save_IFS
7740 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7741 if test -n "$ac_ct_RANLIB"; then
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7743 $as_echo "$ac_ct_RANLIB" >&6; }
7744 else
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7746 $as_echo "no" >&6; }
7749 if test "x$ac_ct_RANLIB" = x; then
7750 RANLIB=":"
7751 else
7752 case $cross_compiling:$ac_tool_warned in
7753 yes:)
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7755 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7756 ac_tool_warned=yes ;;
7757 esac
7758 RANLIB=$ac_ct_RANLIB
7760 else
7761 RANLIB="$ac_cv_prog_RANLIB"
7764 test -z "$RANLIB" && RANLIB=:
7765 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
7766 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
7767 RANLIB="$RANLIB $plugin_option"
7776 # Determine commands to create old-style static archives.
7777 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7778 old_postinstall_cmds='chmod 644 $oldlib'
7779 old_postuninstall_cmds=
7781 if test -n "$RANLIB"; then
7782 case $host_os in
7783 openbsd*)
7784 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7787 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7789 esac
7790 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7793 case $host_os in
7794 darwin*)
7795 lock_old_archive_extraction=yes ;;
7797 lock_old_archive_extraction=no ;;
7798 esac
7838 # If no C compiler was specified, use CC.
7839 LTCC=${LTCC-"$CC"}
7841 # If no C compiler flags were specified, use CFLAGS.
7842 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7844 # Allow CC to be a program name with arguments.
7845 compiler=$CC
7848 # Check for command to grab the raw symbol name followed by C symbol from nm.
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7850 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7851 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7852 $as_echo_n "(cached) " >&6
7853 else
7855 # These are sane defaults that work on at least a few old systems.
7856 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7858 # Character class describing NM global symbol codes.
7859 symcode='[BCDEGRST]'
7861 # Regexp to match symbols that can be accessed directly from C.
7862 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7864 # Define system-specific variables.
7865 case $host_os in
7866 aix*)
7867 symcode='[BCDT]'
7869 cygwin* | mingw* | pw32* | cegcc*)
7870 symcode='[ABCDGISTW]'
7872 hpux*)
7873 if test "$host_cpu" = ia64; then
7874 symcode='[ABCDEGRST]'
7877 irix* | nonstopux*)
7878 symcode='[BCDEGRST]'
7880 osf*)
7881 symcode='[BCDEGQRST]'
7883 solaris*)
7884 symcode='[BCDRT]'
7886 sco3.2v5*)
7887 symcode='[DT]'
7889 sysv4.2uw2*)
7890 symcode='[DT]'
7892 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7893 symcode='[ABDT]'
7895 sysv4)
7896 symcode='[DFNSTU]'
7898 esac
7900 # If we're using GNU nm, then use its standard symbol codes.
7901 case `$NM -V 2>&1` in
7902 *GNU* | *'with BFD'*)
7903 symcode='[ABCDGIRSTW]' ;;
7904 esac
7906 # Transform an extracted symbol line into a proper C declaration.
7907 # Some systems (esp. on ia64) link data and code symbols differently,
7908 # so use this general approach.
7909 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7911 # Transform an extracted symbol line into symbol name and symbol address
7912 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7913 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'"
7915 # Handle CRLF in mingw tool chain
7916 opt_cr=
7917 case $build_os in
7918 mingw*)
7919 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7921 esac
7923 # Try without a prefix underscore, then with it.
7924 for ac_symprfx in "" "_"; do
7926 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7927 symxfrm="\\1 $ac_symprfx\\2 \\2"
7929 # Write the raw and C identifiers.
7930 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7931 # Fake it for dumpbin and say T for any non-static function
7932 # and D for any global variable.
7933 # Also find C++ and __fastcall symbols from MSVC++,
7934 # which start with @ or ?.
7935 lt_cv_sys_global_symbol_pipe="$AWK '"\
7936 " {last_section=section; section=\$ 3};"\
7937 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7938 " \$ 0!~/External *\|/{next};"\
7939 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7940 " {if(hide[section]) next};"\
7941 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7942 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7943 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7944 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7945 " ' prfx=^$ac_symprfx"
7946 else
7947 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7950 # Check to see that the pipe works correctly.
7951 pipe_works=no
7953 rm -f conftest*
7954 cat > conftest.$ac_ext <<_LT_EOF
7955 #ifdef __cplusplus
7956 extern "C" {
7957 #endif
7958 char nm_test_var;
7959 void nm_test_func(void);
7960 void nm_test_func(void){}
7961 #ifdef __cplusplus
7963 #endif
7964 int main(){nm_test_var='a';nm_test_func();return(0);}
7965 _LT_EOF
7967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7968 (eval $ac_compile) 2>&5
7969 ac_status=$?
7970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7971 test $ac_status = 0; }; then
7972 # Now try to grab the symbols.
7973 nlist=conftest.nm
7974 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7975 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7976 ac_status=$?
7977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7978 test $ac_status = 0; } && test -s "$nlist"; then
7979 # Try sorting and uniquifying the output.
7980 if sort "$nlist" | uniq > "$nlist"T; then
7981 mv -f "$nlist"T "$nlist"
7982 else
7983 rm -f "$nlist"T
7986 # Make sure that we snagged all the symbols we need.
7987 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7988 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7989 cat <<_LT_EOF > conftest.$ac_ext
7990 #ifdef __cplusplus
7991 extern "C" {
7992 #endif
7994 _LT_EOF
7995 # Now generate the symbol file.
7996 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7998 cat <<_LT_EOF >> conftest.$ac_ext
8000 /* The mapping between symbol names and symbols. */
8001 const struct {
8002 const char *name;
8003 void *address;
8005 lt__PROGRAM__LTX_preloaded_symbols[] =
8007 { "@PROGRAM@", (void *) 0 },
8008 _LT_EOF
8009 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8010 cat <<\_LT_EOF >> conftest.$ac_ext
8011 {0, (void *) 0}
8014 /* This works around a problem in FreeBSD linker */
8015 #ifdef FREEBSD_WORKAROUND
8016 static const void *lt_preloaded_setup() {
8017 return lt__PROGRAM__LTX_preloaded_symbols;
8019 #endif
8021 #ifdef __cplusplus
8023 #endif
8024 _LT_EOF
8025 # Now try linking the two files.
8026 mv conftest.$ac_objext conftstm.$ac_objext
8027 lt_save_LIBS="$LIBS"
8028 lt_save_CFLAGS="$CFLAGS"
8029 LIBS="conftstm.$ac_objext"
8030 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8031 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8032 (eval $ac_link) 2>&5
8033 ac_status=$?
8034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8035 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8036 pipe_works=yes
8038 LIBS="$lt_save_LIBS"
8039 CFLAGS="$lt_save_CFLAGS"
8040 else
8041 echo "cannot find nm_test_func in $nlist" >&5
8043 else
8044 echo "cannot find nm_test_var in $nlist" >&5
8046 else
8047 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8049 else
8050 echo "$progname: failed program was:" >&5
8051 cat conftest.$ac_ext >&5
8053 rm -rf conftest* conftst*
8055 # Do not use the global_symbol_pipe unless it works.
8056 if test "$pipe_works" = yes; then
8057 break
8058 else
8059 lt_cv_sys_global_symbol_pipe=
8061 done
8065 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8066 lt_cv_sys_global_symbol_to_cdecl=
8068 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8070 $as_echo "failed" >&6; }
8071 else
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8073 $as_echo "ok" >&6; }
8097 # Check whether --enable-libtool-lock was given.
8098 if test "${enable_libtool_lock+set}" = set; then :
8099 enableval=$enable_libtool_lock;
8102 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8104 # Some flags need to be propagated to the compiler or linker for good
8105 # libtool support.
8106 case $host in
8107 ia64-*-hpux*)
8108 # Find out which ABI we are using.
8109 echo 'int i;' > conftest.$ac_ext
8110 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8111 (eval $ac_compile) 2>&5
8112 ac_status=$?
8113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8114 test $ac_status = 0; }; then
8115 case `/usr/bin/file conftest.$ac_objext` in
8116 *ELF-32*)
8117 HPUX_IA64_MODE="32"
8119 *ELF-64*)
8120 HPUX_IA64_MODE="64"
8122 esac
8124 rm -rf conftest*
8126 *-*-irix6*)
8127 # Find out which ABI we are using.
8128 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8129 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8130 (eval $ac_compile) 2>&5
8131 ac_status=$?
8132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8133 test $ac_status = 0; }; then
8134 if test "$lt_cv_prog_gnu_ld" = yes; then
8135 case `/usr/bin/file conftest.$ac_objext` in
8136 *32-bit*)
8137 LD="${LD-ld} -melf32bsmip"
8139 *N32*)
8140 LD="${LD-ld} -melf32bmipn32"
8142 *64-bit*)
8143 LD="${LD-ld} -melf64bmip"
8145 esac
8146 else
8147 case `/usr/bin/file conftest.$ac_objext` in
8148 *32-bit*)
8149 LD="${LD-ld} -32"
8151 *N32*)
8152 LD="${LD-ld} -n32"
8154 *64-bit*)
8155 LD="${LD-ld} -64"
8157 esac
8160 rm -rf conftest*
8163 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8164 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8165 # Find out which ABI we are using.
8166 echo 'int i;' > conftest.$ac_ext
8167 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8168 (eval $ac_compile) 2>&5
8169 ac_status=$?
8170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8171 test $ac_status = 0; }; then
8172 case `/usr/bin/file conftest.o` in
8173 *32-bit*)
8174 case $host in
8175 x86_64-*kfreebsd*-gnu)
8176 LD="${LD-ld} -m elf_i386_fbsd"
8178 x86_64-*linux*)
8179 case `/usr/bin/file conftest.o` in
8180 *x86-64*)
8181 LD="${LD-ld} -m elf32_x86_64"
8184 LD="${LD-ld} -m elf_i386"
8186 esac
8188 powerpc64le-*linux*)
8189 LD="${LD-ld} -m elf32lppclinux"
8191 powerpc64-*linux*)
8192 LD="${LD-ld} -m elf32ppclinux"
8194 s390x-*linux*)
8195 LD="${LD-ld} -m elf_s390"
8197 sparc64-*linux*)
8198 LD="${LD-ld} -m elf32_sparc"
8200 esac
8202 *64-bit*)
8203 case $host in
8204 x86_64-*kfreebsd*-gnu)
8205 LD="${LD-ld} -m elf_x86_64_fbsd"
8207 x86_64-*linux*)
8208 LD="${LD-ld} -m elf_x86_64"
8210 powerpcle-*linux*)
8211 LD="${LD-ld} -m elf64lppc"
8213 powerpc-*linux*)
8214 LD="${LD-ld} -m elf64ppc"
8216 s390*-*linux*|s390*-*tpf*)
8217 LD="${LD-ld} -m elf64_s390"
8219 sparc*-*linux*)
8220 LD="${LD-ld} -m elf64_sparc"
8222 esac
8224 esac
8226 rm -rf conftest*
8229 *-*-sco3.2v5*)
8230 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8231 SAVE_CFLAGS="$CFLAGS"
8232 CFLAGS="$CFLAGS -belf"
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8234 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8235 if ${lt_cv_cc_needs_belf+:} false; then :
8236 $as_echo_n "(cached) " >&6
8237 else
8238 ac_ext=c
8239 ac_cpp='$CPP $CPPFLAGS'
8240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8245 /* end confdefs.h. */
8248 main ()
8252 return 0;
8254 _ACEOF
8255 if ac_fn_c_try_link "$LINENO"; then :
8256 lt_cv_cc_needs_belf=yes
8257 else
8258 lt_cv_cc_needs_belf=no
8260 rm -f core conftest.err conftest.$ac_objext \
8261 conftest$ac_exeext conftest.$ac_ext
8262 ac_ext=c
8263 ac_cpp='$CPP $CPPFLAGS'
8264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8270 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8271 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8272 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8273 CFLAGS="$SAVE_CFLAGS"
8276 sparc*-*solaris*)
8277 # Find out which ABI we are using.
8278 echo 'int i;' > conftest.$ac_ext
8279 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8280 (eval $ac_compile) 2>&5
8281 ac_status=$?
8282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8283 test $ac_status = 0; }; then
8284 case `/usr/bin/file conftest.o` in
8285 *64-bit*)
8286 case $lt_cv_prog_gnu_ld in
8287 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8289 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8290 LD="${LD-ld} -64"
8293 esac
8295 esac
8297 rm -rf conftest*
8299 esac
8301 need_locks="$enable_libtool_lock"
8304 case $host_os in
8305 rhapsody* | darwin*)
8306 if test -n "$ac_tool_prefix"; then
8307 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8308 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8310 $as_echo_n "checking for $ac_word... " >&6; }
8311 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8312 $as_echo_n "(cached) " >&6
8313 else
8314 if test -n "$DSYMUTIL"; then
8315 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8316 else
8317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8318 for as_dir in $PATH
8320 IFS=$as_save_IFS
8321 test -z "$as_dir" && as_dir=.
8322 for ac_exec_ext in '' $ac_executable_extensions; do
8323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8324 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8326 break 2
8328 done
8329 done
8330 IFS=$as_save_IFS
8334 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8335 if test -n "$DSYMUTIL"; then
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8337 $as_echo "$DSYMUTIL" >&6; }
8338 else
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8340 $as_echo "no" >&6; }
8345 if test -z "$ac_cv_prog_DSYMUTIL"; then
8346 ac_ct_DSYMUTIL=$DSYMUTIL
8347 # Extract the first word of "dsymutil", so it can be a program name with args.
8348 set dummy dsymutil; ac_word=$2
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8350 $as_echo_n "checking for $ac_word... " >&6; }
8351 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8352 $as_echo_n "(cached) " >&6
8353 else
8354 if test -n "$ac_ct_DSYMUTIL"; then
8355 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8356 else
8357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8358 for as_dir in $PATH
8360 IFS=$as_save_IFS
8361 test -z "$as_dir" && as_dir=.
8362 for ac_exec_ext in '' $ac_executable_extensions; do
8363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8364 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8366 break 2
8368 done
8369 done
8370 IFS=$as_save_IFS
8374 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8375 if test -n "$ac_ct_DSYMUTIL"; then
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8377 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8378 else
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8380 $as_echo "no" >&6; }
8383 if test "x$ac_ct_DSYMUTIL" = x; then
8384 DSYMUTIL=":"
8385 else
8386 case $cross_compiling:$ac_tool_warned in
8387 yes:)
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8389 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8390 ac_tool_warned=yes ;;
8391 esac
8392 DSYMUTIL=$ac_ct_DSYMUTIL
8394 else
8395 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8398 if test -n "$ac_tool_prefix"; then
8399 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8400 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8402 $as_echo_n "checking for $ac_word... " >&6; }
8403 if ${ac_cv_prog_NMEDIT+:} false; then :
8404 $as_echo_n "(cached) " >&6
8405 else
8406 if test -n "$NMEDIT"; then
8407 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8408 else
8409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8410 for as_dir in $PATH
8412 IFS=$as_save_IFS
8413 test -z "$as_dir" && as_dir=.
8414 for ac_exec_ext in '' $ac_executable_extensions; do
8415 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8416 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8418 break 2
8420 done
8421 done
8422 IFS=$as_save_IFS
8426 NMEDIT=$ac_cv_prog_NMEDIT
8427 if test -n "$NMEDIT"; then
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8429 $as_echo "$NMEDIT" >&6; }
8430 else
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8432 $as_echo "no" >&6; }
8437 if test -z "$ac_cv_prog_NMEDIT"; then
8438 ac_ct_NMEDIT=$NMEDIT
8439 # Extract the first word of "nmedit", so it can be a program name with args.
8440 set dummy nmedit; ac_word=$2
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8442 $as_echo_n "checking for $ac_word... " >&6; }
8443 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8444 $as_echo_n "(cached) " >&6
8445 else
8446 if test -n "$ac_ct_NMEDIT"; then
8447 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8448 else
8449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8450 for as_dir in $PATH
8452 IFS=$as_save_IFS
8453 test -z "$as_dir" && as_dir=.
8454 for ac_exec_ext in '' $ac_executable_extensions; do
8455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8456 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8458 break 2
8460 done
8461 done
8462 IFS=$as_save_IFS
8466 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8467 if test -n "$ac_ct_NMEDIT"; then
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8469 $as_echo "$ac_ct_NMEDIT" >&6; }
8470 else
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8472 $as_echo "no" >&6; }
8475 if test "x$ac_ct_NMEDIT" = x; then
8476 NMEDIT=":"
8477 else
8478 case $cross_compiling:$ac_tool_warned in
8479 yes:)
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8481 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8482 ac_tool_warned=yes ;;
8483 esac
8484 NMEDIT=$ac_ct_NMEDIT
8486 else
8487 NMEDIT="$ac_cv_prog_NMEDIT"
8490 if test -n "$ac_tool_prefix"; then
8491 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8492 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8494 $as_echo_n "checking for $ac_word... " >&6; }
8495 if ${ac_cv_prog_LIPO+:} false; then :
8496 $as_echo_n "(cached) " >&6
8497 else
8498 if test -n "$LIPO"; then
8499 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8500 else
8501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8502 for as_dir in $PATH
8504 IFS=$as_save_IFS
8505 test -z "$as_dir" && as_dir=.
8506 for ac_exec_ext in '' $ac_executable_extensions; do
8507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8508 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8510 break 2
8512 done
8513 done
8514 IFS=$as_save_IFS
8518 LIPO=$ac_cv_prog_LIPO
8519 if test -n "$LIPO"; then
8520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8521 $as_echo "$LIPO" >&6; }
8522 else
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8524 $as_echo "no" >&6; }
8529 if test -z "$ac_cv_prog_LIPO"; then
8530 ac_ct_LIPO=$LIPO
8531 # Extract the first word of "lipo", so it can be a program name with args.
8532 set dummy lipo; ac_word=$2
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8534 $as_echo_n "checking for $ac_word... " >&6; }
8535 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8536 $as_echo_n "(cached) " >&6
8537 else
8538 if test -n "$ac_ct_LIPO"; then
8539 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8540 else
8541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8542 for as_dir in $PATH
8544 IFS=$as_save_IFS
8545 test -z "$as_dir" && as_dir=.
8546 for ac_exec_ext in '' $ac_executable_extensions; do
8547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8548 ac_cv_prog_ac_ct_LIPO="lipo"
8549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8550 break 2
8552 done
8553 done
8554 IFS=$as_save_IFS
8558 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8559 if test -n "$ac_ct_LIPO"; then
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8561 $as_echo "$ac_ct_LIPO" >&6; }
8562 else
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8564 $as_echo "no" >&6; }
8567 if test "x$ac_ct_LIPO" = x; then
8568 LIPO=":"
8569 else
8570 case $cross_compiling:$ac_tool_warned in
8571 yes:)
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8573 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8574 ac_tool_warned=yes ;;
8575 esac
8576 LIPO=$ac_ct_LIPO
8578 else
8579 LIPO="$ac_cv_prog_LIPO"
8582 if test -n "$ac_tool_prefix"; then
8583 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8584 set dummy ${ac_tool_prefix}otool; ac_word=$2
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8586 $as_echo_n "checking for $ac_word... " >&6; }
8587 if ${ac_cv_prog_OTOOL+:} false; then :
8588 $as_echo_n "(cached) " >&6
8589 else
8590 if test -n "$OTOOL"; then
8591 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8592 else
8593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8594 for as_dir in $PATH
8596 IFS=$as_save_IFS
8597 test -z "$as_dir" && as_dir=.
8598 for ac_exec_ext in '' $ac_executable_extensions; do
8599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8600 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8602 break 2
8604 done
8605 done
8606 IFS=$as_save_IFS
8610 OTOOL=$ac_cv_prog_OTOOL
8611 if test -n "$OTOOL"; then
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8613 $as_echo "$OTOOL" >&6; }
8614 else
8615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8616 $as_echo "no" >&6; }
8621 if test -z "$ac_cv_prog_OTOOL"; then
8622 ac_ct_OTOOL=$OTOOL
8623 # Extract the first word of "otool", so it can be a program name with args.
8624 set dummy otool; ac_word=$2
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8626 $as_echo_n "checking for $ac_word... " >&6; }
8627 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8628 $as_echo_n "(cached) " >&6
8629 else
8630 if test -n "$ac_ct_OTOOL"; then
8631 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8632 else
8633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8634 for as_dir in $PATH
8636 IFS=$as_save_IFS
8637 test -z "$as_dir" && as_dir=.
8638 for ac_exec_ext in '' $ac_executable_extensions; do
8639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8640 ac_cv_prog_ac_ct_OTOOL="otool"
8641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8642 break 2
8644 done
8645 done
8646 IFS=$as_save_IFS
8650 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8651 if test -n "$ac_ct_OTOOL"; then
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8653 $as_echo "$ac_ct_OTOOL" >&6; }
8654 else
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8656 $as_echo "no" >&6; }
8659 if test "x$ac_ct_OTOOL" = x; then
8660 OTOOL=":"
8661 else
8662 case $cross_compiling:$ac_tool_warned in
8663 yes:)
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8665 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8666 ac_tool_warned=yes ;;
8667 esac
8668 OTOOL=$ac_ct_OTOOL
8670 else
8671 OTOOL="$ac_cv_prog_OTOOL"
8674 if test -n "$ac_tool_prefix"; then
8675 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8676 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8678 $as_echo_n "checking for $ac_word... " >&6; }
8679 if ${ac_cv_prog_OTOOL64+:} false; then :
8680 $as_echo_n "(cached) " >&6
8681 else
8682 if test -n "$OTOOL64"; then
8683 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8684 else
8685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8686 for as_dir in $PATH
8688 IFS=$as_save_IFS
8689 test -z "$as_dir" && as_dir=.
8690 for ac_exec_ext in '' $ac_executable_extensions; do
8691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8692 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8694 break 2
8696 done
8697 done
8698 IFS=$as_save_IFS
8702 OTOOL64=$ac_cv_prog_OTOOL64
8703 if test -n "$OTOOL64"; then
8704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8705 $as_echo "$OTOOL64" >&6; }
8706 else
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8708 $as_echo "no" >&6; }
8713 if test -z "$ac_cv_prog_OTOOL64"; then
8714 ac_ct_OTOOL64=$OTOOL64
8715 # Extract the first word of "otool64", so it can be a program name with args.
8716 set dummy otool64; ac_word=$2
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8718 $as_echo_n "checking for $ac_word... " >&6; }
8719 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8720 $as_echo_n "(cached) " >&6
8721 else
8722 if test -n "$ac_ct_OTOOL64"; then
8723 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8724 else
8725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8726 for as_dir in $PATH
8728 IFS=$as_save_IFS
8729 test -z "$as_dir" && as_dir=.
8730 for ac_exec_ext in '' $ac_executable_extensions; do
8731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8732 ac_cv_prog_ac_ct_OTOOL64="otool64"
8733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8734 break 2
8736 done
8737 done
8738 IFS=$as_save_IFS
8742 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8743 if test -n "$ac_ct_OTOOL64"; then
8744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8745 $as_echo "$ac_ct_OTOOL64" >&6; }
8746 else
8747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8748 $as_echo "no" >&6; }
8751 if test "x$ac_ct_OTOOL64" = x; then
8752 OTOOL64=":"
8753 else
8754 case $cross_compiling:$ac_tool_warned in
8755 yes:)
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8757 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8758 ac_tool_warned=yes ;;
8759 esac
8760 OTOOL64=$ac_ct_OTOOL64
8762 else
8763 OTOOL64="$ac_cv_prog_OTOOL64"
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8793 $as_echo_n "checking for -single_module linker flag... " >&6; }
8794 if ${lt_cv_apple_cc_single_mod+:} false; then :
8795 $as_echo_n "(cached) " >&6
8796 else
8797 lt_cv_apple_cc_single_mod=no
8798 if test -z "${LT_MULTI_MODULE}"; then
8799 # By default we will add the -single_module flag. You can override
8800 # by either setting the environment variable LT_MULTI_MODULE
8801 # non-empty at configure time, or by adding -multi_module to the
8802 # link flags.
8803 rm -rf libconftest.dylib*
8804 echo "int foo(void){return 1;}" > conftest.c
8805 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8806 -dynamiclib -Wl,-single_module conftest.c" >&5
8807 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8808 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8809 _lt_result=$?
8810 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8811 lt_cv_apple_cc_single_mod=yes
8812 else
8813 cat conftest.err >&5
8815 rm -rf libconftest.dylib*
8816 rm -f conftest.*
8819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8820 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8822 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8823 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8824 $as_echo_n "(cached) " >&6
8825 else
8826 lt_cv_ld_exported_symbols_list=no
8827 save_LDFLAGS=$LDFLAGS
8828 echo "_main" > conftest.sym
8829 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8831 /* end confdefs.h. */
8834 main ()
8838 return 0;
8840 _ACEOF
8841 if ac_fn_c_try_link "$LINENO"; then :
8842 lt_cv_ld_exported_symbols_list=yes
8843 else
8844 lt_cv_ld_exported_symbols_list=no
8846 rm -f core conftest.err conftest.$ac_objext \
8847 conftest$ac_exeext conftest.$ac_ext
8848 LDFLAGS="$save_LDFLAGS"
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8852 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8854 $as_echo_n "checking for -force_load linker flag... " >&6; }
8855 if ${lt_cv_ld_force_load+:} false; then :
8856 $as_echo_n "(cached) " >&6
8857 else
8858 lt_cv_ld_force_load=no
8859 cat > conftest.c << _LT_EOF
8860 int forced_loaded() { return 2;}
8861 _LT_EOF
8862 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8863 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8864 echo "$AR cru libconftest.a conftest.o" >&5
8865 $AR cru libconftest.a conftest.o 2>&5
8866 cat > conftest.c << _LT_EOF
8867 int main() { return 0;}
8868 _LT_EOF
8869 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8870 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8871 _lt_result=$?
8872 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8873 lt_cv_ld_force_load=yes
8874 else
8875 cat conftest.err >&5
8877 rm -f conftest.err libconftest.a conftest conftest.c
8878 rm -rf conftest.dSYM
8881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8882 $as_echo "$lt_cv_ld_force_load" >&6; }
8883 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
8884 # build without first building modern cctools / linker.
8885 case $host_cpu-$host_os in
8886 *-rhapsody* | *-darwin1.[012])
8887 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8888 *-darwin1.*)
8889 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8890 *-darwin*)
8891 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
8892 # deployment target is forced to an earlier version.
8893 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
8894 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
8896 10.[012][,.]*)
8897 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8901 esac
8903 esac
8904 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8905 _lt_dar_single_mod='$single_module'
8907 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8908 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8909 else
8910 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8912 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8913 _lt_dsymutil='~$DSYMUTIL $lib || :'
8914 else
8915 _lt_dsymutil=
8918 esac
8920 for ac_header in dlfcn.h
8921 do :
8922 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8924 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8925 cat >>confdefs.h <<_ACEOF
8926 #define HAVE_DLFCN_H 1
8927 _ACEOF
8931 done
8938 # Set options
8943 enable_win32_dll=no
8946 # Check whether --enable-shared was given.
8947 if test "${enable_shared+set}" = set; then :
8948 enableval=$enable_shared; p=${PACKAGE-default}
8949 case $enableval in
8950 yes) enable_shared=yes ;;
8951 no) enable_shared=no ;;
8953 enable_shared=no
8954 # Look at the argument we got. We use all the common list separators.
8955 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8956 for pkg in $enableval; do
8957 IFS="$lt_save_ifs"
8958 if test "X$pkg" = "X$p"; then
8959 enable_shared=yes
8961 done
8962 IFS="$lt_save_ifs"
8964 esac
8965 else
8966 enable_shared=yes
8977 # Check whether --enable-static was given.
8978 if test "${enable_static+set}" = set; then :
8979 enableval=$enable_static; p=${PACKAGE-default}
8980 case $enableval in
8981 yes) enable_static=yes ;;
8982 no) enable_static=no ;;
8984 enable_static=no
8985 # Look at the argument we got. We use all the common list separators.
8986 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8987 for pkg in $enableval; do
8988 IFS="$lt_save_ifs"
8989 if test "X$pkg" = "X$p"; then
8990 enable_static=yes
8992 done
8993 IFS="$lt_save_ifs"
8995 esac
8996 else
8997 enable_static=yes
9009 # Check whether --with-pic was given.
9010 if test "${with_pic+set}" = set; then :
9011 withval=$with_pic; pic_mode="$withval"
9012 else
9013 pic_mode=default
9017 test -z "$pic_mode" && pic_mode=default
9025 # Check whether --enable-fast-install was given.
9026 if test "${enable_fast_install+set}" = set; then :
9027 enableval=$enable_fast_install; p=${PACKAGE-default}
9028 case $enableval in
9029 yes) enable_fast_install=yes ;;
9030 no) enable_fast_install=no ;;
9032 enable_fast_install=no
9033 # Look at the argument we got. We use all the common list separators.
9034 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9035 for pkg in $enableval; do
9036 IFS="$lt_save_ifs"
9037 if test "X$pkg" = "X$p"; then
9038 enable_fast_install=yes
9040 done
9041 IFS="$lt_save_ifs"
9043 esac
9044 else
9045 enable_fast_install=yes
9058 # This can be used to rebuild libtool when needed
9059 LIBTOOL_DEPS="$ltmain"
9061 # Always use our own libtool.
9062 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9089 test -z "$LN_S" && LN_S="ln -s"
9104 if test -n "${ZSH_VERSION+set}" ; then
9105 setopt NO_GLOB_SUBST
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9109 $as_echo_n "checking for objdir... " >&6; }
9110 if ${lt_cv_objdir+:} false; then :
9111 $as_echo_n "(cached) " >&6
9112 else
9113 rm -f .libs 2>/dev/null
9114 mkdir .libs 2>/dev/null
9115 if test -d .libs; then
9116 lt_cv_objdir=.libs
9117 else
9118 # MS-DOS does not allow filenames that begin with a dot.
9119 lt_cv_objdir=_libs
9121 rmdir .libs 2>/dev/null
9123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9124 $as_echo "$lt_cv_objdir" >&6; }
9125 objdir=$lt_cv_objdir
9131 cat >>confdefs.h <<_ACEOF
9132 #define LT_OBJDIR "$lt_cv_objdir/"
9133 _ACEOF
9138 case $host_os in
9139 aix3*)
9140 # AIX sometimes has problems with the GCC collect2 program. For some
9141 # reason, if we set the COLLECT_NAMES environment variable, the problems
9142 # vanish in a puff of smoke.
9143 if test "X${COLLECT_NAMES+set}" != Xset; then
9144 COLLECT_NAMES=
9145 export COLLECT_NAMES
9148 esac
9150 # Global variables:
9151 ofile=libtool
9152 can_build_shared=yes
9154 # All known linkers require a `.a' archive for static linking (except MSVC,
9155 # which needs '.lib').
9156 libext=a
9158 with_gnu_ld="$lt_cv_prog_gnu_ld"
9160 old_CC="$CC"
9161 old_CFLAGS="$CFLAGS"
9163 # Set sane defaults for various variables
9164 test -z "$CC" && CC=cc
9165 test -z "$LTCC" && LTCC=$CC
9166 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9167 test -z "$LD" && LD=ld
9168 test -z "$ac_objext" && ac_objext=o
9170 for cc_temp in $compiler""; do
9171 case $cc_temp in
9172 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9173 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9174 \-*) ;;
9175 *) break;;
9176 esac
9177 done
9178 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9181 # Only perform the check for file, if the check method requires it
9182 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9183 case $deplibs_check_method in
9184 file_magic*)
9185 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9187 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9188 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9189 $as_echo_n "(cached) " >&6
9190 else
9191 case $MAGIC_CMD in
9192 [\\/*] | ?:[\\/]*)
9193 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9196 lt_save_MAGIC_CMD="$MAGIC_CMD"
9197 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9198 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9199 for ac_dir in $ac_dummy; do
9200 IFS="$lt_save_ifs"
9201 test -z "$ac_dir" && ac_dir=.
9202 if test -f $ac_dir/${ac_tool_prefix}file; then
9203 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9204 if test -n "$file_magic_test_file"; then
9205 case $deplibs_check_method in
9206 "file_magic "*)
9207 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9208 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9209 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9210 $EGREP "$file_magic_regex" > /dev/null; then
9212 else
9213 cat <<_LT_EOF 1>&2
9215 *** Warning: the command libtool uses to detect shared libraries,
9216 *** $file_magic_cmd, produces output that libtool cannot recognize.
9217 *** The result is that libtool may fail to recognize shared libraries
9218 *** as such. This will affect the creation of libtool libraries that
9219 *** depend on shared libraries, but programs linked with such libtool
9220 *** libraries will work regardless of this problem. Nevertheless, you
9221 *** may want to report the problem to your system manager and/or to
9222 *** bug-libtool@gnu.org
9224 _LT_EOF
9225 fi ;;
9226 esac
9228 break
9230 done
9231 IFS="$lt_save_ifs"
9232 MAGIC_CMD="$lt_save_MAGIC_CMD"
9234 esac
9237 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9238 if test -n "$MAGIC_CMD"; then
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9240 $as_echo "$MAGIC_CMD" >&6; }
9241 else
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9243 $as_echo "no" >&6; }
9250 if test -z "$lt_cv_path_MAGIC_CMD"; then
9251 if test -n "$ac_tool_prefix"; then
9252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9253 $as_echo_n "checking for file... " >&6; }
9254 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9255 $as_echo_n "(cached) " >&6
9256 else
9257 case $MAGIC_CMD in
9258 [\\/*] | ?:[\\/]*)
9259 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9262 lt_save_MAGIC_CMD="$MAGIC_CMD"
9263 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9264 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9265 for ac_dir in $ac_dummy; do
9266 IFS="$lt_save_ifs"
9267 test -z "$ac_dir" && ac_dir=.
9268 if test -f $ac_dir/file; then
9269 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9270 if test -n "$file_magic_test_file"; then
9271 case $deplibs_check_method in
9272 "file_magic "*)
9273 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9274 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9275 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9276 $EGREP "$file_magic_regex" > /dev/null; then
9278 else
9279 cat <<_LT_EOF 1>&2
9281 *** Warning: the command libtool uses to detect shared libraries,
9282 *** $file_magic_cmd, produces output that libtool cannot recognize.
9283 *** The result is that libtool may fail to recognize shared libraries
9284 *** as such. This will affect the creation of libtool libraries that
9285 *** depend on shared libraries, but programs linked with such libtool
9286 *** libraries will work regardless of this problem. Nevertheless, you
9287 *** may want to report the problem to your system manager and/or to
9288 *** bug-libtool@gnu.org
9290 _LT_EOF
9291 fi ;;
9292 esac
9294 break
9296 done
9297 IFS="$lt_save_ifs"
9298 MAGIC_CMD="$lt_save_MAGIC_CMD"
9300 esac
9303 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9304 if test -n "$MAGIC_CMD"; then
9305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9306 $as_echo "$MAGIC_CMD" >&6; }
9307 else
9308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9309 $as_echo "no" >&6; }
9313 else
9314 MAGIC_CMD=:
9320 esac
9322 # Use C for the default configuration in the libtool script
9324 lt_save_CC="$CC"
9325 ac_ext=c
9326 ac_cpp='$CPP $CPPFLAGS'
9327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9332 # Source file extension for C test sources.
9333 ac_ext=c
9335 # Object file extension for compiled C test sources.
9336 objext=o
9337 objext=$objext
9339 # Code to be used in simple compile tests
9340 lt_simple_compile_test_code="int some_variable = 0;"
9342 # Code to be used in simple link tests
9343 lt_simple_link_test_code='int main(){return(0);}'
9351 # If no C compiler was specified, use CC.
9352 LTCC=${LTCC-"$CC"}
9354 # If no C compiler flags were specified, use CFLAGS.
9355 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9357 # Allow CC to be a program name with arguments.
9358 compiler=$CC
9360 # Save the default compiler, since it gets overwritten when the other
9361 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9362 compiler_DEFAULT=$CC
9364 # save warnings/boilerplate of simple test code
9365 ac_outfile=conftest.$ac_objext
9366 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9367 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9368 _lt_compiler_boilerplate=`cat conftest.err`
9369 $RM conftest*
9371 ac_outfile=conftest.$ac_objext
9372 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9373 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9374 _lt_linker_boilerplate=`cat conftest.err`
9375 $RM -r conftest*
9378 ## CAVEAT EMPTOR:
9379 ## There is no encapsulation within the following macros, do not change
9380 ## the running order or otherwise move them around unless you know exactly
9381 ## what you are doing...
9382 if test -n "$compiler"; then
9384 lt_prog_compiler_no_builtin_flag=
9386 if test "$GCC" = yes; then
9387 case $cc_basename in
9388 nvcc*)
9389 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9391 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9392 esac
9394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9395 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9396 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9397 $as_echo_n "(cached) " >&6
9398 else
9399 lt_cv_prog_compiler_rtti_exceptions=no
9400 ac_outfile=conftest.$ac_objext
9401 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9402 lt_compiler_flag="-fno-rtti -fno-exceptions"
9403 # Insert the option either (1) after the last *FLAGS variable, or
9404 # (2) before a word containing "conftest.", or (3) at the end.
9405 # Note that $ac_compile itself does not contain backslashes and begins
9406 # with a dollar sign (not a hyphen), so the echo should work correctly.
9407 # The option is referenced via a variable to avoid confusing sed.
9408 lt_compile=`echo "$ac_compile" | $SED \
9409 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9410 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9411 -e 's:$: $lt_compiler_flag:'`
9412 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9413 (eval "$lt_compile" 2>conftest.err)
9414 ac_status=$?
9415 cat conftest.err >&5
9416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9417 if (exit $ac_status) && test -s "$ac_outfile"; then
9418 # The compiler can only warn and ignore the option if not recognized
9419 # So say no if there are warnings other than the usual output.
9420 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9421 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9422 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9423 lt_cv_prog_compiler_rtti_exceptions=yes
9426 $RM conftest*
9429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9430 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9432 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9433 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9434 else
9445 lt_prog_compiler_wl=
9446 lt_prog_compiler_pic=
9447 lt_prog_compiler_static=
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9450 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9452 if test "$GCC" = yes; then
9453 lt_prog_compiler_wl='-Wl,'
9454 lt_prog_compiler_static='-static'
9456 case $host_os in
9457 aix*)
9458 # All AIX code is PIC.
9459 if test "$host_cpu" = ia64; then
9460 # AIX 5 now supports IA64 processor
9461 lt_prog_compiler_static='-Bstatic'
9463 lt_prog_compiler_pic='-fPIC'
9466 amigaos*)
9467 case $host_cpu in
9468 powerpc)
9469 # see comment about AmigaOS4 .so support
9470 lt_prog_compiler_pic='-fPIC'
9472 m68k)
9473 # FIXME: we need at least 68020 code to build shared libraries, but
9474 # adding the `-m68020' flag to GCC prevents building anything better,
9475 # like `-m68040'.
9476 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9478 esac
9481 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9482 # PIC is the default for these OSes.
9485 mingw* | cygwin* | pw32* | os2* | cegcc*)
9486 # This hack is so that the source file can tell whether it is being
9487 # built for inclusion in a dll (and should export symbols for example).
9488 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9489 # (--disable-auto-import) libraries
9490 lt_prog_compiler_pic='-DDLL_EXPORT'
9493 darwin* | rhapsody*)
9494 # PIC is the default on this platform
9495 # Common symbols not allowed in MH_DYLIB files
9496 lt_prog_compiler_pic='-fno-common'
9499 haiku*)
9500 # PIC is the default for Haiku.
9501 # The "-static" flag exists, but is broken.
9502 lt_prog_compiler_static=
9505 hpux*)
9506 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9507 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9508 # sets the default TLS model and affects inlining.
9509 case $host_cpu in
9510 hppa*64*)
9511 # +Z the default
9514 lt_prog_compiler_pic='-fPIC'
9516 esac
9519 interix[3-9]*)
9520 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9521 # Instead, we relocate shared libraries at runtime.
9524 msdosdjgpp*)
9525 # Just because we use GCC doesn't mean we suddenly get shared libraries
9526 # on systems that don't support them.
9527 lt_prog_compiler_can_build_shared=no
9528 enable_shared=no
9531 *nto* | *qnx*)
9532 # QNX uses GNU C++, but need to define -shared option too, otherwise
9533 # it will coredump.
9534 lt_prog_compiler_pic='-fPIC -shared'
9537 sysv4*MP*)
9538 if test -d /usr/nec; then
9539 lt_prog_compiler_pic=-Kconform_pic
9544 lt_prog_compiler_pic='-fPIC'
9546 esac
9548 case $cc_basename in
9549 nvcc*) # Cuda Compiler Driver 2.2
9550 lt_prog_compiler_wl='-Xlinker '
9551 lt_prog_compiler_pic='-Xcompiler -fPIC'
9553 esac
9554 else
9555 # PORTME Check for flag to pass linker flags through the system compiler.
9556 case $host_os in
9557 aix*)
9558 lt_prog_compiler_wl='-Wl,'
9559 if test "$host_cpu" = ia64; then
9560 # AIX 5 now supports IA64 processor
9561 lt_prog_compiler_static='-Bstatic'
9562 else
9563 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9567 mingw* | cygwin* | pw32* | os2* | cegcc*)
9568 # This hack is so that the source file can tell whether it is being
9569 # built for inclusion in a dll (and should export symbols for example).
9570 lt_prog_compiler_pic='-DDLL_EXPORT'
9573 hpux9* | hpux10* | hpux11*)
9574 lt_prog_compiler_wl='-Wl,'
9575 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9576 # not for PA HP-UX.
9577 case $host_cpu in
9578 hppa*64*|ia64*)
9579 # +Z the default
9582 lt_prog_compiler_pic='+Z'
9584 esac
9585 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9586 lt_prog_compiler_static='${wl}-a ${wl}archive'
9589 irix5* | irix6* | nonstopux*)
9590 lt_prog_compiler_wl='-Wl,'
9591 # PIC (with -KPIC) is the default.
9592 lt_prog_compiler_static='-non_shared'
9595 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9596 case $cc_basename in
9597 # old Intel for x86_64 which still supported -KPIC.
9598 ecc*)
9599 lt_prog_compiler_wl='-Wl,'
9600 lt_prog_compiler_pic='-KPIC'
9601 lt_prog_compiler_static='-static'
9603 # icc used to be incompatible with GCC.
9604 # ICC 10 doesn't accept -KPIC any more.
9605 icc* | ifort*)
9606 lt_prog_compiler_wl='-Wl,'
9607 lt_prog_compiler_pic='-fPIC'
9608 lt_prog_compiler_static='-static'
9610 # Lahey Fortran 8.1.
9611 lf95*)
9612 lt_prog_compiler_wl='-Wl,'
9613 lt_prog_compiler_pic='--shared'
9614 lt_prog_compiler_static='--static'
9616 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9617 # Portland Group compilers (*not* the Pentium gcc compiler,
9618 # which looks to be a dead project)
9619 lt_prog_compiler_wl='-Wl,'
9620 lt_prog_compiler_pic='-fpic'
9621 lt_prog_compiler_static='-Bstatic'
9623 ccc*)
9624 lt_prog_compiler_wl='-Wl,'
9625 # All Alpha code is PIC.
9626 lt_prog_compiler_static='-non_shared'
9628 xl* | bgxl* | bgf* | mpixl*)
9629 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9630 lt_prog_compiler_wl='-Wl,'
9631 lt_prog_compiler_pic='-qpic'
9632 lt_prog_compiler_static='-qstaticlink'
9635 case `$CC -V 2>&1 | sed 5q` in
9636 *Sun\ F* | *Sun*Fortran*)
9637 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9638 lt_prog_compiler_pic='-KPIC'
9639 lt_prog_compiler_static='-Bstatic'
9640 lt_prog_compiler_wl=''
9642 *Sun\ C*)
9643 # Sun C 5.9
9644 lt_prog_compiler_pic='-KPIC'
9645 lt_prog_compiler_static='-Bstatic'
9646 lt_prog_compiler_wl='-Wl,'
9648 esac
9650 esac
9653 newsos6)
9654 lt_prog_compiler_pic='-KPIC'
9655 lt_prog_compiler_static='-Bstatic'
9658 *nto* | *qnx*)
9659 # QNX uses GNU C++, but need to define -shared option too, otherwise
9660 # it will coredump.
9661 lt_prog_compiler_pic='-fPIC -shared'
9664 osf3* | osf4* | osf5*)
9665 lt_prog_compiler_wl='-Wl,'
9666 # All OSF/1 code is PIC.
9667 lt_prog_compiler_static='-non_shared'
9670 rdos*)
9671 lt_prog_compiler_static='-non_shared'
9674 solaris*)
9675 lt_prog_compiler_pic='-KPIC'
9676 lt_prog_compiler_static='-Bstatic'
9677 case $cc_basename in
9678 f77* | f90* | f95*)
9679 lt_prog_compiler_wl='-Qoption ld ';;
9681 lt_prog_compiler_wl='-Wl,';;
9682 esac
9685 sunos4*)
9686 lt_prog_compiler_wl='-Qoption ld '
9687 lt_prog_compiler_pic='-PIC'
9688 lt_prog_compiler_static='-Bstatic'
9691 sysv4 | sysv4.2uw2* | sysv4.3*)
9692 lt_prog_compiler_wl='-Wl,'
9693 lt_prog_compiler_pic='-KPIC'
9694 lt_prog_compiler_static='-Bstatic'
9697 sysv4*MP*)
9698 if test -d /usr/nec ;then
9699 lt_prog_compiler_pic='-Kconform_pic'
9700 lt_prog_compiler_static='-Bstatic'
9704 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9705 lt_prog_compiler_wl='-Wl,'
9706 lt_prog_compiler_pic='-KPIC'
9707 lt_prog_compiler_static='-Bstatic'
9710 unicos*)
9711 lt_prog_compiler_wl='-Wl,'
9712 lt_prog_compiler_can_build_shared=no
9715 uts4*)
9716 lt_prog_compiler_pic='-pic'
9717 lt_prog_compiler_static='-Bstatic'
9721 lt_prog_compiler_can_build_shared=no
9723 esac
9726 case $host_os in
9727 # For platforms which do not support PIC, -DPIC is meaningless:
9728 *djgpp*)
9729 lt_prog_compiler_pic=
9732 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9734 esac
9735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9736 $as_echo "$lt_prog_compiler_pic" >&6; }
9744 # Check to make sure the PIC flag actually works.
9746 if test -n "$lt_prog_compiler_pic"; then
9747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9748 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9749 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9750 $as_echo_n "(cached) " >&6
9751 else
9752 lt_cv_prog_compiler_pic_works=no
9753 ac_outfile=conftest.$ac_objext
9754 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9755 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9756 # Insert the option either (1) after the last *FLAGS variable, or
9757 # (2) before a word containing "conftest.", or (3) at the end.
9758 # Note that $ac_compile itself does not contain backslashes and begins
9759 # with a dollar sign (not a hyphen), so the echo should work correctly.
9760 # The option is referenced via a variable to avoid confusing sed.
9761 lt_compile=`echo "$ac_compile" | $SED \
9762 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9763 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9764 -e 's:$: $lt_compiler_flag:'`
9765 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9766 (eval "$lt_compile" 2>conftest.err)
9767 ac_status=$?
9768 cat conftest.err >&5
9769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9770 if (exit $ac_status) && test -s "$ac_outfile"; then
9771 # The compiler can only warn and ignore the option if not recognized
9772 # So say no if there are warnings other than the usual output.
9773 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9774 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9775 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9776 lt_cv_prog_compiler_pic_works=yes
9779 $RM conftest*
9782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9783 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9785 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9786 case $lt_prog_compiler_pic in
9787 "" | " "*) ;;
9788 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9789 esac
9790 else
9791 lt_prog_compiler_pic=
9792 lt_prog_compiler_can_build_shared=no
9803 # Check to make sure the static flag actually works.
9805 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9807 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9808 if ${lt_cv_prog_compiler_static_works+:} false; then :
9809 $as_echo_n "(cached) " >&6
9810 else
9811 lt_cv_prog_compiler_static_works=no
9812 save_LDFLAGS="$LDFLAGS"
9813 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9814 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9815 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9816 # The linker can only warn and ignore the option if not recognized
9817 # So say no if there are warnings
9818 if test -s conftest.err; then
9819 # Append any errors to the config.log.
9820 cat conftest.err 1>&5
9821 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9822 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9823 if diff conftest.exp conftest.er2 >/dev/null; then
9824 lt_cv_prog_compiler_static_works=yes
9826 else
9827 lt_cv_prog_compiler_static_works=yes
9830 $RM -r conftest*
9831 LDFLAGS="$save_LDFLAGS"
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9835 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9837 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9839 else
9840 lt_prog_compiler_static=
9849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9850 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9851 if ${lt_cv_prog_compiler_c_o+:} false; then :
9852 $as_echo_n "(cached) " >&6
9853 else
9854 lt_cv_prog_compiler_c_o=no
9855 $RM -r conftest 2>/dev/null
9856 mkdir conftest
9857 cd conftest
9858 mkdir out
9859 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9861 lt_compiler_flag="-o out/conftest2.$ac_objext"
9862 # Insert the option either (1) after the last *FLAGS variable, or
9863 # (2) before a word containing "conftest.", or (3) at the end.
9864 # Note that $ac_compile itself does not contain backslashes and begins
9865 # with a dollar sign (not a hyphen), so the echo should work correctly.
9866 lt_compile=`echo "$ac_compile" | $SED \
9867 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9868 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9869 -e 's:$: $lt_compiler_flag:'`
9870 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9871 (eval "$lt_compile" 2>out/conftest.err)
9872 ac_status=$?
9873 cat out/conftest.err >&5
9874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9875 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9876 then
9877 # The compiler can only warn and ignore the option if not recognized
9878 # So say no if there are warnings
9879 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9880 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9881 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9882 lt_cv_prog_compiler_c_o=yes
9885 chmod u+w . 2>&5
9886 $RM conftest*
9887 # SGI C++ compiler will create directory out/ii_files/ for
9888 # template instantiation
9889 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9890 $RM out/* && rmdir out
9891 cd ..
9892 $RM -r conftest
9893 $RM conftest*
9896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9897 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9905 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9906 if ${lt_cv_prog_compiler_c_o+:} false; then :
9907 $as_echo_n "(cached) " >&6
9908 else
9909 lt_cv_prog_compiler_c_o=no
9910 $RM -r conftest 2>/dev/null
9911 mkdir conftest
9912 cd conftest
9913 mkdir out
9914 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9916 lt_compiler_flag="-o out/conftest2.$ac_objext"
9917 # Insert the option either (1) after the last *FLAGS variable, or
9918 # (2) before a word containing "conftest.", or (3) at the end.
9919 # Note that $ac_compile itself does not contain backslashes and begins
9920 # with a dollar sign (not a hyphen), so the echo should work correctly.
9921 lt_compile=`echo "$ac_compile" | $SED \
9922 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9923 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9924 -e 's:$: $lt_compiler_flag:'`
9925 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9926 (eval "$lt_compile" 2>out/conftest.err)
9927 ac_status=$?
9928 cat out/conftest.err >&5
9929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9930 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9931 then
9932 # The compiler can only warn and ignore the option if not recognized
9933 # So say no if there are warnings
9934 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9935 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9936 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9937 lt_cv_prog_compiler_c_o=yes
9940 chmod u+w . 2>&5
9941 $RM conftest*
9942 # SGI C++ compiler will create directory out/ii_files/ for
9943 # template instantiation
9944 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9945 $RM out/* && rmdir out
9946 cd ..
9947 $RM -r conftest
9948 $RM conftest*
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9952 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9957 hard_links="nottested"
9958 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9959 # do not overwrite the value of need_locks provided by the user
9960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9961 $as_echo_n "checking if we can lock with hard links... " >&6; }
9962 hard_links=yes
9963 $RM conftest*
9964 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9965 touch conftest.a
9966 ln conftest.a conftest.b 2>&5 || hard_links=no
9967 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9969 $as_echo "$hard_links" >&6; }
9970 if test "$hard_links" = no; then
9971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9972 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9973 need_locks=warn
9975 else
9976 need_locks=no
9984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9985 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9987 runpath_var=
9988 allow_undefined_flag=
9989 always_export_symbols=no
9990 archive_cmds=
9991 archive_expsym_cmds=
9992 compiler_needs_object=no
9993 enable_shared_with_static_runtimes=no
9994 export_dynamic_flag_spec=
9995 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9996 hardcode_automatic=no
9997 hardcode_direct=no
9998 hardcode_direct_absolute=no
9999 hardcode_libdir_flag_spec=
10000 hardcode_libdir_flag_spec_ld=
10001 hardcode_libdir_separator=
10002 hardcode_minus_L=no
10003 hardcode_shlibpath_var=unsupported
10004 inherit_rpath=no
10005 link_all_deplibs=unknown
10006 module_cmds=
10007 module_expsym_cmds=
10008 old_archive_from_new_cmds=
10009 old_archive_from_expsyms_cmds=
10010 thread_safe_flag_spec=
10011 whole_archive_flag_spec=
10012 # include_expsyms should be a list of space-separated symbols to be *always*
10013 # included in the symbol list
10014 include_expsyms=
10015 # exclude_expsyms can be an extended regexp of symbols to exclude
10016 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10017 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10018 # as well as any symbol that contains `d'.
10019 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10020 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10021 # platforms (ab)use it in PIC code, but their linkers get confused if
10022 # the symbol is explicitly referenced. Since portable code cannot
10023 # rely on this symbol name, it's probably fine to never include it in
10024 # preloaded symbol tables.
10025 # Exclude shared library initialization/finalization symbols.
10026 extract_expsyms_cmds=
10028 case $host_os in
10029 cygwin* | mingw* | pw32* | cegcc*)
10030 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10031 # When not using gcc, we currently assume that we are using
10032 # Microsoft Visual C++.
10033 if test "$GCC" != yes; then
10034 with_gnu_ld=no
10037 interix*)
10038 # we just hope/assume this is gcc and not c89 (= MSVC++)
10039 with_gnu_ld=yes
10041 openbsd*)
10042 with_gnu_ld=no
10044 esac
10046 ld_shlibs=yes
10048 # On some targets, GNU ld is compatible enough with the native linker
10049 # that we're better off using the native interface for both.
10050 lt_use_gnu_ld_interface=no
10051 if test "$with_gnu_ld" = yes; then
10052 case $host_os in
10053 aix*)
10054 # The AIX port of GNU ld has always aspired to compatibility
10055 # with the native linker. However, as the warning in the GNU ld
10056 # block says, versions before 2.19.5* couldn't really create working
10057 # shared libraries, regardless of the interface used.
10058 case `$LD -v 2>&1` in
10059 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10060 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10061 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10063 lt_use_gnu_ld_interface=yes
10065 esac
10068 lt_use_gnu_ld_interface=yes
10070 esac
10073 if test "$lt_use_gnu_ld_interface" = yes; then
10074 # If archive_cmds runs LD, not CC, wlarc should be empty
10075 wlarc='${wl}'
10077 # Set some defaults for GNU ld with shared library support. These
10078 # are reset later if shared libraries are not supported. Putting them
10079 # here allows them to be overridden if necessary.
10080 runpath_var=LD_RUN_PATH
10081 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10082 export_dynamic_flag_spec='${wl}--export-dynamic'
10083 # ancient GNU ld didn't support --whole-archive et. al.
10084 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10085 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10086 else
10087 whole_archive_flag_spec=
10089 supports_anon_versioning=no
10090 case `$LD -v 2>&1` in
10091 *GNU\ gold*) supports_anon_versioning=yes ;;
10092 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10093 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10094 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10095 *\ 2.11.*) ;; # other 2.11 versions
10096 *) supports_anon_versioning=yes ;;
10097 esac
10099 # See if GNU ld supports shared libraries.
10100 case $host_os in
10101 aix[3-9]*)
10102 # On AIX/PPC, the GNU linker is very broken
10103 if test "$host_cpu" != ia64; then
10104 ld_shlibs=no
10105 cat <<_LT_EOF 1>&2
10107 *** Warning: the GNU linker, at least up to release 2.19, is reported
10108 *** to be unable to reliably create shared libraries on AIX.
10109 *** Therefore, libtool is disabling shared libraries support. If you
10110 *** really care for shared libraries, you may want to install binutils
10111 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10112 *** You will then need to restart the configuration process.
10114 _LT_EOF
10118 amigaos*)
10119 case $host_cpu in
10120 powerpc)
10121 # see comment about AmigaOS4 .so support
10122 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10123 archive_expsym_cmds=''
10125 m68k)
10126 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)'
10127 hardcode_libdir_flag_spec='-L$libdir'
10128 hardcode_minus_L=yes
10130 esac
10133 beos*)
10134 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10135 allow_undefined_flag=unsupported
10136 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10137 # support --undefined. This deserves some investigation. FIXME
10138 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10139 else
10140 ld_shlibs=no
10144 cygwin* | mingw* | pw32* | cegcc*)
10145 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10146 # as there is no search path for DLLs.
10147 hardcode_libdir_flag_spec='-L$libdir'
10148 export_dynamic_flag_spec='${wl}--export-all-symbols'
10149 allow_undefined_flag=unsupported
10150 always_export_symbols=no
10151 enable_shared_with_static_runtimes=yes
10152 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10154 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10155 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10156 # If the export-symbols file already is a .def file (1st line
10157 # is EXPORTS), use it as is; otherwise, prepend...
10158 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10159 cp $export_symbols $output_objdir/$soname.def;
10160 else
10161 echo EXPORTS > $output_objdir/$soname.def;
10162 cat $export_symbols >> $output_objdir/$soname.def;
10164 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10165 else
10166 ld_shlibs=no
10170 haiku*)
10171 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10172 link_all_deplibs=yes
10175 interix[3-9]*)
10176 hardcode_direct=no
10177 hardcode_shlibpath_var=no
10178 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10179 export_dynamic_flag_spec='${wl}-E'
10180 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10181 # Instead, shared libraries are loaded at an image base (0x10000000 by
10182 # default) and relocated if they conflict, which is a slow very memory
10183 # consuming and fragmenting process. To avoid this, we pick a random,
10184 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10185 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10186 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10187 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'
10190 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
10191 tmp_diet=no
10192 if test "$host_os" = linux-dietlibc; then
10193 case $cc_basename in
10194 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10195 esac
10197 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10198 && test "$tmp_diet" = no
10199 then
10200 tmp_addflag=' $pic_flag'
10201 tmp_sharedflag='-shared'
10202 case $cc_basename,$host_cpu in
10203 pgcc*) # Portland Group C compiler
10204 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'
10205 tmp_addflag=' $pic_flag'
10207 pgf77* | pgf90* | pgf95* | pgfortran*)
10208 # Portland Group f77 and f90 compilers
10209 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'
10210 tmp_addflag=' $pic_flag -Mnomain' ;;
10211 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10212 tmp_addflag=' -i_dynamic' ;;
10213 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10214 tmp_addflag=' -i_dynamic -nofor_main' ;;
10215 ifc* | ifort*) # Intel Fortran compiler
10216 tmp_addflag=' -nofor_main' ;;
10217 lf95*) # Lahey Fortran 8.1
10218 whole_archive_flag_spec=
10219 tmp_sharedflag='--shared' ;;
10220 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10221 tmp_sharedflag='-qmkshrobj'
10222 tmp_addflag= ;;
10223 nvcc*) # Cuda Compiler Driver 2.2
10224 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'
10225 compiler_needs_object=yes
10227 esac
10228 case `$CC -V 2>&1 | sed 5q` in
10229 *Sun\ C*) # Sun C 5.9
10230 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'
10231 compiler_needs_object=yes
10232 tmp_sharedflag='-G' ;;
10233 *Sun\ F*) # Sun Fortran 8.3
10234 tmp_sharedflag='-G' ;;
10235 esac
10236 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10238 if test "x$supports_anon_versioning" = xyes; then
10239 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10240 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10241 echo "local: *; };" >> $output_objdir/$libname.ver~
10242 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10245 case $cc_basename in
10246 xlf* | bgf* | bgxlf* | mpixlf*)
10247 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10248 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10249 hardcode_libdir_flag_spec=
10250 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10251 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10252 if test "x$supports_anon_versioning" = xyes; then
10253 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10254 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10255 echo "local: *; };" >> $output_objdir/$libname.ver~
10256 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10259 esac
10260 else
10261 ld_shlibs=no
10265 netbsd*)
10266 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10267 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10268 wlarc=
10269 else
10270 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10271 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10275 solaris*)
10276 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10277 ld_shlibs=no
10278 cat <<_LT_EOF 1>&2
10280 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10281 *** create shared libraries on Solaris systems. Therefore, libtool
10282 *** is disabling shared libraries support. We urge you to upgrade GNU
10283 *** binutils to release 2.9.1 or newer. Another option is to modify
10284 *** your PATH or compiler configuration so that the native linker is
10285 *** used, and then restart.
10287 _LT_EOF
10288 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10289 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10290 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10291 else
10292 ld_shlibs=no
10296 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10297 case `$LD -v 2>&1` in
10298 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10299 ld_shlibs=no
10300 cat <<_LT_EOF 1>&2
10302 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10303 *** reliably create shared libraries on SCO systems. Therefore, libtool
10304 *** is disabling shared libraries support. We urge you to upgrade GNU
10305 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10306 *** your PATH or compiler configuration so that the native linker is
10307 *** used, and then restart.
10309 _LT_EOF
10312 # For security reasons, it is highly recommended that you always
10313 # use absolute paths for naming shared libraries, and exclude the
10314 # DT_RUNPATH tag from executables and libraries. But doing so
10315 # requires that you compile everything twice, which is a pain.
10316 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10317 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10318 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10319 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10320 else
10321 ld_shlibs=no
10324 esac
10327 sunos4*)
10328 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10329 wlarc=
10330 hardcode_direct=yes
10331 hardcode_shlibpath_var=no
10335 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10336 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10337 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10338 else
10339 ld_shlibs=no
10342 esac
10344 if test "$ld_shlibs" = no; then
10345 runpath_var=
10346 hardcode_libdir_flag_spec=
10347 export_dynamic_flag_spec=
10348 whole_archive_flag_spec=
10350 else
10351 # PORTME fill in a description of your system's linker (not GNU ld)
10352 case $host_os in
10353 aix3*)
10354 allow_undefined_flag=unsupported
10355 always_export_symbols=yes
10356 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'
10357 # Note: this linker hardcodes the directories in LIBPATH if there
10358 # are no directories specified by -L.
10359 hardcode_minus_L=yes
10360 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10361 # Neither direct hardcoding nor static linking is supported with a
10362 # broken collect2.
10363 hardcode_direct=unsupported
10367 aix[4-9]*)
10368 if test "$host_cpu" = ia64; then
10369 # On IA64, the linker does run time linking by default, so we don't
10370 # have to do anything special.
10371 aix_use_runtimelinking=no
10372 exp_sym_flag='-Bexport'
10373 no_entry_flag=""
10374 else
10375 # If we're using GNU nm, then we don't want the "-C" option.
10376 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10377 # Also, AIX nm treats weak defined symbols like other global
10378 # defined symbols, whereas GNU nm marks them as "W".
10379 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10380 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'
10381 else
10382 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'
10384 aix_use_runtimelinking=no
10386 # Test if we are trying to use run time linking or normal
10387 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10388 # need to do runtime linking.
10389 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10390 for ld_flag in $LDFLAGS; do
10391 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10392 aix_use_runtimelinking=yes
10393 break
10395 done
10397 esac
10399 exp_sym_flag='-bexport'
10400 no_entry_flag='-bnoentry'
10403 # When large executables or shared objects are built, AIX ld can
10404 # have problems creating the table of contents. If linking a library
10405 # or program results in "error TOC overflow" add -mminimal-toc to
10406 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10407 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10409 archive_cmds=''
10410 hardcode_direct=yes
10411 hardcode_direct_absolute=yes
10412 hardcode_libdir_separator=':'
10413 link_all_deplibs=yes
10414 file_list_spec='${wl}-f,'
10416 if test "$GCC" = yes; then
10417 case $host_os in aix4.[012]|aix4.[012].*)
10418 # We only want to do this on AIX 4.2 and lower, the check
10419 # below for broken collect2 doesn't work under 4.3+
10420 collect2name=`${CC} -print-prog-name=collect2`
10421 if test -f "$collect2name" &&
10422 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10423 then
10424 # We have reworked collect2
10426 else
10427 # We have old collect2
10428 hardcode_direct=unsupported
10429 # It fails to find uninstalled libraries when the uninstalled
10430 # path is not listed in the libpath. Setting hardcode_minus_L
10431 # to unsupported forces relinking
10432 hardcode_minus_L=yes
10433 hardcode_libdir_flag_spec='-L$libdir'
10434 hardcode_libdir_separator=
10437 esac
10438 shared_flag='-shared'
10439 if test "$aix_use_runtimelinking" = yes; then
10440 shared_flag="$shared_flag "'${wl}-G'
10442 else
10443 # not using gcc
10444 if test "$host_cpu" = ia64; then
10445 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10446 # chokes on -Wl,-G. The following line is correct:
10447 shared_flag='-G'
10448 else
10449 if test "$aix_use_runtimelinking" = yes; then
10450 shared_flag='${wl}-G'
10451 else
10452 shared_flag='${wl}-bM:SRE'
10457 export_dynamic_flag_spec='${wl}-bexpall'
10458 # It seems that -bexpall does not export symbols beginning with
10459 # underscore (_), so it is better to generate a list of symbols to export.
10460 always_export_symbols=yes
10461 if test "$aix_use_runtimelinking" = yes; then
10462 # Warning - without using the other runtime loading flags (-brtl),
10463 # -berok will link without error, but may produce a broken library.
10464 allow_undefined_flag='-berok'
10465 # Determine the default libpath from the value encoded in an
10466 # empty executable.
10467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10468 /* end confdefs.h. */
10471 main ()
10475 return 0;
10477 _ACEOF
10478 if ac_fn_c_try_link "$LINENO"; then :
10480 lt_aix_libpath_sed='
10481 /Import File Strings/,/^$/ {
10482 /^0/ {
10483 s/^0 *\(.*\)$/\1/
10487 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10488 # Check for a 64-bit object if we didn't find anything.
10489 if test -z "$aix_libpath"; then
10490 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10493 rm -f core conftest.err conftest.$ac_objext \
10494 conftest$ac_exeext conftest.$ac_ext
10495 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10497 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10498 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"
10499 else
10500 if test "$host_cpu" = ia64; then
10501 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10502 allow_undefined_flag="-z nodefs"
10503 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"
10504 else
10505 # Determine the default libpath from the value encoded in an
10506 # empty executable.
10507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10508 /* end confdefs.h. */
10511 main ()
10515 return 0;
10517 _ACEOF
10518 if ac_fn_c_try_link "$LINENO"; then :
10520 lt_aix_libpath_sed='
10521 /Import File Strings/,/^$/ {
10522 /^0/ {
10523 s/^0 *\(.*\)$/\1/
10527 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10528 # Check for a 64-bit object if we didn't find anything.
10529 if test -z "$aix_libpath"; then
10530 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10533 rm -f core conftest.err conftest.$ac_objext \
10534 conftest$ac_exeext conftest.$ac_ext
10535 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10537 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10538 # Warning - without using the other run time loading flags,
10539 # -berok will link without error, but may produce a broken library.
10540 no_undefined_flag=' ${wl}-bernotok'
10541 allow_undefined_flag=' ${wl}-berok'
10542 if test "$with_gnu_ld" = yes; then
10543 # We only use this code for GNU lds that support --whole-archive.
10544 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10545 else
10546 # Exported symbols can be pulled into shared objects from archives
10547 whole_archive_flag_spec='$convenience'
10549 archive_cmds_need_lc=yes
10550 # This is similar to how AIX traditionally builds its shared libraries.
10551 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'
10556 amigaos*)
10557 case $host_cpu in
10558 powerpc)
10559 # see comment about AmigaOS4 .so support
10560 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10561 archive_expsym_cmds=''
10563 m68k)
10564 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)'
10565 hardcode_libdir_flag_spec='-L$libdir'
10566 hardcode_minus_L=yes
10568 esac
10571 bsdi[45]*)
10572 export_dynamic_flag_spec=-rdynamic
10575 cygwin* | mingw* | pw32* | cegcc*)
10576 # When not using gcc, we currently assume that we are using
10577 # Microsoft Visual C++.
10578 # hardcode_libdir_flag_spec is actually meaningless, as there is
10579 # no search path for DLLs.
10580 hardcode_libdir_flag_spec=' '
10581 allow_undefined_flag=unsupported
10582 # Tell ltmain to make .lib files, not .a files.
10583 libext=lib
10584 # Tell ltmain to make .dll files, not .so files.
10585 shrext_cmds=".dll"
10586 # FIXME: Setting linknames here is a bad hack.
10587 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10588 # The linker will automatically build a .lib file if we build a DLL.
10589 old_archive_from_new_cmds='true'
10590 # FIXME: Should let the user specify the lib program.
10591 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10592 fix_srcfile_path='`cygpath -w "$srcfile"`'
10593 enable_shared_with_static_runtimes=yes
10596 darwin* | rhapsody*)
10599 archive_cmds_need_lc=no
10600 hardcode_direct=no
10601 hardcode_automatic=yes
10602 hardcode_shlibpath_var=unsupported
10603 if test "$lt_cv_ld_force_load" = "yes"; then
10604 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\"`'
10605 else
10606 whole_archive_flag_spec=''
10608 link_all_deplibs=yes
10609 allow_undefined_flag="$_lt_dar_allow_undefined"
10610 case $cc_basename in
10611 ifort*) _lt_dar_can_shared=yes ;;
10612 *) _lt_dar_can_shared=$GCC ;;
10613 esac
10614 if test "$_lt_dar_can_shared" = "yes"; then
10615 output_verbose_link_cmd=func_echo_all
10616 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10617 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10618 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}"
10619 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}"
10621 else
10622 ld_shlibs=no
10627 dgux*)
10628 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10629 hardcode_libdir_flag_spec='-L$libdir'
10630 hardcode_shlibpath_var=no
10633 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10634 # support. Future versions do this automatically, but an explicit c++rt0.o
10635 # does not break anything, and helps significantly (at the cost of a little
10636 # extra space).
10637 freebsd2.2*)
10638 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10639 hardcode_libdir_flag_spec='-R$libdir'
10640 hardcode_direct=yes
10641 hardcode_shlibpath_var=no
10644 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10645 freebsd2.*)
10646 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10647 hardcode_direct=yes
10648 hardcode_minus_L=yes
10649 hardcode_shlibpath_var=no
10652 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10653 freebsd* | dragonfly*)
10654 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10655 hardcode_libdir_flag_spec='-R$libdir'
10656 hardcode_direct=yes
10657 hardcode_shlibpath_var=no
10660 hpux9*)
10661 if test "$GCC" = yes; then
10662 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'
10663 else
10664 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'
10666 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10667 hardcode_libdir_separator=:
10668 hardcode_direct=yes
10670 # hardcode_minus_L: Not really in the search PATH,
10671 # but as the default location of the library.
10672 hardcode_minus_L=yes
10673 export_dynamic_flag_spec='${wl}-E'
10676 hpux10*)
10677 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10678 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10679 else
10680 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10682 if test "$with_gnu_ld" = no; then
10683 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10684 hardcode_libdir_flag_spec_ld='+b $libdir'
10685 hardcode_libdir_separator=:
10686 hardcode_direct=yes
10687 hardcode_direct_absolute=yes
10688 export_dynamic_flag_spec='${wl}-E'
10689 # hardcode_minus_L: Not really in the search PATH,
10690 # but as the default location of the library.
10691 hardcode_minus_L=yes
10695 hpux11*)
10696 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10697 case $host_cpu in
10698 hppa*64*)
10699 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10701 ia64*)
10702 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10705 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10707 esac
10708 else
10709 case $host_cpu in
10710 hppa*64*)
10711 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10713 ia64*)
10714 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10718 # Older versions of the 11.00 compiler do not understand -b yet
10719 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10721 $as_echo_n "checking if $CC understands -b... " >&6; }
10722 if ${lt_cv_prog_compiler__b+:} false; then :
10723 $as_echo_n "(cached) " >&6
10724 else
10725 lt_cv_prog_compiler__b=no
10726 save_LDFLAGS="$LDFLAGS"
10727 LDFLAGS="$LDFLAGS -b"
10728 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10729 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10730 # The linker can only warn and ignore the option if not recognized
10731 # So say no if there are warnings
10732 if test -s conftest.err; then
10733 # Append any errors to the config.log.
10734 cat conftest.err 1>&5
10735 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10736 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10737 if diff conftest.exp conftest.er2 >/dev/null; then
10738 lt_cv_prog_compiler__b=yes
10740 else
10741 lt_cv_prog_compiler__b=yes
10744 $RM -r conftest*
10745 LDFLAGS="$save_LDFLAGS"
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10749 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10751 if test x"$lt_cv_prog_compiler__b" = xyes; then
10752 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10753 else
10754 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10758 esac
10760 if test "$with_gnu_ld" = no; then
10761 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10762 hardcode_libdir_separator=:
10764 case $host_cpu in
10765 hppa*64*|ia64*)
10766 hardcode_direct=no
10767 hardcode_shlibpath_var=no
10770 hardcode_direct=yes
10771 hardcode_direct_absolute=yes
10772 export_dynamic_flag_spec='${wl}-E'
10774 # hardcode_minus_L: Not really in the search PATH,
10775 # but as the default location of the library.
10776 hardcode_minus_L=yes
10778 esac
10782 irix5* | irix6* | nonstopux*)
10783 if test "$GCC" = yes; then
10784 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'
10785 # Try to use the -exported_symbol ld option, if it does not
10786 # work, assume that -exports_file does not work either and
10787 # implicitly export all symbols.
10788 save_LDFLAGS="$LDFLAGS"
10789 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10791 /* end confdefs.h. */
10792 int foo(void) {}
10793 _ACEOF
10794 if ac_fn_c_try_link "$LINENO"; then :
10795 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'
10798 rm -f core conftest.err conftest.$ac_objext \
10799 conftest$ac_exeext conftest.$ac_ext
10800 LDFLAGS="$save_LDFLAGS"
10801 else
10802 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'
10803 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'
10805 archive_cmds_need_lc='no'
10806 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10807 hardcode_libdir_separator=:
10808 inherit_rpath=yes
10809 link_all_deplibs=yes
10812 netbsd*)
10813 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10814 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10815 else
10816 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10818 hardcode_libdir_flag_spec='-R$libdir'
10819 hardcode_direct=yes
10820 hardcode_shlibpath_var=no
10823 newsos6)
10824 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10825 hardcode_direct=yes
10826 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10827 hardcode_libdir_separator=:
10828 hardcode_shlibpath_var=no
10831 *nto* | *qnx*)
10834 openbsd*)
10835 if test -f /usr/libexec/ld.so; then
10836 hardcode_direct=yes
10837 hardcode_shlibpath_var=no
10838 hardcode_direct_absolute=yes
10839 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10840 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10841 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10842 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10843 export_dynamic_flag_spec='${wl}-E'
10844 else
10845 case $host_os in
10846 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10847 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10848 hardcode_libdir_flag_spec='-R$libdir'
10851 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10852 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10854 esac
10856 else
10857 ld_shlibs=no
10861 os2*)
10862 hardcode_libdir_flag_spec='-L$libdir'
10863 hardcode_minus_L=yes
10864 allow_undefined_flag=unsupported
10865 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'
10866 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10869 osf3*)
10870 if test "$GCC" = yes; then
10871 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10872 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'
10873 else
10874 allow_undefined_flag=' -expect_unresolved \*'
10875 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'
10877 archive_cmds_need_lc='no'
10878 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10879 hardcode_libdir_separator=:
10882 osf4* | osf5*) # as osf3* with the addition of -msym flag
10883 if test "$GCC" = yes; then
10884 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10885 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'
10886 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10887 else
10888 allow_undefined_flag=' -expect_unresolved \*'
10889 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'
10890 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~
10891 $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'
10893 # Both c and cxx compiler support -rpath directly
10894 hardcode_libdir_flag_spec='-rpath $libdir'
10896 archive_cmds_need_lc='no'
10897 hardcode_libdir_separator=:
10900 solaris*)
10901 no_undefined_flag=' -z defs'
10902 if test "$GCC" = yes; then
10903 wlarc='${wl}'
10904 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10905 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10906 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10907 else
10908 case `$CC -V 2>&1` in
10909 *"Compilers 5.0"*)
10910 wlarc=''
10911 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10912 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10913 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10916 wlarc='${wl}'
10917 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10918 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10919 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10921 esac
10923 hardcode_libdir_flag_spec='-R$libdir'
10924 hardcode_shlibpath_var=no
10925 case $host_os in
10926 solaris2.[0-5] | solaris2.[0-5].*) ;;
10928 # The compiler driver will combine and reorder linker options,
10929 # but understands `-z linker_flag'. GCC discards it without `$wl',
10930 # but is careful enough not to reorder.
10931 # Supported since Solaris 2.6 (maybe 2.5.1?)
10932 if test "$GCC" = yes; then
10933 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10934 else
10935 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10938 esac
10939 link_all_deplibs=yes
10942 sunos4*)
10943 if test "x$host_vendor" = xsequent; then
10944 # Use $CC to link under sequent, because it throws in some extra .o
10945 # files that make .init and .fini sections work.
10946 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10947 else
10948 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10950 hardcode_libdir_flag_spec='-L$libdir'
10951 hardcode_direct=yes
10952 hardcode_minus_L=yes
10953 hardcode_shlibpath_var=no
10956 sysv4)
10957 case $host_vendor in
10958 sni)
10959 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10960 hardcode_direct=yes # is this really true???
10962 siemens)
10963 ## LD is ld it makes a PLAMLIB
10964 ## CC just makes a GrossModule.
10965 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10966 reload_cmds='$CC -r -o $output$reload_objs'
10967 hardcode_direct=no
10969 motorola)
10970 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10971 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10973 esac
10974 runpath_var='LD_RUN_PATH'
10975 hardcode_shlibpath_var=no
10978 sysv4.3*)
10979 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10980 hardcode_shlibpath_var=no
10981 export_dynamic_flag_spec='-Bexport'
10984 sysv4*MP*)
10985 if test -d /usr/nec; then
10986 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10987 hardcode_shlibpath_var=no
10988 runpath_var=LD_RUN_PATH
10989 hardcode_runpath_var=yes
10990 ld_shlibs=yes
10994 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10995 no_undefined_flag='${wl}-z,text'
10996 archive_cmds_need_lc=no
10997 hardcode_shlibpath_var=no
10998 runpath_var='LD_RUN_PATH'
11000 if test "$GCC" = yes; then
11001 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11002 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11003 else
11004 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11005 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11009 sysv5* | sco3.2v5* | sco5v6*)
11010 # Note: We can NOT use -z defs as we might desire, because we do not
11011 # link with -lc, and that would cause any symbols used from libc to
11012 # always be unresolved, which means just about no library would
11013 # ever link correctly. If we're not using GNU ld we use -z text
11014 # though, which does catch some bad symbols but isn't as heavy-handed
11015 # as -z defs.
11016 no_undefined_flag='${wl}-z,text'
11017 allow_undefined_flag='${wl}-z,nodefs'
11018 archive_cmds_need_lc=no
11019 hardcode_shlibpath_var=no
11020 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11021 hardcode_libdir_separator=':'
11022 link_all_deplibs=yes
11023 export_dynamic_flag_spec='${wl}-Bexport'
11024 runpath_var='LD_RUN_PATH'
11026 if test "$GCC" = yes; then
11027 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11028 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11029 else
11030 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11031 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11035 uts4*)
11036 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11037 hardcode_libdir_flag_spec='-L$libdir'
11038 hardcode_shlibpath_var=no
11042 ld_shlibs=no
11044 esac
11046 if test x$host_vendor = xsni; then
11047 case $host in
11048 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11049 export_dynamic_flag_spec='${wl}-Blargedynsym'
11051 esac
11055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11056 $as_echo "$ld_shlibs" >&6; }
11057 test "$ld_shlibs" = no && can_build_shared=no
11059 with_gnu_ld=$with_gnu_ld
11076 # Do we need to explicitly link libc?
11078 case "x$archive_cmds_need_lc" in
11079 x|xyes)
11080 # Assume -lc should be added
11081 archive_cmds_need_lc=yes
11083 if test "$enable_shared" = yes && test "$GCC" = yes; then
11084 case $archive_cmds in
11085 *'~'*)
11086 # FIXME: we may have to deal with multi-command sequences.
11088 '$CC '*)
11089 # Test whether the compiler implicitly links with -lc since on some
11090 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11091 # to ld, don't add -lc before -lgcc.
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11093 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11094 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11095 $as_echo_n "(cached) " >&6
11096 else
11097 $RM conftest*
11098 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11100 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11101 (eval $ac_compile) 2>&5
11102 ac_status=$?
11103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11104 test $ac_status = 0; } 2>conftest.err; then
11105 soname=conftest
11106 lib=conftest
11107 libobjs=conftest.$ac_objext
11108 deplibs=
11109 wl=$lt_prog_compiler_wl
11110 pic_flag=$lt_prog_compiler_pic
11111 compiler_flags=-v
11112 linker_flags=-v
11113 verstring=
11114 output_objdir=.
11115 libname=conftest
11116 lt_save_allow_undefined_flag=$allow_undefined_flag
11117 allow_undefined_flag=
11118 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11119 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11120 ac_status=$?
11121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11122 test $ac_status = 0; }
11123 then
11124 lt_cv_archive_cmds_need_lc=no
11125 else
11126 lt_cv_archive_cmds_need_lc=yes
11128 allow_undefined_flag=$lt_save_allow_undefined_flag
11129 else
11130 cat conftest.err 1>&5
11132 $RM conftest*
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11136 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11137 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11139 esac
11142 esac
11300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11301 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11303 if test "$GCC" = yes; then
11304 case $host_os in
11305 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11306 *) lt_awk_arg="/^libraries:/" ;;
11307 esac
11308 case $host_os in
11309 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11310 *) lt_sed_strip_eq="s,=/,/,g" ;;
11311 esac
11312 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11313 case $lt_search_path_spec in
11314 *\;*)
11315 # if the path contains ";" then we assume it to be the separator
11316 # otherwise default to the standard path separator (i.e. ":") - it is
11317 # assumed that no part of a normal pathname contains ";" but that should
11318 # okay in the real world where ";" in dirpaths is itself problematic.
11319 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11322 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11324 esac
11325 # Ok, now we have the path, separated by spaces, we can step through it
11326 # and add multilib dir if necessary.
11327 lt_tmp_lt_search_path_spec=
11328 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11329 for lt_sys_path in $lt_search_path_spec; do
11330 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11331 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11332 else
11333 test -d "$lt_sys_path" && \
11334 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11336 done
11337 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11338 BEGIN {RS=" "; FS="/|\n";} {
11339 lt_foo="";
11340 lt_count=0;
11341 for (lt_i = NF; lt_i > 0; lt_i--) {
11342 if ($lt_i != "" && $lt_i != ".") {
11343 if ($lt_i == "..") {
11344 lt_count++;
11345 } else {
11346 if (lt_count == 0) {
11347 lt_foo="/" $lt_i lt_foo;
11348 } else {
11349 lt_count--;
11354 if (lt_foo != "") { lt_freq[lt_foo]++; }
11355 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11357 # AWK program above erroneously prepends '/' to C:/dos/paths
11358 # for these hosts.
11359 case $host_os in
11360 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11361 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11362 esac
11363 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11364 else
11365 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11367 library_names_spec=
11368 libname_spec='lib$name'
11369 soname_spec=
11370 shrext_cmds=".so"
11371 postinstall_cmds=
11372 postuninstall_cmds=
11373 finish_cmds=
11374 finish_eval=
11375 shlibpath_var=
11376 shlibpath_overrides_runpath=unknown
11377 version_type=none
11378 dynamic_linker="$host_os ld.so"
11379 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11380 need_lib_prefix=unknown
11381 hardcode_into_libs=no
11383 # when you set need_version to no, make sure it does not cause -set_version
11384 # flags to be left without arguments
11385 need_version=unknown
11387 case $host_os in
11388 aix3*)
11389 version_type=linux
11390 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11391 shlibpath_var=LIBPATH
11393 # AIX 3 has no versioning support, so we append a major version to the name.
11394 soname_spec='${libname}${release}${shared_ext}$major'
11397 aix[4-9]*)
11398 version_type=linux
11399 need_lib_prefix=no
11400 need_version=no
11401 hardcode_into_libs=yes
11402 if test "$host_cpu" = ia64; then
11403 # AIX 5 supports IA64
11404 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11405 shlibpath_var=LD_LIBRARY_PATH
11406 else
11407 # With GCC up to 2.95.x, collect2 would create an import file
11408 # for dependence libraries. The import file would start with
11409 # the line `#! .'. This would cause the generated library to
11410 # depend on `.', always an invalid library. This was fixed in
11411 # development snapshots of GCC prior to 3.0.
11412 case $host_os in
11413 aix4 | aix4.[01] | aix4.[01].*)
11414 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11415 echo ' yes '
11416 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11418 else
11419 can_build_shared=no
11422 esac
11423 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11424 # soname into executable. Probably we can add versioning support to
11425 # collect2, so additional links can be useful in future.
11426 if test "$aix_use_runtimelinking" = yes; then
11427 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11428 # instead of lib<name>.a to let people know that these are not
11429 # typical AIX shared libraries.
11430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11431 else
11432 # We preserve .a as extension for shared libraries through AIX4.2
11433 # and later when we are not doing run time linking.
11434 library_names_spec='${libname}${release}.a $libname.a'
11435 soname_spec='${libname}${release}${shared_ext}$major'
11437 shlibpath_var=LIBPATH
11441 amigaos*)
11442 case $host_cpu in
11443 powerpc)
11444 # Since July 2007 AmigaOS4 officially supports .so libraries.
11445 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11448 m68k)
11449 library_names_spec='$libname.ixlibrary $libname.a'
11450 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11451 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'
11453 esac
11456 beos*)
11457 library_names_spec='${libname}${shared_ext}'
11458 dynamic_linker="$host_os ld.so"
11459 shlibpath_var=LIBRARY_PATH
11462 bsdi[45]*)
11463 version_type=linux
11464 need_version=no
11465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11466 soname_spec='${libname}${release}${shared_ext}$major'
11467 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11468 shlibpath_var=LD_LIBRARY_PATH
11469 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11470 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11471 # the default ld.so.conf also contains /usr/contrib/lib and
11472 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11473 # libtool to hard-code these into programs
11476 cygwin* | mingw* | pw32* | cegcc*)
11477 version_type=windows
11478 shrext_cmds=".dll"
11479 need_version=no
11480 need_lib_prefix=no
11482 case $GCC,$host_os in
11483 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11484 library_names_spec='$libname.dll.a'
11485 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11486 postinstall_cmds='base_file=`basename \${file}`~
11487 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11488 dldir=$destdir/`dirname \$dlpath`~
11489 test -d \$dldir || mkdir -p \$dldir~
11490 $install_prog $dir/$dlname \$dldir/$dlname~
11491 chmod a+x \$dldir/$dlname~
11492 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11493 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11495 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11496 dlpath=$dir/\$dldll~
11497 $RM \$dlpath'
11498 shlibpath_overrides_runpath=yes
11500 case $host_os in
11501 cygwin*)
11502 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11503 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11505 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11507 mingw* | cegcc*)
11508 # MinGW DLLs use traditional 'lib' prefix
11509 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11511 pw32*)
11512 # pw32 DLLs use 'pw' prefix rather than 'lib'
11513 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11515 esac
11519 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11521 esac
11522 dynamic_linker='Win32 ld.exe'
11523 # FIXME: first we should search . and the directory the executable is in
11524 shlibpath_var=PATH
11527 darwin* | rhapsody*)
11528 dynamic_linker="$host_os dyld"
11529 version_type=darwin
11530 need_lib_prefix=no
11531 need_version=no
11532 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11533 soname_spec='${libname}${release}${major}$shared_ext'
11534 shlibpath_overrides_runpath=yes
11535 shlibpath_var=DYLD_LIBRARY_PATH
11536 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11538 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11539 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11542 dgux*)
11543 version_type=linux
11544 need_lib_prefix=no
11545 need_version=no
11546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11547 soname_spec='${libname}${release}${shared_ext}$major'
11548 shlibpath_var=LD_LIBRARY_PATH
11551 freebsd* | dragonfly*)
11552 # DragonFly does not have aout. When/if they implement a new
11553 # versioning mechanism, adjust this.
11554 if test -x /usr/bin/objformat; then
11555 objformat=`/usr/bin/objformat`
11556 else
11557 case $host_os in
11558 freebsd[23].*) objformat=aout ;;
11559 *) objformat=elf ;;
11560 esac
11562 version_type=freebsd-$objformat
11563 case $version_type in
11564 freebsd-elf*)
11565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11566 need_version=no
11567 need_lib_prefix=no
11569 freebsd-*)
11570 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11571 need_version=yes
11573 esac
11574 shlibpath_var=LD_LIBRARY_PATH
11575 case $host_os in
11576 freebsd2.*)
11577 shlibpath_overrides_runpath=yes
11579 freebsd3.[01]* | freebsdelf3.[01]*)
11580 shlibpath_overrides_runpath=yes
11581 hardcode_into_libs=yes
11583 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11584 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11585 shlibpath_overrides_runpath=no
11586 hardcode_into_libs=yes
11588 *) # from 4.6 on, and DragonFly
11589 shlibpath_overrides_runpath=yes
11590 hardcode_into_libs=yes
11592 esac
11595 haiku*)
11596 version_type=linux
11597 need_lib_prefix=no
11598 need_version=no
11599 dynamic_linker="$host_os runtime_loader"
11600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11601 soname_spec='${libname}${release}${shared_ext}$major'
11602 shlibpath_var=LIBRARY_PATH
11603 shlibpath_overrides_runpath=yes
11604 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11605 hardcode_into_libs=yes
11608 hpux9* | hpux10* | hpux11*)
11609 # Give a soname corresponding to the major version so that dld.sl refuses to
11610 # link against other versions.
11611 version_type=sunos
11612 need_lib_prefix=no
11613 need_version=no
11614 case $host_cpu in
11615 ia64*)
11616 shrext_cmds='.so'
11617 hardcode_into_libs=yes
11618 dynamic_linker="$host_os dld.so"
11619 shlibpath_var=LD_LIBRARY_PATH
11620 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11622 soname_spec='${libname}${release}${shared_ext}$major'
11623 if test "X$HPUX_IA64_MODE" = X32; then
11624 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11625 else
11626 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11628 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11630 hppa*64*)
11631 shrext_cmds='.sl'
11632 hardcode_into_libs=yes
11633 dynamic_linker="$host_os dld.sl"
11634 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11635 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11637 soname_spec='${libname}${release}${shared_ext}$major'
11638 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11639 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11642 shrext_cmds='.sl'
11643 dynamic_linker="$host_os dld.sl"
11644 shlibpath_var=SHLIB_PATH
11645 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11647 soname_spec='${libname}${release}${shared_ext}$major'
11649 esac
11650 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11651 postinstall_cmds='chmod 555 $lib'
11652 # or fails outright, so override atomically:
11653 install_override_mode=555
11656 interix[3-9]*)
11657 version_type=linux
11658 need_lib_prefix=no
11659 need_version=no
11660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11661 soname_spec='${libname}${release}${shared_ext}$major'
11662 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11663 shlibpath_var=LD_LIBRARY_PATH
11664 shlibpath_overrides_runpath=no
11665 hardcode_into_libs=yes
11668 irix5* | irix6* | nonstopux*)
11669 case $host_os in
11670 nonstopux*) version_type=nonstopux ;;
11672 if test "$lt_cv_prog_gnu_ld" = yes; then
11673 version_type=linux
11674 else
11675 version_type=irix
11676 fi ;;
11677 esac
11678 need_lib_prefix=no
11679 need_version=no
11680 soname_spec='${libname}${release}${shared_ext}$major'
11681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11682 case $host_os in
11683 irix5* | nonstopux*)
11684 libsuff= shlibsuff=
11687 case $LD in # libtool.m4 will add one of these switches to LD
11688 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11689 libsuff= shlibsuff= libmagic=32-bit;;
11690 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11691 libsuff=32 shlibsuff=N32 libmagic=N32;;
11692 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11693 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11694 *) libsuff= shlibsuff= libmagic=never-match;;
11695 esac
11697 esac
11698 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11699 shlibpath_overrides_runpath=no
11700 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11701 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11702 hardcode_into_libs=yes
11705 # No shared lib support for Linux oldld, aout, or coff.
11706 linux*oldld* | linux*aout* | linux*coff*)
11707 dynamic_linker=no
11710 # This must be Linux ELF.
11712 # uclinux* changes (here and below) have been submitted to the libtool
11713 # project, but have not yet been accepted: they are GCC-local changes
11714 # for the time being. (See
11715 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
11716 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
11717 version_type=linux
11718 need_lib_prefix=no
11719 need_version=no
11720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11721 soname_spec='${libname}${release}${shared_ext}$major'
11722 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11723 shlibpath_var=LD_LIBRARY_PATH
11724 shlibpath_overrides_runpath=no
11726 # Some binutils ld are patched to set DT_RUNPATH
11727 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11728 $as_echo_n "(cached) " >&6
11729 else
11730 lt_cv_shlibpath_overrides_runpath=no
11731 save_LDFLAGS=$LDFLAGS
11732 save_libdir=$libdir
11733 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11734 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11736 /* end confdefs.h. */
11739 main ()
11743 return 0;
11745 _ACEOF
11746 if ac_fn_c_try_link "$LINENO"; then :
11747 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11748 lt_cv_shlibpath_overrides_runpath=yes
11751 rm -f core conftest.err conftest.$ac_objext \
11752 conftest$ac_exeext conftest.$ac_ext
11753 LDFLAGS=$save_LDFLAGS
11754 libdir=$save_libdir
11758 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11760 # This implies no fast_install, which is unacceptable.
11761 # Some rework will be needed to allow for fast_install
11762 # before this can be enabled.
11763 hardcode_into_libs=yes
11765 # Append ld.so.conf contents to the search path
11766 if test -f /etc/ld.so.conf; then
11767 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' ' '`
11768 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11771 # We used to test for /lib/ld.so.1 and disable shared libraries on
11772 # powerpc, because MkLinux only supported shared libraries with the
11773 # GNU dynamic linker. Since this was broken with cross compilers,
11774 # most powerpc-linux boxes support dynamic linking these days and
11775 # people can always --disable-shared, the test was removed, and we
11776 # assume the GNU/Linux dynamic linker is in use.
11777 dynamic_linker='GNU/Linux ld.so'
11780 netbsd*)
11781 version_type=sunos
11782 need_lib_prefix=no
11783 need_version=no
11784 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11786 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11787 dynamic_linker='NetBSD (a.out) ld.so'
11788 else
11789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11790 soname_spec='${libname}${release}${shared_ext}$major'
11791 dynamic_linker='NetBSD ld.elf_so'
11793 shlibpath_var=LD_LIBRARY_PATH
11794 shlibpath_overrides_runpath=yes
11795 hardcode_into_libs=yes
11798 newsos6)
11799 version_type=linux
11800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11801 shlibpath_var=LD_LIBRARY_PATH
11802 shlibpath_overrides_runpath=yes
11805 *nto* | *qnx*)
11806 version_type=qnx
11807 need_lib_prefix=no
11808 need_version=no
11809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11810 soname_spec='${libname}${release}${shared_ext}$major'
11811 shlibpath_var=LD_LIBRARY_PATH
11812 shlibpath_overrides_runpath=no
11813 hardcode_into_libs=yes
11814 dynamic_linker='ldqnx.so'
11817 openbsd*)
11818 version_type=sunos
11819 sys_lib_dlsearch_path_spec="/usr/lib"
11820 need_lib_prefix=no
11821 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11822 case $host_os in
11823 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11824 *) need_version=no ;;
11825 esac
11826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11827 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11828 shlibpath_var=LD_LIBRARY_PATH
11829 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11830 case $host_os in
11831 openbsd2.[89] | openbsd2.[89].*)
11832 shlibpath_overrides_runpath=no
11835 shlibpath_overrides_runpath=yes
11837 esac
11838 else
11839 shlibpath_overrides_runpath=yes
11843 os2*)
11844 libname_spec='$name'
11845 shrext_cmds=".dll"
11846 need_lib_prefix=no
11847 library_names_spec='$libname${shared_ext} $libname.a'
11848 dynamic_linker='OS/2 ld.exe'
11849 shlibpath_var=LIBPATH
11852 osf3* | osf4* | osf5*)
11853 version_type=osf
11854 need_lib_prefix=no
11855 need_version=no
11856 soname_spec='${libname}${release}${shared_ext}$major'
11857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11858 shlibpath_var=LD_LIBRARY_PATH
11859 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11860 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11863 rdos*)
11864 dynamic_linker=no
11867 solaris*)
11868 version_type=linux
11869 need_lib_prefix=no
11870 need_version=no
11871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11872 soname_spec='${libname}${release}${shared_ext}$major'
11873 shlibpath_var=LD_LIBRARY_PATH
11874 shlibpath_overrides_runpath=yes
11875 hardcode_into_libs=yes
11876 # ldd complains unless libraries are executable
11877 postinstall_cmds='chmod +x $lib'
11880 sunos4*)
11881 version_type=sunos
11882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11883 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11884 shlibpath_var=LD_LIBRARY_PATH
11885 shlibpath_overrides_runpath=yes
11886 if test "$with_gnu_ld" = yes; then
11887 need_lib_prefix=no
11889 need_version=yes
11892 sysv4 | sysv4.3*)
11893 version_type=linux
11894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11895 soname_spec='${libname}${release}${shared_ext}$major'
11896 shlibpath_var=LD_LIBRARY_PATH
11897 case $host_vendor in
11898 sni)
11899 shlibpath_overrides_runpath=no
11900 need_lib_prefix=no
11901 runpath_var=LD_RUN_PATH
11903 siemens)
11904 need_lib_prefix=no
11906 motorola)
11907 need_lib_prefix=no
11908 need_version=no
11909 shlibpath_overrides_runpath=no
11910 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11912 esac
11915 sysv4*MP*)
11916 if test -d /usr/nec ;then
11917 version_type=linux
11918 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11919 soname_spec='$libname${shared_ext}.$major'
11920 shlibpath_var=LD_LIBRARY_PATH
11924 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11925 version_type=freebsd-elf
11926 need_lib_prefix=no
11927 need_version=no
11928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11929 soname_spec='${libname}${release}${shared_ext}$major'
11930 shlibpath_var=LD_LIBRARY_PATH
11931 shlibpath_overrides_runpath=yes
11932 hardcode_into_libs=yes
11933 if test "$with_gnu_ld" = yes; then
11934 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11935 else
11936 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11937 case $host_os in
11938 sco3.2v5*)
11939 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11941 esac
11943 sys_lib_dlsearch_path_spec='/usr/lib'
11946 tpf*)
11947 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11948 version_type=linux
11949 need_lib_prefix=no
11950 need_version=no
11951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11952 shlibpath_var=LD_LIBRARY_PATH
11953 shlibpath_overrides_runpath=no
11954 hardcode_into_libs=yes
11957 uts4*)
11958 version_type=linux
11959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11960 soname_spec='${libname}${release}${shared_ext}$major'
11961 shlibpath_var=LD_LIBRARY_PATH
11964 # Shared libraries for VwWorks, >= 7 only at this stage
11965 # and (fpic) still incompatible with "large" code models
11966 # in a few configurations. Only for RTP mode in any case,
11967 # and upon explicit request at configure time.
11968 vxworks7*)
11969 dynamic_linker=no
11970 case ${with_multisubdir}-${enable_shared} in
11971 *large*)
11973 *mrtp*-yes)
11974 version_type=linux
11975 need_lib_prefix=no
11976 need_version=no
11977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11978 soname_spec='${libname}${release}${shared_ext}$major'
11979 dynamic_linker="$host_os module_loader"
11981 esac
11984 dynamic_linker=no
11986 esac
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11988 $as_echo "$dynamic_linker" >&6; }
11989 test "$dynamic_linker" = no && can_build_shared=no
11991 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11992 if test "$GCC" = yes; then
11993 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11996 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11997 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11999 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12000 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12095 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12096 hardcode_action=
12097 if test -n "$hardcode_libdir_flag_spec" ||
12098 test -n "$runpath_var" ||
12099 test "X$hardcode_automatic" = "Xyes" ; then
12101 # We can hardcode non-existent directories.
12102 if test "$hardcode_direct" != no &&
12103 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12104 # have to relink, otherwise we might link with an installed library
12105 # when we should be linking with a yet-to-be-installed one
12106 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12107 test "$hardcode_minus_L" != no; then
12108 # Linking always hardcodes the temporary library directory.
12109 hardcode_action=relink
12110 else
12111 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12112 hardcode_action=immediate
12114 else
12115 # We cannot hardcode anything, or else we can only hardcode existing
12116 # directories.
12117 hardcode_action=unsupported
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12120 $as_echo "$hardcode_action" >&6; }
12122 if test "$hardcode_action" = relink ||
12123 test "$inherit_rpath" = yes; then
12124 # Fast installation is not supported
12125 enable_fast_install=no
12126 elif test "$shlibpath_overrides_runpath" = yes ||
12127 test "$enable_shared" = no; then
12128 # Fast installation is not necessary
12129 enable_fast_install=needless
12137 if test "x$enable_dlopen" != xyes; then
12138 enable_dlopen=unknown
12139 enable_dlopen_self=unknown
12140 enable_dlopen_self_static=unknown
12141 else
12142 lt_cv_dlopen=no
12143 lt_cv_dlopen_libs=
12145 case $host_os in
12146 beos*)
12147 lt_cv_dlopen="load_add_on"
12148 lt_cv_dlopen_libs=
12149 lt_cv_dlopen_self=yes
12152 mingw* | pw32* | cegcc*)
12153 lt_cv_dlopen="LoadLibrary"
12154 lt_cv_dlopen_libs=
12157 cygwin*)
12158 lt_cv_dlopen="dlopen"
12159 lt_cv_dlopen_libs=
12162 darwin*)
12163 # if libdl is installed we need to link against it
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12165 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12166 if ${ac_cv_lib_dl_dlopen+:} false; then :
12167 $as_echo_n "(cached) " >&6
12168 else
12169 ac_check_lib_save_LIBS=$LIBS
12170 LIBS="-ldl $LIBS"
12171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12172 /* end confdefs.h. */
12174 /* Override any GCC internal prototype to avoid an error.
12175 Use char because int might match the return type of a GCC
12176 builtin and then its argument prototype would still apply. */
12177 #ifdef __cplusplus
12178 extern "C"
12179 #endif
12180 char dlopen ();
12182 main ()
12184 return dlopen ();
12186 return 0;
12188 _ACEOF
12189 if ac_fn_c_try_link "$LINENO"; then :
12190 ac_cv_lib_dl_dlopen=yes
12191 else
12192 ac_cv_lib_dl_dlopen=no
12194 rm -f core conftest.err conftest.$ac_objext \
12195 conftest$ac_exeext conftest.$ac_ext
12196 LIBS=$ac_check_lib_save_LIBS
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12199 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12200 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12201 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12202 else
12204 lt_cv_dlopen="dyld"
12205 lt_cv_dlopen_libs=
12206 lt_cv_dlopen_self=yes
12213 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12214 if test "x$ac_cv_func_shl_load" = xyes; then :
12215 lt_cv_dlopen="shl_load"
12216 else
12217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12218 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12219 if ${ac_cv_lib_dld_shl_load+:} false; then :
12220 $as_echo_n "(cached) " >&6
12221 else
12222 ac_check_lib_save_LIBS=$LIBS
12223 LIBS="-ldld $LIBS"
12224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12225 /* end confdefs.h. */
12227 /* Override any GCC internal prototype to avoid an error.
12228 Use char because int might match the return type of a GCC
12229 builtin and then its argument prototype would still apply. */
12230 #ifdef __cplusplus
12231 extern "C"
12232 #endif
12233 char shl_load ();
12235 main ()
12237 return shl_load ();
12239 return 0;
12241 _ACEOF
12242 if ac_fn_c_try_link "$LINENO"; then :
12243 ac_cv_lib_dld_shl_load=yes
12244 else
12245 ac_cv_lib_dld_shl_load=no
12247 rm -f core conftest.err conftest.$ac_objext \
12248 conftest$ac_exeext conftest.$ac_ext
12249 LIBS=$ac_check_lib_save_LIBS
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12252 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12253 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12254 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12255 else
12256 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12257 if test "x$ac_cv_func_dlopen" = xyes; then :
12258 lt_cv_dlopen="dlopen"
12259 else
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12261 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12262 if ${ac_cv_lib_dl_dlopen+:} false; then :
12263 $as_echo_n "(cached) " >&6
12264 else
12265 ac_check_lib_save_LIBS=$LIBS
12266 LIBS="-ldl $LIBS"
12267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12268 /* end confdefs.h. */
12270 /* Override any GCC internal prototype to avoid an error.
12271 Use char because int might match the return type of a GCC
12272 builtin and then its argument prototype would still apply. */
12273 #ifdef __cplusplus
12274 extern "C"
12275 #endif
12276 char dlopen ();
12278 main ()
12280 return dlopen ();
12282 return 0;
12284 _ACEOF
12285 if ac_fn_c_try_link "$LINENO"; then :
12286 ac_cv_lib_dl_dlopen=yes
12287 else
12288 ac_cv_lib_dl_dlopen=no
12290 rm -f core conftest.err conftest.$ac_objext \
12291 conftest$ac_exeext conftest.$ac_ext
12292 LIBS=$ac_check_lib_save_LIBS
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12295 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12296 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12297 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12298 else
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12300 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12301 if ${ac_cv_lib_svld_dlopen+:} false; then :
12302 $as_echo_n "(cached) " >&6
12303 else
12304 ac_check_lib_save_LIBS=$LIBS
12305 LIBS="-lsvld $LIBS"
12306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12307 /* end confdefs.h. */
12309 /* Override any GCC internal prototype to avoid an error.
12310 Use char because int might match the return type of a GCC
12311 builtin and then its argument prototype would still apply. */
12312 #ifdef __cplusplus
12313 extern "C"
12314 #endif
12315 char dlopen ();
12317 main ()
12319 return dlopen ();
12321 return 0;
12323 _ACEOF
12324 if ac_fn_c_try_link "$LINENO"; then :
12325 ac_cv_lib_svld_dlopen=yes
12326 else
12327 ac_cv_lib_svld_dlopen=no
12329 rm -f core conftest.err conftest.$ac_objext \
12330 conftest$ac_exeext conftest.$ac_ext
12331 LIBS=$ac_check_lib_save_LIBS
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12334 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12335 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12336 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12337 else
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12339 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12340 if ${ac_cv_lib_dld_dld_link+:} false; then :
12341 $as_echo_n "(cached) " >&6
12342 else
12343 ac_check_lib_save_LIBS=$LIBS
12344 LIBS="-ldld $LIBS"
12345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12346 /* end confdefs.h. */
12348 /* Override any GCC internal prototype to avoid an error.
12349 Use char because int might match the return type of a GCC
12350 builtin and then its argument prototype would still apply. */
12351 #ifdef __cplusplus
12352 extern "C"
12353 #endif
12354 char dld_link ();
12356 main ()
12358 return dld_link ();
12360 return 0;
12362 _ACEOF
12363 if ac_fn_c_try_link "$LINENO"; then :
12364 ac_cv_lib_dld_dld_link=yes
12365 else
12366 ac_cv_lib_dld_dld_link=no
12368 rm -f core conftest.err conftest.$ac_objext \
12369 conftest$ac_exeext conftest.$ac_ext
12370 LIBS=$ac_check_lib_save_LIBS
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12373 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12374 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12375 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12394 esac
12396 if test "x$lt_cv_dlopen" != xno; then
12397 enable_dlopen=yes
12398 else
12399 enable_dlopen=no
12402 case $lt_cv_dlopen in
12403 dlopen)
12404 save_CPPFLAGS="$CPPFLAGS"
12405 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12407 save_LDFLAGS="$LDFLAGS"
12408 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12410 save_LIBS="$LIBS"
12411 LIBS="$lt_cv_dlopen_libs $LIBS"
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12414 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12415 if ${lt_cv_dlopen_self+:} false; then :
12416 $as_echo_n "(cached) " >&6
12417 else
12418 if test "$cross_compiling" = yes; then :
12419 lt_cv_dlopen_self=cross
12420 else
12421 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12422 lt_status=$lt_dlunknown
12423 cat > conftest.$ac_ext <<_LT_EOF
12424 #line 12424 "configure"
12425 #include "confdefs.h"
12427 #if HAVE_DLFCN_H
12428 #include <dlfcn.h>
12429 #endif
12431 #include <stdio.h>
12433 #ifdef RTLD_GLOBAL
12434 # define LT_DLGLOBAL RTLD_GLOBAL
12435 #else
12436 # ifdef DL_GLOBAL
12437 # define LT_DLGLOBAL DL_GLOBAL
12438 # else
12439 # define LT_DLGLOBAL 0
12440 # endif
12441 #endif
12443 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12444 find out it does not work in some platform. */
12445 #ifndef LT_DLLAZY_OR_NOW
12446 # ifdef RTLD_LAZY
12447 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12448 # else
12449 # ifdef DL_LAZY
12450 # define LT_DLLAZY_OR_NOW DL_LAZY
12451 # else
12452 # ifdef RTLD_NOW
12453 # define LT_DLLAZY_OR_NOW RTLD_NOW
12454 # else
12455 # ifdef DL_NOW
12456 # define LT_DLLAZY_OR_NOW DL_NOW
12457 # else
12458 # define LT_DLLAZY_OR_NOW 0
12459 # endif
12460 # endif
12461 # endif
12462 # endif
12463 #endif
12465 /* When -fvisbility=hidden is used, assume the code has been annotated
12466 correspondingly for the symbols needed. */
12467 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12468 void fnord () __attribute__((visibility("default")));
12469 #endif
12471 void fnord () { int i=42; }
12472 int main ()
12474 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12475 int status = $lt_dlunknown;
12477 if (self)
12479 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12480 else
12482 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12483 else puts (dlerror ());
12485 /* dlclose (self); */
12487 else
12488 puts (dlerror ());
12490 return status;
12492 _LT_EOF
12493 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12494 (eval $ac_link) 2>&5
12495 ac_status=$?
12496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12497 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12498 (./conftest; exit; ) >&5 2>/dev/null
12499 lt_status=$?
12500 case x$lt_status in
12501 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12502 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12503 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12504 esac
12505 else :
12506 # compilation failed
12507 lt_cv_dlopen_self=no
12510 rm -fr conftest*
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12515 $as_echo "$lt_cv_dlopen_self" >&6; }
12517 if test "x$lt_cv_dlopen_self" = xyes; then
12518 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12520 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12521 if ${lt_cv_dlopen_self_static+:} false; then :
12522 $as_echo_n "(cached) " >&6
12523 else
12524 if test "$cross_compiling" = yes; then :
12525 lt_cv_dlopen_self_static=cross
12526 else
12527 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12528 lt_status=$lt_dlunknown
12529 cat > conftest.$ac_ext <<_LT_EOF
12530 #line 12530 "configure"
12531 #include "confdefs.h"
12533 #if HAVE_DLFCN_H
12534 #include <dlfcn.h>
12535 #endif
12537 #include <stdio.h>
12539 #ifdef RTLD_GLOBAL
12540 # define LT_DLGLOBAL RTLD_GLOBAL
12541 #else
12542 # ifdef DL_GLOBAL
12543 # define LT_DLGLOBAL DL_GLOBAL
12544 # else
12545 # define LT_DLGLOBAL 0
12546 # endif
12547 #endif
12549 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12550 find out it does not work in some platform. */
12551 #ifndef LT_DLLAZY_OR_NOW
12552 # ifdef RTLD_LAZY
12553 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12554 # else
12555 # ifdef DL_LAZY
12556 # define LT_DLLAZY_OR_NOW DL_LAZY
12557 # else
12558 # ifdef RTLD_NOW
12559 # define LT_DLLAZY_OR_NOW RTLD_NOW
12560 # else
12561 # ifdef DL_NOW
12562 # define LT_DLLAZY_OR_NOW DL_NOW
12563 # else
12564 # define LT_DLLAZY_OR_NOW 0
12565 # endif
12566 # endif
12567 # endif
12568 # endif
12569 #endif
12571 /* When -fvisbility=hidden is used, assume the code has been annotated
12572 correspondingly for the symbols needed. */
12573 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12574 void fnord () __attribute__((visibility("default")));
12575 #endif
12577 void fnord () { int i=42; }
12578 int main ()
12580 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12581 int status = $lt_dlunknown;
12583 if (self)
12585 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12586 else
12588 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12589 else puts (dlerror ());
12591 /* dlclose (self); */
12593 else
12594 puts (dlerror ());
12596 return status;
12598 _LT_EOF
12599 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12600 (eval $ac_link) 2>&5
12601 ac_status=$?
12602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12603 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12604 (./conftest; exit; ) >&5 2>/dev/null
12605 lt_status=$?
12606 case x$lt_status in
12607 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12608 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12609 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12610 esac
12611 else :
12612 # compilation failed
12613 lt_cv_dlopen_self_static=no
12616 rm -fr conftest*
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12621 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12624 CPPFLAGS="$save_CPPFLAGS"
12625 LDFLAGS="$save_LDFLAGS"
12626 LIBS="$save_LIBS"
12628 esac
12630 case $lt_cv_dlopen_self in
12631 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12632 *) enable_dlopen_self=unknown ;;
12633 esac
12635 case $lt_cv_dlopen_self_static in
12636 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12637 *) enable_dlopen_self_static=unknown ;;
12638 esac
12657 striplib=
12658 old_striplib=
12659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12660 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12661 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12662 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12663 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12665 $as_echo "yes" >&6; }
12666 else
12667 # FIXME - insert some real tests, host_os isn't really good enough
12668 case $host_os in
12669 darwin*)
12670 if test -n "$STRIP" ; then
12671 striplib="$STRIP -x"
12672 old_striplib="$STRIP -S"
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12674 $as_echo "yes" >&6; }
12675 else
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12677 $as_echo "no" >&6; }
12681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12682 $as_echo "no" >&6; }
12684 esac
12698 # Report which library types will actually be built
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12700 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12702 $as_echo "$can_build_shared" >&6; }
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12705 $as_echo_n "checking whether to build shared libraries... " >&6; }
12706 test "$can_build_shared" = "no" && enable_shared=no
12708 # On AIX, shared libraries and static libraries use the same namespace, and
12709 # are all built from PIC.
12710 case $host_os in
12711 aix3*)
12712 test "$enable_shared" = yes && enable_static=no
12713 if test -n "$RANLIB"; then
12714 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12715 postinstall_cmds='$RANLIB $lib'
12719 aix[4-9]*)
12720 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12721 test "$enable_shared" = yes && enable_static=no
12724 esac
12725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12726 $as_echo "$enable_shared" >&6; }
12728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12729 $as_echo_n "checking whether to build static libraries... " >&6; }
12730 # Make sure either enable_shared or enable_static is yes.
12731 test "$enable_shared" = yes || enable_static=yes
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12733 $as_echo "$enable_static" >&6; }
12739 ac_ext=c
12740 ac_cpp='$CPP $CPPFLAGS'
12741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12745 CC="$lt_save_CC"
12747 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12748 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12749 (test "X$CXX" != "Xg++"))) ; then
12750 ac_ext=cpp
12751 ac_cpp='$CXXCPP $CPPFLAGS'
12752 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12753 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12754 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12756 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12757 if test -z "$CXXCPP"; then
12758 if ${ac_cv_prog_CXXCPP+:} false; then :
12759 $as_echo_n "(cached) " >&6
12760 else
12761 # Double quotes because CXXCPP needs to be expanded
12762 for CXXCPP in "$CXX -E" "/lib/cpp"
12764 ac_preproc_ok=false
12765 for ac_cxx_preproc_warn_flag in '' yes
12767 # Use a header file that comes with gcc, so configuring glibc
12768 # with a fresh cross-compiler works.
12769 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12770 # <limits.h> exists even on freestanding compilers.
12771 # On the NeXT, cc -E runs the code through the compiler's parser,
12772 # not just through cpp. "Syntax error" is here to catch this case.
12773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12774 /* end confdefs.h. */
12775 #ifdef __STDC__
12776 # include <limits.h>
12777 #else
12778 # include <assert.h>
12779 #endif
12780 Syntax error
12781 _ACEOF
12782 if ac_fn_cxx_try_cpp "$LINENO"; then :
12784 else
12785 # Broken: fails on valid input.
12786 continue
12788 rm -f conftest.err conftest.i conftest.$ac_ext
12790 # OK, works on sane cases. Now check whether nonexistent headers
12791 # can be detected and how.
12792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12793 /* end confdefs.h. */
12794 #include <ac_nonexistent.h>
12795 _ACEOF
12796 if ac_fn_cxx_try_cpp "$LINENO"; then :
12797 # Broken: success on invalid input.
12798 continue
12799 else
12800 # Passes both tests.
12801 ac_preproc_ok=:
12802 break
12804 rm -f conftest.err conftest.i conftest.$ac_ext
12806 done
12807 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12808 rm -f conftest.i conftest.err conftest.$ac_ext
12809 if $ac_preproc_ok; then :
12810 break
12813 done
12814 ac_cv_prog_CXXCPP=$CXXCPP
12817 CXXCPP=$ac_cv_prog_CXXCPP
12818 else
12819 ac_cv_prog_CXXCPP=$CXXCPP
12821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12822 $as_echo "$CXXCPP" >&6; }
12823 ac_preproc_ok=false
12824 for ac_cxx_preproc_warn_flag in '' yes
12826 # Use a header file that comes with gcc, so configuring glibc
12827 # with a fresh cross-compiler works.
12828 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12829 # <limits.h> exists even on freestanding compilers.
12830 # On the NeXT, cc -E runs the code through the compiler's parser,
12831 # not just through cpp. "Syntax error" is here to catch this case.
12832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12833 /* end confdefs.h. */
12834 #ifdef __STDC__
12835 # include <limits.h>
12836 #else
12837 # include <assert.h>
12838 #endif
12839 Syntax error
12840 _ACEOF
12841 if ac_fn_cxx_try_cpp "$LINENO"; then :
12843 else
12844 # Broken: fails on valid input.
12845 continue
12847 rm -f conftest.err conftest.i conftest.$ac_ext
12849 # OK, works on sane cases. Now check whether nonexistent headers
12850 # can be detected and how.
12851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12852 /* end confdefs.h. */
12853 #include <ac_nonexistent.h>
12854 _ACEOF
12855 if ac_fn_cxx_try_cpp "$LINENO"; then :
12856 # Broken: success on invalid input.
12857 continue
12858 else
12859 # Passes both tests.
12860 ac_preproc_ok=:
12861 break
12863 rm -f conftest.err conftest.i conftest.$ac_ext
12865 done
12866 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12867 rm -f conftest.i conftest.err conftest.$ac_ext
12868 if $ac_preproc_ok; then :
12870 else
12871 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12872 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12873 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12874 See \`config.log' for more details" "$LINENO" 5; }
12877 ac_ext=c
12878 ac_cpp='$CPP $CPPFLAGS'
12879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12883 else
12884 _lt_caught_CXX_error=yes
12887 ac_ext=cpp
12888 ac_cpp='$CXXCPP $CPPFLAGS'
12889 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12890 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12891 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12893 archive_cmds_need_lc_CXX=no
12894 allow_undefined_flag_CXX=
12895 always_export_symbols_CXX=no
12896 archive_expsym_cmds_CXX=
12897 compiler_needs_object_CXX=no
12898 export_dynamic_flag_spec_CXX=
12899 hardcode_direct_CXX=no
12900 hardcode_direct_absolute_CXX=no
12901 hardcode_libdir_flag_spec_CXX=
12902 hardcode_libdir_flag_spec_ld_CXX=
12903 hardcode_libdir_separator_CXX=
12904 hardcode_minus_L_CXX=no
12905 hardcode_shlibpath_var_CXX=unsupported
12906 hardcode_automatic_CXX=no
12907 inherit_rpath_CXX=no
12908 module_cmds_CXX=
12909 module_expsym_cmds_CXX=
12910 link_all_deplibs_CXX=unknown
12911 old_archive_cmds_CXX=$old_archive_cmds
12912 reload_flag_CXX=$reload_flag
12913 reload_cmds_CXX=$reload_cmds
12914 no_undefined_flag_CXX=
12915 whole_archive_flag_spec_CXX=
12916 enable_shared_with_static_runtimes_CXX=no
12918 # Source file extension for C++ test sources.
12919 ac_ext=cpp
12921 # Object file extension for compiled C++ test sources.
12922 objext=o
12923 objext_CXX=$objext
12925 # No sense in running all these tests if we already determined that
12926 # the CXX compiler isn't working. Some variables (like enable_shared)
12927 # are currently assumed to apply to all compilers on this platform,
12928 # and will be corrupted by setting them based on a non-working compiler.
12929 if test "$_lt_caught_CXX_error" != yes; then
12930 # Code to be used in simple compile tests
12931 lt_simple_compile_test_code="int some_variable = 0;"
12933 # Code to be used in simple link tests
12934 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12936 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12943 # If no C compiler was specified, use CC.
12944 LTCC=${LTCC-"$CC"}
12946 # If no C compiler flags were specified, use CFLAGS.
12947 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12949 # Allow CC to be a program name with arguments.
12950 compiler=$CC
12953 # save warnings/boilerplate of simple test code
12954 ac_outfile=conftest.$ac_objext
12955 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12956 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12957 _lt_compiler_boilerplate=`cat conftest.err`
12958 $RM conftest*
12960 ac_outfile=conftest.$ac_objext
12961 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12962 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12963 _lt_linker_boilerplate=`cat conftest.err`
12964 $RM -r conftest*
12967 # Allow CC to be a program name with arguments.
12968 lt_save_CC=$CC
12969 lt_save_LD=$LD
12970 lt_save_GCC=$GCC
12971 GCC=$GXX
12972 lt_save_with_gnu_ld=$with_gnu_ld
12973 lt_save_path_LD=$lt_cv_path_LD
12974 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12975 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12976 else
12977 $as_unset lt_cv_prog_gnu_ld
12979 if test -n "${lt_cv_path_LDCXX+set}"; then
12980 lt_cv_path_LD=$lt_cv_path_LDCXX
12981 else
12982 $as_unset lt_cv_path_LD
12984 test -z "${LDCXX+set}" || LD=$LDCXX
12985 CC=${CXX-"c++"}
12986 compiler=$CC
12987 compiler_CXX=$CC
12988 for cc_temp in $compiler""; do
12989 case $cc_temp in
12990 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12991 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12992 \-*) ;;
12993 *) break;;
12994 esac
12995 done
12996 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12999 if test -n "$compiler"; then
13000 # We don't want -fno-exception when compiling C++ code, so set the
13001 # no_builtin_flag separately
13002 if test "$GXX" = yes; then
13003 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13004 else
13005 lt_prog_compiler_no_builtin_flag_CXX=
13008 if test "$GXX" = yes; then
13009 # Set up default GNU C++ configuration
13013 # Check whether --with-gnu-ld was given.
13014 if test "${with_gnu_ld+set}" = set; then :
13015 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13016 else
13017 with_gnu_ld=no
13020 ac_prog=ld
13021 if test "$GCC" = yes; then
13022 # Check if gcc -print-prog-name=ld gives a path.
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13024 $as_echo_n "checking for ld used by $CC... " >&6; }
13025 case $host in
13026 *-*-mingw*)
13027 # gcc leaves a trailing carriage return which upsets mingw
13028 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13030 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13031 esac
13032 case $ac_prog in
13033 # Accept absolute paths.
13034 [\\/]* | ?:[\\/]*)
13035 re_direlt='/[^/][^/]*/\.\./'
13036 # Canonicalize the pathname of ld
13037 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13038 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13039 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13040 done
13041 test -z "$LD" && LD="$ac_prog"
13044 # If it fails, then pretend we aren't using GCC.
13045 ac_prog=ld
13048 # If it is relative, then search for the first ld in PATH.
13049 with_gnu_ld=unknown
13051 esac
13052 elif test "$with_gnu_ld" = yes; then
13053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13054 $as_echo_n "checking for GNU ld... " >&6; }
13055 else
13056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13057 $as_echo_n "checking for non-GNU ld... " >&6; }
13059 if ${lt_cv_path_LD+:} false; then :
13060 $as_echo_n "(cached) " >&6
13061 else
13062 if test -z "$LD"; then
13063 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13064 for ac_dir in $PATH; do
13065 IFS="$lt_save_ifs"
13066 test -z "$ac_dir" && ac_dir=.
13067 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13068 lt_cv_path_LD="$ac_dir/$ac_prog"
13069 # Check to see if the program is GNU ld. I'd rather use --version,
13070 # but apparently some variants of GNU ld only accept -v.
13071 # Break only if it was the GNU/non-GNU ld that we prefer.
13072 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13073 *GNU* | *'with BFD'*)
13074 test "$with_gnu_ld" != no && break
13077 test "$with_gnu_ld" != yes && break
13079 esac
13081 done
13082 IFS="$lt_save_ifs"
13083 else
13084 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13088 LD="$lt_cv_path_LD"
13089 if test -n "$LD"; then
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13091 $as_echo "$LD" >&6; }
13092 else
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13094 $as_echo "no" >&6; }
13096 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13098 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13099 if ${lt_cv_prog_gnu_ld+:} false; then :
13100 $as_echo_n "(cached) " >&6
13101 else
13102 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13103 case `$LD -v 2>&1 </dev/null` in
13104 *GNU* | *'with BFD'*)
13105 lt_cv_prog_gnu_ld=yes
13108 lt_cv_prog_gnu_ld=no
13110 esac
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13113 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13114 with_gnu_ld=$lt_cv_prog_gnu_ld
13122 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13123 # archiving commands below assume that GNU ld is being used.
13124 if test "$with_gnu_ld" = yes; then
13125 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13126 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'
13128 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13129 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13131 # If archive_cmds runs LD, not CC, wlarc should be empty
13132 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13133 # investigate it a little bit more. (MM)
13134 wlarc='${wl}'
13136 # ancient GNU ld didn't support --whole-archive et. al.
13137 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13138 $GREP 'no-whole-archive' > /dev/null; then
13139 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13140 else
13141 whole_archive_flag_spec_CXX=
13143 else
13144 with_gnu_ld=no
13145 wlarc=
13147 # A generic and very simple default shared library creation
13148 # command for GNU C++ for the case where it uses the native
13149 # linker, instead of GNU ld. If possible, this setting should
13150 # overridden to take advantage of the native linker features on
13151 # the platform it is being used on.
13152 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13155 # Commands to make compiler produce verbose output that lists
13156 # what "hidden" libraries, object files and flags are used when
13157 # linking a shared library.
13158 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13160 else
13161 GXX=no
13162 with_gnu_ld=no
13163 wlarc=
13166 # PORTME: fill in a description of your system's C++ link characteristics
13167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13168 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13169 ld_shlibs_CXX=yes
13170 case $host_os in
13171 aix3*)
13172 # FIXME: insert proper C++ library support
13173 ld_shlibs_CXX=no
13175 aix[4-9]*)
13176 if test "$host_cpu" = ia64; then
13177 # On IA64, the linker does run time linking by default, so we don't
13178 # have to do anything special.
13179 aix_use_runtimelinking=no
13180 exp_sym_flag='-Bexport'
13181 no_entry_flag=""
13182 else
13183 aix_use_runtimelinking=no
13185 # Test if we are trying to use run time linking or normal
13186 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13187 # need to do runtime linking.
13188 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13189 for ld_flag in $LDFLAGS; do
13190 case $ld_flag in
13191 *-brtl*)
13192 aix_use_runtimelinking=yes
13193 break
13195 esac
13196 done
13198 esac
13200 exp_sym_flag='-bexport'
13201 no_entry_flag='-bnoentry'
13204 # When large executables or shared objects are built, AIX ld can
13205 # have problems creating the table of contents. If linking a library
13206 # or program results in "error TOC overflow" add -mminimal-toc to
13207 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13208 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13210 archive_cmds_CXX=''
13211 hardcode_direct_CXX=yes
13212 hardcode_direct_absolute_CXX=yes
13213 hardcode_libdir_separator_CXX=':'
13214 link_all_deplibs_CXX=yes
13215 file_list_spec_CXX='${wl}-f,'
13217 if test "$GXX" = yes; then
13218 case $host_os in aix4.[012]|aix4.[012].*)
13219 # We only want to do this on AIX 4.2 and lower, the check
13220 # below for broken collect2 doesn't work under 4.3+
13221 collect2name=`${CC} -print-prog-name=collect2`
13222 if test -f "$collect2name" &&
13223 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13224 then
13225 # We have reworked collect2
13227 else
13228 # We have old collect2
13229 hardcode_direct_CXX=unsupported
13230 # It fails to find uninstalled libraries when the uninstalled
13231 # path is not listed in the libpath. Setting hardcode_minus_L
13232 # to unsupported forces relinking
13233 hardcode_minus_L_CXX=yes
13234 hardcode_libdir_flag_spec_CXX='-L$libdir'
13235 hardcode_libdir_separator_CXX=
13237 esac
13238 shared_flag='-shared'
13239 if test "$aix_use_runtimelinking" = yes; then
13240 shared_flag="$shared_flag "'${wl}-G'
13242 else
13243 # not using gcc
13244 if test "$host_cpu" = ia64; then
13245 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13246 # chokes on -Wl,-G. The following line is correct:
13247 shared_flag='-G'
13248 else
13249 if test "$aix_use_runtimelinking" = yes; then
13250 shared_flag='${wl}-G'
13251 else
13252 shared_flag='${wl}-bM:SRE'
13257 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13258 # It seems that -bexpall does not export symbols beginning with
13259 # underscore (_), so it is better to generate a list of symbols to
13260 # export.
13261 always_export_symbols_CXX=yes
13262 if test "$aix_use_runtimelinking" = yes; then
13263 # Warning - without using the other runtime loading flags (-brtl),
13264 # -berok will link without error, but may produce a broken library.
13265 allow_undefined_flag_CXX='-berok'
13266 # Determine the default libpath from the value encoded in an empty
13267 # executable.
13268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13269 /* end confdefs.h. */
13272 main ()
13276 return 0;
13278 _ACEOF
13279 if ac_fn_cxx_try_link "$LINENO"; then :
13281 lt_aix_libpath_sed='
13282 /Import File Strings/,/^$/ {
13283 /^0/ {
13284 s/^0 *\(.*\)$/\1/
13288 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13289 # Check for a 64-bit object if we didn't find anything.
13290 if test -z "$aix_libpath"; then
13291 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13294 rm -f core conftest.err conftest.$ac_objext \
13295 conftest$ac_exeext conftest.$ac_ext
13296 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13298 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13300 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"
13301 else
13302 if test "$host_cpu" = ia64; then
13303 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13304 allow_undefined_flag_CXX="-z nodefs"
13305 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"
13306 else
13307 # Determine the default libpath from the value encoded in an
13308 # empty executable.
13309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13310 /* end confdefs.h. */
13313 main ()
13317 return 0;
13319 _ACEOF
13320 if ac_fn_cxx_try_link "$LINENO"; then :
13322 lt_aix_libpath_sed='
13323 /Import File Strings/,/^$/ {
13324 /^0/ {
13325 s/^0 *\(.*\)$/\1/
13329 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13330 # Check for a 64-bit object if we didn't find anything.
13331 if test -z "$aix_libpath"; then
13332 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13335 rm -f core conftest.err conftest.$ac_objext \
13336 conftest$ac_exeext conftest.$ac_ext
13337 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13339 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13340 # Warning - without using the other run time loading flags,
13341 # -berok will link without error, but may produce a broken library.
13342 no_undefined_flag_CXX=' ${wl}-bernotok'
13343 allow_undefined_flag_CXX=' ${wl}-berok'
13344 if test "$with_gnu_ld" = yes; then
13345 # We only use this code for GNU lds that support --whole-archive.
13346 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13347 else
13348 # Exported symbols can be pulled into shared objects from archives
13349 whole_archive_flag_spec_CXX='$convenience'
13351 archive_cmds_need_lc_CXX=yes
13352 # This is similar to how AIX traditionally builds its shared
13353 # libraries.
13354 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'
13359 beos*)
13360 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13361 allow_undefined_flag_CXX=unsupported
13362 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13363 # support --undefined. This deserves some investigation. FIXME
13364 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13365 else
13366 ld_shlibs_CXX=no
13370 chorus*)
13371 case $cc_basename in
13373 # FIXME: insert proper C++ library support
13374 ld_shlibs_CXX=no
13376 esac
13379 cygwin* | mingw* | pw32* | cegcc*)
13380 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13381 # as there is no search path for DLLs.
13382 hardcode_libdir_flag_spec_CXX='-L$libdir'
13383 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13384 allow_undefined_flag_CXX=unsupported
13385 always_export_symbols_CXX=no
13386 enable_shared_with_static_runtimes_CXX=yes
13388 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13389 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'
13390 # If the export-symbols file already is a .def file (1st line
13391 # is EXPORTS), use it as is; otherwise, prepend...
13392 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13393 cp $export_symbols $output_objdir/$soname.def;
13394 else
13395 echo EXPORTS > $output_objdir/$soname.def;
13396 cat $export_symbols >> $output_objdir/$soname.def;
13398 $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'
13399 else
13400 ld_shlibs_CXX=no
13403 darwin* | rhapsody*)
13406 archive_cmds_need_lc_CXX=no
13407 hardcode_direct_CXX=no
13408 hardcode_automatic_CXX=yes
13409 hardcode_shlibpath_var_CXX=unsupported
13410 if test "$lt_cv_ld_force_load" = "yes"; then
13411 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\"`'
13412 else
13413 whole_archive_flag_spec_CXX=''
13415 link_all_deplibs_CXX=yes
13416 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13417 case $cc_basename in
13418 ifort*) _lt_dar_can_shared=yes ;;
13419 *) _lt_dar_can_shared=$GCC ;;
13420 esac
13421 if test "$_lt_dar_can_shared" = "yes"; then
13422 output_verbose_link_cmd=func_echo_all
13423 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}"
13424 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13425 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}"
13426 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}"
13427 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13428 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}"
13429 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}"
13432 else
13433 ld_shlibs_CXX=no
13438 dgux*)
13439 case $cc_basename in
13440 ec++*)
13441 # FIXME: insert proper C++ library support
13442 ld_shlibs_CXX=no
13444 ghcx*)
13445 # Green Hills C++ Compiler
13446 # FIXME: insert proper C++ library support
13447 ld_shlibs_CXX=no
13450 # FIXME: insert proper C++ library support
13451 ld_shlibs_CXX=no
13453 esac
13456 freebsd2.*)
13457 # C++ shared libraries reported to be fairly broken before
13458 # switch to ELF
13459 ld_shlibs_CXX=no
13462 freebsd-elf*)
13463 archive_cmds_need_lc_CXX=no
13466 freebsd* | dragonfly*)
13467 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13468 # conventions
13469 ld_shlibs_CXX=yes
13472 gnu*)
13475 haiku*)
13476 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13477 link_all_deplibs_CXX=yes
13480 hpux9*)
13481 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13482 hardcode_libdir_separator_CXX=:
13483 export_dynamic_flag_spec_CXX='${wl}-E'
13484 hardcode_direct_CXX=yes
13485 hardcode_minus_L_CXX=yes # Not in the search PATH,
13486 # but as the default
13487 # location of the library.
13489 case $cc_basename in
13490 CC*)
13491 # FIXME: insert proper C++ library support
13492 ld_shlibs_CXX=no
13494 aCC*)
13495 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'
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 -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"'
13507 if test "$GXX" = yes; then
13508 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'
13509 else
13510 # FIXME: insert proper C++ library support
13511 ld_shlibs_CXX=no
13514 esac
13517 hpux10*|hpux11*)
13518 if test $with_gnu_ld = no; then
13519 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13520 hardcode_libdir_separator_CXX=:
13522 case $host_cpu in
13523 hppa*64*|ia64*)
13526 export_dynamic_flag_spec_CXX='${wl}-E'
13528 esac
13530 case $host_cpu in
13531 hppa*64*|ia64*)
13532 hardcode_direct_CXX=no
13533 hardcode_shlibpath_var_CXX=no
13536 hardcode_direct_CXX=yes
13537 hardcode_direct_absolute_CXX=yes
13538 hardcode_minus_L_CXX=yes # Not in the search PATH,
13539 # but as the default
13540 # location of the library.
13542 esac
13544 case $cc_basename in
13545 CC*)
13546 # FIXME: insert proper C++ library support
13547 ld_shlibs_CXX=no
13549 aCC*)
13550 case $host_cpu in
13551 hppa*64*)
13552 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13554 ia64*)
13555 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13558 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13560 esac
13561 # Commands to make compiler produce verbose output that lists
13562 # what "hidden" libraries, object files and flags are used when
13563 # linking a shared library.
13565 # There doesn't appear to be a way to prevent this compiler from
13566 # explicitly linking system object files so we need to strip them
13567 # from the output so that they don't get included in the library
13568 # dependencies.
13569 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"'
13572 if test "$GXX" = yes; then
13573 if test $with_gnu_ld = no; then
13574 case $host_cpu in
13575 hppa*64*)
13576 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13578 ia64*)
13579 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13582 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'
13584 esac
13586 else
13587 # FIXME: insert proper C++ library support
13588 ld_shlibs_CXX=no
13591 esac
13594 interix[3-9]*)
13595 hardcode_direct_CXX=no
13596 hardcode_shlibpath_var_CXX=no
13597 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13598 export_dynamic_flag_spec_CXX='${wl}-E'
13599 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13600 # Instead, shared libraries are loaded at an image base (0x10000000 by
13601 # default) and relocated if they conflict, which is a slow very memory
13602 # consuming and fragmenting process. To avoid this, we pick a random,
13603 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13604 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13605 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'
13606 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'
13608 irix5* | irix6*)
13609 case $cc_basename in
13610 CC*)
13611 # SGI C++
13612 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'
13614 # Archives containing C++ object files must be created using
13615 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13616 # necessary to make sure instantiated templates are included
13617 # in the archive.
13618 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13621 if test "$GXX" = yes; then
13622 if test "$with_gnu_ld" = no; then
13623 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'
13624 else
13625 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'
13628 link_all_deplibs_CXX=yes
13630 esac
13631 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13632 hardcode_libdir_separator_CXX=:
13633 inherit_rpath_CXX=yes
13636 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13637 case $cc_basename in
13638 KCC*)
13639 # Kuck and Associates, Inc. (KAI) C++ Compiler
13641 # KCC will only create a shared library if the output file
13642 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13643 # to its proper name (with version) after linking.
13644 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'
13645 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'
13646 # Commands to make compiler produce verbose output that lists
13647 # what "hidden" libraries, object files and flags are used when
13648 # linking a shared library.
13650 # There doesn't appear to be a way to prevent this compiler from
13651 # explicitly linking system object files so we need to strip them
13652 # from the output so that they don't get included in the library
13653 # dependencies.
13654 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"'
13656 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13657 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13659 # Archives containing C++ object files must be created using
13660 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13661 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13663 icpc* | ecpc* )
13664 # Intel C++
13665 with_gnu_ld=yes
13666 # version 8.0 and above of icpc choke on multiply defined symbols
13667 # if we add $predep_objects and $postdep_objects, however 7.1 and
13668 # earlier do not add the objects themselves.
13669 case `$CC -V 2>&1` in
13670 *"Version 7."*)
13671 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13672 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'
13674 *) # Version 8.0 or newer
13675 tmp_idyn=
13676 case $host_cpu in
13677 ia64*) tmp_idyn=' -i_dynamic';;
13678 esac
13679 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13680 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'
13682 esac
13683 archive_cmds_need_lc_CXX=no
13684 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13685 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13686 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13688 pgCC* | pgcpp*)
13689 # Portland Group C++ compiler
13690 case `$CC -V` in
13691 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13692 prelink_cmds_CXX='tpldir=Template.dir~
13693 rm -rf $tpldir~
13694 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13695 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13696 old_archive_cmds_CXX='tpldir=Template.dir~
13697 rm -rf $tpldir~
13698 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13699 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13700 $RANLIB $oldlib'
13701 archive_cmds_CXX='tpldir=Template.dir~
13702 rm -rf $tpldir~
13703 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13704 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13705 archive_expsym_cmds_CXX='tpldir=Template.dir~
13706 rm -rf $tpldir~
13707 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13708 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13710 *) # Version 6 and above use weak symbols
13711 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13712 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'
13714 esac
13716 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13717 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13718 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'
13720 cxx*)
13721 # Compaq C++
13722 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13723 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'
13725 runpath_var=LD_RUN_PATH
13726 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13727 hardcode_libdir_separator_CXX=:
13729 # Commands to make compiler produce verbose output that lists
13730 # what "hidden" libraries, object files and flags are used when
13731 # linking a shared library.
13733 # There doesn't appear to be a way to prevent this compiler from
13734 # explicitly linking system object files so we need to strip them
13735 # from the output so that they don't get included in the library
13736 # dependencies.
13737 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'
13739 xl* | mpixl* | bgxl*)
13740 # IBM XL 8.0 on PPC, with GNU ld
13741 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13742 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13743 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13744 if test "x$supports_anon_versioning" = xyes; then
13745 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13746 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13747 echo "local: *; };" >> $output_objdir/$libname.ver~
13748 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13752 case `$CC -V 2>&1 | sed 5q` in
13753 *Sun\ C*)
13754 # Sun C++ 5.9
13755 no_undefined_flag_CXX=' -zdefs'
13756 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13757 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'
13758 hardcode_libdir_flag_spec_CXX='-R$libdir'
13759 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'
13760 compiler_needs_object_CXX=yes
13762 # Not sure whether something based on
13763 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13764 # would be better.
13765 output_verbose_link_cmd='func_echo_all'
13767 # Archives containing C++ object files must be created using
13768 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13769 # necessary to make sure instantiated templates are included
13770 # in the archive.
13771 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13773 esac
13775 esac
13778 lynxos*)
13779 # FIXME: insert proper C++ library support
13780 ld_shlibs_CXX=no
13783 m88k*)
13784 # FIXME: insert proper C++ library support
13785 ld_shlibs_CXX=no
13788 mvs*)
13789 case $cc_basename in
13790 cxx*)
13791 # FIXME: insert proper C++ library support
13792 ld_shlibs_CXX=no
13795 # FIXME: insert proper C++ library support
13796 ld_shlibs_CXX=no
13798 esac
13801 netbsd*)
13802 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13803 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13804 wlarc=
13805 hardcode_libdir_flag_spec_CXX='-R$libdir'
13806 hardcode_direct_CXX=yes
13807 hardcode_shlibpath_var_CXX=no
13809 # Workaround some broken pre-1.5 toolchains
13810 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13813 *nto* | *qnx*)
13814 ld_shlibs_CXX=yes
13817 openbsd2*)
13818 # C++ shared libraries are fairly broken
13819 ld_shlibs_CXX=no
13822 openbsd*)
13823 if test -f /usr/libexec/ld.so; then
13824 hardcode_direct_CXX=yes
13825 hardcode_shlibpath_var_CXX=no
13826 hardcode_direct_absolute_CXX=yes
13827 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13828 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13829 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13830 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13831 export_dynamic_flag_spec_CXX='${wl}-E'
13832 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13834 output_verbose_link_cmd=func_echo_all
13835 else
13836 ld_shlibs_CXX=no
13840 osf3* | osf4* | osf5*)
13841 case $cc_basename in
13842 KCC*)
13843 # Kuck and Associates, Inc. (KAI) C++ Compiler
13845 # KCC will only create a shared library if the output file
13846 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13847 # to its proper name (with version) after linking.
13848 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'
13850 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13851 hardcode_libdir_separator_CXX=:
13853 # Archives containing C++ object files must be created using
13854 # the KAI C++ compiler.
13855 case $host in
13856 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13857 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13858 esac
13860 RCC*)
13861 # Rational C++ 2.4.1
13862 # FIXME: insert proper C++ library support
13863 ld_shlibs_CXX=no
13865 cxx*)
13866 case $host in
13867 osf3*)
13868 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13869 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'
13870 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13873 allow_undefined_flag_CXX=' -expect_unresolved \*'
13874 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'
13875 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13876 echo "-hidden">> $lib.exp~
13877 $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~
13878 $RM $lib.exp'
13879 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13881 esac
13883 hardcode_libdir_separator_CXX=:
13885 # Commands to make compiler produce verbose output that lists
13886 # what "hidden" libraries, object files and flags are used when
13887 # linking a shared library.
13889 # There doesn't appear to be a way to prevent this compiler from
13890 # explicitly linking system object files so we need to strip them
13891 # from the output so that they don't get included in the library
13892 # dependencies.
13893 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"'
13896 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13897 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13898 case $host in
13899 osf3*)
13900 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'
13903 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'
13905 esac
13907 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13908 hardcode_libdir_separator_CXX=:
13910 # Commands to make compiler produce verbose output that lists
13911 # what "hidden" libraries, object files and flags are used when
13912 # linking a shared library.
13913 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13915 else
13916 # FIXME: insert proper C++ library support
13917 ld_shlibs_CXX=no
13920 esac
13923 psos*)
13924 # FIXME: insert proper C++ library support
13925 ld_shlibs_CXX=no
13928 sunos4*)
13929 case $cc_basename in
13930 CC*)
13931 # Sun C++ 4.x
13932 # FIXME: insert proper C++ library support
13933 ld_shlibs_CXX=no
13935 lcc*)
13936 # Lucid
13937 # FIXME: insert proper C++ library support
13938 ld_shlibs_CXX=no
13941 # FIXME: insert proper C++ library support
13942 ld_shlibs_CXX=no
13944 esac
13947 solaris*)
13948 case $cc_basename in
13949 CC*)
13950 # Sun C++ 4.2, 5.x and Centerline C++
13951 archive_cmds_need_lc_CXX=yes
13952 no_undefined_flag_CXX=' -zdefs'
13953 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13954 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13955 $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'
13957 hardcode_libdir_flag_spec_CXX='-R$libdir'
13958 hardcode_shlibpath_var_CXX=no
13959 case $host_os in
13960 solaris2.[0-5] | solaris2.[0-5].*) ;;
13962 # The compiler driver will combine and reorder linker options,
13963 # but understands `-z linker_flag'.
13964 # Supported since Solaris 2.6 (maybe 2.5.1?)
13965 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13967 esac
13968 link_all_deplibs_CXX=yes
13970 output_verbose_link_cmd='func_echo_all'
13972 # Archives containing C++ object files must be created using
13973 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13974 # necessary to make sure instantiated templates are included
13975 # in the archive.
13976 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13978 gcx*)
13979 # Green Hills C++ Compiler
13980 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13982 # The C++ compiler must be used to create the archive.
13983 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13986 # GNU C++ compiler with Solaris linker
13987 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13988 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13989 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13990 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13991 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13992 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13994 # Commands to make compiler produce verbose output that lists
13995 # what "hidden" libraries, object files and flags are used when
13996 # linking a shared library.
13997 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13998 else
13999 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14000 # platform.
14001 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14002 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14003 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14005 # Commands to make compiler produce verbose output that lists
14006 # what "hidden" libraries, object files and flags are used when
14007 # linking a shared library.
14008 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14011 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14012 case $host_os in
14013 solaris2.[0-5] | solaris2.[0-5].*) ;;
14015 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14017 esac
14020 esac
14023 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14024 no_undefined_flag_CXX='${wl}-z,text'
14025 archive_cmds_need_lc_CXX=no
14026 hardcode_shlibpath_var_CXX=no
14027 runpath_var='LD_RUN_PATH'
14029 case $cc_basename in
14030 CC*)
14031 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14032 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14035 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14036 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14038 esac
14041 sysv5* | sco3.2v5* | sco5v6*)
14042 # Note: We can NOT use -z defs as we might desire, because we do not
14043 # link with -lc, and that would cause any symbols used from libc to
14044 # always be unresolved, which means just about no library would
14045 # ever link correctly. If we're not using GNU ld we use -z text
14046 # though, which does catch some bad symbols but isn't as heavy-handed
14047 # as -z defs.
14048 no_undefined_flag_CXX='${wl}-z,text'
14049 allow_undefined_flag_CXX='${wl}-z,nodefs'
14050 archive_cmds_need_lc_CXX=no
14051 hardcode_shlibpath_var_CXX=no
14052 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14053 hardcode_libdir_separator_CXX=':'
14054 link_all_deplibs_CXX=yes
14055 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14056 runpath_var='LD_RUN_PATH'
14058 case $cc_basename in
14059 CC*)
14060 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14061 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14062 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14063 '"$old_archive_cmds_CXX"
14064 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14065 '"$reload_cmds_CXX"
14068 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14069 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14071 esac
14074 tandem*)
14075 case $cc_basename in
14076 NCC*)
14077 # NonStop-UX NCC 3.20
14078 # FIXME: insert proper C++ library support
14079 ld_shlibs_CXX=no
14082 # FIXME: insert proper C++ library support
14083 ld_shlibs_CXX=no
14085 esac
14088 vxworks*)
14089 # For VxWorks ports, we assume the use of a GNU linker with
14090 # standard elf conventions.
14091 ld_shlibs_CXX=yes
14095 # FIXME: insert proper C++ library support
14096 ld_shlibs_CXX=no
14098 esac
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14101 $as_echo "$ld_shlibs_CXX" >&6; }
14102 test "$ld_shlibs_CXX" = no && can_build_shared=no
14104 GCC_CXX="$GXX"
14105 LD_CXX="$LD"
14107 ## CAVEAT EMPTOR:
14108 ## There is no encapsulation within the following macros, do not change
14109 ## the running order or otherwise move them around unless you know exactly
14110 ## what you are doing...
14111 # Dependencies to place before and after the object being linked:
14112 predep_objects_CXX=
14113 postdep_objects_CXX=
14114 predeps_CXX=
14115 postdeps_CXX=
14116 compiler_lib_search_path_CXX=
14118 cat > conftest.$ac_ext <<_LT_EOF
14119 class Foo
14121 public:
14122 Foo (void) { a = 0; }
14123 private:
14124 int a;
14126 _LT_EOF
14128 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14129 (eval $ac_compile) 2>&5
14130 ac_status=$?
14131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14132 test $ac_status = 0; }; then
14133 # Parse the compiler output and extract the necessary
14134 # objects, libraries and library flags.
14136 # Sentinel used to keep track of whether or not we are before
14137 # the conftest object file.
14138 pre_test_object_deps_done=no
14140 for p in `eval "$output_verbose_link_cmd"`; do
14141 case $p in
14143 -L* | -R* | -l*)
14144 # Some compilers place space between "-{L,R}" and the path.
14145 # Remove the space.
14146 if test $p = "-L" ||
14147 test $p = "-R"; then
14148 prev=$p
14149 continue
14150 else
14151 prev=
14154 if test "$pre_test_object_deps_done" = no; then
14155 case $p in
14156 -L* | -R*)
14157 # Internal compiler library paths should come after those
14158 # provided the user. The postdeps already come after the
14159 # user supplied libs so there is no need to process them.
14160 if test -z "$compiler_lib_search_path_CXX"; then
14161 compiler_lib_search_path_CXX="${prev}${p}"
14162 else
14163 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14166 # The "-l" case would never come before the object being
14167 # linked, so don't bother handling this case.
14168 esac
14169 else
14170 if test -z "$postdeps_CXX"; then
14171 postdeps_CXX="${prev}${p}"
14172 else
14173 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14178 *.$objext)
14179 # This assumes that the test object file only shows up
14180 # once in the compiler output.
14181 if test "$p" = "conftest.$objext"; then
14182 pre_test_object_deps_done=yes
14183 continue
14186 if test "$pre_test_object_deps_done" = no; then
14187 if test -z "$predep_objects_CXX"; then
14188 predep_objects_CXX="$p"
14189 else
14190 predep_objects_CXX="$predep_objects_CXX $p"
14192 else
14193 if test -z "$postdep_objects_CXX"; then
14194 postdep_objects_CXX="$p"
14195 else
14196 postdep_objects_CXX="$postdep_objects_CXX $p"
14201 *) ;; # Ignore the rest.
14203 esac
14204 done
14206 # Clean up.
14207 rm -f a.out a.exe
14208 else
14209 echo "libtool.m4: error: problem compiling CXX test program"
14212 $RM -f confest.$objext
14214 # PORTME: override above test on systems where it is broken
14215 case $host_os in
14216 interix[3-9]*)
14217 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14218 # hack all around it, let's just trust "g++" to DTRT.
14219 predep_objects_CXX=
14220 postdep_objects_CXX=
14221 postdeps_CXX=
14224 linux*)
14225 case `$CC -V 2>&1 | sed 5q` in
14226 *Sun\ C*)
14227 # Sun C++ 5.9
14229 # The more standards-conforming stlport4 library is
14230 # incompatible with the Cstd library. Avoid specifying
14231 # it if it's in CXXFLAGS. Ignore libCrun as
14232 # -library=stlport4 depends on it.
14233 case " $CXX $CXXFLAGS " in
14234 *" -library=stlport4 "*)
14235 solaris_use_stlport4=yes
14237 esac
14239 if test "$solaris_use_stlport4" != yes; then
14240 postdeps_CXX='-library=Cstd -library=Crun'
14243 esac
14246 solaris*)
14247 case $cc_basename in
14248 CC*)
14249 # The more standards-conforming stlport4 library is
14250 # incompatible with the Cstd library. Avoid specifying
14251 # it if it's in CXXFLAGS. Ignore libCrun as
14252 # -library=stlport4 depends on it.
14253 case " $CXX $CXXFLAGS " in
14254 *" -library=stlport4 "*)
14255 solaris_use_stlport4=yes
14257 esac
14259 # Adding this requires a known-good setup of shared libraries for
14260 # Sun compiler versions before 5.6, else PIC objects from an old
14261 # archive will be linked into the output, leading to subtle bugs.
14262 if test "$solaris_use_stlport4" != yes; then
14263 postdeps_CXX='-library=Cstd -library=Crun'
14266 esac
14268 esac
14271 case " $postdeps_CXX " in
14272 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14273 esac
14274 compiler_lib_search_dirs_CXX=
14275 if test -n "${compiler_lib_search_path_CXX}"; then
14276 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14309 lt_prog_compiler_wl_CXX=
14310 lt_prog_compiler_pic_CXX=
14311 lt_prog_compiler_static_CXX=
14313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14314 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14316 # C++ specific cases for pic, static, wl, etc.
14317 if test "$GXX" = yes; then
14318 lt_prog_compiler_wl_CXX='-Wl,'
14319 lt_prog_compiler_static_CXX='-static'
14321 case $host_os in
14322 aix*)
14323 # All AIX code is PIC.
14324 if test "$host_cpu" = ia64; then
14325 # AIX 5 now supports IA64 processor
14326 lt_prog_compiler_static_CXX='-Bstatic'
14328 lt_prog_compiler_pic_CXX='-fPIC'
14331 amigaos*)
14332 case $host_cpu in
14333 powerpc)
14334 # see comment about AmigaOS4 .so support
14335 lt_prog_compiler_pic_CXX='-fPIC'
14337 m68k)
14338 # FIXME: we need at least 68020 code to build shared libraries, but
14339 # adding the `-m68020' flag to GCC prevents building anything better,
14340 # like `-m68040'.
14341 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14343 esac
14346 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14347 # PIC is the default for these OSes.
14349 mingw* | cygwin* | os2* | pw32* | cegcc*)
14350 # This hack is so that the source file can tell whether it is being
14351 # built for inclusion in a dll (and should export symbols for example).
14352 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14353 # (--disable-auto-import) libraries
14354 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14356 darwin* | rhapsody*)
14357 # PIC is the default on this platform
14358 # Common symbols not allowed in MH_DYLIB files
14359 lt_prog_compiler_pic_CXX='-fno-common'
14361 *djgpp*)
14362 # DJGPP does not support shared libraries at all
14363 lt_prog_compiler_pic_CXX=
14365 haiku*)
14366 # PIC is the default for Haiku.
14367 # The "-static" flag exists, but is broken.
14368 lt_prog_compiler_static_CXX=
14370 interix[3-9]*)
14371 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14372 # Instead, we relocate shared libraries at runtime.
14374 sysv4*MP*)
14375 if test -d /usr/nec; then
14376 lt_prog_compiler_pic_CXX=-Kconform_pic
14379 hpux*)
14380 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14381 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14382 # sets the default TLS model and affects inlining.
14383 case $host_cpu in
14384 hppa*64*)
14387 lt_prog_compiler_pic_CXX='-fPIC'
14389 esac
14391 *qnx* | *nto*)
14392 # QNX uses GNU C++, but need to define -shared option too, otherwise
14393 # it will coredump.
14394 lt_prog_compiler_pic_CXX='-fPIC -shared'
14397 lt_prog_compiler_pic_CXX='-fPIC'
14399 esac
14400 else
14401 case $host_os in
14402 aix[4-9]*)
14403 # All AIX code is PIC.
14404 if test "$host_cpu" = ia64; then
14405 # AIX 5 now supports IA64 processor
14406 lt_prog_compiler_static_CXX='-Bstatic'
14407 else
14408 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14411 chorus*)
14412 case $cc_basename in
14413 cxch68*)
14414 # Green Hills C++ Compiler
14415 # _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"
14417 esac
14419 dgux*)
14420 case $cc_basename in
14421 ec++*)
14422 lt_prog_compiler_pic_CXX='-KPIC'
14424 ghcx*)
14425 # Green Hills C++ Compiler
14426 lt_prog_compiler_pic_CXX='-pic'
14430 esac
14432 freebsd* | dragonfly*)
14433 # FreeBSD uses GNU C++
14435 hpux9* | hpux10* | hpux11*)
14436 case $cc_basename in
14437 CC*)
14438 lt_prog_compiler_wl_CXX='-Wl,'
14439 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14440 if test "$host_cpu" != ia64; then
14441 lt_prog_compiler_pic_CXX='+Z'
14444 aCC*)
14445 lt_prog_compiler_wl_CXX='-Wl,'
14446 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14447 case $host_cpu in
14448 hppa*64*|ia64*)
14449 # +Z the default
14452 lt_prog_compiler_pic_CXX='+Z'
14454 esac
14458 esac
14460 interix*)
14461 # This is c89, which is MS Visual C++ (no shared libs)
14462 # Anyone wants to do a port?
14464 irix5* | irix6* | nonstopux*)
14465 case $cc_basename in
14466 CC*)
14467 lt_prog_compiler_wl_CXX='-Wl,'
14468 lt_prog_compiler_static_CXX='-non_shared'
14469 # CC pic flag -KPIC is the default.
14473 esac
14475 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14476 case $cc_basename in
14477 KCC*)
14478 # KAI C++ Compiler
14479 lt_prog_compiler_wl_CXX='--backend -Wl,'
14480 lt_prog_compiler_pic_CXX='-fPIC'
14482 ecpc* )
14483 # old Intel C++ for x86_64 which still supported -KPIC.
14484 lt_prog_compiler_wl_CXX='-Wl,'
14485 lt_prog_compiler_pic_CXX='-KPIC'
14486 lt_prog_compiler_static_CXX='-static'
14488 icpc* )
14489 # Intel C++, used to be incompatible with GCC.
14490 # ICC 10 doesn't accept -KPIC any more.
14491 lt_prog_compiler_wl_CXX='-Wl,'
14492 lt_prog_compiler_pic_CXX='-fPIC'
14493 lt_prog_compiler_static_CXX='-static'
14495 pgCC* | pgcpp*)
14496 # Portland Group C++ compiler
14497 lt_prog_compiler_wl_CXX='-Wl,'
14498 lt_prog_compiler_pic_CXX='-fpic'
14499 lt_prog_compiler_static_CXX='-Bstatic'
14501 cxx*)
14502 # Compaq C++
14503 # Make sure the PIC flag is empty. It appears that all Alpha
14504 # Linux and Compaq Tru64 Unix objects are PIC.
14505 lt_prog_compiler_pic_CXX=
14506 lt_prog_compiler_static_CXX='-non_shared'
14508 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14509 # IBM XL 8.0, 9.0 on PPC and BlueGene
14510 lt_prog_compiler_wl_CXX='-Wl,'
14511 lt_prog_compiler_pic_CXX='-qpic'
14512 lt_prog_compiler_static_CXX='-qstaticlink'
14515 case `$CC -V 2>&1 | sed 5q` in
14516 *Sun\ C*)
14517 # Sun C++ 5.9
14518 lt_prog_compiler_pic_CXX='-KPIC'
14519 lt_prog_compiler_static_CXX='-Bstatic'
14520 lt_prog_compiler_wl_CXX='-Qoption ld '
14522 esac
14524 esac
14526 lynxos*)
14528 m88k*)
14530 mvs*)
14531 case $cc_basename in
14532 cxx*)
14533 lt_prog_compiler_pic_CXX='-W c,exportall'
14537 esac
14539 netbsd*)
14541 *qnx* | *nto*)
14542 # QNX uses GNU C++, but need to define -shared option too, otherwise
14543 # it will coredump.
14544 lt_prog_compiler_pic_CXX='-fPIC -shared'
14546 osf3* | osf4* | osf5*)
14547 case $cc_basename in
14548 KCC*)
14549 lt_prog_compiler_wl_CXX='--backend -Wl,'
14551 RCC*)
14552 # Rational C++ 2.4.1
14553 lt_prog_compiler_pic_CXX='-pic'
14555 cxx*)
14556 # Digital/Compaq C++
14557 lt_prog_compiler_wl_CXX='-Wl,'
14558 # Make sure the PIC flag is empty. It appears that all Alpha
14559 # Linux and Compaq Tru64 Unix objects are PIC.
14560 lt_prog_compiler_pic_CXX=
14561 lt_prog_compiler_static_CXX='-non_shared'
14565 esac
14567 psos*)
14569 solaris*)
14570 case $cc_basename in
14571 CC*)
14572 # Sun C++ 4.2, 5.x and Centerline C++
14573 lt_prog_compiler_pic_CXX='-KPIC'
14574 lt_prog_compiler_static_CXX='-Bstatic'
14575 lt_prog_compiler_wl_CXX='-Qoption ld '
14577 gcx*)
14578 # Green Hills C++ Compiler
14579 lt_prog_compiler_pic_CXX='-PIC'
14583 esac
14585 sunos4*)
14586 case $cc_basename in
14587 CC*)
14588 # Sun C++ 4.x
14589 lt_prog_compiler_pic_CXX='-pic'
14590 lt_prog_compiler_static_CXX='-Bstatic'
14592 lcc*)
14593 # Lucid
14594 lt_prog_compiler_pic_CXX='-pic'
14598 esac
14600 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14601 case $cc_basename in
14602 CC*)
14603 lt_prog_compiler_wl_CXX='-Wl,'
14604 lt_prog_compiler_pic_CXX='-KPIC'
14605 lt_prog_compiler_static_CXX='-Bstatic'
14607 esac
14609 tandem*)
14610 case $cc_basename in
14611 NCC*)
14612 # NonStop-UX NCC 3.20
14613 lt_prog_compiler_pic_CXX='-KPIC'
14617 esac
14619 vxworks*)
14622 lt_prog_compiler_can_build_shared_CXX=no
14624 esac
14627 case $host_os in
14628 # For platforms which do not support PIC, -DPIC is meaningless:
14629 *djgpp*)
14630 lt_prog_compiler_pic_CXX=
14633 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14635 esac
14636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14637 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14642 # Check to make sure the PIC flag actually works.
14644 if test -n "$lt_prog_compiler_pic_CXX"; then
14645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14646 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14647 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14648 $as_echo_n "(cached) " >&6
14649 else
14650 lt_cv_prog_compiler_pic_works_CXX=no
14651 ac_outfile=conftest.$ac_objext
14652 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14653 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14654 # Insert the option either (1) after the last *FLAGS variable, or
14655 # (2) before a word containing "conftest.", or (3) at the end.
14656 # Note that $ac_compile itself does not contain backslashes and begins
14657 # with a dollar sign (not a hyphen), so the echo should work correctly.
14658 # The option is referenced via a variable to avoid confusing sed.
14659 lt_compile=`echo "$ac_compile" | $SED \
14660 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14661 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14662 -e 's:$: $lt_compiler_flag:'`
14663 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14664 (eval "$lt_compile" 2>conftest.err)
14665 ac_status=$?
14666 cat conftest.err >&5
14667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14668 if (exit $ac_status) && test -s "$ac_outfile"; then
14669 # The compiler can only warn and ignore the option if not recognized
14670 # So say no if there are warnings other than the usual output.
14671 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14672 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14673 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14674 lt_cv_prog_compiler_pic_works_CXX=yes
14677 $RM conftest*
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14681 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14683 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14684 case $lt_prog_compiler_pic_CXX in
14685 "" | " "*) ;;
14686 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14687 esac
14688 else
14689 lt_prog_compiler_pic_CXX=
14690 lt_prog_compiler_can_build_shared_CXX=no
14698 # Check to make sure the static flag actually works.
14700 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14702 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14703 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14704 $as_echo_n "(cached) " >&6
14705 else
14706 lt_cv_prog_compiler_static_works_CXX=no
14707 save_LDFLAGS="$LDFLAGS"
14708 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14709 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14710 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14711 # The linker can only warn and ignore the option if not recognized
14712 # So say no if there are warnings
14713 if test -s conftest.err; then
14714 # Append any errors to the config.log.
14715 cat conftest.err 1>&5
14716 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14717 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14718 if diff conftest.exp conftest.er2 >/dev/null; then
14719 lt_cv_prog_compiler_static_works_CXX=yes
14721 else
14722 lt_cv_prog_compiler_static_works_CXX=yes
14725 $RM -r conftest*
14726 LDFLAGS="$save_LDFLAGS"
14729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14730 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14732 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14734 else
14735 lt_prog_compiler_static_CXX=
14741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14742 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14743 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14744 $as_echo_n "(cached) " >&6
14745 else
14746 lt_cv_prog_compiler_c_o_CXX=no
14747 $RM -r conftest 2>/dev/null
14748 mkdir conftest
14749 cd conftest
14750 mkdir out
14751 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14753 lt_compiler_flag="-o out/conftest2.$ac_objext"
14754 # Insert the option either (1) after the last *FLAGS variable, or
14755 # (2) before a word containing "conftest.", or (3) at the end.
14756 # Note that $ac_compile itself does not contain backslashes and begins
14757 # with a dollar sign (not a hyphen), so the echo should work correctly.
14758 lt_compile=`echo "$ac_compile" | $SED \
14759 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14760 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14761 -e 's:$: $lt_compiler_flag:'`
14762 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14763 (eval "$lt_compile" 2>out/conftest.err)
14764 ac_status=$?
14765 cat out/conftest.err >&5
14766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14767 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14768 then
14769 # The compiler can only warn and ignore the option if not recognized
14770 # So say no if there are warnings
14771 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14772 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14773 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14774 lt_cv_prog_compiler_c_o_CXX=yes
14777 chmod u+w . 2>&5
14778 $RM conftest*
14779 # SGI C++ compiler will create directory out/ii_files/ for
14780 # template instantiation
14781 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14782 $RM out/* && rmdir out
14783 cd ..
14784 $RM -r conftest
14785 $RM conftest*
14788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14789 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14794 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14795 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14796 $as_echo_n "(cached) " >&6
14797 else
14798 lt_cv_prog_compiler_c_o_CXX=no
14799 $RM -r conftest 2>/dev/null
14800 mkdir conftest
14801 cd conftest
14802 mkdir out
14803 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14805 lt_compiler_flag="-o out/conftest2.$ac_objext"
14806 # Insert the option either (1) after the last *FLAGS variable, or
14807 # (2) before a word containing "conftest.", or (3) at the end.
14808 # Note that $ac_compile itself does not contain backslashes and begins
14809 # with a dollar sign (not a hyphen), so the echo should work correctly.
14810 lt_compile=`echo "$ac_compile" | $SED \
14811 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14812 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14813 -e 's:$: $lt_compiler_flag:'`
14814 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14815 (eval "$lt_compile" 2>out/conftest.err)
14816 ac_status=$?
14817 cat out/conftest.err >&5
14818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14819 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14820 then
14821 # The compiler can only warn and ignore the option if not recognized
14822 # So say no if there are warnings
14823 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14824 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14825 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14826 lt_cv_prog_compiler_c_o_CXX=yes
14829 chmod u+w . 2>&5
14830 $RM conftest*
14831 # SGI C++ compiler will create directory out/ii_files/ for
14832 # template instantiation
14833 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14834 $RM out/* && rmdir out
14835 cd ..
14836 $RM -r conftest
14837 $RM conftest*
14840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14841 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14846 hard_links="nottested"
14847 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14848 # do not overwrite the value of need_locks provided by the user
14849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14850 $as_echo_n "checking if we can lock with hard links... " >&6; }
14851 hard_links=yes
14852 $RM conftest*
14853 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14854 touch conftest.a
14855 ln conftest.a conftest.b 2>&5 || hard_links=no
14856 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14858 $as_echo "$hard_links" >&6; }
14859 if test "$hard_links" = no; then
14860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14861 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14862 need_locks=warn
14864 else
14865 need_locks=no
14870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14871 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14873 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14874 case $host_os in
14875 aix[4-9]*)
14876 # If we're using GNU nm, then we don't want the "-C" option.
14877 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14878 # Also, AIX nm treats weak defined symbols like other global defined
14879 # symbols, whereas GNU nm marks them as "W".
14880 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14881 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'
14882 else
14883 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'
14886 pw32*)
14887 export_symbols_cmds_CXX="$ltdll_cmds"
14889 cygwin* | mingw* | cegcc*)
14890 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'
14893 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14895 esac
14896 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14899 $as_echo "$ld_shlibs_CXX" >&6; }
14900 test "$ld_shlibs_CXX" = no && can_build_shared=no
14902 with_gnu_ld_CXX=$with_gnu_ld
14910 # Do we need to explicitly link libc?
14912 case "x$archive_cmds_need_lc_CXX" in
14913 x|xyes)
14914 # Assume -lc should be added
14915 archive_cmds_need_lc_CXX=yes
14917 if test "$enable_shared" = yes && test "$GCC" = yes; then
14918 case $archive_cmds_CXX in
14919 *'~'*)
14920 # FIXME: we may have to deal with multi-command sequences.
14922 '$CC '*)
14923 # Test whether the compiler implicitly links with -lc since on some
14924 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14925 # to ld, don't add -lc before -lgcc.
14926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14927 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14928 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14929 $as_echo_n "(cached) " >&6
14930 else
14931 $RM conftest*
14932 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14934 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14935 (eval $ac_compile) 2>&5
14936 ac_status=$?
14937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14938 test $ac_status = 0; } 2>conftest.err; then
14939 soname=conftest
14940 lib=conftest
14941 libobjs=conftest.$ac_objext
14942 deplibs=
14943 wl=$lt_prog_compiler_wl_CXX
14944 pic_flag=$lt_prog_compiler_pic_CXX
14945 compiler_flags=-v
14946 linker_flags=-v
14947 verstring=
14948 output_objdir=.
14949 libname=conftest
14950 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14951 allow_undefined_flag_CXX=
14952 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14953 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14954 ac_status=$?
14955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14956 test $ac_status = 0; }
14957 then
14958 lt_cv_archive_cmds_need_lc_CXX=no
14959 else
14960 lt_cv_archive_cmds_need_lc_CXX=yes
14962 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14963 else
14964 cat conftest.err 1>&5
14966 $RM conftest*
14969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14970 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14971 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14973 esac
14976 esac
15041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15042 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15044 library_names_spec=
15045 libname_spec='lib$name'
15046 soname_spec=
15047 shrext_cmds=".so"
15048 postinstall_cmds=
15049 postuninstall_cmds=
15050 finish_cmds=
15051 finish_eval=
15052 shlibpath_var=
15053 shlibpath_overrides_runpath=unknown
15054 version_type=none
15055 dynamic_linker="$host_os ld.so"
15056 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15057 need_lib_prefix=unknown
15058 hardcode_into_libs=no
15060 # when you set need_version to no, make sure it does not cause -set_version
15061 # flags to be left without arguments
15062 need_version=unknown
15064 case $host_os in
15065 aix3*)
15066 version_type=linux
15067 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15068 shlibpath_var=LIBPATH
15070 # AIX 3 has no versioning support, so we append a major version to the name.
15071 soname_spec='${libname}${release}${shared_ext}$major'
15074 aix[4-9]*)
15075 version_type=linux
15076 need_lib_prefix=no
15077 need_version=no
15078 hardcode_into_libs=yes
15079 if test "$host_cpu" = ia64; then
15080 # AIX 5 supports IA64
15081 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15082 shlibpath_var=LD_LIBRARY_PATH
15083 else
15084 # With GCC up to 2.95.x, collect2 would create an import file
15085 # for dependence libraries. The import file would start with
15086 # the line `#! .'. This would cause the generated library to
15087 # depend on `.', always an invalid library. This was fixed in
15088 # development snapshots of GCC prior to 3.0.
15089 case $host_os in
15090 aix4 | aix4.[01] | aix4.[01].*)
15091 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15092 echo ' yes '
15093 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15095 else
15096 can_build_shared=no
15099 esac
15100 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15101 # soname into executable. Probably we can add versioning support to
15102 # collect2, so additional links can be useful in future.
15103 if test "$aix_use_runtimelinking" = yes; then
15104 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15105 # instead of lib<name>.a to let people know that these are not
15106 # typical AIX shared libraries.
15107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15108 else
15109 # We preserve .a as extension for shared libraries through AIX4.2
15110 # and later when we are not doing run time linking.
15111 library_names_spec='${libname}${release}.a $libname.a'
15112 soname_spec='${libname}${release}${shared_ext}$major'
15114 shlibpath_var=LIBPATH
15118 amigaos*)
15119 case $host_cpu in
15120 powerpc)
15121 # Since July 2007 AmigaOS4 officially supports .so libraries.
15122 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15125 m68k)
15126 library_names_spec='$libname.ixlibrary $libname.a'
15127 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15128 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'
15130 esac
15133 beos*)
15134 library_names_spec='${libname}${shared_ext}'
15135 dynamic_linker="$host_os ld.so"
15136 shlibpath_var=LIBRARY_PATH
15139 bsdi[45]*)
15140 version_type=linux
15141 need_version=no
15142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15143 soname_spec='${libname}${release}${shared_ext}$major'
15144 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15145 shlibpath_var=LD_LIBRARY_PATH
15146 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15147 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15148 # the default ld.so.conf also contains /usr/contrib/lib and
15149 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15150 # libtool to hard-code these into programs
15153 cygwin* | mingw* | pw32* | cegcc*)
15154 version_type=windows
15155 shrext_cmds=".dll"
15156 need_version=no
15157 need_lib_prefix=no
15159 case $GCC,$host_os in
15160 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15161 library_names_spec='$libname.dll.a'
15162 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15163 postinstall_cmds='base_file=`basename \${file}`~
15164 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15165 dldir=$destdir/`dirname \$dlpath`~
15166 test -d \$dldir || mkdir -p \$dldir~
15167 $install_prog $dir/$dlname \$dldir/$dlname~
15168 chmod a+x \$dldir/$dlname~
15169 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15170 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15172 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15173 dlpath=$dir/\$dldll~
15174 $RM \$dlpath'
15175 shlibpath_overrides_runpath=yes
15177 case $host_os in
15178 cygwin*)
15179 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15180 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15183 mingw* | cegcc*)
15184 # MinGW DLLs use traditional 'lib' prefix
15185 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15187 pw32*)
15188 # pw32 DLLs use 'pw' prefix rather than 'lib'
15189 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15191 esac
15195 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15197 esac
15198 dynamic_linker='Win32 ld.exe'
15199 # FIXME: first we should search . and the directory the executable is in
15200 shlibpath_var=PATH
15203 darwin* | rhapsody*)
15204 dynamic_linker="$host_os dyld"
15205 version_type=darwin
15206 need_lib_prefix=no
15207 need_version=no
15208 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15209 soname_spec='${libname}${release}${major}$shared_ext'
15210 shlibpath_overrides_runpath=yes
15211 shlibpath_var=DYLD_LIBRARY_PATH
15212 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15214 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15217 dgux*)
15218 version_type=linux
15219 need_lib_prefix=no
15220 need_version=no
15221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15222 soname_spec='${libname}${release}${shared_ext}$major'
15223 shlibpath_var=LD_LIBRARY_PATH
15226 freebsd* | dragonfly*)
15227 # DragonFly does not have aout. When/if they implement a new
15228 # versioning mechanism, adjust this.
15229 if test -x /usr/bin/objformat; then
15230 objformat=`/usr/bin/objformat`
15231 else
15232 case $host_os in
15233 freebsd[23].*) objformat=aout ;;
15234 *) objformat=elf ;;
15235 esac
15237 version_type=freebsd-$objformat
15238 case $version_type in
15239 freebsd-elf*)
15240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15241 need_version=no
15242 need_lib_prefix=no
15244 freebsd-*)
15245 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15246 need_version=yes
15248 esac
15249 shlibpath_var=LD_LIBRARY_PATH
15250 case $host_os in
15251 freebsd2.*)
15252 shlibpath_overrides_runpath=yes
15254 freebsd3.[01]* | freebsdelf3.[01]*)
15255 shlibpath_overrides_runpath=yes
15256 hardcode_into_libs=yes
15258 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15259 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15260 shlibpath_overrides_runpath=no
15261 hardcode_into_libs=yes
15263 *) # from 4.6 on, and DragonFly
15264 shlibpath_overrides_runpath=yes
15265 hardcode_into_libs=yes
15267 esac
15270 haiku*)
15271 version_type=linux
15272 need_lib_prefix=no
15273 need_version=no
15274 dynamic_linker="$host_os runtime_loader"
15275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15276 soname_spec='${libname}${release}${shared_ext}$major'
15277 shlibpath_var=LIBRARY_PATH
15278 shlibpath_overrides_runpath=yes
15279 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15280 hardcode_into_libs=yes
15283 hpux9* | hpux10* | hpux11*)
15284 # Give a soname corresponding to the major version so that dld.sl refuses to
15285 # link against other versions.
15286 version_type=sunos
15287 need_lib_prefix=no
15288 need_version=no
15289 case $host_cpu in
15290 ia64*)
15291 shrext_cmds='.so'
15292 hardcode_into_libs=yes
15293 dynamic_linker="$host_os dld.so"
15294 shlibpath_var=LD_LIBRARY_PATH
15295 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15297 soname_spec='${libname}${release}${shared_ext}$major'
15298 if test "X$HPUX_IA64_MODE" = X32; then
15299 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15300 else
15301 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15303 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15305 hppa*64*)
15306 shrext_cmds='.sl'
15307 hardcode_into_libs=yes
15308 dynamic_linker="$host_os dld.sl"
15309 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15310 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15312 soname_spec='${libname}${release}${shared_ext}$major'
15313 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15314 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15317 shrext_cmds='.sl'
15318 dynamic_linker="$host_os dld.sl"
15319 shlibpath_var=SHLIB_PATH
15320 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15322 soname_spec='${libname}${release}${shared_ext}$major'
15324 esac
15325 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15326 postinstall_cmds='chmod 555 $lib'
15327 # or fails outright, so override atomically:
15328 install_override_mode=555
15331 interix[3-9]*)
15332 version_type=linux
15333 need_lib_prefix=no
15334 need_version=no
15335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15336 soname_spec='${libname}${release}${shared_ext}$major'
15337 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15338 shlibpath_var=LD_LIBRARY_PATH
15339 shlibpath_overrides_runpath=no
15340 hardcode_into_libs=yes
15343 irix5* | irix6* | nonstopux*)
15344 case $host_os in
15345 nonstopux*) version_type=nonstopux ;;
15347 if test "$lt_cv_prog_gnu_ld" = yes; then
15348 version_type=linux
15349 else
15350 version_type=irix
15351 fi ;;
15352 esac
15353 need_lib_prefix=no
15354 need_version=no
15355 soname_spec='${libname}${release}${shared_ext}$major'
15356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15357 case $host_os in
15358 irix5* | nonstopux*)
15359 libsuff= shlibsuff=
15362 case $LD in # libtool.m4 will add one of these switches to LD
15363 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15364 libsuff= shlibsuff= libmagic=32-bit;;
15365 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15366 libsuff=32 shlibsuff=N32 libmagic=N32;;
15367 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15368 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15369 *) libsuff= shlibsuff= libmagic=never-match;;
15370 esac
15372 esac
15373 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15374 shlibpath_overrides_runpath=no
15375 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15376 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15377 hardcode_into_libs=yes
15380 # No shared lib support for Linux oldld, aout, or coff.
15381 linux*oldld* | linux*aout* | linux*coff*)
15382 dynamic_linker=no
15385 # This must be Linux ELF.
15387 # uclinux* changes (here and below) have been submitted to the libtool
15388 # project, but have not yet been accepted: they are GCC-local changes
15389 # for the time being. (See
15390 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
15391 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
15392 version_type=linux
15393 need_lib_prefix=no
15394 need_version=no
15395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15396 soname_spec='${libname}${release}${shared_ext}$major'
15397 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15398 shlibpath_var=LD_LIBRARY_PATH
15399 shlibpath_overrides_runpath=no
15401 # Some binutils ld are patched to set DT_RUNPATH
15402 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15403 $as_echo_n "(cached) " >&6
15404 else
15405 lt_cv_shlibpath_overrides_runpath=no
15406 save_LDFLAGS=$LDFLAGS
15407 save_libdir=$libdir
15408 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15409 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15411 /* end confdefs.h. */
15414 main ()
15418 return 0;
15420 _ACEOF
15421 if ac_fn_cxx_try_link "$LINENO"; then :
15422 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15423 lt_cv_shlibpath_overrides_runpath=yes
15426 rm -f core conftest.err conftest.$ac_objext \
15427 conftest$ac_exeext conftest.$ac_ext
15428 LDFLAGS=$save_LDFLAGS
15429 libdir=$save_libdir
15433 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15435 # This implies no fast_install, which is unacceptable.
15436 # Some rework will be needed to allow for fast_install
15437 # before this can be enabled.
15438 hardcode_into_libs=yes
15440 # Append ld.so.conf contents to the search path
15441 if test -f /etc/ld.so.conf; then
15442 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' ' '`
15443 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15446 # We used to test for /lib/ld.so.1 and disable shared libraries on
15447 # powerpc, because MkLinux only supported shared libraries with the
15448 # GNU dynamic linker. Since this was broken with cross compilers,
15449 # most powerpc-linux boxes support dynamic linking these days and
15450 # people can always --disable-shared, the test was removed, and we
15451 # assume the GNU/Linux dynamic linker is in use.
15452 dynamic_linker='GNU/Linux ld.so'
15455 netbsd*)
15456 version_type=sunos
15457 need_lib_prefix=no
15458 need_version=no
15459 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15461 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15462 dynamic_linker='NetBSD (a.out) ld.so'
15463 else
15464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15465 soname_spec='${libname}${release}${shared_ext}$major'
15466 dynamic_linker='NetBSD ld.elf_so'
15468 shlibpath_var=LD_LIBRARY_PATH
15469 shlibpath_overrides_runpath=yes
15470 hardcode_into_libs=yes
15473 newsos6)
15474 version_type=linux
15475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15476 shlibpath_var=LD_LIBRARY_PATH
15477 shlibpath_overrides_runpath=yes
15480 *nto* | *qnx*)
15481 version_type=qnx
15482 need_lib_prefix=no
15483 need_version=no
15484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15485 soname_spec='${libname}${release}${shared_ext}$major'
15486 shlibpath_var=LD_LIBRARY_PATH
15487 shlibpath_overrides_runpath=no
15488 hardcode_into_libs=yes
15489 dynamic_linker='ldqnx.so'
15492 openbsd*)
15493 version_type=sunos
15494 sys_lib_dlsearch_path_spec="/usr/lib"
15495 need_lib_prefix=no
15496 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15497 case $host_os in
15498 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15499 *) need_version=no ;;
15500 esac
15501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15502 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15503 shlibpath_var=LD_LIBRARY_PATH
15504 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15505 case $host_os in
15506 openbsd2.[89] | openbsd2.[89].*)
15507 shlibpath_overrides_runpath=no
15510 shlibpath_overrides_runpath=yes
15512 esac
15513 else
15514 shlibpath_overrides_runpath=yes
15518 os2*)
15519 libname_spec='$name'
15520 shrext_cmds=".dll"
15521 need_lib_prefix=no
15522 library_names_spec='$libname${shared_ext} $libname.a'
15523 dynamic_linker='OS/2 ld.exe'
15524 shlibpath_var=LIBPATH
15527 osf3* | osf4* | osf5*)
15528 version_type=osf
15529 need_lib_prefix=no
15530 need_version=no
15531 soname_spec='${libname}${release}${shared_ext}$major'
15532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15533 shlibpath_var=LD_LIBRARY_PATH
15534 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15535 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15538 rdos*)
15539 dynamic_linker=no
15542 solaris*)
15543 version_type=linux
15544 need_lib_prefix=no
15545 need_version=no
15546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15547 soname_spec='${libname}${release}${shared_ext}$major'
15548 shlibpath_var=LD_LIBRARY_PATH
15549 shlibpath_overrides_runpath=yes
15550 hardcode_into_libs=yes
15551 # ldd complains unless libraries are executable
15552 postinstall_cmds='chmod +x $lib'
15555 sunos4*)
15556 version_type=sunos
15557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15558 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15559 shlibpath_var=LD_LIBRARY_PATH
15560 shlibpath_overrides_runpath=yes
15561 if test "$with_gnu_ld" = yes; then
15562 need_lib_prefix=no
15564 need_version=yes
15567 sysv4 | sysv4.3*)
15568 version_type=linux
15569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15570 soname_spec='${libname}${release}${shared_ext}$major'
15571 shlibpath_var=LD_LIBRARY_PATH
15572 case $host_vendor in
15573 sni)
15574 shlibpath_overrides_runpath=no
15575 need_lib_prefix=no
15576 runpath_var=LD_RUN_PATH
15578 siemens)
15579 need_lib_prefix=no
15581 motorola)
15582 need_lib_prefix=no
15583 need_version=no
15584 shlibpath_overrides_runpath=no
15585 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15587 esac
15590 sysv4*MP*)
15591 if test -d /usr/nec ;then
15592 version_type=linux
15593 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15594 soname_spec='$libname${shared_ext}.$major'
15595 shlibpath_var=LD_LIBRARY_PATH
15599 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15600 version_type=freebsd-elf
15601 need_lib_prefix=no
15602 need_version=no
15603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15604 soname_spec='${libname}${release}${shared_ext}$major'
15605 shlibpath_var=LD_LIBRARY_PATH
15606 shlibpath_overrides_runpath=yes
15607 hardcode_into_libs=yes
15608 if test "$with_gnu_ld" = yes; then
15609 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15610 else
15611 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15612 case $host_os in
15613 sco3.2v5*)
15614 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15616 esac
15618 sys_lib_dlsearch_path_spec='/usr/lib'
15621 tpf*)
15622 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15623 version_type=linux
15624 need_lib_prefix=no
15625 need_version=no
15626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15627 shlibpath_var=LD_LIBRARY_PATH
15628 shlibpath_overrides_runpath=no
15629 hardcode_into_libs=yes
15632 uts4*)
15633 version_type=linux
15634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15635 soname_spec='${libname}${release}${shared_ext}$major'
15636 shlibpath_var=LD_LIBRARY_PATH
15639 # Shared libraries for VwWorks, >= 7 only at this stage
15640 # and (fpic) still incompatible with "large" code models
15641 # in a few configurations. Only for RTP mode in any case,
15642 # and upon explicit request at configure time.
15643 vxworks7*)
15644 dynamic_linker=no
15645 case ${with_multisubdir}-${enable_shared} in
15646 *large*)
15648 *mrtp*-yes)
15649 version_type=linux
15650 need_lib_prefix=no
15651 need_version=no
15652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15653 soname_spec='${libname}${release}${shared_ext}$major'
15654 dynamic_linker="$host_os module_loader"
15656 esac
15659 dynamic_linker=no
15661 esac
15662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15663 $as_echo "$dynamic_linker" >&6; }
15664 test "$dynamic_linker" = no && can_build_shared=no
15666 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15667 if test "$GCC" = yes; then
15668 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15671 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15672 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15674 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15675 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15716 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15717 hardcode_action_CXX=
15718 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15719 test -n "$runpath_var_CXX" ||
15720 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15722 # We can hardcode non-existent directories.
15723 if test "$hardcode_direct_CXX" != no &&
15724 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15725 # have to relink, otherwise we might link with an installed library
15726 # when we should be linking with a yet-to-be-installed one
15727 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15728 test "$hardcode_minus_L_CXX" != no; then
15729 # Linking always hardcodes the temporary library directory.
15730 hardcode_action_CXX=relink
15731 else
15732 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15733 hardcode_action_CXX=immediate
15735 else
15736 # We cannot hardcode anything, or else we can only hardcode existing
15737 # directories.
15738 hardcode_action_CXX=unsupported
15740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15741 $as_echo "$hardcode_action_CXX" >&6; }
15743 if test "$hardcode_action_CXX" = relink ||
15744 test "$inherit_rpath_CXX" = yes; then
15745 # Fast installation is not supported
15746 enable_fast_install=no
15747 elif test "$shlibpath_overrides_runpath" = yes ||
15748 test "$enable_shared" = no; then
15749 # Fast installation is not necessary
15750 enable_fast_install=needless
15759 fi # test -n "$compiler"
15761 CC=$lt_save_CC
15762 LDCXX=$LD
15763 LD=$lt_save_LD
15764 GCC=$lt_save_GCC
15765 with_gnu_ld=$lt_save_with_gnu_ld
15766 lt_cv_path_LDCXX=$lt_cv_path_LD
15767 lt_cv_path_LD=$lt_save_path_LD
15768 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15769 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15770 fi # test "$_lt_caught_CXX_error" != yes
15772 ac_ext=c
15773 ac_cpp='$CPP $CPPFLAGS'
15774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15790 ac_config_commands="$ac_config_commands libtool"
15795 # Only expand once:
15799 for ac_prog in gawk mawk nawk awk
15801 # Extract the first word of "$ac_prog", so it can be a program name with args.
15802 set dummy $ac_prog; ac_word=$2
15803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15804 $as_echo_n "checking for $ac_word... " >&6; }
15805 if ${ac_cv_prog_AWK+:} false; then :
15806 $as_echo_n "(cached) " >&6
15807 else
15808 if test -n "$AWK"; then
15809 ac_cv_prog_AWK="$AWK" # Let the user override the test.
15810 else
15811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15812 for as_dir in $PATH
15814 IFS=$as_save_IFS
15815 test -z "$as_dir" && as_dir=.
15816 for ac_exec_ext in '' $ac_executable_extensions; do
15817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15818 ac_cv_prog_AWK="$ac_prog"
15819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15820 break 2
15822 done
15823 done
15824 IFS=$as_save_IFS
15828 AWK=$ac_cv_prog_AWK
15829 if test -n "$AWK"; then
15830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
15831 $as_echo "$AWK" >&6; }
15832 else
15833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15834 $as_echo "no" >&6; }
15838 test -n "$AWK" && break
15839 done
15841 case "$AWK" in
15842 "") as_fn_error $? "can't build without awk" "$LINENO" 5 ;;
15843 esac
15848 # The cast to long int works around a bug in the HP C Compiler
15849 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15850 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15851 # This bug is HP SR number 8606223364.
15852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15853 $as_echo_n "checking size of void *... " >&6; }
15854 if ${ac_cv_sizeof_void_p+:} false; then :
15855 $as_echo_n "(cached) " >&6
15856 else
15857 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15859 else
15860 if test "$ac_cv_type_void_p" = yes; then
15861 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15862 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15863 as_fn_error 77 "cannot compute sizeof (void *)
15864 See \`config.log' for more details" "$LINENO" 5; }
15865 else
15866 ac_cv_sizeof_void_p=0
15871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15872 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15876 cat >>confdefs.h <<_ACEOF
15877 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15878 _ACEOF
15882 if test "${multilib}" = "yes"; then
15883 multilib_arg="--enable-multilib"
15884 else
15885 multilib_arg=
15888 # Get target configury.
15889 unset TSAN_SUPPORTED
15890 unset LSAN_SUPPORTED
15891 unset HWASAN_SUPPORTED
15892 . ${srcdir}/configure.tgt
15893 if test "x$TSAN_SUPPORTED" = "xyes"; then
15894 TSAN_SUPPORTED_TRUE=
15895 TSAN_SUPPORTED_FALSE='#'
15896 else
15897 TSAN_SUPPORTED_TRUE='#'
15898 TSAN_SUPPORTED_FALSE=
15901 if test "x$LSAN_SUPPORTED" = "xyes"; then
15902 LSAN_SUPPORTED_TRUE=
15903 LSAN_SUPPORTED_FALSE='#'
15904 else
15905 LSAN_SUPPORTED_TRUE='#'
15906 LSAN_SUPPORTED_FALSE=
15909 if test "x$HWASAN_SUPPORTED" = "xyes"; then
15910 HWASAN_SUPPORTED_TRUE=
15911 HWASAN_SUPPORTED_FALSE='#'
15912 else
15913 HWASAN_SUPPORTED_TRUE='#'
15914 HWASAN_SUPPORTED_FALSE=
15918 # Check for functions needed.
15919 for ac_func in clock_getres clock_gettime clock_settime lstat readlink
15920 do :
15921 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15922 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15923 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15924 cat >>confdefs.h <<_ACEOF
15925 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15926 _ACEOF
15929 done
15932 # Common libraries that we need to link against for all sanitizer libs.
15933 link_sanitizer_common='-lpthread -lm'
15935 # At least for glibc, shm_open is in librt. But don't pull that
15936 # in if it still doesn't give us the function we want. This
15937 # test is copied from libgomp.
15938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shm_open in -lrt" >&5
15939 $as_echo_n "checking for shm_open in -lrt... " >&6; }
15940 if ${ac_cv_lib_rt_shm_open+:} false; then :
15941 $as_echo_n "(cached) " >&6
15942 else
15943 ac_check_lib_save_LIBS=$LIBS
15944 LIBS="-lrt $LIBS"
15945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15946 /* end confdefs.h. */
15948 /* Override any GCC internal prototype to avoid an error.
15949 Use char because int might match the return type of a GCC
15950 builtin and then its argument prototype would still apply. */
15951 #ifdef __cplusplus
15952 extern "C"
15953 #endif
15954 char shm_open ();
15956 main ()
15958 return shm_open ();
15960 return 0;
15962 _ACEOF
15963 if ac_fn_c_try_link "$LINENO"; then :
15964 ac_cv_lib_rt_shm_open=yes
15965 else
15966 ac_cv_lib_rt_shm_open=no
15968 rm -f core conftest.err conftest.$ac_objext \
15969 conftest$ac_exeext conftest.$ac_ext
15970 LIBS=$ac_check_lib_save_LIBS
15972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_shm_open" >&5
15973 $as_echo "$ac_cv_lib_rt_shm_open" >&6; }
15974 if test "x$ac_cv_lib_rt_shm_open" = xyes; then :
15975 link_sanitizer_common="-lrt $link_sanitizer_common"
15979 # Do a configure time check for -ldl
15980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
15981 $as_echo_n "checking for dlsym in -ldl... " >&6; }
15982 if ${ac_cv_lib_dl_dlsym+:} false; then :
15983 $as_echo_n "(cached) " >&6
15984 else
15985 ac_check_lib_save_LIBS=$LIBS
15986 LIBS="-ldl $LIBS"
15987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15988 /* end confdefs.h. */
15990 /* Override any GCC internal prototype to avoid an error.
15991 Use char because int might match the return type of a GCC
15992 builtin and then its argument prototype would still apply. */
15993 #ifdef __cplusplus
15994 extern "C"
15995 #endif
15996 char dlsym ();
15998 main ()
16000 return dlsym ();
16002 return 0;
16004 _ACEOF
16005 if ac_fn_c_try_link "$LINENO"; then :
16006 ac_cv_lib_dl_dlsym=yes
16007 else
16008 ac_cv_lib_dl_dlsym=no
16010 rm -f core conftest.err conftest.$ac_objext \
16011 conftest$ac_exeext conftest.$ac_ext
16012 LIBS=$ac_check_lib_save_LIBS
16014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
16015 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
16016 if test "x$ac_cv_lib_dl_dlsym" = xyes; then :
16017 link_sanitizer_common="-ldl $link_sanitizer_common"
16021 # Set up the set of additional libraries that we need to link against for libasan.
16022 link_libasan=$link_sanitizer_common
16025 # Set up the set of additional libraries that we need to link against for libhwasan.
16026 link_libhwasan=$link_sanitizer_common
16029 # Set up the set of additional libraries that we need to link against for libtsan.
16030 link_libtsan=$link_sanitizer_common
16033 # Set up the set of additional libraries that we need to link against for libubsan.
16034 link_libubsan=$link_sanitizer_common
16037 # Set up the set of additional libraries that we need to link against for liblsan.
16038 link_liblsan=$link_sanitizer_common
16042 # At least for glibc, clock_gettime is in librt. But don't pull that
16043 # in if it still doesn't give us the function we want. This
16044 # test is copied from libgomp.
16045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
16046 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
16047 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
16048 $as_echo_n "(cached) " >&6
16049 else
16050 ac_check_lib_save_LIBS=$LIBS
16051 LIBS="-lrt $LIBS"
16052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16053 /* end confdefs.h. */
16055 /* Override any GCC internal prototype to avoid an error.
16056 Use char because int might match the return type of a GCC
16057 builtin and then its argument prototype would still apply. */
16058 #ifdef __cplusplus
16059 extern "C"
16060 #endif
16061 char clock_gettime ();
16063 main ()
16065 return clock_gettime ();
16067 return 0;
16069 _ACEOF
16070 if ac_fn_c_try_link "$LINENO"; then :
16071 ac_cv_lib_rt_clock_gettime=yes
16072 else
16073 ac_cv_lib_rt_clock_gettime=no
16075 rm -f core conftest.err conftest.$ac_objext \
16076 conftest$ac_exeext conftest.$ac_ext
16077 LIBS=$ac_check_lib_save_LIBS
16079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
16080 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
16081 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
16082 link_libasan="-lrt $link_libasan"
16083 link_libtsan="-lrt $link_libtsan"
16084 # Other sanitizers do not override clock_* API
16089 case "$host" in
16090 *-*-darwin*) MAC_INTERPOSE=true ; enable_static=no ;;
16091 *) MAC_INTERPOSE=false ;;
16092 esac
16093 if $MAC_INTERPOSE; then
16094 USING_MAC_INTERPOSE_TRUE=
16095 USING_MAC_INTERPOSE_FALSE='#'
16096 else
16097 USING_MAC_INTERPOSE_TRUE='#'
16098 USING_MAC_INTERPOSE_FALSE=
16102 backtrace_supported=yes
16104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary platform features" >&5
16105 $as_echo_n "checking for necessary platform features... " >&6; }
16106 case "$target" in
16107 *-*-linux*)
16108 # Some old Linux distributions miss required syscalls.
16109 sanitizer_supported=no
16110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16111 /* end confdefs.h. */
16112 #include <sys/syscall.h>
16113 #include <unistd.h>
16115 main ()
16118 syscall (__NR_gettid);
16119 syscall (__NR_futex);
16120 syscall (__NR_exit_group);
16123 return 0;
16125 _ACEOF
16126 if ac_fn_c_try_compile "$LINENO"; then :
16127 sanitizer_supported=yes
16129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16132 sanitizer_supported=yes
16134 esac
16135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sanitizer_supported" >&5
16136 $as_echo "$sanitizer_supported" >&6; }
16137 if test "$sanitizer_supported" = yes; then
16138 SANITIZER_SUPPORTED_TRUE=
16139 SANITIZER_SUPPORTED_FALSE='#'
16140 else
16141 SANITIZER_SUPPORTED_TRUE='#'
16142 SANITIZER_SUPPORTED_FALSE=
16146 # Test for __sync support.
16147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __sync extensions" >&5
16148 $as_echo_n "checking __sync extensions... " >&6; }
16149 if ${libsanitizer_cv_sys_sync+:} false; then :
16150 $as_echo_n "(cached) " >&6
16151 else
16152 if test -n "${with_target_subdir}"; then
16153 libsanitizer_cv_sys_sync=yes
16154 else
16155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16156 /* end confdefs.h. */
16157 int i;
16159 main ()
16161 __sync_bool_compare_and_swap (&i, i, i);
16162 __sync_lock_test_and_set (&i, 1);
16163 __sync_lock_release (&i);
16165 return 0;
16167 _ACEOF
16168 if ac_fn_c_try_link "$LINENO"; then :
16169 libsanitizer_cv_sys_sync=yes
16170 else
16171 libsanitizer_cv_sys_sync=no
16173 rm -f core conftest.err conftest.$ac_objext \
16174 conftest$ac_exeext conftest.$ac_ext
16177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libsanitizer_cv_sys_sync" >&5
16178 $as_echo "$libsanitizer_cv_sys_sync" >&6; }
16179 if test "$libsanitizer_cv_sys_sync" = "yes"; then
16181 $as_echo "#define HAVE_SYNC_FUNCTIONS 1" >>confdefs.h
16185 # Test for __atomic support.
16186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __atomic extensions" >&5
16187 $as_echo_n "checking __atomic extensions... " >&6; }
16188 if ${libsanitizer_cv_sys_atomic+:} false; then :
16189 $as_echo_n "(cached) " >&6
16190 else
16191 if test -n "${with_target_subdir}"; then
16192 libsanitizer_cv_sys_atomic=yes
16193 else
16194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16195 /* end confdefs.h. */
16196 int i;
16198 main ()
16200 __atomic_load_n (&i, __ATOMIC_ACQUIRE);
16201 __atomic_store_n (&i, 1, __ATOMIC_RELEASE);
16203 return 0;
16205 _ACEOF
16206 if ac_fn_c_try_link "$LINENO"; then :
16207 libsanitizer_cv_sys_atomic=yes
16208 else
16209 libsanitizer_cv_sys_atomic=no
16211 rm -f core conftest.err conftest.$ac_objext \
16212 conftest$ac_exeext conftest.$ac_ext
16215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libsanitizer_cv_sys_atomic" >&5
16216 $as_echo "$libsanitizer_cv_sys_atomic" >&6; }
16217 if test "$libsanitizer_cv_sys_atomic" = "yes"; then
16219 $as_echo "#define HAVE_ATOMIC_FUNCTIONS 1" >>confdefs.h
16223 # The library needs to be able to read the executable itself. Compile
16224 # a file to determine the executable format. The awk script
16225 # filetype.awk prints out the file type.
16226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking output filetype" >&5
16227 $as_echo_n "checking output filetype... " >&6; }
16228 if ${libsanitizer_cv_sys_filetype+:} false; then :
16229 $as_echo_n "(cached) " >&6
16230 else
16231 filetype=
16232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16233 /* end confdefs.h. */
16234 int i;
16236 main ()
16238 int j;
16240 return 0;
16242 _ACEOF
16243 if ac_fn_c_try_compile "$LINENO"; then :
16244 filetype=`${AWK} -f $srcdir/../libbacktrace/filetype.awk conftest.$ac_objext`
16245 else
16246 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16247 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16248 as_fn_error $? "compiler failed
16249 See \`config.log' for more details" "$LINENO" 5; }
16251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16252 libsanitizer_cv_sys_filetype=$filetype
16254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libsanitizer_cv_sys_filetype" >&5
16255 $as_echo "$libsanitizer_cv_sys_filetype" >&6; }
16257 # Match the file type to decide what files to compile.
16258 FORMAT_FILE=
16259 case "$libsanitizer_cv_sys_filetype" in
16260 elf*) FORMAT_FILE="elf.lo" ;;
16261 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not determine output file type" >&5
16262 $as_echo "$as_me: WARNING: could not determine output file type" >&2;}
16263 FORMAT_FILE="unknown.lo"
16264 backtrace_supported=no
16266 esac
16269 # ELF defines.
16270 elfsize=
16271 case "$libsanitizer_cv_sys_filetype" in
16272 elf32) elfsize=32 ;;
16273 elf64) elfsize=64 ;;
16274 esac
16276 cat >>confdefs.h <<_ACEOF
16277 #define BACKTRACE_ELF_SIZE $elfsize
16278 _ACEOF
16281 BACKTRACE_SUPPORTED=0
16282 if test "$backtrace_supported" = "yes"; then
16283 BACKTRACE_SUPPORTED=1
16289 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
16291 acx_cv_header_stdint=stddef.h
16292 acx_cv_header_stdint_kind="(already complete)"
16293 for i in stdint.h $inttype_headers; do
16294 unset ac_cv_type_uintptr_t
16295 unset ac_cv_type_uintmax_t
16296 unset ac_cv_type_int_least32_t
16297 unset ac_cv_type_int_fast32_t
16298 unset ac_cv_type_uint64_t
16299 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
16300 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
16301 #include <$i>
16303 if test "x$ac_cv_type_uintmax_t" = xyes; then :
16304 acx_cv_header_stdint=$i
16305 else
16306 continue
16309 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
16310 #include <$i>
16312 if test "x$ac_cv_type_uintptr_t" = xyes; then :
16314 else
16315 acx_cv_header_stdint_kind="(mostly complete)"
16318 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
16319 #include <$i>
16321 if test "x$ac_cv_type_int_least32_t" = xyes; then :
16323 else
16324 acx_cv_header_stdint_kind="(mostly complete)"
16327 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
16328 #include <$i>
16330 if test "x$ac_cv_type_int_fast32_t" = xyes; then :
16332 else
16333 acx_cv_header_stdint_kind="(mostly complete)"
16336 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
16337 #include <$i>
16339 if test "x$ac_cv_type_uint64_t" = xyes; then :
16341 else
16342 acx_cv_header_stdint_kind="(lacks uint64_t)"
16345 break
16346 done
16347 if test "$acx_cv_header_stdint" = stddef.h; then
16348 acx_cv_header_stdint_kind="(lacks uintmax_t)"
16349 for i in stdint.h $inttype_headers; do
16350 unset ac_cv_type_uintptr_t
16351 unset ac_cv_type_uint32_t
16352 unset ac_cv_type_uint64_t
16353 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
16354 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
16355 #include <$i>
16357 if test "x$ac_cv_type_uint32_t" = xyes; then :
16358 acx_cv_header_stdint=$i
16359 else
16360 continue
16363 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
16364 #include <$i>
16366 if test "x$ac_cv_type_uint64_t" = xyes; then :
16370 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
16371 #include <$i>
16373 if test "x$ac_cv_type_uintptr_t" = xyes; then :
16377 break
16378 done
16380 if test "$acx_cv_header_stdint" = stddef.h; then
16381 acx_cv_header_stdint_kind="(u_intXX_t style)"
16382 for i in sys/types.h $inttype_headers; do
16383 unset ac_cv_type_u_int32_t
16384 unset ac_cv_type_u_int64_t
16385 $as_echo_n "looking for u_intXX_t types in $i, " >&6
16386 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
16387 #include <$i>
16389 if test "x$ac_cv_type_u_int32_t" = xyes; then :
16390 acx_cv_header_stdint=$i
16391 else
16392 continue
16395 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
16396 #include <$i>
16398 if test "x$ac_cv_type_u_int64_t" = xyes; then :
16402 break
16403 done
16405 if test "$acx_cv_header_stdint" = stddef.h; then
16406 acx_cv_header_stdint_kind="(using manual detection)"
16409 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
16410 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
16411 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
16412 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
16413 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
16415 # ----------------- Summarize what we found so far
16417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
16418 $as_echo_n "checking what to include in gstdint.h... " >&6; }
16420 case `$as_basename -- gstdint.h ||
16421 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
16422 Xgstdint.h : 'X\(//\)$' \| \
16423 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
16424 $as_echo X/gstdint.h |
16425 sed '/^.*\/\([^/][^/]*\)\/*$/{
16426 s//\1/
16429 /^X\/\(\/\/\)$/{
16430 s//\1/
16433 /^X\/\(\/\).*/{
16434 s//\1/
16437 s/.*/./; q'` in
16438 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
16439 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16440 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
16441 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16442 *) ;;
16443 esac
16445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
16446 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
16448 # ----------------- done included file, check C basic types --------
16450 # Lacking an uintptr_t? Test size of void *
16451 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
16452 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
16453 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16454 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16455 # This bug is HP SR number 8606223364.
16456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
16457 $as_echo_n "checking size of void *... " >&6; }
16458 if ${ac_cv_sizeof_void_p+:} false; then :
16459 $as_echo_n "(cached) " >&6
16460 else
16461 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
16463 else
16464 if test "$ac_cv_type_void_p" = yes; then
16465 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16466 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16467 as_fn_error 77 "cannot compute sizeof (void *)
16468 See \`config.log' for more details" "$LINENO" 5; }
16469 else
16470 ac_cv_sizeof_void_p=0
16475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
16476 $as_echo "$ac_cv_sizeof_void_p" >&6; }
16480 cat >>confdefs.h <<_ACEOF
16481 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16482 _ACEOF
16485 esac
16487 # Lacking an uint64_t? Test size of long
16488 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
16489 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
16490 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16491 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16492 # This bug is HP SR number 8606223364.
16493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
16494 $as_echo_n "checking size of long... " >&6; }
16495 if ${ac_cv_sizeof_long+:} false; then :
16496 $as_echo_n "(cached) " >&6
16497 else
16498 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
16500 else
16501 if test "$ac_cv_type_long" = yes; then
16502 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16503 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16504 as_fn_error 77 "cannot compute sizeof (long)
16505 See \`config.log' for more details" "$LINENO" 5; }
16506 else
16507 ac_cv_sizeof_long=0
16512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16513 $as_echo "$ac_cv_sizeof_long" >&6; }
16517 cat >>confdefs.h <<_ACEOF
16518 #define SIZEOF_LONG $ac_cv_sizeof_long
16519 _ACEOF
16522 esac
16524 if test $acx_cv_header_stdint = stddef.h; then
16525 # Lacking a good header? Test size of everything and deduce all types.
16526 # The cast to long int works around a bug in the HP C Compiler
16527 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16528 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16529 # This bug is HP SR number 8606223364.
16530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
16531 $as_echo_n "checking size of int... " >&6; }
16532 if ${ac_cv_sizeof_int+:} false; then :
16533 $as_echo_n "(cached) " >&6
16534 else
16535 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
16537 else
16538 if test "$ac_cv_type_int" = yes; then
16539 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16540 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16541 as_fn_error 77 "cannot compute sizeof (int)
16542 See \`config.log' for more details" "$LINENO" 5; }
16543 else
16544 ac_cv_sizeof_int=0
16549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
16550 $as_echo "$ac_cv_sizeof_int" >&6; }
16554 cat >>confdefs.h <<_ACEOF
16555 #define SIZEOF_INT $ac_cv_sizeof_int
16556 _ACEOF
16559 # The cast to long int works around a bug in the HP C Compiler
16560 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16561 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16562 # This bug is HP SR number 8606223364.
16563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
16564 $as_echo_n "checking size of short... " >&6; }
16565 if ${ac_cv_sizeof_short+:} false; then :
16566 $as_echo_n "(cached) " >&6
16567 else
16568 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
16570 else
16571 if test "$ac_cv_type_short" = yes; then
16572 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16573 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16574 as_fn_error 77 "cannot compute sizeof (short)
16575 See \`config.log' for more details" "$LINENO" 5; }
16576 else
16577 ac_cv_sizeof_short=0
16582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
16583 $as_echo "$ac_cv_sizeof_short" >&6; }
16587 cat >>confdefs.h <<_ACEOF
16588 #define SIZEOF_SHORT $ac_cv_sizeof_short
16589 _ACEOF
16592 # The cast to long int works around a bug in the HP C Compiler
16593 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16594 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16595 # This bug is HP SR number 8606223364.
16596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
16597 $as_echo_n "checking size of char... " >&6; }
16598 if ${ac_cv_sizeof_char+:} false; then :
16599 $as_echo_n "(cached) " >&6
16600 else
16601 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
16603 else
16604 if test "$ac_cv_type_char" = yes; then
16605 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16606 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16607 as_fn_error 77 "cannot compute sizeof (char)
16608 See \`config.log' for more details" "$LINENO" 5; }
16609 else
16610 ac_cv_sizeof_char=0
16615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
16616 $as_echo "$ac_cv_sizeof_char" >&6; }
16620 cat >>confdefs.h <<_ACEOF
16621 #define SIZEOF_CHAR $ac_cv_sizeof_char
16622 _ACEOF
16626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
16627 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
16628 case "$ac_cv_sizeof_char" in
16629 1) acx_cv_type_int8_t=char ;;
16630 *) as_fn_error $? "no 8-bit type, please report a bug" "$LINENO" 5
16631 esac
16632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
16633 $as_echo "$acx_cv_type_int8_t" >&6; }
16635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
16636 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
16637 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
16638 2:*) acx_cv_type_int16_t=int ;;
16639 *:2) acx_cv_type_int16_t=short ;;
16640 *) as_fn_error $? "no 16-bit type, please report a bug" "$LINENO" 5
16641 esac
16642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
16643 $as_echo "$acx_cv_type_int16_t" >&6; }
16645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
16646 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
16647 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
16648 4:*) acx_cv_type_int32_t=int ;;
16649 *:4) acx_cv_type_int32_t=long ;;
16650 *) as_fn_error $? "no 32-bit type, please report a bug" "$LINENO" 5
16651 esac
16652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
16653 $as_echo "$acx_cv_type_int32_t" >&6; }
16656 # These tests are here to make the output prettier
16658 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
16659 case "$ac_cv_sizeof_long" in
16660 8) acx_cv_type_int64_t=long ;;
16661 esac
16662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
16663 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
16664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
16665 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
16668 # Now we can use the above types
16670 if test "$ac_cv_type_uintptr_t" != yes; then
16671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
16672 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
16673 case $ac_cv_sizeof_void_p in
16674 2) acx_cv_type_intptr_t=int16_t ;;
16675 4) acx_cv_type_intptr_t=int32_t ;;
16676 8) acx_cv_type_intptr_t=int64_t ;;
16677 *) as_fn_error $? "no equivalent for intptr_t, please report a bug" "$LINENO" 5
16678 esac
16679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
16680 $as_echo "$acx_cv_type_intptr_t" >&6; }
16683 # ----------------- done all checks, emit header -------------
16684 ac_config_commands="$ac_config_commands gstdint.h"
16689 for ac_header in sys/mman.h alloca.h
16690 do :
16691 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16692 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16693 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16694 cat >>confdefs.h <<_ACEOF
16695 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16696 _ACEOF
16700 done
16702 if test "$ac_cv_header_sys_mman_h" = "no"; then
16703 have_mmap=no
16704 else
16705 if test -n "${with_target_subdir}"; then
16706 # When built as a GCC target library, we can't do a link test. We
16707 # simply assume that if we have mman.h, we have mmap.
16708 have_mmap=yes
16709 else
16710 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
16711 if test "x$ac_cv_func_mmap" = xyes; then :
16712 have_mmap=yes
16713 else
16714 have_mmap=no
16719 if test "$have_mmap" = "no"; then
16720 VIEW_FILE=read.lo
16721 ALLOC_FILE=alloc.lo
16722 else
16723 VIEW_FILE=mmapio.lo
16724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16725 /* end confdefs.h. */
16727 #include <sys/mman.h>
16728 #if !defined(MAP_ANONYMOUS) && !defined(MAP_ANON)
16729 #error no MAP_ANONYMOUS
16730 #endif
16732 _ACEOF
16733 if ac_fn_c_try_cpp "$LINENO"; then :
16734 ALLOC_FILE=mmap.lo
16735 else
16736 ALLOC_FILE=alloc.lo
16738 rm -f conftest.err conftest.i conftest.$ac_ext
16743 BACKTRACE_USES_MALLOC=0
16744 if test "$ALLOC_FILE" = "alloc.lo"; then
16745 BACKTRACE_USES_MALLOC=1
16749 # Don't care about thread support
16750 BACKTRACE_SUPPORTS_THREADS=0
16753 # Check for dl_iterate_phdr.
16754 for ac_header in link.h
16755 do :
16756 ac_fn_c_check_header_mongrel "$LINENO" "link.h" "ac_cv_header_link_h" "$ac_includes_default"
16757 if test "x$ac_cv_header_link_h" = xyes; then :
16758 cat >>confdefs.h <<_ACEOF
16759 #define HAVE_LINK_H 1
16760 _ACEOF
16764 done
16766 if test "$ac_cv_header_link_h" = "no"; then
16767 have_dl_iterate_phdr=no
16768 else
16769 # When built as a GCC target library, we can't do a link test.
16770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16771 /* end confdefs.h. */
16772 #include <link.h>
16774 _ACEOF
16775 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16776 $EGREP "dl_iterate_phdr" >/dev/null 2>&1; then :
16777 have_dl_iterate_phdr=yes
16778 else
16779 have_dl_iterate_phdr=no
16781 rm -f conftest*
16784 if test "$have_dl_iterate_phdr" = "yes"; then
16786 $as_echo "#define HAVE_DL_ITERATE_PHDR 1" >>confdefs.h
16790 # Check for the fcntl function.
16791 if test -n "${with_target_subdir}"; then
16792 case "${host}" in
16793 *-*-mingw*) have_fcntl=no ;;
16794 *) have_fcntl=yes ;;
16795 esac
16796 else
16797 ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
16798 if test "x$ac_cv_func_fcntl" = xyes; then :
16799 have_fcntl=yes
16800 else
16801 have_fcntl=no
16805 if test "$have_fcntl" = "yes"; then
16807 $as_echo "#define HAVE_FCNTL 1" >>confdefs.h
16811 ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
16812 if test "x$ac_cv_have_decl_strnlen" = xyes; then :
16813 ac_have_decl=1
16814 else
16815 ac_have_decl=0
16818 cat >>confdefs.h <<_ACEOF
16819 #define HAVE_DECL_STRNLEN $ac_have_decl
16820 _ACEOF
16823 # Check for getexecname function.
16824 if test -n "${with_target_subdir}"; then
16825 case "${host}" in
16826 *-*-solaris2*) have_getexecname=yes ;;
16827 *) have_getexecname=no ;;
16828 esac
16829 else
16830 ac_fn_c_check_func "$LINENO" "getexecname" "ac_cv_func_getexecname"
16831 if test "x$ac_cv_func_getexecname" = xyes; then :
16832 have_getexecname=yes
16833 else
16834 have_getexecname=no
16838 if test "$have_getexecname" = "yes"; then
16840 $as_echo "#define HAVE_GETEXECNAME 1" >>confdefs.h
16844 # Check for rpc/xdr.h
16845 for ac_header in rpc/xdr.h
16846 do :
16847 ac_fn_c_check_header_mongrel "$LINENO" "rpc/xdr.h" "ac_cv_header_rpc_xdr_h" "$ac_includes_default"
16848 if test "x$ac_cv_header_rpc_xdr_h" = xyes; then :
16849 cat >>confdefs.h <<_ACEOF
16850 #define HAVE_RPC_XDR_H 1
16851 _ACEOF
16855 done
16857 if test x"$ac_cv_header_rpc_xdr_h" = xyes; then
16858 rpc_defs="$rpc_defs -DHAVE_RPC_XDR_H=1"
16859 else
16860 rpc_defs="$rpc_defs -DHAVE_RPC_XDR_H=0"
16863 # Check for tirpc/rpc/xdr.h
16864 for ac_header in tirpc/rpc/xdr.h
16865 do :
16866 ac_fn_c_check_header_mongrel "$LINENO" "tirpc/rpc/xdr.h" "ac_cv_header_tirpc_rpc_xdr_h" "$ac_includes_default"
16867 if test "x$ac_cv_header_tirpc_rpc_xdr_h" = xyes; then :
16868 cat >>confdefs.h <<_ACEOF
16869 #define HAVE_TIRPC_RPC_XDR_H 1
16870 _ACEOF
16874 done
16876 if test x"$ac_cv_header_tirpc_rpc_xdr_h" = xyes; then
16877 rpc_defs="$rpc_defs -DHAVE_TIRPC_RPC_XDR_H=1"
16878 else
16879 rpc_defs="$rpc_defs -DHAVE_TIRPC_RPC_XDR_H=0"
16882 RPC_DEFS=$rpc_defs
16885 if test "x${BACKTRACE_SUPPORTED}x${BACKTRACE_USES_MALLOC}" = "x1x0"; then
16886 LIBBACKTRACE_SUPPORTED_TRUE=
16887 LIBBACKTRACE_SUPPORTED_FALSE='#'
16888 else
16889 LIBBACKTRACE_SUPPORTED_TRUE='#'
16890 LIBBACKTRACE_SUPPORTED_FALSE=
16895 ac_config_files="$ac_config_files Makefile libsanitizer.spec libbacktrace/backtrace-supported.h"
16897 ac_config_headers="$ac_config_headers config.h"
16900 ac_config_files="$ac_config_files interception/Makefile sanitizer_common/Makefile libbacktrace/Makefile lsan/Makefile asan/Makefile ubsan/Makefile"
16903 if test "x$TSAN_SUPPORTED" = "xyes"; then
16904 ac_config_files="$ac_config_files tsan/Makefile"
16908 if test "x$HWASAN_SUPPORTED" = "xyes"; then
16909 ac_config_files="$ac_config_files hwasan/Makefile"
16916 # Check whether --enable-werror was given.
16917 if test "${enable_werror+set}" = set; then :
16918 enableval=$enable_werror;
16922 ac_ext=c
16923 ac_cpp='$CPP $CPPFLAGS'
16924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16928 WARN_FLAGS=
16929 save_CFLAGS="$CFLAGS"
16930 for real_option in -Wextra -Wall -Wwrite-strings \
16931 -Wmissing-format-attribute -Wcast-qual; do
16932 # Do the check with the no- prefix removed since gcc silently
16933 # accepts any -Wno-* option on purpose
16934 case $real_option in
16935 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
16936 *) option=$real_option ;;
16937 esac
16938 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
16940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
16941 $as_echo_n "checking whether $CC supports $option... " >&6; }
16942 if eval \${$as_acx_Woption+:} false; then :
16943 $as_echo_n "(cached) " >&6
16944 else
16945 CFLAGS="$option"
16946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16947 /* end confdefs.h. */
16950 main ()
16954 return 0;
16956 _ACEOF
16957 if ac_fn_c_try_compile "$LINENO"; then :
16958 eval "$as_acx_Woption=yes"
16959 else
16960 eval "$as_acx_Woption=no"
16962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16965 eval ac_res=\$$as_acx_Woption
16966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16967 $as_echo "$ac_res" >&6; }
16968 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
16969 WARN_FLAGS="$WARN_FLAGS${WARN_FLAGS:+ }$real_option"
16971 done
16972 CFLAGS="$save_CFLAGS"
16973 ac_ext=c
16974 ac_cpp='$CPP $CPPFLAGS'
16975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16980 if test "x$enable_werror" != "xno"; then :
16981 WARN_FLAGS="$WARN_FLAGS -Werror"
16985 # Determine what GCC version number to use in filesystem paths.
16987 get_gcc_base_ver="cat"
16989 # Check whether --with-gcc-major-version-only was given.
16990 if test "${with_gcc_major_version_only+set}" = set; then :
16991 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
16992 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
17000 # Add CET specific flags if Intel CET is enabled.
17001 # Check whether --enable-cet was given.
17002 if test "${enable_cet+set}" = set; then :
17003 enableval=$enable_cet;
17004 case "$enableval" in
17005 yes|no|auto) ;;
17006 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
17007 esac
17009 else
17010 enable_cet=auto
17014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
17015 $as_echo_n "checking for CET support... " >&6; }
17017 # NB: Avoid nested save_CFLAGS and save_LDFLAGS.
17018 case "$host" in
17019 i[34567]86-*-linux* | x86_64-*-linux*)
17020 case "$enable_cet" in
17021 auto)
17022 # Check if target supports multi-byte NOPs
17023 # and if compiler and assembler support CET insn.
17024 cet_save_CFLAGS="$CFLAGS"
17025 CFLAGS="$CFLAGS -fcf-protection"
17026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17027 /* end confdefs.h. */
17030 main ()
17033 #if !defined(__SSE2__)
17034 #error target does not support multi-byte NOPs
17035 #else
17036 asm ("setssbsy");
17037 #endif
17040 return 0;
17042 _ACEOF
17043 if ac_fn_c_try_compile "$LINENO"; then :
17044 enable_cet=yes
17045 else
17046 enable_cet=no
17048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17049 CFLAGS="$cet_save_CFLAGS"
17051 yes)
17052 # Check if assembler supports CET.
17053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17054 /* end confdefs.h. */
17057 main ()
17059 asm ("setssbsy");
17061 return 0;
17063 _ACEOF
17064 if ac_fn_c_try_compile "$LINENO"; then :
17066 else
17067 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
17069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17071 esac
17074 enable_cet=no
17076 esac
17077 if test x$enable_cet = xyes; then
17078 CET_FLAGS="-fcf-protection -mshstk"
17079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17080 $as_echo "yes" >&6; }
17081 else
17082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17083 $as_echo "no" >&6; }
17087 # Always set -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 to sync with LLVM,
17088 # and keep struct *stat* have the same size.
17089 case "${host}" in
17090 mips*-*) FILE64_FLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" ;;
17091 *) FILE64_FLAGS="" ;;
17092 esac
17094 EXTRA_CFLAGS="$EXTRA_CFLAGS $CET_FLAGS $FILE64_FLAGS"
17095 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS $CET_FLAGS $FILE64_FLAGS"
17096 EXTRA_ASFLAGS=$CET_FLAGS
17101 cat >confcache <<\_ACEOF
17102 # This file is a shell script that caches the results of configure
17103 # tests run on this system so they can be shared between configure
17104 # scripts and configure runs, see configure's option --config-cache.
17105 # It is not useful on other systems. If it contains results you don't
17106 # want to keep, you may remove or edit it.
17108 # config.status only pays attention to the cache file if you give it
17109 # the --recheck option to rerun configure.
17111 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17112 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17113 # following values.
17115 _ACEOF
17117 # The following way of writing the cache mishandles newlines in values,
17118 # but we know of no workaround that is simple, portable, and efficient.
17119 # So, we kill variables containing newlines.
17120 # Ultrix sh set writes to stderr and can't be redirected directly,
17121 # and sets the high bit in the cache file unless we assign to the vars.
17123 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17124 eval ac_val=\$$ac_var
17125 case $ac_val in #(
17126 *${as_nl}*)
17127 case $ac_var in #(
17128 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17129 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17130 esac
17131 case $ac_var in #(
17132 _ | IFS | as_nl) ;; #(
17133 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17134 *) { eval $ac_var=; unset $ac_var;} ;;
17135 esac ;;
17136 esac
17137 done
17139 (set) 2>&1 |
17140 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17141 *${as_nl}ac_space=\ *)
17142 # `set' does not quote correctly, so add quotes: double-quote
17143 # substitution turns \\\\ into \\, and sed turns \\ into \.
17144 sed -n \
17145 "s/'/'\\\\''/g;
17146 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17147 ;; #(
17149 # `set' quotes correctly as required by POSIX, so do not add quotes.
17150 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17152 esac |
17153 sort
17155 sed '
17156 /^ac_cv_env_/b end
17157 t clear
17158 :clear
17159 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17160 t end
17161 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17162 :end' >>confcache
17163 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17164 if test -w "$cache_file"; then
17165 if test "x$cache_file" != "x/dev/null"; then
17166 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17167 $as_echo "$as_me: updating cache $cache_file" >&6;}
17168 if test ! -f "$cache_file" || test -h "$cache_file"; then
17169 cat confcache >"$cache_file"
17170 else
17171 case $cache_file in #(
17172 */* | ?:*)
17173 mv -f confcache "$cache_file"$$ &&
17174 mv -f "$cache_file"$$ "$cache_file" ;; #(
17176 mv -f confcache "$cache_file" ;;
17177 esac
17180 else
17181 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17182 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17185 rm -f confcache
17187 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17188 # Let make expand exec_prefix.
17189 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17191 DEFS=-DHAVE_CONFIG_H
17193 ac_libobjs=
17194 ac_ltlibobjs=
17196 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17197 # 1. Remove the extension, and $U if already installed.
17198 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17199 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17200 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17201 # will be set to the directory where LIBOBJS objects are built.
17202 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17203 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17204 done
17205 LIBOBJS=$ac_libobjs
17207 LTLIBOBJS=$ac_ltlibobjs
17210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17211 $as_echo_n "checking that generated files are newer than configure... " >&6; }
17212 if test -n "$am_sleep_pid"; then
17213 # Hide warnings about reused PIDs.
17214 wait $am_sleep_pid 2>/dev/null
17216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17217 $as_echo "done" >&6; }
17218 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17219 as_fn_error $? "conditional \"AMDEP\" was never defined.
17220 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17222 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17223 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17224 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17226 if test -n "$EXEEXT"; then
17227 am__EXEEXT_TRUE=
17228 am__EXEEXT_FALSE='#'
17229 else
17230 am__EXEEXT_TRUE='#'
17231 am__EXEEXT_FALSE=
17234 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17235 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17236 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17238 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17239 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
17240 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17242 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
17243 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
17244 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17246 if test -z "${TSAN_SUPPORTED_TRUE}" && test -z "${TSAN_SUPPORTED_FALSE}"; then
17247 as_fn_error $? "conditional \"TSAN_SUPPORTED\" was never defined.
17248 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17250 if test -z "${LSAN_SUPPORTED_TRUE}" && test -z "${LSAN_SUPPORTED_FALSE}"; then
17251 as_fn_error $? "conditional \"LSAN_SUPPORTED\" was never defined.
17252 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17254 if test -z "${HWASAN_SUPPORTED_TRUE}" && test -z "${HWASAN_SUPPORTED_FALSE}"; then
17255 as_fn_error $? "conditional \"HWASAN_SUPPORTED\" was never defined.
17256 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17258 if test -z "${USING_MAC_INTERPOSE_TRUE}" && test -z "${USING_MAC_INTERPOSE_FALSE}"; then
17259 as_fn_error $? "conditional \"USING_MAC_INTERPOSE\" was never defined.
17260 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17262 if test -z "${SANITIZER_SUPPORTED_TRUE}" && test -z "${SANITIZER_SUPPORTED_FALSE}"; then
17263 as_fn_error $? "conditional \"SANITIZER_SUPPORTED\" was never defined.
17264 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17266 if test -z "${LIBBACKTRACE_SUPPORTED_TRUE}" && test -z "${LIBBACKTRACE_SUPPORTED_FALSE}"; then
17267 as_fn_error $? "conditional \"LIBBACKTRACE_SUPPORTED\" was never defined.
17268 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17271 : "${CONFIG_STATUS=./config.status}"
17272 ac_write_fail=0
17273 ac_clean_files_save=$ac_clean_files
17274 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17275 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17276 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17277 as_write_fail=0
17278 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17279 #! $SHELL
17280 # Generated by $as_me.
17281 # Run this file to recreate the current configuration.
17282 # Compiler output produced by configure, useful for debugging
17283 # configure, is in config.log if it exists.
17285 debug=false
17286 ac_cs_recheck=false
17287 ac_cs_silent=false
17289 SHELL=\${CONFIG_SHELL-$SHELL}
17290 export SHELL
17291 _ASEOF
17292 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17293 ## -------------------- ##
17294 ## M4sh Initialization. ##
17295 ## -------------------- ##
17297 # Be more Bourne compatible
17298 DUALCASE=1; export DUALCASE # for MKS sh
17299 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17300 emulate sh
17301 NULLCMD=:
17302 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17303 # is contrary to our usage. Disable this feature.
17304 alias -g '${1+"$@"}'='"$@"'
17305 setopt NO_GLOB_SUBST
17306 else
17307 case `(set -o) 2>/dev/null` in #(
17308 *posix*) :
17309 set -o posix ;; #(
17310 *) :
17312 esac
17316 as_nl='
17318 export as_nl
17319 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17320 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17321 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17322 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17323 # Prefer a ksh shell builtin over an external printf program on Solaris,
17324 # but without wasting forks for bash or zsh.
17325 if test -z "$BASH_VERSION$ZSH_VERSION" \
17326 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17327 as_echo='print -r --'
17328 as_echo_n='print -rn --'
17329 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17330 as_echo='printf %s\n'
17331 as_echo_n='printf %s'
17332 else
17333 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17334 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17335 as_echo_n='/usr/ucb/echo -n'
17336 else
17337 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17338 as_echo_n_body='eval
17339 arg=$1;
17340 case $arg in #(
17341 *"$as_nl"*)
17342 expr "X$arg" : "X\\(.*\\)$as_nl";
17343 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17344 esac;
17345 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17347 export as_echo_n_body
17348 as_echo_n='sh -c $as_echo_n_body as_echo'
17350 export as_echo_body
17351 as_echo='sh -c $as_echo_body as_echo'
17354 # The user is always right.
17355 if test "${PATH_SEPARATOR+set}" != set; then
17356 PATH_SEPARATOR=:
17357 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17358 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17359 PATH_SEPARATOR=';'
17364 # IFS
17365 # We need space, tab and new line, in precisely that order. Quoting is
17366 # there to prevent editors from complaining about space-tab.
17367 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17368 # splitting by setting IFS to empty value.)
17369 IFS=" "" $as_nl"
17371 # Find who we are. Look in the path if we contain no directory separator.
17372 as_myself=
17373 case $0 in #((
17374 *[\\/]* ) as_myself=$0 ;;
17375 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17376 for as_dir in $PATH
17378 IFS=$as_save_IFS
17379 test -z "$as_dir" && as_dir=.
17380 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17381 done
17382 IFS=$as_save_IFS
17385 esac
17386 # We did not find ourselves, most probably we were run as `sh COMMAND'
17387 # in which case we are not to be found in the path.
17388 if test "x$as_myself" = x; then
17389 as_myself=$0
17391 if test ! -f "$as_myself"; then
17392 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17393 exit 1
17396 # Unset variables that we do not need and which cause bugs (e.g. in
17397 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17398 # suppresses any "Segmentation fault" message there. '((' could
17399 # trigger a bug in pdksh 5.2.14.
17400 for as_var in BASH_ENV ENV MAIL MAILPATH
17401 do eval test x\${$as_var+set} = xset \
17402 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17403 done
17404 PS1='$ '
17405 PS2='> '
17406 PS4='+ '
17408 # NLS nuisances.
17409 LC_ALL=C
17410 export LC_ALL
17411 LANGUAGE=C
17412 export LANGUAGE
17414 # CDPATH.
17415 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17418 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17419 # ----------------------------------------
17420 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17421 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17422 # script with STATUS, using 1 if that was 0.
17423 as_fn_error ()
17425 as_status=$1; test $as_status -eq 0 && as_status=1
17426 if test "$4"; then
17427 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17428 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17430 $as_echo "$as_me: error: $2" >&2
17431 as_fn_exit $as_status
17432 } # as_fn_error
17435 # as_fn_set_status STATUS
17436 # -----------------------
17437 # Set $? to STATUS, without forking.
17438 as_fn_set_status ()
17440 return $1
17441 } # as_fn_set_status
17443 # as_fn_exit STATUS
17444 # -----------------
17445 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17446 as_fn_exit ()
17448 set +e
17449 as_fn_set_status $1
17450 exit $1
17451 } # as_fn_exit
17453 # as_fn_unset VAR
17454 # ---------------
17455 # Portably unset VAR.
17456 as_fn_unset ()
17458 { eval $1=; unset $1;}
17460 as_unset=as_fn_unset
17461 # as_fn_append VAR VALUE
17462 # ----------------------
17463 # Append the text in VALUE to the end of the definition contained in VAR. Take
17464 # advantage of any shell optimizations that allow amortized linear growth over
17465 # repeated appends, instead of the typical quadratic growth present in naive
17466 # implementations.
17467 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17468 eval 'as_fn_append ()
17470 eval $1+=\$2
17472 else
17473 as_fn_append ()
17475 eval $1=\$$1\$2
17477 fi # as_fn_append
17479 # as_fn_arith ARG...
17480 # ------------------
17481 # Perform arithmetic evaluation on the ARGs, and store the result in the
17482 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17483 # must be portable across $(()) and expr.
17484 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17485 eval 'as_fn_arith ()
17487 as_val=$(( $* ))
17489 else
17490 as_fn_arith ()
17492 as_val=`expr "$@" || test $? -eq 1`
17494 fi # as_fn_arith
17497 if expr a : '\(a\)' >/dev/null 2>&1 &&
17498 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17499 as_expr=expr
17500 else
17501 as_expr=false
17504 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17505 as_basename=basename
17506 else
17507 as_basename=false
17510 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17511 as_dirname=dirname
17512 else
17513 as_dirname=false
17516 as_me=`$as_basename -- "$0" ||
17517 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17518 X"$0" : 'X\(//\)$' \| \
17519 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17520 $as_echo X/"$0" |
17521 sed '/^.*\/\([^/][^/]*\)\/*$/{
17522 s//\1/
17525 /^X\/\(\/\/\)$/{
17526 s//\1/
17529 /^X\/\(\/\).*/{
17530 s//\1/
17533 s/.*/./; q'`
17535 # Avoid depending upon Character Ranges.
17536 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17537 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17538 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17539 as_cr_digits='0123456789'
17540 as_cr_alnum=$as_cr_Letters$as_cr_digits
17542 ECHO_C= ECHO_N= ECHO_T=
17543 case `echo -n x` in #(((((
17544 -n*)
17545 case `echo 'xy\c'` in
17546 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17547 xy) ECHO_C='\c';;
17548 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17549 ECHO_T=' ';;
17550 esac;;
17552 ECHO_N='-n';;
17553 esac
17555 rm -f conf$$ conf$$.exe conf$$.file
17556 if test -d conf$$.dir; then
17557 rm -f conf$$.dir/conf$$.file
17558 else
17559 rm -f conf$$.dir
17560 mkdir conf$$.dir 2>/dev/null
17562 if (echo >conf$$.file) 2>/dev/null; then
17563 if ln -s conf$$.file conf$$ 2>/dev/null; then
17564 as_ln_s='ln -s'
17565 # ... but there are two gotchas:
17566 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17567 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17568 # In both cases, we have to default to `cp -pR'.
17569 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17570 as_ln_s='cp -pR'
17571 elif ln conf$$.file conf$$ 2>/dev/null; then
17572 as_ln_s=ln
17573 else
17574 as_ln_s='cp -pR'
17576 else
17577 as_ln_s='cp -pR'
17579 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17580 rmdir conf$$.dir 2>/dev/null
17583 # as_fn_mkdir_p
17584 # -------------
17585 # Create "$as_dir" as a directory, including parents if necessary.
17586 as_fn_mkdir_p ()
17589 case $as_dir in #(
17590 -*) as_dir=./$as_dir;;
17591 esac
17592 test -d "$as_dir" || eval $as_mkdir_p || {
17593 as_dirs=
17594 while :; do
17595 case $as_dir in #(
17596 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17597 *) as_qdir=$as_dir;;
17598 esac
17599 as_dirs="'$as_qdir' $as_dirs"
17600 as_dir=`$as_dirname -- "$as_dir" ||
17601 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17602 X"$as_dir" : 'X\(//\)[^/]' \| \
17603 X"$as_dir" : 'X\(//\)$' \| \
17604 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17605 $as_echo X"$as_dir" |
17606 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17607 s//\1/
17610 /^X\(\/\/\)[^/].*/{
17611 s//\1/
17614 /^X\(\/\/\)$/{
17615 s//\1/
17618 /^X\(\/\).*/{
17619 s//\1/
17622 s/.*/./; q'`
17623 test -d "$as_dir" && break
17624 done
17625 test -z "$as_dirs" || eval "mkdir $as_dirs"
17626 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17629 } # as_fn_mkdir_p
17630 if mkdir -p . 2>/dev/null; then
17631 as_mkdir_p='mkdir -p "$as_dir"'
17632 else
17633 test -d ./-p && rmdir ./-p
17634 as_mkdir_p=false
17638 # as_fn_executable_p FILE
17639 # -----------------------
17640 # Test if FILE is an executable regular file.
17641 as_fn_executable_p ()
17643 test -f "$1" && test -x "$1"
17644 } # as_fn_executable_p
17645 as_test_x='test -x'
17646 as_executable_p=as_fn_executable_p
17648 # Sed expression to map a string onto a valid CPP name.
17649 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17651 # Sed expression to map a string onto a valid variable name.
17652 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17655 exec 6>&1
17656 ## ----------------------------------- ##
17657 ## Main body of $CONFIG_STATUS script. ##
17658 ## ----------------------------------- ##
17659 _ASEOF
17660 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17662 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17663 # Save the log message, to keep $0 and so on meaningful, and to
17664 # report actual input values of CONFIG_FILES etc. instead of their
17665 # values after options handling.
17666 ac_log="
17667 This file was extended by package-unused $as_me version-unused, which was
17668 generated by GNU Autoconf 2.69. Invocation command line was
17670 CONFIG_FILES = $CONFIG_FILES
17671 CONFIG_HEADERS = $CONFIG_HEADERS
17672 CONFIG_LINKS = $CONFIG_LINKS
17673 CONFIG_COMMANDS = $CONFIG_COMMANDS
17674 $ $0 $@
17676 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17679 _ACEOF
17681 case $ac_config_files in *"
17682 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17683 esac
17685 case $ac_config_headers in *"
17686 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17687 esac
17690 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17691 # Files that config.status was made for.
17692 config_files="$ac_config_files"
17693 config_headers="$ac_config_headers"
17694 config_commands="$ac_config_commands"
17696 _ACEOF
17698 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17699 ac_cs_usage="\
17700 \`$as_me' instantiates files and other configuration actions
17701 from templates according to the current configuration. Unless the files
17702 and actions are specified as TAGs, all are instantiated by default.
17704 Usage: $0 [OPTION]... [TAG]...
17706 -h, --help print this help, then exit
17707 -V, --version print version number and configuration settings, then exit
17708 --config print configuration, then exit
17709 -q, --quiet, --silent
17710 do not print progress messages
17711 -d, --debug don't remove temporary files
17712 --recheck update $as_me by reconfiguring in the same conditions
17713 --file=FILE[:TEMPLATE]
17714 instantiate the configuration file FILE
17715 --header=FILE[:TEMPLATE]
17716 instantiate the configuration header FILE
17718 Configuration files:
17719 $config_files
17721 Configuration headers:
17722 $config_headers
17724 Configuration commands:
17725 $config_commands
17727 Report bugs to <libsanitizer>."
17729 _ACEOF
17730 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17731 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17732 ac_cs_version="\\
17733 package-unused config.status version-unused
17734 configured by $0, generated by GNU Autoconf 2.69,
17735 with options \\"\$ac_cs_config\\"
17737 Copyright (C) 2012 Free Software Foundation, Inc.
17738 This config.status script is free software; the Free Software Foundation
17739 gives unlimited permission to copy, distribute and modify it."
17741 ac_pwd='$ac_pwd'
17742 srcdir='$srcdir'
17743 INSTALL='$INSTALL'
17744 MKDIR_P='$MKDIR_P'
17745 AWK='$AWK'
17746 test -n "\$AWK" || AWK=awk
17747 _ACEOF
17749 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17750 # The default lists apply if the user does not specify any file.
17751 ac_need_defaults=:
17752 while test $# != 0
17754 case $1 in
17755 --*=?*)
17756 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17757 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17758 ac_shift=:
17760 --*=)
17761 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17762 ac_optarg=
17763 ac_shift=:
17766 ac_option=$1
17767 ac_optarg=$2
17768 ac_shift=shift
17770 esac
17772 case $ac_option in
17773 # Handling of the options.
17774 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17775 ac_cs_recheck=: ;;
17776 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17777 $as_echo "$ac_cs_version"; exit ;;
17778 --config | --confi | --conf | --con | --co | --c )
17779 $as_echo "$ac_cs_config"; exit ;;
17780 --debug | --debu | --deb | --de | --d | -d )
17781 debug=: ;;
17782 --file | --fil | --fi | --f )
17783 $ac_shift
17784 case $ac_optarg in
17785 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17786 '') as_fn_error $? "missing file argument" ;;
17787 esac
17788 as_fn_append CONFIG_FILES " '$ac_optarg'"
17789 ac_need_defaults=false;;
17790 --header | --heade | --head | --hea )
17791 $ac_shift
17792 case $ac_optarg in
17793 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17794 esac
17795 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17796 ac_need_defaults=false;;
17797 --he | --h)
17798 # Conflict between --help and --header
17799 as_fn_error $? "ambiguous option: \`$1'
17800 Try \`$0 --help' for more information.";;
17801 --help | --hel | -h )
17802 $as_echo "$ac_cs_usage"; exit ;;
17803 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17804 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17805 ac_cs_silent=: ;;
17807 # This is an error.
17808 -*) as_fn_error $? "unrecognized option: \`$1'
17809 Try \`$0 --help' for more information." ;;
17811 *) as_fn_append ac_config_targets " $1"
17812 ac_need_defaults=false ;;
17814 esac
17815 shift
17816 done
17818 ac_configure_extra_args=
17820 if $ac_cs_silent; then
17821 exec 6>/dev/null
17822 ac_configure_extra_args="$ac_configure_extra_args --silent"
17825 _ACEOF
17826 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17827 if \$ac_cs_recheck; then
17828 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17829 shift
17830 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17831 CONFIG_SHELL='$SHELL'
17832 export CONFIG_SHELL
17833 exec "\$@"
17836 _ACEOF
17837 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17838 exec 5>>config.log
17840 echo
17841 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17842 ## Running $as_me. ##
17843 _ASBOX
17844 $as_echo "$ac_log"
17845 } >&5
17847 _ACEOF
17848 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17850 # INIT-COMMANDS
17853 srcdir="$srcdir"
17854 host="$host"
17855 target="$target"
17856 with_multisubdir="$with_multisubdir"
17857 with_multisrctop="$with_multisrctop"
17858 with_target_subdir="$with_target_subdir"
17859 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17860 multi_basedir="$multi_basedir"
17861 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17862 CC="$CC"
17863 CXX="$CXX"
17864 GFORTRAN="$GFORTRAN"
17865 GDC="$GDC"
17866 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17869 # The HP-UX ksh and POSIX shell print the target directory to stdout
17870 # if CDPATH is set.
17871 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17873 sed_quote_subst='$sed_quote_subst'
17874 double_quote_subst='$double_quote_subst'
17875 delay_variable_subst='$delay_variable_subst'
17876 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17877 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17878 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17879 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17880 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17881 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17882 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17883 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17884 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17885 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17886 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17887 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17888 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17889 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17890 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17891 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17892 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17893 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17894 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17895 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17896 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17897 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17898 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17899 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17900 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17901 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17902 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17903 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17904 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17905 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17906 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17907 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17908 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17909 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17910 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17911 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17912 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17913 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17914 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17915 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17916 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17917 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17918 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17919 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17920 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17921 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17922 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17923 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17924 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"`'
17925 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17926 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17927 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17928 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17929 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17930 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17931 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17932 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17933 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17934 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17935 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17936 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17937 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17938 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17939 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17940 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17941 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17942 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17943 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17944 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17945 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17946 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17947 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17948 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17949 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17950 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17951 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17952 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17953 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17954 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17955 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17956 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17957 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17958 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17959 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17960 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17961 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17962 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17963 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17964 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17965 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17966 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17967 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17968 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17969 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17970 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17971 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17972 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17973 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17974 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17975 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17976 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17977 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17978 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17979 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17980 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17981 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17982 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17983 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17984 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17985 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17986 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17987 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17988 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17989 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17990 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17991 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17992 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17993 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17994 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17995 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17996 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17997 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17998 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17999 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18000 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18001 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18002 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18003 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18004 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18005 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18006 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18007 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18008 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18009 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18010 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18011 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18012 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18013 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18014 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18015 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18016 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18017 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18018 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18019 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18020 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18021 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18022 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18023 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18024 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18025 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18026 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18027 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18028 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
18029 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18030 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18031 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18032 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18033 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18034 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18035 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18036 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18037 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
18038 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18039 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18040 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18041 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18042 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18043 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18044 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18045 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18046 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18047 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18048 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18049 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18050 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18052 LTCC='$LTCC'
18053 LTCFLAGS='$LTCFLAGS'
18054 compiler='$compiler_DEFAULT'
18056 # A function that is used when there is no print builtin or printf.
18057 func_fallback_echo ()
18059 eval 'cat <<_LTECHO_EOF
18061 _LTECHO_EOF'
18064 # Quote evaled strings.
18065 for var in SHELL \
18066 ECHO \
18067 SED \
18068 GREP \
18069 EGREP \
18070 FGREP \
18071 LD \
18072 NM \
18073 LN_S \
18074 lt_SP2NL \
18075 lt_NL2SP \
18076 reload_flag \
18077 OBJDUMP \
18078 deplibs_check_method \
18079 file_magic_cmd \
18080 AR \
18081 AR_FLAGS \
18082 STRIP \
18083 RANLIB \
18084 CC \
18085 CFLAGS \
18086 compiler \
18087 lt_cv_sys_global_symbol_pipe \
18088 lt_cv_sys_global_symbol_to_cdecl \
18089 lt_cv_sys_global_symbol_to_c_name_address \
18090 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18091 lt_prog_compiler_no_builtin_flag \
18092 lt_prog_compiler_wl \
18093 lt_prog_compiler_pic \
18094 lt_prog_compiler_static \
18095 lt_cv_prog_compiler_c_o \
18096 need_locks \
18097 DSYMUTIL \
18098 NMEDIT \
18099 LIPO \
18100 OTOOL \
18101 OTOOL64 \
18102 shrext_cmds \
18103 export_dynamic_flag_spec \
18104 whole_archive_flag_spec \
18105 compiler_needs_object \
18106 with_gnu_ld \
18107 allow_undefined_flag \
18108 no_undefined_flag \
18109 hardcode_libdir_flag_spec \
18110 hardcode_libdir_flag_spec_ld \
18111 hardcode_libdir_separator \
18112 fix_srcfile_path \
18113 exclude_expsyms \
18114 include_expsyms \
18115 file_list_spec \
18116 variables_saved_for_relink \
18117 libname_spec \
18118 library_names_spec \
18119 soname_spec \
18120 install_override_mode \
18121 finish_eval \
18122 old_striplib \
18123 striplib \
18124 compiler_lib_search_dirs \
18125 predep_objects \
18126 postdep_objects \
18127 predeps \
18128 postdeps \
18129 compiler_lib_search_path \
18130 LD_CXX \
18131 reload_flag_CXX \
18132 compiler_CXX \
18133 lt_prog_compiler_no_builtin_flag_CXX \
18134 lt_prog_compiler_wl_CXX \
18135 lt_prog_compiler_pic_CXX \
18136 lt_prog_compiler_static_CXX \
18137 lt_cv_prog_compiler_c_o_CXX \
18138 export_dynamic_flag_spec_CXX \
18139 whole_archive_flag_spec_CXX \
18140 compiler_needs_object_CXX \
18141 with_gnu_ld_CXX \
18142 allow_undefined_flag_CXX \
18143 no_undefined_flag_CXX \
18144 hardcode_libdir_flag_spec_CXX \
18145 hardcode_libdir_flag_spec_ld_CXX \
18146 hardcode_libdir_separator_CXX \
18147 fix_srcfile_path_CXX \
18148 exclude_expsyms_CXX \
18149 include_expsyms_CXX \
18150 file_list_spec_CXX \
18151 compiler_lib_search_dirs_CXX \
18152 predep_objects_CXX \
18153 postdep_objects_CXX \
18154 predeps_CXX \
18155 postdeps_CXX \
18156 compiler_lib_search_path_CXX; do
18157 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18158 *[\\\\\\\`\\"\\\$]*)
18159 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18162 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18164 esac
18165 done
18167 # Double-quote double-evaled strings.
18168 for var in reload_cmds \
18169 old_postinstall_cmds \
18170 old_postuninstall_cmds \
18171 old_archive_cmds \
18172 extract_expsyms_cmds \
18173 old_archive_from_new_cmds \
18174 old_archive_from_expsyms_cmds \
18175 archive_cmds \
18176 archive_expsym_cmds \
18177 module_cmds \
18178 module_expsym_cmds \
18179 export_symbols_cmds \
18180 prelink_cmds \
18181 postinstall_cmds \
18182 postuninstall_cmds \
18183 finish_cmds \
18184 sys_lib_search_path_spec \
18185 sys_lib_dlsearch_path_spec \
18186 reload_cmds_CXX \
18187 old_archive_cmds_CXX \
18188 old_archive_from_new_cmds_CXX \
18189 old_archive_from_expsyms_cmds_CXX \
18190 archive_cmds_CXX \
18191 archive_expsym_cmds_CXX \
18192 module_cmds_CXX \
18193 module_expsym_cmds_CXX \
18194 export_symbols_cmds_CXX \
18195 prelink_cmds_CXX; do
18196 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18197 *[\\\\\\\`\\"\\\$]*)
18198 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18201 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18203 esac
18204 done
18206 ac_aux_dir='$ac_aux_dir'
18207 xsi_shell='$xsi_shell'
18208 lt_shell_append='$lt_shell_append'
18210 # See if we are running on zsh, and set the options which allow our
18211 # commands through without removal of \ escapes INIT.
18212 if test -n "\${ZSH_VERSION+set}" ; then
18213 setopt NO_GLOB_SUBST
18217 PACKAGE='$PACKAGE'
18218 VERSION='$VERSION'
18219 TIMESTAMP='$TIMESTAMP'
18220 RM='$RM'
18221 ofile='$ofile'
18228 GCC="$GCC"
18229 CC="$CC"
18230 acx_cv_header_stdint="$acx_cv_header_stdint"
18231 acx_cv_type_int8_t="$acx_cv_type_int8_t"
18232 acx_cv_type_int16_t="$acx_cv_type_int16_t"
18233 acx_cv_type_int32_t="$acx_cv_type_int32_t"
18234 acx_cv_type_int64_t="$acx_cv_type_int64_t"
18235 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
18236 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
18237 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
18238 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
18239 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
18240 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
18241 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
18242 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
18243 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
18246 _ACEOF
18248 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18250 # Handling of arguments.
18251 for ac_config_target in $ac_config_targets
18253 case $ac_config_target in
18254 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
18255 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18256 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18257 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
18258 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18259 "libsanitizer.spec") CONFIG_FILES="$CONFIG_FILES libsanitizer.spec" ;;
18260 "libbacktrace/backtrace-supported.h") CONFIG_FILES="$CONFIG_FILES libbacktrace/backtrace-supported.h" ;;
18261 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18262 "interception/Makefile") CONFIG_FILES="$CONFIG_FILES interception/Makefile" ;;
18263 "sanitizer_common/Makefile") CONFIG_FILES="$CONFIG_FILES sanitizer_common/Makefile" ;;
18264 "libbacktrace/Makefile") CONFIG_FILES="$CONFIG_FILES libbacktrace/Makefile" ;;
18265 "lsan/Makefile") CONFIG_FILES="$CONFIG_FILES lsan/Makefile" ;;
18266 "asan/Makefile") CONFIG_FILES="$CONFIG_FILES asan/Makefile" ;;
18267 "ubsan/Makefile") CONFIG_FILES="$CONFIG_FILES ubsan/Makefile" ;;
18268 "tsan/Makefile") CONFIG_FILES="$CONFIG_FILES tsan/Makefile" ;;
18269 "hwasan/Makefile") CONFIG_FILES="$CONFIG_FILES hwasan/Makefile" ;;
18271 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18272 esac
18273 done
18276 # If the user did not use the arguments to specify the items to instantiate,
18277 # then the envvar interface is used. Set only those that are not.
18278 # We use the long form for the default assignment because of an extremely
18279 # bizarre bug on SunOS 4.1.3.
18280 if $ac_need_defaults; then
18281 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18282 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18283 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18286 # Have a temporary directory for convenience. Make it in the build tree
18287 # simply because there is no reason against having it here, and in addition,
18288 # creating and moving files from /tmp can sometimes cause problems.
18289 # Hook for its removal unless debugging.
18290 # Note that there is a small window in which the directory will not be cleaned:
18291 # after its creation but before its name has been assigned to `$tmp'.
18292 $debug ||
18294 tmp= ac_tmp=
18295 trap 'exit_status=$?
18296 : "${ac_tmp:=$tmp}"
18297 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18299 trap 'as_fn_exit 1' 1 2 13 15
18301 # Create a (secure) tmp directory for tmp files.
18304 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18305 test -d "$tmp"
18306 } ||
18308 tmp=./conf$$-$RANDOM
18309 (umask 077 && mkdir "$tmp")
18310 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18311 ac_tmp=$tmp
18313 # Set up the scripts for CONFIG_FILES section.
18314 # No need to generate them if there are no CONFIG_FILES.
18315 # This happens for instance with `./config.status config.h'.
18316 if test -n "$CONFIG_FILES"; then
18319 ac_cr=`echo X | tr X '\015'`
18320 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18321 # But we know of no other shell where ac_cr would be empty at this
18322 # point, so we can use a bashism as a fallback.
18323 if test "x$ac_cr" = x; then
18324 eval ac_cr=\$\'\\r\'
18326 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18327 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18328 ac_cs_awk_cr='\\r'
18329 else
18330 ac_cs_awk_cr=$ac_cr
18333 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18334 _ACEOF
18338 echo "cat >conf$$subs.awk <<_ACEOF" &&
18339 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18340 echo "_ACEOF"
18341 } >conf$$subs.sh ||
18342 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18343 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18344 ac_delim='%!_!# '
18345 for ac_last_try in false false false false false :; do
18346 . ./conf$$subs.sh ||
18347 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18349 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18350 if test $ac_delim_n = $ac_delim_num; then
18351 break
18352 elif $ac_last_try; then
18353 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18354 else
18355 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18357 done
18358 rm -f conf$$subs.sh
18360 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18361 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18362 _ACEOF
18363 sed -n '
18365 s/^/S["/; s/!.*/"]=/
18368 s/^[^!]*!//
18369 :repl
18370 t repl
18371 s/'"$ac_delim"'$//
18372 t delim
18375 s/\(.\{148\}\)..*/\1/
18376 t more1
18377 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18380 b repl
18381 :more1
18382 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18385 s/.\{148\}//
18386 t nl
18387 :delim
18389 s/\(.\{148\}\)..*/\1/
18390 t more2
18391 s/["\\]/\\&/g; s/^/"/; s/$/"/
18394 :more2
18395 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18398 s/.\{148\}//
18399 t delim
18400 ' <conf$$subs.awk | sed '
18401 /^[^""]/{
18403 s/\n//
18405 ' >>$CONFIG_STATUS || ac_write_fail=1
18406 rm -f conf$$subs.awk
18407 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18408 _ACAWK
18409 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18410 for (key in S) S_is_set[key] = 1
18411 FS = "\a"
18415 line = $ 0
18416 nfields = split(line, field, "@")
18417 substed = 0
18418 len = length(field[1])
18419 for (i = 2; i < nfields; i++) {
18420 key = field[i]
18421 keylen = length(key)
18422 if (S_is_set[key]) {
18423 value = S[key]
18424 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18425 len += length(value) + length(field[++i])
18426 substed = 1
18427 } else
18428 len += 1 + keylen
18431 print line
18434 _ACAWK
18435 _ACEOF
18436 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18437 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18438 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18439 else
18441 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18442 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18443 _ACEOF
18445 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18446 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18447 # trailing colons and then remove the whole line if VPATH becomes empty
18448 # (actually we leave an empty line to preserve line numbers).
18449 if test "x$srcdir" = x.; then
18450 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18452 s///
18453 s/^/:/
18454 s/[ ]*$/:/
18455 s/:\$(srcdir):/:/g
18456 s/:\${srcdir}:/:/g
18457 s/:@srcdir@:/:/g
18458 s/^:*//
18459 s/:*$//
18461 s/\(=[ ]*\).*/\1/
18463 s/\n//
18464 s/^[^=]*=[ ]*$//
18468 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18469 fi # test -n "$CONFIG_FILES"
18471 # Set up the scripts for CONFIG_HEADERS section.
18472 # No need to generate them if there are no CONFIG_HEADERS.
18473 # This happens for instance with `./config.status Makefile'.
18474 if test -n "$CONFIG_HEADERS"; then
18475 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18476 BEGIN {
18477 _ACEOF
18479 # Transform confdefs.h into an awk script `defines.awk', embedded as
18480 # here-document in config.status, that substitutes the proper values into
18481 # config.h.in to produce config.h.
18483 # Create a delimiter string that does not exist in confdefs.h, to ease
18484 # handling of long lines.
18485 ac_delim='%!_!# '
18486 for ac_last_try in false false :; do
18487 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18488 if test -z "$ac_tt"; then
18489 break
18490 elif $ac_last_try; then
18491 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18492 else
18493 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18495 done
18497 # For the awk script, D is an array of macro values keyed by name,
18498 # likewise P contains macro parameters if any. Preserve backslash
18499 # newline sequences.
18501 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18502 sed -n '
18503 s/.\{148\}/&'"$ac_delim"'/g
18504 t rset
18505 :rset
18506 s/^[ ]*#[ ]*define[ ][ ]*/ /
18507 t def
18509 :def
18510 s/\\$//
18511 t bsnl
18512 s/["\\]/\\&/g
18513 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18514 D["\1"]=" \3"/p
18515 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18517 :bsnl
18518 s/["\\]/\\&/g
18519 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18520 D["\1"]=" \3\\\\\\n"\\/p
18521 t cont
18522 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18523 t cont
18525 :cont
18527 s/.\{148\}/&'"$ac_delim"'/g
18528 t clear
18529 :clear
18530 s/\\$//
18531 t bsnlc
18532 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18534 :bsnlc
18535 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18536 b cont
18537 ' <confdefs.h | sed '
18538 s/'"$ac_delim"'/"\\\
18539 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18541 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18542 for (key in D) D_is_set[key] = 1
18543 FS = "\a"
18545 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18546 line = \$ 0
18547 split(line, arg, " ")
18548 if (arg[1] == "#") {
18549 defundef = arg[2]
18550 mac1 = arg[3]
18551 } else {
18552 defundef = substr(arg[1], 2)
18553 mac1 = arg[2]
18555 split(mac1, mac2, "(") #)
18556 macro = mac2[1]
18557 prefix = substr(line, 1, index(line, defundef) - 1)
18558 if (D_is_set[macro]) {
18559 # Preserve the white space surrounding the "#".
18560 print prefix "define", macro P[macro] D[macro]
18561 next
18562 } else {
18563 # Replace #undef with comments. This is necessary, for example,
18564 # in the case of _POSIX_SOURCE, which is predefined and required
18565 # on some systems where configure will not decide to define it.
18566 if (defundef == "undef") {
18567 print "/*", prefix defundef, macro, "*/"
18568 next
18572 { print }
18573 _ACAWK
18574 _ACEOF
18575 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18576 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18577 fi # test -n "$CONFIG_HEADERS"
18580 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18581 shift
18582 for ac_tag
18584 case $ac_tag in
18585 :[FHLC]) ac_mode=$ac_tag; continue;;
18586 esac
18587 case $ac_mode$ac_tag in
18588 :[FHL]*:*);;
18589 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18590 :[FH]-) ac_tag=-:-;;
18591 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18592 esac
18593 ac_save_IFS=$IFS
18594 IFS=:
18595 set x $ac_tag
18596 IFS=$ac_save_IFS
18597 shift
18598 ac_file=$1
18599 shift
18601 case $ac_mode in
18602 :L) ac_source=$1;;
18603 :[FH])
18604 ac_file_inputs=
18605 for ac_f
18607 case $ac_f in
18608 -) ac_f="$ac_tmp/stdin";;
18609 *) # Look for the file first in the build tree, then in the source tree
18610 # (if the path is not absolute). The absolute path cannot be DOS-style,
18611 # because $ac_f cannot contain `:'.
18612 test -f "$ac_f" ||
18613 case $ac_f in
18614 [\\/$]*) false;;
18615 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18616 esac ||
18617 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18618 esac
18619 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18620 as_fn_append ac_file_inputs " '$ac_f'"
18621 done
18623 # Let's still pretend it is `configure' which instantiates (i.e., don't
18624 # use $as_me), people would be surprised to read:
18625 # /* config.h. Generated by config.status. */
18626 configure_input='Generated from '`
18627 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18628 `' by configure.'
18629 if test x"$ac_file" != x-; then
18630 configure_input="$ac_file. $configure_input"
18631 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18632 $as_echo "$as_me: creating $ac_file" >&6;}
18634 # Neutralize special characters interpreted by sed in replacement strings.
18635 case $configure_input in #(
18636 *\&* | *\|* | *\\* )
18637 ac_sed_conf_input=`$as_echo "$configure_input" |
18638 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18639 *) ac_sed_conf_input=$configure_input;;
18640 esac
18642 case $ac_tag in
18643 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18644 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18645 esac
18647 esac
18649 ac_dir=`$as_dirname -- "$ac_file" ||
18650 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18651 X"$ac_file" : 'X\(//\)[^/]' \| \
18652 X"$ac_file" : 'X\(//\)$' \| \
18653 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18654 $as_echo X"$ac_file" |
18655 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18656 s//\1/
18659 /^X\(\/\/\)[^/].*/{
18660 s//\1/
18663 /^X\(\/\/\)$/{
18664 s//\1/
18667 /^X\(\/\).*/{
18668 s//\1/
18671 s/.*/./; q'`
18672 as_dir="$ac_dir"; as_fn_mkdir_p
18673 ac_builddir=.
18675 case "$ac_dir" in
18676 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18678 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18679 # A ".." for each directory in $ac_dir_suffix.
18680 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18681 case $ac_top_builddir_sub in
18682 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18683 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18684 esac ;;
18685 esac
18686 ac_abs_top_builddir=$ac_pwd
18687 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18688 # for backward compatibility:
18689 ac_top_builddir=$ac_top_build_prefix
18691 case $srcdir in
18692 .) # We are building in place.
18693 ac_srcdir=.
18694 ac_top_srcdir=$ac_top_builddir_sub
18695 ac_abs_top_srcdir=$ac_pwd ;;
18696 [\\/]* | ?:[\\/]* ) # Absolute name.
18697 ac_srcdir=$srcdir$ac_dir_suffix;
18698 ac_top_srcdir=$srcdir
18699 ac_abs_top_srcdir=$srcdir ;;
18700 *) # Relative name.
18701 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18702 ac_top_srcdir=$ac_top_build_prefix$srcdir
18703 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18704 esac
18705 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18708 case $ac_mode in
18711 # CONFIG_FILE
18714 case $INSTALL in
18715 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18716 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18717 esac
18718 ac_MKDIR_P=$MKDIR_P
18719 case $MKDIR_P in
18720 [\\/$]* | ?:[\\/]* ) ;;
18721 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18722 esac
18723 _ACEOF
18725 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18726 # If the template does not know about datarootdir, expand it.
18727 # FIXME: This hack should be removed a few years after 2.60.
18728 ac_datarootdir_hack=; ac_datarootdir_seen=
18729 ac_sed_dataroot='
18730 /datarootdir/ {
18734 /@datadir@/p
18735 /@docdir@/p
18736 /@infodir@/p
18737 /@localedir@/p
18738 /@mandir@/p'
18739 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18740 *datarootdir*) ac_datarootdir_seen=yes;;
18741 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18743 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18744 _ACEOF
18745 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18746 ac_datarootdir_hack='
18747 s&@datadir@&$datadir&g
18748 s&@docdir@&$docdir&g
18749 s&@infodir@&$infodir&g
18750 s&@localedir@&$localedir&g
18751 s&@mandir@&$mandir&g
18752 s&\\\${datarootdir}&$datarootdir&g' ;;
18753 esac
18754 _ACEOF
18756 # Neutralize VPATH when `$srcdir' = `.'.
18757 # Shell code in configure.ac might set extrasub.
18758 # FIXME: do we really want to maintain this feature?
18759 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18760 ac_sed_extra="$ac_vpsub
18761 $extrasub
18762 _ACEOF
18763 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18765 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18766 s|@configure_input@|$ac_sed_conf_input|;t t
18767 s&@top_builddir@&$ac_top_builddir_sub&;t t
18768 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18769 s&@srcdir@&$ac_srcdir&;t t
18770 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18771 s&@top_srcdir@&$ac_top_srcdir&;t t
18772 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18773 s&@builddir@&$ac_builddir&;t t
18774 s&@abs_builddir@&$ac_abs_builddir&;t t
18775 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18776 s&@INSTALL@&$ac_INSTALL&;t t
18777 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18778 $ac_datarootdir_hack
18780 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18781 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18783 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18784 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18785 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18786 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18788 which seems to be undefined. Please make sure it is defined" >&5
18789 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18790 which seems to be undefined. Please make sure it is defined" >&2;}
18792 rm -f "$ac_tmp/stdin"
18793 case $ac_file in
18794 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18795 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18796 esac \
18797 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18801 # CONFIG_HEADER
18803 if test x"$ac_file" != x-; then
18805 $as_echo "/* $configure_input */" \
18806 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18807 } >"$ac_tmp/config.h" \
18808 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18809 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18810 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18811 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18812 else
18813 rm -f "$ac_file"
18814 mv "$ac_tmp/config.h" "$ac_file" \
18815 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18817 else
18818 $as_echo "/* $configure_input */" \
18819 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18820 || as_fn_error $? "could not create -" "$LINENO" 5
18822 # Compute "$ac_file"'s index in $config_headers.
18823 _am_arg="$ac_file"
18824 _am_stamp_count=1
18825 for _am_header in $config_headers :; do
18826 case $_am_header in
18827 $_am_arg | $_am_arg:* )
18828 break ;;
18830 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18831 esac
18832 done
18833 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18834 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18835 X"$_am_arg" : 'X\(//\)[^/]' \| \
18836 X"$_am_arg" : 'X\(//\)$' \| \
18837 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18838 $as_echo X"$_am_arg" |
18839 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18840 s//\1/
18843 /^X\(\/\/\)[^/].*/{
18844 s//\1/
18847 /^X\(\/\/\)$/{
18848 s//\1/
18851 /^X\(\/\).*/{
18852 s//\1/
18855 s/.*/./; q'`/stamp-h$_am_stamp_count
18858 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18859 $as_echo "$as_me: executing $ac_file commands" >&6;}
18861 esac
18864 case $ac_file$ac_mode in
18865 "default-1":C)
18866 # Only add multilib support code if we just rebuilt the top-level
18867 # Makefile.
18868 case " $CONFIG_FILES " in
18869 *" Makefile "*)
18870 ac_file=Makefile . ${multi_basedir}/config-ml.in
18872 esac ;;
18873 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18874 # Older Autoconf quotes --file arguments for eval, but not when files
18875 # are listed without --file. Let's play safe and only enable the eval
18876 # if we detect the quoting.
18877 case $CONFIG_FILES in
18878 *\'*) eval set x "$CONFIG_FILES" ;;
18879 *) set x $CONFIG_FILES ;;
18880 esac
18881 shift
18882 for mf
18884 # Strip MF so we end up with the name of the file.
18885 mf=`echo "$mf" | sed -e 's/:.*$//'`
18886 # Check whether this is an Automake generated Makefile or not.
18887 # We used to match only the files named 'Makefile.in', but
18888 # some people rename them; so instead we look at the file content.
18889 # Grep'ing the first line is not enough: some people post-process
18890 # each Makefile.in and add a new line on top of each file to say so.
18891 # Grep'ing the whole file is not good either: AIX grep has a line
18892 # limit of 2048, but all sed's we know have understand at least 4000.
18893 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18894 dirpart=`$as_dirname -- "$mf" ||
18895 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18896 X"$mf" : 'X\(//\)[^/]' \| \
18897 X"$mf" : 'X\(//\)$' \| \
18898 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18899 $as_echo X"$mf" |
18900 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18901 s//\1/
18904 /^X\(\/\/\)[^/].*/{
18905 s//\1/
18908 /^X\(\/\/\)$/{
18909 s//\1/
18912 /^X\(\/\).*/{
18913 s//\1/
18916 s/.*/./; q'`
18917 else
18918 continue
18920 # Extract the definition of DEPDIR, am__include, and am__quote
18921 # from the Makefile without running 'make'.
18922 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18923 test -z "$DEPDIR" && continue
18924 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18925 test -z "$am__include" && continue
18926 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18927 # Find all dependency output files, they are included files with
18928 # $(DEPDIR) in their names. We invoke sed twice because it is the
18929 # simplest approach to changing $(DEPDIR) to its actual value in the
18930 # expansion.
18931 for file in `sed -n "
18932 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18933 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18934 # Make sure the directory exists.
18935 test -f "$dirpart/$file" && continue
18936 fdir=`$as_dirname -- "$file" ||
18937 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18938 X"$file" : 'X\(//\)[^/]' \| \
18939 X"$file" : 'X\(//\)$' \| \
18940 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18941 $as_echo X"$file" |
18942 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18943 s//\1/
18946 /^X\(\/\/\)[^/].*/{
18947 s//\1/
18950 /^X\(\/\/\)$/{
18951 s//\1/
18954 /^X\(\/\).*/{
18955 s//\1/
18958 s/.*/./; q'`
18959 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18960 # echo "creating $dirpart/$file"
18961 echo '# dummy' > "$dirpart/$file"
18962 done
18963 done
18966 "libtool":C)
18968 # See if we are running on zsh, and set the options which allow our
18969 # commands through without removal of \ escapes.
18970 if test -n "${ZSH_VERSION+set}" ; then
18971 setopt NO_GLOB_SUBST
18974 cfgfile="${ofile}T"
18975 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18976 $RM "$cfgfile"
18978 cat <<_LT_EOF >> "$cfgfile"
18979 #! $SHELL
18981 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18982 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18983 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18984 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18986 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18987 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18988 # Written by Gordon Matzigkeit, 1996
18990 # This file is part of GNU Libtool.
18992 # GNU Libtool is free software; you can redistribute it and/or
18993 # modify it under the terms of the GNU General Public License as
18994 # published by the Free Software Foundation; either version 2 of
18995 # the License, or (at your option) any later version.
18997 # As a special exception to the GNU General Public License,
18998 # if you distribute this file as part of a program or library that
18999 # is built using GNU Libtool, you may include this file under the
19000 # same distribution terms that you use for the rest of that program.
19002 # GNU Libtool is distributed in the hope that it will be useful,
19003 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19004 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19005 # GNU General Public License for more details.
19007 # You should have received a copy of the GNU General Public License
19008 # along with GNU Libtool; see the file COPYING. If not, a copy
19009 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19010 # obtained by writing to the Free Software Foundation, Inc.,
19011 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19014 # The names of the tagged configurations supported by this script.
19015 available_tags="CXX "
19017 # ### BEGIN LIBTOOL CONFIG
19019 # Which release of libtool.m4 was used?
19020 macro_version=$macro_version
19021 macro_revision=$macro_revision
19023 # Whether or not to build shared libraries.
19024 build_libtool_libs=$enable_shared
19026 # Whether or not to build static libraries.
19027 build_old_libs=$enable_static
19029 # What type of objects to build.
19030 pic_mode=$pic_mode
19032 # Whether or not to optimize for fast installation.
19033 fast_install=$enable_fast_install
19035 # Shell to use when invoking shell scripts.
19036 SHELL=$lt_SHELL
19038 # An echo program that protects backslashes.
19039 ECHO=$lt_ECHO
19041 # The host system.
19042 host_alias=$host_alias
19043 host=$host
19044 host_os=$host_os
19046 # The build system.
19047 build_alias=$build_alias
19048 build=$build
19049 build_os=$build_os
19051 # A sed program that does not truncate output.
19052 SED=$lt_SED
19054 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19055 Xsed="\$SED -e 1s/^X//"
19057 # A grep program that handles long lines.
19058 GREP=$lt_GREP
19060 # An ERE matcher.
19061 EGREP=$lt_EGREP
19063 # A literal string matcher.
19064 FGREP=$lt_FGREP
19066 # A BSD- or MS-compatible name lister.
19067 NM=$lt_NM
19069 # Whether we need soft or hard links.
19070 LN_S=$lt_LN_S
19072 # What is the maximum length of a command?
19073 max_cmd_len=$max_cmd_len
19075 # Object file suffix (normally "o").
19076 objext=$ac_objext
19078 # Executable file suffix (normally "").
19079 exeext=$exeext
19081 # whether the shell understands "unset".
19082 lt_unset=$lt_unset
19084 # turn spaces into newlines.
19085 SP2NL=$lt_lt_SP2NL
19087 # turn newlines into spaces.
19088 NL2SP=$lt_lt_NL2SP
19090 # An object symbol dumper.
19091 OBJDUMP=$lt_OBJDUMP
19093 # Method to check whether dependent libraries are shared objects.
19094 deplibs_check_method=$lt_deplibs_check_method
19096 # Command to use when deplibs_check_method == "file_magic".
19097 file_magic_cmd=$lt_file_magic_cmd
19099 # The archiver.
19100 AR=$lt_AR
19101 AR_FLAGS=$lt_AR_FLAGS
19103 # A symbol stripping program.
19104 STRIP=$lt_STRIP
19106 # Commands used to install an old-style archive.
19107 RANLIB=$lt_RANLIB
19108 old_postinstall_cmds=$lt_old_postinstall_cmds
19109 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19111 # Whether to use a lock for old archive extraction.
19112 lock_old_archive_extraction=$lock_old_archive_extraction
19114 # A C compiler.
19115 LTCC=$lt_CC
19117 # LTCC compiler flags.
19118 LTCFLAGS=$lt_CFLAGS
19120 # Take the output of nm and produce a listing of raw symbols and C names.
19121 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19123 # Transform the output of nm in a proper C declaration.
19124 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19126 # Transform the output of nm in a C name address pair.
19127 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19129 # Transform the output of nm in a C name address pair when lib prefix is needed.
19130 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19132 # The name of the directory that contains temporary libtool files.
19133 objdir=$objdir
19135 # Used to examine libraries when file_magic_cmd begins with "file".
19136 MAGIC_CMD=$MAGIC_CMD
19138 # Must we lock files when doing compilation?
19139 need_locks=$lt_need_locks
19141 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19142 DSYMUTIL=$lt_DSYMUTIL
19144 # Tool to change global to local symbols on Mac OS X.
19145 NMEDIT=$lt_NMEDIT
19147 # Tool to manipulate fat objects and archives on Mac OS X.
19148 LIPO=$lt_LIPO
19150 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19151 OTOOL=$lt_OTOOL
19153 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19154 OTOOL64=$lt_OTOOL64
19156 # Old archive suffix (normally "a").
19157 libext=$libext
19159 # Shared library suffix (normally ".so").
19160 shrext_cmds=$lt_shrext_cmds
19162 # The commands to extract the exported symbol list from a shared archive.
19163 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19165 # Variables whose values should be saved in libtool wrapper scripts and
19166 # restored at link time.
19167 variables_saved_for_relink=$lt_variables_saved_for_relink
19169 # Do we need the "lib" prefix for modules?
19170 need_lib_prefix=$need_lib_prefix
19172 # Do we need a version for libraries?
19173 need_version=$need_version
19175 # Library versioning type.
19176 version_type=$version_type
19178 # Shared library runtime path variable.
19179 runpath_var=$runpath_var
19181 # Shared library path variable.
19182 shlibpath_var=$shlibpath_var
19184 # Is shlibpath searched before the hard-coded library search path?
19185 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19187 # Format of library name prefix.
19188 libname_spec=$lt_libname_spec
19190 # List of archive names. First name is the real one, the rest are links.
19191 # The last name is the one that the linker finds with -lNAME
19192 library_names_spec=$lt_library_names_spec
19194 # The coded name of the library, if different from the real name.
19195 soname_spec=$lt_soname_spec
19197 # Permission mode override for installation of shared libraries.
19198 install_override_mode=$lt_install_override_mode
19200 # Command to use after installation of a shared archive.
19201 postinstall_cmds=$lt_postinstall_cmds
19203 # Command to use after uninstallation of a shared archive.
19204 postuninstall_cmds=$lt_postuninstall_cmds
19206 # Commands used to finish a libtool library installation in a directory.
19207 finish_cmds=$lt_finish_cmds
19209 # As "finish_cmds", except a single script fragment to be evaled but
19210 # not shown.
19211 finish_eval=$lt_finish_eval
19213 # Whether we should hardcode library paths into libraries.
19214 hardcode_into_libs=$hardcode_into_libs
19216 # Compile-time system search path for libraries.
19217 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19219 # Run-time system search path for libraries.
19220 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19222 # Whether dlopen is supported.
19223 dlopen_support=$enable_dlopen
19225 # Whether dlopen of programs is supported.
19226 dlopen_self=$enable_dlopen_self
19228 # Whether dlopen of statically linked programs is supported.
19229 dlopen_self_static=$enable_dlopen_self_static
19231 # Commands to strip libraries.
19232 old_striplib=$lt_old_striplib
19233 striplib=$lt_striplib
19236 # The linker used to build libraries.
19237 LD=$lt_LD
19239 # How to create reloadable object files.
19240 reload_flag=$lt_reload_flag
19241 reload_cmds=$lt_reload_cmds
19243 # Commands used to build an old-style archive.
19244 old_archive_cmds=$lt_old_archive_cmds
19246 # A language specific compiler.
19247 CC=$lt_compiler
19249 # Is the compiler the GNU compiler?
19250 with_gcc=$GCC
19252 # Compiler flag to turn off builtin functions.
19253 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19255 # How to pass a linker flag through the compiler.
19256 wl=$lt_lt_prog_compiler_wl
19258 # Additional compiler flags for building library objects.
19259 pic_flag=$lt_lt_prog_compiler_pic
19261 # Compiler flag to prevent dynamic linking.
19262 link_static_flag=$lt_lt_prog_compiler_static
19264 # Does compiler simultaneously support -c and -o options?
19265 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19267 # Whether or not to add -lc for building shared libraries.
19268 build_libtool_need_lc=$archive_cmds_need_lc
19270 # Whether or not to disallow shared libs when runtime libs are static.
19271 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19273 # Compiler flag to allow reflexive dlopens.
19274 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19276 # Compiler flag to generate shared objects directly from archives.
19277 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19279 # Whether the compiler copes with passing no objects directly.
19280 compiler_needs_object=$lt_compiler_needs_object
19282 # Create an old-style archive from a shared archive.
19283 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19285 # Create a temporary old-style archive to link instead of a shared archive.
19286 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19288 # Commands used to build a shared archive.
19289 archive_cmds=$lt_archive_cmds
19290 archive_expsym_cmds=$lt_archive_expsym_cmds
19292 # Commands used to build a loadable module if different from building
19293 # a shared archive.
19294 module_cmds=$lt_module_cmds
19295 module_expsym_cmds=$lt_module_expsym_cmds
19297 # Whether we are building with GNU ld or not.
19298 with_gnu_ld=$lt_with_gnu_ld
19300 # Flag that allows shared libraries with undefined symbols to be built.
19301 allow_undefined_flag=$lt_allow_undefined_flag
19303 # Flag that enforces no undefined symbols.
19304 no_undefined_flag=$lt_no_undefined_flag
19306 # Flag to hardcode \$libdir into a binary during linking.
19307 # This must work even if \$libdir does not exist
19308 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19310 # If ld is used when linking, flag to hardcode \$libdir into a binary
19311 # during linking. This must work even if \$libdir does not exist.
19312 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19314 # Whether we need a single "-rpath" flag with a separated argument.
19315 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19317 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19318 # DIR into the resulting binary.
19319 hardcode_direct=$hardcode_direct
19321 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19322 # DIR into the resulting binary and the resulting library dependency is
19323 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19324 # library is relocated.
19325 hardcode_direct_absolute=$hardcode_direct_absolute
19327 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19328 # into the resulting binary.
19329 hardcode_minus_L=$hardcode_minus_L
19331 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19332 # into the resulting binary.
19333 hardcode_shlibpath_var=$hardcode_shlibpath_var
19335 # Set to "yes" if building a shared library automatically hardcodes DIR
19336 # into the library and all subsequent libraries and executables linked
19337 # against it.
19338 hardcode_automatic=$hardcode_automatic
19340 # Set to yes if linker adds runtime paths of dependent libraries
19341 # to runtime path list.
19342 inherit_rpath=$inherit_rpath
19344 # Whether libtool must link a program against all its dependency libraries.
19345 link_all_deplibs=$link_all_deplibs
19347 # Fix the shell variable \$srcfile for the compiler.
19348 fix_srcfile_path=$lt_fix_srcfile_path
19350 # Set to "yes" if exported symbols are required.
19351 always_export_symbols=$always_export_symbols
19353 # The commands to list exported symbols.
19354 export_symbols_cmds=$lt_export_symbols_cmds
19356 # Symbols that should not be listed in the preloaded symbols.
19357 exclude_expsyms=$lt_exclude_expsyms
19359 # Symbols that must always be exported.
19360 include_expsyms=$lt_include_expsyms
19362 # Commands necessary for linking programs (against libraries) with templates.
19363 prelink_cmds=$lt_prelink_cmds
19365 # Specify filename containing input files.
19366 file_list_spec=$lt_file_list_spec
19368 # How to hardcode a shared library path into an executable.
19369 hardcode_action=$hardcode_action
19371 # The directories searched by this compiler when creating a shared library.
19372 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19374 # Dependencies to place before and after the objects being linked to
19375 # create a shared library.
19376 predep_objects=$lt_predep_objects
19377 postdep_objects=$lt_postdep_objects
19378 predeps=$lt_predeps
19379 postdeps=$lt_postdeps
19381 # The library search path used internally by the compiler when linking
19382 # a shared library.
19383 compiler_lib_search_path=$lt_compiler_lib_search_path
19385 # ### END LIBTOOL CONFIG
19387 _LT_EOF
19389 case $host_os in
19390 aix3*)
19391 cat <<\_LT_EOF >> "$cfgfile"
19392 # AIX sometimes has problems with the GCC collect2 program. For some
19393 # reason, if we set the COLLECT_NAMES environment variable, the problems
19394 # vanish in a puff of smoke.
19395 if test "X${COLLECT_NAMES+set}" != Xset; then
19396 COLLECT_NAMES=
19397 export COLLECT_NAMES
19399 _LT_EOF
19401 esac
19404 ltmain="$ac_aux_dir/ltmain.sh"
19407 # We use sed instead of cat because bash on DJGPP gets confused if
19408 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19409 # text mode, it properly converts lines to CR/LF. This bash problem
19410 # is reportedly fixed, but why not run on old versions too?
19411 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19412 || (rm -f "$cfgfile"; exit 1)
19414 case $xsi_shell in
19415 yes)
19416 cat << \_LT_EOF >> "$cfgfile"
19418 # func_dirname file append nondir_replacement
19419 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19420 # otherwise set result to NONDIR_REPLACEMENT.
19421 func_dirname ()
19423 case ${1} in
19424 */*) func_dirname_result="${1%/*}${2}" ;;
19425 * ) func_dirname_result="${3}" ;;
19426 esac
19429 # func_basename file
19430 func_basename ()
19432 func_basename_result="${1##*/}"
19435 # func_dirname_and_basename file append nondir_replacement
19436 # perform func_basename and func_dirname in a single function
19437 # call:
19438 # dirname: Compute the dirname of FILE. If nonempty,
19439 # add APPEND to the result, otherwise set result
19440 # to NONDIR_REPLACEMENT.
19441 # value returned in "$func_dirname_result"
19442 # basename: Compute filename of FILE.
19443 # value retuned in "$func_basename_result"
19444 # Implementation must be kept synchronized with func_dirname
19445 # and func_basename. For efficiency, we do not delegate to
19446 # those functions but instead duplicate the functionality here.
19447 func_dirname_and_basename ()
19449 case ${1} in
19450 */*) func_dirname_result="${1%/*}${2}" ;;
19451 * ) func_dirname_result="${3}" ;;
19452 esac
19453 func_basename_result="${1##*/}"
19456 # func_stripname prefix suffix name
19457 # strip PREFIX and SUFFIX off of NAME.
19458 # PREFIX and SUFFIX must not contain globbing or regex special
19459 # characters, hashes, percent signs, but SUFFIX may contain a leading
19460 # dot (in which case that matches only a dot).
19461 func_stripname ()
19463 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19464 # positional parameters, so assign one to ordinary parameter first.
19465 func_stripname_result=${3}
19466 func_stripname_result=${func_stripname_result#"${1}"}
19467 func_stripname_result=${func_stripname_result%"${2}"}
19470 # func_opt_split
19471 func_opt_split ()
19473 func_opt_split_opt=${1%%=*}
19474 func_opt_split_arg=${1#*=}
19477 # func_lo2o object
19478 func_lo2o ()
19480 case ${1} in
19481 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19482 *) func_lo2o_result=${1} ;;
19483 esac
19486 # func_xform libobj-or-source
19487 func_xform ()
19489 func_xform_result=${1%.*}.lo
19492 # func_arith arithmetic-term...
19493 func_arith ()
19495 func_arith_result=$(( $* ))
19498 # func_len string
19499 # STRING may not start with a hyphen.
19500 func_len ()
19502 func_len_result=${#1}
19505 _LT_EOF
19507 *) # Bourne compatible functions.
19508 cat << \_LT_EOF >> "$cfgfile"
19510 # func_dirname file append nondir_replacement
19511 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19512 # otherwise set result to NONDIR_REPLACEMENT.
19513 func_dirname ()
19515 # Extract subdirectory from the argument.
19516 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
19517 if test "X$func_dirname_result" = "X${1}"; then
19518 func_dirname_result="${3}"
19519 else
19520 func_dirname_result="$func_dirname_result${2}"
19524 # func_basename file
19525 func_basename ()
19527 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
19531 # func_stripname prefix suffix name
19532 # strip PREFIX and SUFFIX off of NAME.
19533 # PREFIX and SUFFIX must not contain globbing or regex special
19534 # characters, hashes, percent signs, but SUFFIX may contain a leading
19535 # dot (in which case that matches only a dot).
19536 # func_strip_suffix prefix name
19537 func_stripname ()
19539 case ${2} in
19540 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19541 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19542 esac
19545 # sed scripts:
19546 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19547 my_sed_long_arg='1s/^-[^=]*=//'
19549 # func_opt_split
19550 func_opt_split ()
19552 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19553 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19556 # func_lo2o object
19557 func_lo2o ()
19559 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
19562 # func_xform libobj-or-source
19563 func_xform ()
19565 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19568 # func_arith arithmetic-term...
19569 func_arith ()
19571 func_arith_result=`expr "$@"`
19574 # func_len string
19575 # STRING may not start with a hyphen.
19576 func_len ()
19578 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19581 _LT_EOF
19582 esac
19584 case $lt_shell_append in
19585 yes)
19586 cat << \_LT_EOF >> "$cfgfile"
19588 # func_append var value
19589 # Append VALUE to the end of shell variable VAR.
19590 func_append ()
19592 eval "$1+=\$2"
19594 _LT_EOF
19597 cat << \_LT_EOF >> "$cfgfile"
19599 # func_append var value
19600 # Append VALUE to the end of shell variable VAR.
19601 func_append ()
19603 eval "$1=\$$1\$2"
19606 _LT_EOF
19608 esac
19611 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19612 || (rm -f "$cfgfile"; exit 1)
19614 mv -f "$cfgfile" "$ofile" ||
19615 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19616 chmod +x "$ofile"
19619 cat <<_LT_EOF >> "$ofile"
19621 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19623 # The linker used to build libraries.
19624 LD=$lt_LD_CXX
19626 # How to create reloadable object files.
19627 reload_flag=$lt_reload_flag_CXX
19628 reload_cmds=$lt_reload_cmds_CXX
19630 # Commands used to build an old-style archive.
19631 old_archive_cmds=$lt_old_archive_cmds_CXX
19633 # A language specific compiler.
19634 CC=$lt_compiler_CXX
19636 # Is the compiler the GNU compiler?
19637 with_gcc=$GCC_CXX
19639 # Compiler flag to turn off builtin functions.
19640 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19642 # How to pass a linker flag through the compiler.
19643 wl=$lt_lt_prog_compiler_wl_CXX
19645 # Additional compiler flags for building library objects.
19646 pic_flag=$lt_lt_prog_compiler_pic_CXX
19648 # Compiler flag to prevent dynamic linking.
19649 link_static_flag=$lt_lt_prog_compiler_static_CXX
19651 # Does compiler simultaneously support -c and -o options?
19652 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19654 # Whether or not to add -lc for building shared libraries.
19655 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19657 # Whether or not to disallow shared libs when runtime libs are static.
19658 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19660 # Compiler flag to allow reflexive dlopens.
19661 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19663 # Compiler flag to generate shared objects directly from archives.
19664 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19666 # Whether the compiler copes with passing no objects directly.
19667 compiler_needs_object=$lt_compiler_needs_object_CXX
19669 # Create an old-style archive from a shared archive.
19670 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19672 # Create a temporary old-style archive to link instead of a shared archive.
19673 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19675 # Commands used to build a shared archive.
19676 archive_cmds=$lt_archive_cmds_CXX
19677 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19679 # Commands used to build a loadable module if different from building
19680 # a shared archive.
19681 module_cmds=$lt_module_cmds_CXX
19682 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19684 # Whether we are building with GNU ld or not.
19685 with_gnu_ld=$lt_with_gnu_ld_CXX
19687 # Flag that allows shared libraries with undefined symbols to be built.
19688 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19690 # Flag that enforces no undefined symbols.
19691 no_undefined_flag=$lt_no_undefined_flag_CXX
19693 # Flag to hardcode \$libdir into a binary during linking.
19694 # This must work even if \$libdir does not exist
19695 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19697 # If ld is used when linking, flag to hardcode \$libdir into a binary
19698 # during linking. This must work even if \$libdir does not exist.
19699 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19701 # Whether we need a single "-rpath" flag with a separated argument.
19702 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19704 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19705 # DIR into the resulting binary.
19706 hardcode_direct=$hardcode_direct_CXX
19708 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19709 # DIR into the resulting binary and the resulting library dependency is
19710 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19711 # library is relocated.
19712 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19714 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19715 # into the resulting binary.
19716 hardcode_minus_L=$hardcode_minus_L_CXX
19718 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19719 # into the resulting binary.
19720 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19722 # Set to "yes" if building a shared library automatically hardcodes DIR
19723 # into the library and all subsequent libraries and executables linked
19724 # against it.
19725 hardcode_automatic=$hardcode_automatic_CXX
19727 # Set to yes if linker adds runtime paths of dependent libraries
19728 # to runtime path list.
19729 inherit_rpath=$inherit_rpath_CXX
19731 # Whether libtool must link a program against all its dependency libraries.
19732 link_all_deplibs=$link_all_deplibs_CXX
19734 # Fix the shell variable \$srcfile for the compiler.
19735 fix_srcfile_path=$lt_fix_srcfile_path_CXX
19737 # Set to "yes" if exported symbols are required.
19738 always_export_symbols=$always_export_symbols_CXX
19740 # The commands to list exported symbols.
19741 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19743 # Symbols that should not be listed in the preloaded symbols.
19744 exclude_expsyms=$lt_exclude_expsyms_CXX
19746 # Symbols that must always be exported.
19747 include_expsyms=$lt_include_expsyms_CXX
19749 # Commands necessary for linking programs (against libraries) with templates.
19750 prelink_cmds=$lt_prelink_cmds_CXX
19752 # Specify filename containing input files.
19753 file_list_spec=$lt_file_list_spec_CXX
19755 # How to hardcode a shared library path into an executable.
19756 hardcode_action=$hardcode_action_CXX
19758 # The directories searched by this compiler when creating a shared library.
19759 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19761 # Dependencies to place before and after the objects being linked to
19762 # create a shared library.
19763 predep_objects=$lt_predep_objects_CXX
19764 postdep_objects=$lt_postdep_objects_CXX
19765 predeps=$lt_predeps_CXX
19766 postdeps=$lt_postdeps_CXX
19768 # The library search path used internally by the compiler when linking
19769 # a shared library.
19770 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19772 # ### END LIBTOOL TAG CONFIG: CXX
19773 _LT_EOF
19776 "gstdint.h":C)
19777 if test "$GCC" = yes; then
19778 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
19779 else
19780 echo "/* generated for $CC */" > tmp-stdint.h
19783 sed 's/^ *//' >> tmp-stdint.h <<EOF
19785 #ifndef GCC_GENERATED_STDINT_H
19786 #define GCC_GENERATED_STDINT_H 1
19788 #include <sys/types.h>
19791 if test "$acx_cv_header_stdint" != stdint.h; then
19792 echo "#include <stddef.h>" >> tmp-stdint.h
19794 if test "$acx_cv_header_stdint" != stddef.h; then
19795 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
19798 sed 's/^ *//' >> tmp-stdint.h <<EOF
19799 /* glibc uses these symbols as guards to prevent redefinitions. */
19800 #ifdef __int8_t_defined
19801 #define _INT8_T
19802 #define _INT16_T
19803 #define _INT32_T
19804 #endif
19805 #ifdef __uint32_t_defined
19806 #define _UINT32_T
19807 #endif
19811 # ----------------- done header, emit basic int types -------------
19812 if test "$acx_cv_header_stdint" = stddef.h; then
19813 sed 's/^ *//' >> tmp-stdint.h <<EOF
19815 #ifndef _UINT8_T
19816 #define _UINT8_T
19817 #ifndef __uint8_t_defined
19818 #define __uint8_t_defined
19819 #ifndef uint8_t
19820 typedef unsigned $acx_cv_type_int8_t uint8_t;
19821 #endif
19822 #endif
19823 #endif
19825 #ifndef _UINT16_T
19826 #define _UINT16_T
19827 #ifndef __uint16_t_defined
19828 #define __uint16_t_defined
19829 #ifndef uint16_t
19830 typedef unsigned $acx_cv_type_int16_t uint16_t;
19831 #endif
19832 #endif
19833 #endif
19835 #ifndef _UINT32_T
19836 #define _UINT32_T
19837 #ifndef __uint32_t_defined
19838 #define __uint32_t_defined
19839 #ifndef uint32_t
19840 typedef unsigned $acx_cv_type_int32_t uint32_t;
19841 #endif
19842 #endif
19843 #endif
19845 #ifndef _INT8_T
19846 #define _INT8_T
19847 #ifndef __int8_t_defined
19848 #define __int8_t_defined
19849 #ifndef int8_t
19850 typedef $acx_cv_type_int8_t int8_t;
19851 #endif
19852 #endif
19853 #endif
19855 #ifndef _INT16_T
19856 #define _INT16_T
19857 #ifndef __int16_t_defined
19858 #define __int16_t_defined
19859 #ifndef int16_t
19860 typedef $acx_cv_type_int16_t int16_t;
19861 #endif
19862 #endif
19863 #endif
19865 #ifndef _INT32_T
19866 #define _INT32_T
19867 #ifndef __int32_t_defined
19868 #define __int32_t_defined
19869 #ifndef int32_t
19870 typedef $acx_cv_type_int32_t int32_t;
19871 #endif
19872 #endif
19873 #endif
19875 elif test "$ac_cv_type_u_int32_t" = yes; then
19876 sed 's/^ *//' >> tmp-stdint.h <<EOF
19878 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
19879 #ifndef _INT8_T
19880 #define _INT8_T
19881 #endif
19882 #ifndef _INT16_T
19883 #define _INT16_T
19884 #endif
19885 #ifndef _INT32_T
19886 #define _INT32_T
19887 #endif
19889 #ifndef _UINT8_T
19890 #define _UINT8_T
19891 #ifndef __uint8_t_defined
19892 #define __uint8_t_defined
19893 #ifndef uint8_t
19894 typedef u_int8_t uint8_t;
19895 #endif
19896 #endif
19897 #endif
19899 #ifndef _UINT16_T
19900 #define _UINT16_T
19901 #ifndef __uint16_t_defined
19902 #define __uint16_t_defined
19903 #ifndef uint16_t
19904 typedef u_int16_t uint16_t;
19905 #endif
19906 #endif
19907 #endif
19909 #ifndef _UINT32_T
19910 #define _UINT32_T
19911 #ifndef __uint32_t_defined
19912 #define __uint32_t_defined
19913 #ifndef uint32_t
19914 typedef u_int32_t uint32_t;
19915 #endif
19916 #endif
19917 #endif
19919 else
19920 sed 's/^ *//' >> tmp-stdint.h <<EOF
19922 /* Some systems have guard macros to prevent redefinitions, define them. */
19923 #ifndef _INT8_T
19924 #define _INT8_T
19925 #endif
19926 #ifndef _INT16_T
19927 #define _INT16_T
19928 #endif
19929 #ifndef _INT32_T
19930 #define _INT32_T
19931 #endif
19932 #ifndef _UINT8_T
19933 #define _UINT8_T
19934 #endif
19935 #ifndef _UINT16_T
19936 #define _UINT16_T
19937 #endif
19938 #ifndef _UINT32_T
19939 #define _UINT32_T
19940 #endif
19944 # ------------- done basic int types, emit int64_t types ------------
19945 if test "$ac_cv_type_uint64_t" = yes; then
19946 sed 's/^ *//' >> tmp-stdint.h <<EOF
19948 /* system headers have good uint64_t and int64_t */
19949 #ifndef _INT64_T
19950 #define _INT64_T
19951 #endif
19952 #ifndef _UINT64_T
19953 #define _UINT64_T
19954 #endif
19956 elif test "$ac_cv_type_u_int64_t" = yes; then
19957 sed 's/^ *//' >> tmp-stdint.h <<EOF
19959 /* system headers have an u_int64_t (and int64_t) */
19960 #ifndef _INT64_T
19961 #define _INT64_T
19962 #endif
19963 #ifndef _UINT64_T
19964 #define _UINT64_T
19965 #ifndef __uint64_t_defined
19966 #define __uint64_t_defined
19967 #ifndef uint64_t
19968 typedef u_int64_t uint64_t;
19969 #endif
19970 #endif
19971 #endif
19973 elif test -n "$acx_cv_type_int64_t"; then
19974 sed 's/^ *//' >> tmp-stdint.h <<EOF
19976 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
19977 #ifndef _INT64_T
19978 #define _INT64_T
19979 #ifndef int64_t
19980 typedef $acx_cv_type_int64_t int64_t;
19981 #endif
19982 #endif
19983 #ifndef _UINT64_T
19984 #define _UINT64_T
19985 #ifndef __uint64_t_defined
19986 #define __uint64_t_defined
19987 #ifndef uint64_t
19988 typedef unsigned $acx_cv_type_int64_t uint64_t;
19989 #endif
19990 #endif
19991 #endif
19993 else
19994 sed 's/^ *//' >> tmp-stdint.h <<EOF
19996 /* some common heuristics for int64_t, using compiler-specific tests */
19997 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
19998 #ifndef _INT64_T
19999 #define _INT64_T
20000 #ifndef __int64_t_defined
20001 #ifndef int64_t
20002 typedef long long int64_t;
20003 #endif
20004 #endif
20005 #endif
20006 #ifndef _UINT64_T
20007 #define _UINT64_T
20008 #ifndef uint64_t
20009 typedef unsigned long long uint64_t;
20010 #endif
20011 #endif
20013 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
20014 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
20015 does not implement __extension__. But that compiler doesn't define
20016 __GNUC_MINOR__. */
20017 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
20018 # define __extension__
20019 # endif
20021 # ifndef _INT64_T
20022 # define _INT64_T
20023 # ifndef int64_t
20024 __extension__ typedef long long int64_t;
20025 # endif
20026 # endif
20027 # ifndef _UINT64_T
20028 # define _UINT64_T
20029 # ifndef uint64_t
20030 __extension__ typedef unsigned long long uint64_t;
20031 # endif
20032 # endif
20034 #elif !defined __STRICT_ANSI__
20035 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
20037 # ifndef _INT64_T
20038 # define _INT64_T
20039 # ifndef int64_t
20040 typedef __int64 int64_t;
20041 # endif
20042 # endif
20043 # ifndef _UINT64_T
20044 # define _UINT64_T
20045 # ifndef uint64_t
20046 typedef unsigned __int64 uint64_t;
20047 # endif
20048 # endif
20049 # endif /* compiler */
20051 #endif /* ANSI version */
20055 # ------------- done int64_t types, emit intptr types ------------
20056 if test "$ac_cv_type_uintptr_t" != yes; then
20057 sed 's/^ *//' >> tmp-stdint.h <<EOF
20059 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
20060 #ifndef __uintptr_t_defined
20061 #ifndef uintptr_t
20062 typedef u$acx_cv_type_intptr_t uintptr_t;
20063 #endif
20064 #endif
20065 #ifndef __intptr_t_defined
20066 #ifndef intptr_t
20067 typedef $acx_cv_type_intptr_t intptr_t;
20068 #endif
20069 #endif
20073 # ------------- done intptr types, emit int_least types ------------
20074 if test "$ac_cv_type_int_least32_t" != yes; then
20075 sed 's/^ *//' >> tmp-stdint.h <<EOF
20077 /* Define int_least types */
20078 typedef int8_t int_least8_t;
20079 typedef int16_t int_least16_t;
20080 typedef int32_t int_least32_t;
20081 #ifdef _INT64_T
20082 typedef int64_t int_least64_t;
20083 #endif
20085 typedef uint8_t uint_least8_t;
20086 typedef uint16_t uint_least16_t;
20087 typedef uint32_t uint_least32_t;
20088 #ifdef _UINT64_T
20089 typedef uint64_t uint_least64_t;
20090 #endif
20094 # ------------- done intptr types, emit int_fast types ------------
20095 if test "$ac_cv_type_int_fast32_t" != yes; then
20096 sed 's/^ *//' >> tmp-stdint.h <<EOF
20098 /* Define int_fast types. short is often slow */
20099 typedef int8_t int_fast8_t;
20100 typedef int int_fast16_t;
20101 typedef int32_t int_fast32_t;
20102 #ifdef _INT64_T
20103 typedef int64_t int_fast64_t;
20104 #endif
20106 typedef uint8_t uint_fast8_t;
20107 typedef unsigned int uint_fast16_t;
20108 typedef uint32_t uint_fast32_t;
20109 #ifdef _UINT64_T
20110 typedef uint64_t uint_fast64_t;
20111 #endif
20115 if test "$ac_cv_type_uintmax_t" != yes; then
20116 sed 's/^ *//' >> tmp-stdint.h <<EOF
20118 /* Define intmax based on what we found */
20119 #ifndef intmax_t
20120 #ifdef _INT64_T
20121 typedef int64_t intmax_t;
20122 #else
20123 typedef long intmax_t;
20124 #endif
20125 #endif
20126 #ifndef uintmax_t
20127 #ifdef _UINT64_T
20128 typedef uint64_t uintmax_t;
20129 #else
20130 typedef unsigned long uintmax_t;
20131 #endif
20132 #endif
20136 sed 's/^ *//' >> tmp-stdint.h <<EOF
20138 #endif /* GCC_GENERATED_STDINT_H */
20141 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
20142 rm -f tmp-stdint.h
20143 else
20144 mv -f tmp-stdint.h gstdint.h
20148 "interception/Makefile":F) cat > vpsed$$ << \_EOF
20149 s!`test -f '$<' || echo '$(srcdir)/'`!!
20150 _EOF
20151 sed -f vpsed$$ $ac_file > tmp$$
20152 mv tmp$$ $ac_file
20153 rm vpsed$$
20154 echo 'MULTISUBDIR =' >> $ac_file
20155 ml_norecursion=yes
20156 . ${multi_basedir}/config-ml.in
20157 { ml_norecursion=; unset ml_norecursion;}
20159 "sanitizer_common/Makefile":F) cat > vpsed$$ << \_EOF
20160 s!`test -f '$<' || echo '$(srcdir)/'`!!
20161 _EOF
20162 sed -f vpsed$$ $ac_file > tmp$$
20163 mv tmp$$ $ac_file
20164 rm vpsed$$
20165 echo 'MULTISUBDIR =' >> $ac_file
20166 ml_norecursion=yes
20167 . ${multi_basedir}/config-ml.in
20168 { ml_norecursion=; unset ml_norecursion;}
20170 "libbacktrace/Makefile":F) cat > vpsed$$ << \_EOF
20171 s!`test -f '$<' || echo '$(srcdir)/'`!!
20172 _EOF
20173 sed -f vpsed$$ $ac_file > tmp$$
20174 mv tmp$$ $ac_file
20175 rm vpsed$$
20176 echo 'MULTISUBDIR =' >> $ac_file
20177 ml_norecursion=yes
20178 . ${multi_basedir}/config-ml.in
20179 { ml_norecursion=; unset ml_norecursion;}
20181 "lsan/Makefile":F) cat > vpsed$$ << \_EOF
20182 s!`test -f '$<' || echo '$(srcdir)/'`!!
20183 _EOF
20184 sed -f vpsed$$ $ac_file > tmp$$
20185 mv tmp$$ $ac_file
20186 rm vpsed$$
20187 echo 'MULTISUBDIR =' >> $ac_file
20188 ml_norecursion=yes
20189 . ${multi_basedir}/config-ml.in
20190 { ml_norecursion=; unset ml_norecursion;}
20192 "asan/Makefile":F) cat > vpsed$$ << \_EOF
20193 s!`test -f '$<' || echo '$(srcdir)/'`!!
20194 _EOF
20195 sed -f vpsed$$ $ac_file > tmp$$
20196 mv tmp$$ $ac_file
20197 rm vpsed$$
20198 echo 'MULTISUBDIR =' >> $ac_file
20199 ml_norecursion=yes
20200 . ${multi_basedir}/config-ml.in
20201 { ml_norecursion=; unset ml_norecursion;}
20203 "ubsan/Makefile":F) cat > vpsed$$ << \_EOF
20204 s!`test -f '$<' || echo '$(srcdir)/'`!!
20205 _EOF
20206 sed -f vpsed$$ $ac_file > tmp$$
20207 mv tmp$$ $ac_file
20208 rm vpsed$$
20209 echo 'MULTISUBDIR =' >> $ac_file
20210 ml_norecursion=yes
20211 . ${multi_basedir}/config-ml.in
20212 { ml_norecursion=; unset ml_norecursion;}
20214 "tsan/Makefile":F) cat > vpsed$$ << \_EOF
20215 s!`test -f '$<' || echo '$(srcdir)/'`!!
20216 _EOF
20217 sed -f vpsed$$ $ac_file > tmp$$
20218 mv tmp$$ $ac_file
20219 rm vpsed$$
20220 echo 'MULTISUBDIR =' >> $ac_file
20221 ml_norecursion=yes
20222 . ${multi_basedir}/config-ml.in
20223 { ml_norecursion=; unset ml_norecursion;}
20225 "hwasan/Makefile":F) cat > vpsed$$ << \_EOF
20226 s!`test -f '$<' || echo '$(srcdir)/'`!!
20227 _EOF
20228 sed -f vpsed$$ $ac_file > tmp$$
20229 mv tmp$$ $ac_file
20230 rm vpsed$$
20231 echo 'MULTISUBDIR =' >> $ac_file
20232 ml_norecursion=yes
20233 . ${multi_basedir}/config-ml.in
20234 { ml_norecursion=; unset ml_norecursion;}
20237 esac
20238 done # for ac_tag
20241 as_fn_exit 0
20242 _ACEOF
20243 ac_clean_files=$ac_clean_files_save
20245 test $ac_write_fail = 0 ||
20246 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20249 # configure is writing to config.log, and then calls config.status.
20250 # config.status does its own redirection, appending to config.log.
20251 # Unfortunately, on DOS this fails, as config.log is still kept open
20252 # by configure, so config.status won't be able to write to it; its
20253 # output is simply discarded. So we exec the FD to /dev/null,
20254 # effectively closing config.log, so it can be properly (re)opened and
20255 # appended to by config.status. When coming back to configure, we
20256 # need to make the FD available again.
20257 if test "$no_create" != yes; then
20258 ac_cs_success=:
20259 ac_config_status_args=
20260 test "$silent" = yes &&
20261 ac_config_status_args="$ac_config_status_args --quiet"
20262 exec 5>/dev/null
20263 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20264 exec 5>>config.log
20265 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20266 # would make configure fail if this is the last instruction.
20267 $ac_cs_success || as_fn_exit 1
20269 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20271 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}