Skip analyzer socket tests on hppa*-*-hpux*
[official-gcc.git] / libsanitizer / configure
blob2edd5c37ce734999f7ea5e61d75138063125b17b
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_DARWIN_AT_RPATH_FALSE
670 ENABLE_DARWIN_AT_RPATH_TRUE
671 enable_static
672 enable_shared
673 CXXCPP
674 OTOOL64
675 OTOOL
676 LIPO
677 NMEDIT
678 DSYMUTIL
680 OBJDUMP
681 LN_S
683 ac_ct_DUMPBIN
684 DUMPBIN
686 FGREP
688 LIBTOOL
689 RANLIB
690 am__fastdepCCAS_FALSE
691 am__fastdepCCAS_TRUE
692 CCASDEPMODE
693 CCASFLAGS
694 CCAS
695 am__fastdepCXX_FALSE
696 am__fastdepCXX_TRUE
697 CXXDEPMODE
698 ac_ct_CXX
699 CXXFLAGS
701 toolexeclibdir
702 toolexecdir
703 MAINT
704 MAINTAINER_MODE_FALSE
705 MAINTAINER_MODE_TRUE
706 AM_BACKSLASH
707 AM_DEFAULT_VERBOSITY
708 AM_DEFAULT_V
709 AM_V
710 am__fastdepCC_FALSE
711 am__fastdepCC_TRUE
712 CCDEPMODE
713 am__nodep
714 AMDEPBACKSLASH
715 AMDEP_FALSE
716 AMDEP_TRUE
717 am__quote
718 am__include
719 DEPDIR
720 am__untar
721 am__tar
722 AMTAR
723 am__leading_dot
724 SET_MAKE
726 mkdir_p
727 MKDIR_P
728 INSTALL_STRIP_PROGRAM
729 STRIP
730 install_sh
731 MAKEINFO
732 AUTOHEADER
733 AUTOMAKE
734 AUTOCONF
735 ACLOCAL
736 VERSION
737 PACKAGE
738 CYGPATH_W
739 am__isrc
740 INSTALL_DATA
741 INSTALL_SCRIPT
742 INSTALL_PROGRAM
743 LIBSTDCXX_RAW_CXX_LDFLAGS
744 LIBSTDCXX_RAW_CXX_CXXFLAGS
745 target_noncanonical
746 target_os
747 target_vendor
748 target_cpu
749 target
750 host_os
751 host_vendor
752 host_cpu
753 host
754 build_os
755 build_vendor
756 build_cpu
757 build
758 EGREP
759 GREP
761 OBJEXT
762 EXEEXT
763 ac_ct_CC
764 CPPFLAGS
765 LDFLAGS
766 CFLAGS
768 multi_basedir
769 target_alias
770 host_alias
771 build_alias
772 LIBS
773 ECHO_T
774 ECHO_N
775 ECHO_C
776 DEFS
777 mandir
778 localedir
779 libdir
780 psdir
781 pdfdir
782 dvidir
783 htmldir
784 infodir
785 docdir
786 oldincludedir
787 includedir
788 localstatedir
789 sharedstatedir
790 sysconfdir
791 datadir
792 datarootdir
793 libexecdir
794 sbindir
795 bindir
796 program_transform_name
797 prefix
798 exec_prefix
799 PACKAGE_URL
800 PACKAGE_BUGREPORT
801 PACKAGE_STRING
802 PACKAGE_VERSION
803 PACKAGE_TARNAME
804 PACKAGE_NAME
805 PATH_SEPARATOR
806 SHELL'
807 ac_subst_files=''
808 ac_user_opts='
809 enable_option_checking
810 enable_multilib
811 enable_version_specific_runtime_libs
812 enable_dependency_tracking
813 enable_silent_rules
814 enable_maintainer_mode
815 with_toolexeclibdir
816 enable_shared
817 enable_static
818 with_pic
819 enable_fast_install
820 with_gnu_ld
821 enable_libtool_lock
822 enable_darwin_at_rpath
823 enable_werror
824 with_gcc_major_version_only
825 enable_cet
827 ac_precious_vars='build_alias
828 host_alias
829 target_alias
831 CFLAGS
832 LDFLAGS
833 LIBS
834 CPPFLAGS
837 CXXFLAGS
839 CCAS
840 CCASFLAGS
841 CXXCPP'
844 # Initialize some variables set by options.
845 ac_init_help=
846 ac_init_version=false
847 ac_unrecognized_opts=
848 ac_unrecognized_sep=
849 # The variables have the same names as the options, with
850 # dashes changed to underlines.
851 cache_file=/dev/null
852 exec_prefix=NONE
853 no_create=
854 no_recursion=
855 prefix=NONE
856 program_prefix=NONE
857 program_suffix=NONE
858 program_transform_name=s,x,x,
859 silent=
860 site=
861 srcdir=
862 verbose=
863 x_includes=NONE
864 x_libraries=NONE
866 # Installation directory options.
867 # These are left unexpanded so users can "make install exec_prefix=/foo"
868 # and all the variables that are supposed to be based on exec_prefix
869 # by default will actually change.
870 # Use braces instead of parens because sh, perl, etc. also accept them.
871 # (The list follows the same order as the GNU Coding Standards.)
872 bindir='${exec_prefix}/bin'
873 sbindir='${exec_prefix}/sbin'
874 libexecdir='${exec_prefix}/libexec'
875 datarootdir='${prefix}/share'
876 datadir='${datarootdir}'
877 sysconfdir='${prefix}/etc'
878 sharedstatedir='${prefix}/com'
879 localstatedir='${prefix}/var'
880 includedir='${prefix}/include'
881 oldincludedir='/usr/include'
882 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
883 infodir='${datarootdir}/info'
884 htmldir='${docdir}'
885 dvidir='${docdir}'
886 pdfdir='${docdir}'
887 psdir='${docdir}'
888 libdir='${exec_prefix}/lib'
889 localedir='${datarootdir}/locale'
890 mandir='${datarootdir}/man'
892 ac_prev=
893 ac_dashdash=
894 for ac_option
896 # If the previous option needs an argument, assign it.
897 if test -n "$ac_prev"; then
898 eval $ac_prev=\$ac_option
899 ac_prev=
900 continue
903 case $ac_option in
904 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
905 *=) ac_optarg= ;;
906 *) ac_optarg=yes ;;
907 esac
909 # Accept the important Cygnus configure options, so we can diagnose typos.
911 case $ac_dashdash$ac_option in
913 ac_dashdash=yes ;;
915 -bindir | --bindir | --bindi | --bind | --bin | --bi)
916 ac_prev=bindir ;;
917 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
918 bindir=$ac_optarg ;;
920 -build | --build | --buil | --bui | --bu)
921 ac_prev=build_alias ;;
922 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
923 build_alias=$ac_optarg ;;
925 -cache-file | --cache-file | --cache-fil | --cache-fi \
926 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
927 ac_prev=cache_file ;;
928 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
929 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
930 cache_file=$ac_optarg ;;
932 --config-cache | -C)
933 cache_file=config.cache ;;
935 -datadir | --datadir | --datadi | --datad)
936 ac_prev=datadir ;;
937 -datadir=* | --datadir=* | --datadi=* | --datad=*)
938 datadir=$ac_optarg ;;
940 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
941 | --dataroo | --dataro | --datar)
942 ac_prev=datarootdir ;;
943 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
944 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
945 datarootdir=$ac_optarg ;;
947 -disable-* | --disable-*)
948 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
949 # Reject names that are not valid shell variable names.
950 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
951 as_fn_error $? "invalid feature name: $ac_useropt"
952 ac_useropt_orig=$ac_useropt
953 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
954 case $ac_user_opts in
956 "enable_$ac_useropt"
957 "*) ;;
958 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
959 ac_unrecognized_sep=', ';;
960 esac
961 eval enable_$ac_useropt=no ;;
963 -docdir | --docdir | --docdi | --doc | --do)
964 ac_prev=docdir ;;
965 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
966 docdir=$ac_optarg ;;
968 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
969 ac_prev=dvidir ;;
970 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
971 dvidir=$ac_optarg ;;
973 -enable-* | --enable-*)
974 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
975 # Reject names that are not valid shell variable names.
976 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
977 as_fn_error $? "invalid feature name: $ac_useropt"
978 ac_useropt_orig=$ac_useropt
979 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
980 case $ac_user_opts in
982 "enable_$ac_useropt"
983 "*) ;;
984 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
985 ac_unrecognized_sep=', ';;
986 esac
987 eval enable_$ac_useropt=\$ac_optarg ;;
989 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
990 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
991 | --exec | --exe | --ex)
992 ac_prev=exec_prefix ;;
993 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
994 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
995 | --exec=* | --exe=* | --ex=*)
996 exec_prefix=$ac_optarg ;;
998 -gas | --gas | --ga | --g)
999 # Obsolete; use --with-gas.
1000 with_gas=yes ;;
1002 -help | --help | --hel | --he | -h)
1003 ac_init_help=long ;;
1004 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1005 ac_init_help=recursive ;;
1006 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1007 ac_init_help=short ;;
1009 -host | --host | --hos | --ho)
1010 ac_prev=host_alias ;;
1011 -host=* | --host=* | --hos=* | --ho=*)
1012 host_alias=$ac_optarg ;;
1014 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1015 ac_prev=htmldir ;;
1016 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1017 | --ht=*)
1018 htmldir=$ac_optarg ;;
1020 -includedir | --includedir | --includedi | --included | --include \
1021 | --includ | --inclu | --incl | --inc)
1022 ac_prev=includedir ;;
1023 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1024 | --includ=* | --inclu=* | --incl=* | --inc=*)
1025 includedir=$ac_optarg ;;
1027 -infodir | --infodir | --infodi | --infod | --info | --inf)
1028 ac_prev=infodir ;;
1029 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1030 infodir=$ac_optarg ;;
1032 -libdir | --libdir | --libdi | --libd)
1033 ac_prev=libdir ;;
1034 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1035 libdir=$ac_optarg ;;
1037 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1038 | --libexe | --libex | --libe)
1039 ac_prev=libexecdir ;;
1040 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1041 | --libexe=* | --libex=* | --libe=*)
1042 libexecdir=$ac_optarg ;;
1044 -localedir | --localedir | --localedi | --localed | --locale)
1045 ac_prev=localedir ;;
1046 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1047 localedir=$ac_optarg ;;
1049 -localstatedir | --localstatedir | --localstatedi | --localstated \
1050 | --localstate | --localstat | --localsta | --localst | --locals)
1051 ac_prev=localstatedir ;;
1052 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1053 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1054 localstatedir=$ac_optarg ;;
1056 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1057 ac_prev=mandir ;;
1058 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1059 mandir=$ac_optarg ;;
1061 -nfp | --nfp | --nf)
1062 # Obsolete; use --without-fp.
1063 with_fp=no ;;
1065 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1066 | --no-cr | --no-c | -n)
1067 no_create=yes ;;
1069 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1070 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1071 no_recursion=yes ;;
1073 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1074 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1075 | --oldin | --oldi | --old | --ol | --o)
1076 ac_prev=oldincludedir ;;
1077 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1078 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1079 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1080 oldincludedir=$ac_optarg ;;
1082 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1083 ac_prev=prefix ;;
1084 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1085 prefix=$ac_optarg ;;
1087 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1088 | --program-pre | --program-pr | --program-p)
1089 ac_prev=program_prefix ;;
1090 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1091 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1092 program_prefix=$ac_optarg ;;
1094 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1095 | --program-suf | --program-su | --program-s)
1096 ac_prev=program_suffix ;;
1097 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1098 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1099 program_suffix=$ac_optarg ;;
1101 -program-transform-name | --program-transform-name \
1102 | --program-transform-nam | --program-transform-na \
1103 | --program-transform-n | --program-transform- \
1104 | --program-transform | --program-transfor \
1105 | --program-transfo | --program-transf \
1106 | --program-trans | --program-tran \
1107 | --progr-tra | --program-tr | --program-t)
1108 ac_prev=program_transform_name ;;
1109 -program-transform-name=* | --program-transform-name=* \
1110 | --program-transform-nam=* | --program-transform-na=* \
1111 | --program-transform-n=* | --program-transform-=* \
1112 | --program-transform=* | --program-transfor=* \
1113 | --program-transfo=* | --program-transf=* \
1114 | --program-trans=* | --program-tran=* \
1115 | --progr-tra=* | --program-tr=* | --program-t=*)
1116 program_transform_name=$ac_optarg ;;
1118 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1119 ac_prev=pdfdir ;;
1120 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1121 pdfdir=$ac_optarg ;;
1123 -psdir | --psdir | --psdi | --psd | --ps)
1124 ac_prev=psdir ;;
1125 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1126 psdir=$ac_optarg ;;
1128 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1129 | -silent | --silent | --silen | --sile | --sil)
1130 silent=yes ;;
1132 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1133 ac_prev=sbindir ;;
1134 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1135 | --sbi=* | --sb=*)
1136 sbindir=$ac_optarg ;;
1138 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1139 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1140 | --sharedst | --shareds | --shared | --share | --shar \
1141 | --sha | --sh)
1142 ac_prev=sharedstatedir ;;
1143 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1144 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1145 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1146 | --sha=* | --sh=*)
1147 sharedstatedir=$ac_optarg ;;
1149 -site | --site | --sit)
1150 ac_prev=site ;;
1151 -site=* | --site=* | --sit=*)
1152 site=$ac_optarg ;;
1154 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1155 ac_prev=srcdir ;;
1156 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1157 srcdir=$ac_optarg ;;
1159 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1160 | --syscon | --sysco | --sysc | --sys | --sy)
1161 ac_prev=sysconfdir ;;
1162 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1163 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1164 sysconfdir=$ac_optarg ;;
1166 -target | --target | --targe | --targ | --tar | --ta | --t)
1167 ac_prev=target_alias ;;
1168 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1169 target_alias=$ac_optarg ;;
1171 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1172 verbose=yes ;;
1174 -version | --version | --versio | --versi | --vers | -V)
1175 ac_init_version=: ;;
1177 -with-* | --with-*)
1178 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1179 # Reject names that are not valid shell variable names.
1180 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1181 as_fn_error $? "invalid package name: $ac_useropt"
1182 ac_useropt_orig=$ac_useropt
1183 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1184 case $ac_user_opts in
1186 "with_$ac_useropt"
1187 "*) ;;
1188 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1189 ac_unrecognized_sep=', ';;
1190 esac
1191 eval with_$ac_useropt=\$ac_optarg ;;
1193 -without-* | --without-*)
1194 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1195 # Reject names that are not valid shell variable names.
1196 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1197 as_fn_error $? "invalid package name: $ac_useropt"
1198 ac_useropt_orig=$ac_useropt
1199 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1200 case $ac_user_opts in
1202 "with_$ac_useropt"
1203 "*) ;;
1204 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1205 ac_unrecognized_sep=', ';;
1206 esac
1207 eval with_$ac_useropt=no ;;
1209 --x)
1210 # Obsolete; use --with-x.
1211 with_x=yes ;;
1213 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1214 | --x-incl | --x-inc | --x-in | --x-i)
1215 ac_prev=x_includes ;;
1216 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1217 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1218 x_includes=$ac_optarg ;;
1220 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1221 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1222 ac_prev=x_libraries ;;
1223 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1224 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1225 x_libraries=$ac_optarg ;;
1227 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1228 Try \`$0 --help' for more information"
1231 *=*)
1232 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1233 # Reject names that are not valid shell variable names.
1234 case $ac_envvar in #(
1235 '' | [0-9]* | *[!_$as_cr_alnum]* )
1236 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1237 esac
1238 eval $ac_envvar=\$ac_optarg
1239 export $ac_envvar ;;
1242 # FIXME: should be removed in autoconf 3.0.
1243 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1244 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1245 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1246 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1249 esac
1250 done
1252 if test -n "$ac_prev"; then
1253 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1254 as_fn_error $? "missing argument to $ac_option"
1257 if test -n "$ac_unrecognized_opts"; then
1258 case $enable_option_checking in
1259 no) ;;
1260 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1261 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1262 esac
1265 # Check all directory arguments for consistency.
1266 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1267 datadir sysconfdir sharedstatedir localstatedir includedir \
1268 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1269 libdir localedir mandir
1271 eval ac_val=\$$ac_var
1272 # Remove trailing slashes.
1273 case $ac_val in
1274 */ )
1275 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1276 eval $ac_var=\$ac_val;;
1277 esac
1278 # Be sure to have absolute directory names.
1279 case $ac_val in
1280 [\\/$]* | ?:[\\/]* ) continue;;
1281 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1282 esac
1283 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1284 done
1286 # There might be people who depend on the old broken behavior: `$host'
1287 # used to hold the argument of --host etc.
1288 # FIXME: To remove some day.
1289 build=$build_alias
1290 host=$host_alias
1291 target=$target_alias
1293 # FIXME: To remove some day.
1294 if test "x$host_alias" != x; then
1295 if test "x$build_alias" = x; then
1296 cross_compiling=maybe
1297 elif test "x$build_alias" != "x$host_alias"; then
1298 cross_compiling=yes
1302 ac_tool_prefix=
1303 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1305 test "$silent" = yes && exec 6>/dev/null
1308 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1309 ac_ls_di=`ls -di .` &&
1310 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1311 as_fn_error $? "working directory cannot be determined"
1312 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1313 as_fn_error $? "pwd does not report name of working directory"
1316 # Find the source files, if location was not specified.
1317 if test -z "$srcdir"; then
1318 ac_srcdir_defaulted=yes
1319 # Try the directory containing this script, then the parent directory.
1320 ac_confdir=`$as_dirname -- "$as_myself" ||
1321 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1322 X"$as_myself" : 'X\(//\)[^/]' \| \
1323 X"$as_myself" : 'X\(//\)$' \| \
1324 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1325 $as_echo X"$as_myself" |
1326 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1327 s//\1/
1330 /^X\(\/\/\)[^/].*/{
1331 s//\1/
1334 /^X\(\/\/\)$/{
1335 s//\1/
1338 /^X\(\/\).*/{
1339 s//\1/
1342 s/.*/./; q'`
1343 srcdir=$ac_confdir
1344 if test ! -r "$srcdir/$ac_unique_file"; then
1345 srcdir=..
1347 else
1348 ac_srcdir_defaulted=no
1350 if test ! -r "$srcdir/$ac_unique_file"; then
1351 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1352 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1354 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1355 ac_abs_confdir=`(
1356 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1357 pwd)`
1358 # When building in place, set srcdir=.
1359 if test "$ac_abs_confdir" = "$ac_pwd"; then
1360 srcdir=.
1362 # Remove unnecessary trailing slashes from srcdir.
1363 # Double slashes in file names in object file debugging info
1364 # mess up M-x gdb in Emacs.
1365 case $srcdir in
1366 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1367 esac
1368 for ac_var in $ac_precious_vars; do
1369 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1370 eval ac_env_${ac_var}_value=\$${ac_var}
1371 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1372 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1373 done
1376 # Report the --help message.
1378 if test "$ac_init_help" = "long"; then
1379 # Omit some internal or obsolete options to make the list less imposing.
1380 # This message is too long to be a string in the A/UX 3.1 sh.
1381 cat <<_ACEOF
1382 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1384 Usage: $0 [OPTION]... [VAR=VALUE]...
1386 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1387 VAR=VALUE. See below for descriptions of some of the useful variables.
1389 Defaults for the options are specified in brackets.
1391 Configuration:
1392 -h, --help display this help and exit
1393 --help=short display options specific to this package
1394 --help=recursive display the short help of all the included packages
1395 -V, --version display version information and exit
1396 -q, --quiet, --silent do not print \`checking ...' messages
1397 --cache-file=FILE cache test results in FILE [disabled]
1398 -C, --config-cache alias for \`--cache-file=config.cache'
1399 -n, --no-create do not create output files
1400 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1402 Installation directories:
1403 --prefix=PREFIX install architecture-independent files in PREFIX
1404 [$ac_default_prefix]
1405 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1406 [PREFIX]
1408 By default, \`make install' will install all the files in
1409 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1410 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1411 for instance \`--prefix=\$HOME'.
1413 For better control, use the options below.
1415 Fine tuning of the installation directories:
1416 --bindir=DIR user executables [EPREFIX/bin]
1417 --sbindir=DIR system admin executables [EPREFIX/sbin]
1418 --libexecdir=DIR program executables [EPREFIX/libexec]
1419 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1420 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1421 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1422 --libdir=DIR object code libraries [EPREFIX/lib]
1423 --includedir=DIR C header files [PREFIX/include]
1424 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1425 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1426 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1427 --infodir=DIR info documentation [DATAROOTDIR/info]
1428 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1429 --mandir=DIR man documentation [DATAROOTDIR/man]
1430 --docdir=DIR documentation root [DATAROOTDIR/doc/package-unused]
1431 --htmldir=DIR html documentation [DOCDIR]
1432 --dvidir=DIR dvi documentation [DOCDIR]
1433 --pdfdir=DIR pdf documentation [DOCDIR]
1434 --psdir=DIR ps documentation [DOCDIR]
1435 _ACEOF
1437 cat <<\_ACEOF
1439 Program names:
1440 --program-prefix=PREFIX prepend PREFIX to installed program names
1441 --program-suffix=SUFFIX append SUFFIX to installed program names
1442 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1444 System types:
1445 --build=BUILD configure for building on BUILD [guessed]
1446 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1447 --target=TARGET configure for building compilers for TARGET [HOST]
1448 _ACEOF
1451 if test -n "$ac_init_help"; then
1452 case $ac_init_help in
1453 short | recursive ) echo "Configuration of package-unused version-unused:";;
1454 esac
1455 cat <<\_ACEOF
1457 Optional Features:
1458 --disable-option-checking ignore unrecognized --enable/--with options
1459 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1460 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1461 --enable-multilib build many library versions (default)
1462 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
1463 --enable-dependency-tracking
1464 do not reject slow dependency extractors
1465 --disable-dependency-tracking
1466 speeds up one-time build
1467 --enable-silent-rules less verbose build output (undo: "make V=1")
1468 --disable-silent-rules verbose build output (undo: "make V=0")
1469 --enable-maintainer-mode
1470 enable make rules and dependencies not useful (and
1471 sometimes confusing) to the casual installer
1472 --enable-shared[=PKGS] build shared libraries [default=yes]
1473 --enable-static[=PKGS] build static libraries [default=yes]
1474 --enable-fast-install[=PKGS]
1475 optimize for fast installation [default=yes]
1476 --disable-libtool-lock avoid locking (might break parallel builds)
1477 --enable-darwin-at-rpath
1478 install libraries with @rpath/library-name, requires
1479 rpaths to be added to executables
1480 --disable-werror disable building with -Werror
1481 --enable-cet enable Intel CET in target libraries [default=auto]
1483 Optional Packages:
1484 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1485 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1486 --with-toolexeclibdir=DIR
1487 install libraries built with a cross compiler within
1489 --with-pic try to use only PIC/non-PIC objects [default=use
1490 both]
1491 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1492 --with-gcc-major-version-only
1493 use only GCC major number in filesystem paths
1495 Some influential environment variables:
1496 CC C compiler command
1497 CFLAGS C compiler flags
1498 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1499 nonstandard directory <lib dir>
1500 LIBS libraries to pass to the linker, e.g. -l<library>
1501 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1502 you have headers in a nonstandard directory <include dir>
1503 CPP C preprocessor
1504 CXX C++ compiler command
1505 CXXFLAGS C++ compiler flags
1506 CCAS assembler compiler command (defaults to CC)
1507 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1508 CXXCPP C++ preprocessor
1510 Use these variables to override the choices made by `configure' or to help
1511 it to find libraries and programs with nonstandard names/locations.
1513 Report bugs to <libsanitizer>.
1514 _ACEOF
1515 ac_status=$?
1518 if test "$ac_init_help" = "recursive"; then
1519 # If there are subdirs, report their specific --help.
1520 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1521 test -d "$ac_dir" ||
1522 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1523 continue
1524 ac_builddir=.
1526 case "$ac_dir" in
1527 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1529 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1530 # A ".." for each directory in $ac_dir_suffix.
1531 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1532 case $ac_top_builddir_sub in
1533 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1534 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1535 esac ;;
1536 esac
1537 ac_abs_top_builddir=$ac_pwd
1538 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1539 # for backward compatibility:
1540 ac_top_builddir=$ac_top_build_prefix
1542 case $srcdir in
1543 .) # We are building in place.
1544 ac_srcdir=.
1545 ac_top_srcdir=$ac_top_builddir_sub
1546 ac_abs_top_srcdir=$ac_pwd ;;
1547 [\\/]* | ?:[\\/]* ) # Absolute name.
1548 ac_srcdir=$srcdir$ac_dir_suffix;
1549 ac_top_srcdir=$srcdir
1550 ac_abs_top_srcdir=$srcdir ;;
1551 *) # Relative name.
1552 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1553 ac_top_srcdir=$ac_top_build_prefix$srcdir
1554 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1555 esac
1556 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1558 cd "$ac_dir" || { ac_status=$?; continue; }
1559 # Check for guested configure.
1560 if test -f "$ac_srcdir/configure.gnu"; then
1561 echo &&
1562 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1563 elif test -f "$ac_srcdir/configure"; then
1564 echo &&
1565 $SHELL "$ac_srcdir/configure" --help=recursive
1566 else
1567 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1568 fi || ac_status=$?
1569 cd "$ac_pwd" || { ac_status=$?; break; }
1570 done
1573 test -n "$ac_init_help" && exit $ac_status
1574 if $ac_init_version; then
1575 cat <<\_ACEOF
1576 package-unused configure version-unused
1577 generated by GNU Autoconf 2.69
1579 Copyright (C) 2012 Free Software Foundation, Inc.
1580 This configure script is free software; the Free Software Foundation
1581 gives unlimited permission to copy, distribute and modify it.
1582 _ACEOF
1583 exit
1586 ## ------------------------ ##
1587 ## Autoconf initialization. ##
1588 ## ------------------------ ##
1590 # ac_fn_c_try_compile LINENO
1591 # --------------------------
1592 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1593 ac_fn_c_try_compile ()
1595 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1596 rm -f conftest.$ac_objext
1597 if { { ac_try="$ac_compile"
1598 case "(($ac_try" in
1599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1600 *) ac_try_echo=$ac_try;;
1601 esac
1602 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1603 $as_echo "$ac_try_echo"; } >&5
1604 (eval "$ac_compile") 2>conftest.err
1605 ac_status=$?
1606 if test -s conftest.err; then
1607 grep -v '^ *+' conftest.err >conftest.er1
1608 cat conftest.er1 >&5
1609 mv -f conftest.er1 conftest.err
1611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1612 test $ac_status = 0; } && {
1613 test -z "$ac_c_werror_flag" ||
1614 test ! -s conftest.err
1615 } && test -s conftest.$ac_objext; then :
1616 ac_retval=0
1617 else
1618 $as_echo "$as_me: failed program was:" >&5
1619 sed 's/^/| /' conftest.$ac_ext >&5
1621 ac_retval=1
1623 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1624 as_fn_set_status $ac_retval
1626 } # ac_fn_c_try_compile
1628 # ac_fn_c_try_cpp LINENO
1629 # ----------------------
1630 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1631 ac_fn_c_try_cpp ()
1633 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1634 if { { ac_try="$ac_cpp conftest.$ac_ext"
1635 case "(($ac_try" in
1636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1637 *) ac_try_echo=$ac_try;;
1638 esac
1639 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1640 $as_echo "$ac_try_echo"; } >&5
1641 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1642 ac_status=$?
1643 if test -s conftest.err; then
1644 grep -v '^ *+' conftest.err >conftest.er1
1645 cat conftest.er1 >&5
1646 mv -f conftest.er1 conftest.err
1648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1649 test $ac_status = 0; } > conftest.i && {
1650 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1651 test ! -s conftest.err
1652 }; then :
1653 ac_retval=0
1654 else
1655 $as_echo "$as_me: failed program was:" >&5
1656 sed 's/^/| /' conftest.$ac_ext >&5
1658 ac_retval=1
1660 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1661 as_fn_set_status $ac_retval
1663 } # ac_fn_c_try_cpp
1665 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1666 # -------------------------------------------------------
1667 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1668 # the include files in INCLUDES and setting the cache variable VAR
1669 # accordingly.
1670 ac_fn_c_check_header_mongrel ()
1672 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673 if eval \${$3+:} false; then :
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1675 $as_echo_n "checking for $2... " >&6; }
1676 if eval \${$3+:} false; then :
1677 $as_echo_n "(cached) " >&6
1679 eval ac_res=\$$3
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1681 $as_echo "$ac_res" >&6; }
1682 else
1683 # Is the header compilable?
1684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1685 $as_echo_n "checking $2 usability... " >&6; }
1686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1687 /* end confdefs.h. */
1689 #include <$2>
1690 _ACEOF
1691 if ac_fn_c_try_compile "$LINENO"; then :
1692 ac_header_compiler=yes
1693 else
1694 ac_header_compiler=no
1696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1698 $as_echo "$ac_header_compiler" >&6; }
1700 # Is the header present?
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1702 $as_echo_n "checking $2 presence... " >&6; }
1703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1704 /* end confdefs.h. */
1705 #include <$2>
1706 _ACEOF
1707 if ac_fn_c_try_cpp "$LINENO"; then :
1708 ac_header_preproc=yes
1709 else
1710 ac_header_preproc=no
1712 rm -f conftest.err conftest.i conftest.$ac_ext
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1714 $as_echo "$ac_header_preproc" >&6; }
1716 # So? What about this header?
1717 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1718 yes:no: )
1719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1720 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1722 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1724 no:yes:* )
1725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1726 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1728 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1730 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1732 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1734 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1735 ( $as_echo "## --------------------------- ##
1736 ## Report this to libsanitizer ##
1737 ## --------------------------- ##"
1738 ) | sed "s/^/$as_me: WARNING: /" >&2
1740 esac
1741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1742 $as_echo_n "checking for $2... " >&6; }
1743 if eval \${$3+:} false; then :
1744 $as_echo_n "(cached) " >&6
1745 else
1746 eval "$3=\$ac_header_compiler"
1748 eval ac_res=\$$3
1749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1750 $as_echo "$ac_res" >&6; }
1752 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1754 } # ac_fn_c_check_header_mongrel
1756 # ac_fn_c_try_run LINENO
1757 # ----------------------
1758 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1759 # that executables *can* be run.
1760 ac_fn_c_try_run ()
1762 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1763 if { { ac_try="$ac_link"
1764 case "(($ac_try" in
1765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1766 *) ac_try_echo=$ac_try;;
1767 esac
1768 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1769 $as_echo "$ac_try_echo"; } >&5
1770 (eval "$ac_link") 2>&5
1771 ac_status=$?
1772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1773 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1774 { { case "(($ac_try" in
1775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1776 *) ac_try_echo=$ac_try;;
1777 esac
1778 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1779 $as_echo "$ac_try_echo"; } >&5
1780 (eval "$ac_try") 2>&5
1781 ac_status=$?
1782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1783 test $ac_status = 0; }; }; then :
1784 ac_retval=0
1785 else
1786 $as_echo "$as_me: program exited with status $ac_status" >&5
1787 $as_echo "$as_me: failed program was:" >&5
1788 sed 's/^/| /' conftest.$ac_ext >&5
1790 ac_retval=$ac_status
1792 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1793 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1794 as_fn_set_status $ac_retval
1796 } # ac_fn_c_try_run
1798 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1799 # -------------------------------------------------------
1800 # Tests whether HEADER exists and can be compiled using the include files in
1801 # INCLUDES, setting the cache variable VAR accordingly.
1802 ac_fn_c_check_header_compile ()
1804 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1806 $as_echo_n "checking for $2... " >&6; }
1807 if eval \${$3+:} false; then :
1808 $as_echo_n "(cached) " >&6
1809 else
1810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1811 /* end confdefs.h. */
1813 #include <$2>
1814 _ACEOF
1815 if ac_fn_c_try_compile "$LINENO"; then :
1816 eval "$3=yes"
1817 else
1818 eval "$3=no"
1820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1822 eval ac_res=\$$3
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1824 $as_echo "$ac_res" >&6; }
1825 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1827 } # ac_fn_c_check_header_compile
1829 # ac_fn_cxx_try_compile LINENO
1830 # ----------------------------
1831 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1832 ac_fn_cxx_try_compile ()
1834 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1835 rm -f conftest.$ac_objext
1836 if { { ac_try="$ac_compile"
1837 case "(($ac_try" in
1838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1839 *) ac_try_echo=$ac_try;;
1840 esac
1841 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1842 $as_echo "$ac_try_echo"; } >&5
1843 (eval "$ac_compile") 2>conftest.err
1844 ac_status=$?
1845 if test -s conftest.err; then
1846 grep -v '^ *+' conftest.err >conftest.er1
1847 cat conftest.er1 >&5
1848 mv -f conftest.er1 conftest.err
1850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1851 test $ac_status = 0; } && {
1852 test -z "$ac_cxx_werror_flag" ||
1853 test ! -s conftest.err
1854 } && test -s conftest.$ac_objext; then :
1855 ac_retval=0
1856 else
1857 $as_echo "$as_me: failed program was:" >&5
1858 sed 's/^/| /' conftest.$ac_ext >&5
1860 ac_retval=1
1862 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1863 as_fn_set_status $ac_retval
1865 } # ac_fn_cxx_try_compile
1867 # ac_fn_c_try_link LINENO
1868 # -----------------------
1869 # Try to link conftest.$ac_ext, and return whether this succeeded.
1870 ac_fn_c_try_link ()
1872 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1873 rm -f conftest.$ac_objext conftest$ac_exeext
1874 if { { ac_try="$ac_link"
1875 case "(($ac_try" in
1876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1877 *) ac_try_echo=$ac_try;;
1878 esac
1879 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1880 $as_echo "$ac_try_echo"; } >&5
1881 (eval "$ac_link") 2>conftest.err
1882 ac_status=$?
1883 if test -s conftest.err; then
1884 grep -v '^ *+' conftest.err >conftest.er1
1885 cat conftest.er1 >&5
1886 mv -f conftest.er1 conftest.err
1888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1889 test $ac_status = 0; } && {
1890 test -z "$ac_c_werror_flag" ||
1891 test ! -s conftest.err
1892 } && test -s conftest$ac_exeext && {
1893 test "$cross_compiling" = yes ||
1894 test -x conftest$ac_exeext
1895 }; then :
1896 ac_retval=0
1897 else
1898 $as_echo "$as_me: failed program was:" >&5
1899 sed 's/^/| /' conftest.$ac_ext >&5
1901 ac_retval=1
1903 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1904 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1905 # interfere with the next link command; also delete a directory that is
1906 # left behind by Apple's compiler. We do this before executing the actions.
1907 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1908 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1909 as_fn_set_status $ac_retval
1911 } # ac_fn_c_try_link
1913 # ac_fn_c_check_func LINENO FUNC VAR
1914 # ----------------------------------
1915 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1916 ac_fn_c_check_func ()
1918 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1920 $as_echo_n "checking for $2... " >&6; }
1921 if eval \${$3+:} false; then :
1922 $as_echo_n "(cached) " >&6
1923 else
1924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1925 /* end confdefs.h. */
1926 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1927 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1928 #define $2 innocuous_$2
1930 /* System header to define __stub macros and hopefully few prototypes,
1931 which can conflict with char $2 (); below.
1932 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1933 <limits.h> exists even on freestanding compilers. */
1935 #ifdef __STDC__
1936 # include <limits.h>
1937 #else
1938 # include <assert.h>
1939 #endif
1941 #undef $2
1943 /* Override any GCC internal prototype to avoid an error.
1944 Use char because int might match the return type of a GCC
1945 builtin and then its argument prototype would still apply. */
1946 #ifdef __cplusplus
1947 extern "C"
1948 #endif
1949 char $2 ();
1950 /* The GNU C library defines this for functions which it implements
1951 to always fail with ENOSYS. Some functions are actually named
1952 something starting with __ and the normal name is an alias. */
1953 #if defined __stub_$2 || defined __stub___$2
1954 choke me
1955 #endif
1958 main ()
1960 return $2 ();
1962 return 0;
1964 _ACEOF
1965 if ac_fn_c_try_link "$LINENO"; then :
1966 eval "$3=yes"
1967 else
1968 eval "$3=no"
1970 rm -f core conftest.err conftest.$ac_objext \
1971 conftest$ac_exeext conftest.$ac_ext
1973 eval ac_res=\$$3
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1975 $as_echo "$ac_res" >&6; }
1976 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1978 } # ac_fn_c_check_func
1980 # ac_fn_cxx_try_cpp LINENO
1981 # ------------------------
1982 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1983 ac_fn_cxx_try_cpp ()
1985 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1986 if { { ac_try="$ac_cpp conftest.$ac_ext"
1987 case "(($ac_try" in
1988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1989 *) ac_try_echo=$ac_try;;
1990 esac
1991 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1992 $as_echo "$ac_try_echo"; } >&5
1993 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1994 ac_status=$?
1995 if test -s conftest.err; then
1996 grep -v '^ *+' conftest.err >conftest.er1
1997 cat conftest.er1 >&5
1998 mv -f conftest.er1 conftest.err
2000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2001 test $ac_status = 0; } > conftest.i && {
2002 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2003 test ! -s conftest.err
2004 }; then :
2005 ac_retval=0
2006 else
2007 $as_echo "$as_me: failed program was:" >&5
2008 sed 's/^/| /' conftest.$ac_ext >&5
2010 ac_retval=1
2012 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2013 as_fn_set_status $ac_retval
2015 } # ac_fn_cxx_try_cpp
2017 # ac_fn_cxx_try_link LINENO
2018 # -------------------------
2019 # Try to link conftest.$ac_ext, and return whether this succeeded.
2020 ac_fn_cxx_try_link ()
2022 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2023 rm -f conftest.$ac_objext conftest$ac_exeext
2024 if { { ac_try="$ac_link"
2025 case "(($ac_try" in
2026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2027 *) ac_try_echo=$ac_try;;
2028 esac
2029 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2030 $as_echo "$ac_try_echo"; } >&5
2031 (eval "$ac_link") 2>conftest.err
2032 ac_status=$?
2033 if test -s conftest.err; then
2034 grep -v '^ *+' conftest.err >conftest.er1
2035 cat conftest.er1 >&5
2036 mv -f conftest.er1 conftest.err
2038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2039 test $ac_status = 0; } && {
2040 test -z "$ac_cxx_werror_flag" ||
2041 test ! -s conftest.err
2042 } && test -s conftest$ac_exeext && {
2043 test "$cross_compiling" = yes ||
2044 test -x conftest$ac_exeext
2045 }; then :
2046 ac_retval=0
2047 else
2048 $as_echo "$as_me: failed program was:" >&5
2049 sed 's/^/| /' conftest.$ac_ext >&5
2051 ac_retval=1
2053 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2054 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2055 # interfere with the next link command; also delete a directory that is
2056 # left behind by Apple's compiler. We do this before executing the actions.
2057 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2058 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2059 as_fn_set_status $ac_retval
2061 } # ac_fn_cxx_try_link
2063 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2064 # --------------------------------------------
2065 # Tries to find the compile-time value of EXPR in a program that includes
2066 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2067 # computed
2068 ac_fn_c_compute_int ()
2070 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2071 if test "$cross_compiling" = yes; then
2072 # Depending upon the size, compute the lo and hi bounds.
2073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2074 /* end confdefs.h. */
2077 main ()
2079 static int test_array [1 - 2 * !(($2) >= 0)];
2080 test_array [0] = 0;
2081 return test_array [0];
2084 return 0;
2086 _ACEOF
2087 if ac_fn_c_try_compile "$LINENO"; then :
2088 ac_lo=0 ac_mid=0
2089 while :; do
2090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2091 /* end confdefs.h. */
2094 main ()
2096 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2097 test_array [0] = 0;
2098 return test_array [0];
2101 return 0;
2103 _ACEOF
2104 if ac_fn_c_try_compile "$LINENO"; then :
2105 ac_hi=$ac_mid; break
2106 else
2107 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2108 if test $ac_lo -le $ac_mid; then
2109 ac_lo= ac_hi=
2110 break
2112 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2115 done
2116 else
2117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2118 /* end confdefs.h. */
2121 main ()
2123 static int test_array [1 - 2 * !(($2) < 0)];
2124 test_array [0] = 0;
2125 return test_array [0];
2128 return 0;
2130 _ACEOF
2131 if ac_fn_c_try_compile "$LINENO"; then :
2132 ac_hi=-1 ac_mid=-1
2133 while :; do
2134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2135 /* end confdefs.h. */
2138 main ()
2140 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2141 test_array [0] = 0;
2142 return test_array [0];
2145 return 0;
2147 _ACEOF
2148 if ac_fn_c_try_compile "$LINENO"; then :
2149 ac_lo=$ac_mid; break
2150 else
2151 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2152 if test $ac_mid -le $ac_hi; then
2153 ac_lo= ac_hi=
2154 break
2156 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2159 done
2160 else
2161 ac_lo= ac_hi=
2163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2166 # Binary search between lo and hi bounds.
2167 while test "x$ac_lo" != "x$ac_hi"; do
2168 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2170 /* end confdefs.h. */
2173 main ()
2175 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2176 test_array [0] = 0;
2177 return test_array [0];
2180 return 0;
2182 _ACEOF
2183 if ac_fn_c_try_compile "$LINENO"; then :
2184 ac_hi=$ac_mid
2185 else
2186 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2189 done
2190 case $ac_lo in #((
2191 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2192 '') ac_retval=1 ;;
2193 esac
2194 else
2195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2196 /* end confdefs.h. */
2198 static long int longval () { return $2; }
2199 static unsigned long int ulongval () { return $2; }
2200 #include <stdio.h>
2201 #include <stdlib.h>
2203 main ()
2206 FILE *f = fopen ("conftest.val", "w");
2207 if (! f)
2208 return 1;
2209 if (($2) < 0)
2211 long int i = longval ();
2212 if (i != ($2))
2213 return 1;
2214 fprintf (f, "%ld", i);
2216 else
2218 unsigned long int i = ulongval ();
2219 if (i != ($2))
2220 return 1;
2221 fprintf (f, "%lu", i);
2223 /* Do not output a trailing newline, as this causes \r\n confusion
2224 on some platforms. */
2225 return ferror (f) || fclose (f) != 0;
2228 return 0;
2230 _ACEOF
2231 if ac_fn_c_try_run "$LINENO"; then :
2232 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2233 else
2234 ac_retval=1
2236 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2237 conftest.$ac_objext conftest.beam conftest.$ac_ext
2238 rm -f conftest.val
2241 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2242 as_fn_set_status $ac_retval
2244 } # ac_fn_c_compute_int
2246 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2247 # -------------------------------------------
2248 # Tests whether TYPE exists after having included INCLUDES, setting cache
2249 # variable VAR accordingly.
2250 ac_fn_c_check_type ()
2252 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2254 $as_echo_n "checking for $2... " >&6; }
2255 if eval \${$3+:} false; then :
2256 $as_echo_n "(cached) " >&6
2257 else
2258 eval "$3=no"
2259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2260 /* end confdefs.h. */
2263 main ()
2265 if (sizeof ($2))
2266 return 0;
2268 return 0;
2270 _ACEOF
2271 if ac_fn_c_try_compile "$LINENO"; then :
2272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2273 /* end confdefs.h. */
2276 main ()
2278 if (sizeof (($2)))
2279 return 0;
2281 return 0;
2283 _ACEOF
2284 if ac_fn_c_try_compile "$LINENO"; then :
2286 else
2287 eval "$3=yes"
2289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2293 eval ac_res=\$$3
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2295 $as_echo "$ac_res" >&6; }
2296 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2298 } # ac_fn_c_check_type
2300 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2301 # ---------------------------------------------
2302 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2303 # accordingly.
2304 ac_fn_c_check_decl ()
2306 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2307 as_decl_name=`echo $2|sed 's/ *(.*//'`
2308 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2310 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2311 if eval \${$3+:} false; then :
2312 $as_echo_n "(cached) " >&6
2313 else
2314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2315 /* end confdefs.h. */
2318 main ()
2320 #ifndef $as_decl_name
2321 #ifdef __cplusplus
2322 (void) $as_decl_use;
2323 #else
2324 (void) $as_decl_name;
2325 #endif
2326 #endif
2329 return 0;
2331 _ACEOF
2332 if ac_fn_c_try_compile "$LINENO"; then :
2333 eval "$3=yes"
2334 else
2335 eval "$3=no"
2337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2339 eval ac_res=\$$3
2340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2341 $as_echo "$ac_res" >&6; }
2342 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2344 } # ac_fn_c_check_decl
2345 cat >config.log <<_ACEOF
2346 This file contains any messages produced by compilers while
2347 running configure, to aid debugging if configure makes a mistake.
2349 It was created by package-unused $as_me version-unused, which was
2350 generated by GNU Autoconf 2.69. Invocation command line was
2352 $ $0 $@
2354 _ACEOF
2355 exec 5>>config.log
2357 cat <<_ASUNAME
2358 ## --------- ##
2359 ## Platform. ##
2360 ## --------- ##
2362 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2363 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2364 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2365 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2366 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2368 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2369 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2371 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2372 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2373 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2374 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2375 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2376 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2377 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2379 _ASUNAME
2381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2382 for as_dir in $PATH
2384 IFS=$as_save_IFS
2385 test -z "$as_dir" && as_dir=.
2386 $as_echo "PATH: $as_dir"
2387 done
2388 IFS=$as_save_IFS
2390 } >&5
2392 cat >&5 <<_ACEOF
2395 ## ----------- ##
2396 ## Core tests. ##
2397 ## ----------- ##
2399 _ACEOF
2402 # Keep a trace of the command line.
2403 # Strip out --no-create and --no-recursion so they do not pile up.
2404 # Strip out --silent because we don't want to record it for future runs.
2405 # Also quote any args containing shell meta-characters.
2406 # Make two passes to allow for proper duplicate-argument suppression.
2407 ac_configure_args=
2408 ac_configure_args0=
2409 ac_configure_args1=
2410 ac_must_keep_next=false
2411 for ac_pass in 1 2
2413 for ac_arg
2415 case $ac_arg in
2416 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2417 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2418 | -silent | --silent | --silen | --sile | --sil)
2419 continue ;;
2420 *\'*)
2421 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2422 esac
2423 case $ac_pass in
2424 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2426 as_fn_append ac_configure_args1 " '$ac_arg'"
2427 if test $ac_must_keep_next = true; then
2428 ac_must_keep_next=false # Got value, back to normal.
2429 else
2430 case $ac_arg in
2431 *=* | --config-cache | -C | -disable-* | --disable-* \
2432 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2433 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2434 | -with-* | --with-* | -without-* | --without-* | --x)
2435 case "$ac_configure_args0 " in
2436 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2437 esac
2439 -* ) ac_must_keep_next=true ;;
2440 esac
2442 as_fn_append ac_configure_args " '$ac_arg'"
2444 esac
2445 done
2446 done
2447 { ac_configure_args0=; unset ac_configure_args0;}
2448 { ac_configure_args1=; unset ac_configure_args1;}
2450 # When interrupted or exit'd, cleanup temporary files, and complete
2451 # config.log. We remove comments because anyway the quotes in there
2452 # would cause problems or look ugly.
2453 # WARNING: Use '\'' to represent an apostrophe within the trap.
2454 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2455 trap 'exit_status=$?
2456 # Save into config.log some information that might help in debugging.
2458 echo
2460 $as_echo "## ---------------- ##
2461 ## Cache variables. ##
2462 ## ---------------- ##"
2463 echo
2464 # The following way of writing the cache mishandles newlines in values,
2466 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2467 eval ac_val=\$$ac_var
2468 case $ac_val in #(
2469 *${as_nl}*)
2470 case $ac_var in #(
2471 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2472 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2473 esac
2474 case $ac_var in #(
2475 _ | IFS | as_nl) ;; #(
2476 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2477 *) { eval $ac_var=; unset $ac_var;} ;;
2478 esac ;;
2479 esac
2480 done
2481 (set) 2>&1 |
2482 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2483 *${as_nl}ac_space=\ *)
2484 sed -n \
2485 "s/'\''/'\''\\\\'\'''\''/g;
2486 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2487 ;; #(
2489 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2491 esac |
2492 sort
2494 echo
2496 $as_echo "## ----------------- ##
2497 ## Output variables. ##
2498 ## ----------------- ##"
2499 echo
2500 for ac_var in $ac_subst_vars
2502 eval ac_val=\$$ac_var
2503 case $ac_val in
2504 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2505 esac
2506 $as_echo "$ac_var='\''$ac_val'\''"
2507 done | sort
2508 echo
2510 if test -n "$ac_subst_files"; then
2511 $as_echo "## ------------------- ##
2512 ## File substitutions. ##
2513 ## ------------------- ##"
2514 echo
2515 for ac_var in $ac_subst_files
2517 eval ac_val=\$$ac_var
2518 case $ac_val in
2519 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2520 esac
2521 $as_echo "$ac_var='\''$ac_val'\''"
2522 done | sort
2523 echo
2526 if test -s confdefs.h; then
2527 $as_echo "## ----------- ##
2528 ## confdefs.h. ##
2529 ## ----------- ##"
2530 echo
2531 cat confdefs.h
2532 echo
2534 test "$ac_signal" != 0 &&
2535 $as_echo "$as_me: caught signal $ac_signal"
2536 $as_echo "$as_me: exit $exit_status"
2537 } >&5
2538 rm -f core *.core core.conftest.* &&
2539 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2540 exit $exit_status
2542 for ac_signal in 1 2 13 15; do
2543 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2544 done
2545 ac_signal=0
2547 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2548 rm -f -r conftest* confdefs.h
2550 $as_echo "/* confdefs.h */" > confdefs.h
2552 # Predefined preprocessor variables.
2554 cat >>confdefs.h <<_ACEOF
2555 #define PACKAGE_NAME "$PACKAGE_NAME"
2556 _ACEOF
2558 cat >>confdefs.h <<_ACEOF
2559 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2560 _ACEOF
2562 cat >>confdefs.h <<_ACEOF
2563 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2564 _ACEOF
2566 cat >>confdefs.h <<_ACEOF
2567 #define PACKAGE_STRING "$PACKAGE_STRING"
2568 _ACEOF
2570 cat >>confdefs.h <<_ACEOF
2571 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2572 _ACEOF
2574 cat >>confdefs.h <<_ACEOF
2575 #define PACKAGE_URL "$PACKAGE_URL"
2576 _ACEOF
2579 # Let the site file select an alternate cache file if it wants to.
2580 # Prefer an explicitly selected file to automatically selected ones.
2581 ac_site_file1=NONE
2582 ac_site_file2=NONE
2583 if test -n "$CONFIG_SITE"; then
2584 # We do not want a PATH search for config.site.
2585 case $CONFIG_SITE in #((
2586 -*) ac_site_file1=./$CONFIG_SITE;;
2587 */*) ac_site_file1=$CONFIG_SITE;;
2588 *) ac_site_file1=./$CONFIG_SITE;;
2589 esac
2590 elif test "x$prefix" != xNONE; then
2591 ac_site_file1=$prefix/share/config.site
2592 ac_site_file2=$prefix/etc/config.site
2593 else
2594 ac_site_file1=$ac_default_prefix/share/config.site
2595 ac_site_file2=$ac_default_prefix/etc/config.site
2597 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2599 test "x$ac_site_file" = xNONE && continue
2600 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2602 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2603 sed 's/^/| /' "$ac_site_file" >&5
2604 . "$ac_site_file" \
2605 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2606 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2607 as_fn_error $? "failed to load site script $ac_site_file
2608 See \`config.log' for more details" "$LINENO" 5; }
2610 done
2612 if test -r "$cache_file"; then
2613 # Some versions of bash will fail to source /dev/null (special files
2614 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2615 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2617 $as_echo "$as_me: loading cache $cache_file" >&6;}
2618 case $cache_file in
2619 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2620 *) . "./$cache_file";;
2621 esac
2623 else
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2625 $as_echo "$as_me: creating cache $cache_file" >&6;}
2626 >$cache_file
2629 # Check that the precious variables saved in the cache have kept the same
2630 # value.
2631 ac_cache_corrupted=false
2632 for ac_var in $ac_precious_vars; do
2633 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2634 eval ac_new_set=\$ac_env_${ac_var}_set
2635 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2636 eval ac_new_val=\$ac_env_${ac_var}_value
2637 case $ac_old_set,$ac_new_set in
2638 set,)
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2640 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2641 ac_cache_corrupted=: ;;
2642 ,set)
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2644 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2645 ac_cache_corrupted=: ;;
2646 ,);;
2648 if test "x$ac_old_val" != "x$ac_new_val"; then
2649 # differences in whitespace do not lead to failure.
2650 ac_old_val_w=`echo x $ac_old_val`
2651 ac_new_val_w=`echo x $ac_new_val`
2652 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2654 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2655 ac_cache_corrupted=:
2656 else
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2658 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2659 eval $ac_var=\$ac_old_val
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2662 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2664 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2665 fi;;
2666 esac
2667 # Pass precious variables to config.status.
2668 if test "$ac_new_set" = set; then
2669 case $ac_new_val in
2670 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2671 *) ac_arg=$ac_var=$ac_new_val ;;
2672 esac
2673 case " $ac_configure_args " in
2674 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2675 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2676 esac
2678 done
2679 if $ac_cache_corrupted; then
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2681 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2683 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2684 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2686 ## -------------------- ##
2687 ## Main body of script. ##
2688 ## -------------------- ##
2690 ac_ext=c
2691 ac_cpp='$CPP $CPPFLAGS'
2692 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2693 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2694 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2702 # Default to --enable-multilib
2703 # Check whether --enable-multilib was given.
2704 if test "${enable_multilib+set}" = set; then :
2705 enableval=$enable_multilib; case "$enableval" in
2706 yes) multilib=yes ;;
2707 no) multilib=no ;;
2708 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
2709 esac
2710 else
2711 multilib=yes
2715 # We may get other options which we leave undocumented:
2716 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2717 # See config-ml.in if you want the gory details.
2719 if test "$srcdir" = "."; then
2720 if test "$with_target_subdir" != "."; then
2721 multi_basedir="$srcdir/$with_multisrctop../.."
2722 else
2723 multi_basedir="$srcdir/$with_multisrctop.."
2725 else
2726 multi_basedir="$srcdir/.."
2730 # Even if the default multilib is not a cross compilation,
2731 # it may be that some of the other multilibs are.
2732 if test $cross_compiling = no && test $multilib = yes \
2733 && test "x${with_multisubdir}" != x ; then
2734 cross_compiling=maybe
2737 ac_config_commands="$ac_config_commands default-1"
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2741 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2742 # Check whether --enable-version-specific-runtime-libs was given.
2743 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2744 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2745 yes) version_specific_libs=yes ;;
2746 no) version_specific_libs=no ;;
2747 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2748 esac
2749 else
2750 version_specific_libs=no
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2754 $as_echo "$version_specific_libs" >&6; }
2756 ac_aux_dir=
2757 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2758 if test -f "$ac_dir/install-sh"; then
2759 ac_aux_dir=$ac_dir
2760 ac_install_sh="$ac_aux_dir/install-sh -c"
2761 break
2762 elif test -f "$ac_dir/install.sh"; then
2763 ac_aux_dir=$ac_dir
2764 ac_install_sh="$ac_aux_dir/install.sh -c"
2765 break
2766 elif test -f "$ac_dir/shtool"; then
2767 ac_aux_dir=$ac_dir
2768 ac_install_sh="$ac_aux_dir/shtool install -c"
2769 break
2771 done
2772 if test -z "$ac_aux_dir"; then
2773 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2776 # These three variables are undocumented and unsupported,
2777 # and are intended to be withdrawn in a future Autoconf release.
2778 # They can cause serious problems if a builder's source tree is in a directory
2779 # whose full name contains unusual characters.
2780 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2781 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2782 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2785 # Expand $ac_aux_dir to an absolute path.
2786 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2788 ac_ext=c
2789 ac_cpp='$CPP $CPPFLAGS'
2790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2793 if test -n "$ac_tool_prefix"; then
2794 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2795 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2797 $as_echo_n "checking for $ac_word... " >&6; }
2798 if ${ac_cv_prog_CC+:} false; then :
2799 $as_echo_n "(cached) " >&6
2800 else
2801 if test -n "$CC"; then
2802 ac_cv_prog_CC="$CC" # Let the user override the test.
2803 else
2804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2805 for as_dir in $PATH
2807 IFS=$as_save_IFS
2808 test -z "$as_dir" && as_dir=.
2809 for ac_exec_ext in '' $ac_executable_extensions; do
2810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2811 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2813 break 2
2815 done
2816 done
2817 IFS=$as_save_IFS
2821 CC=$ac_cv_prog_CC
2822 if test -n "$CC"; then
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2824 $as_echo "$CC" >&6; }
2825 else
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2827 $as_echo "no" >&6; }
2832 if test -z "$ac_cv_prog_CC"; then
2833 ac_ct_CC=$CC
2834 # Extract the first word of "gcc", so it can be a program name with args.
2835 set dummy gcc; ac_word=$2
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2837 $as_echo_n "checking for $ac_word... " >&6; }
2838 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2839 $as_echo_n "(cached) " >&6
2840 else
2841 if test -n "$ac_ct_CC"; then
2842 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2843 else
2844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2845 for as_dir in $PATH
2847 IFS=$as_save_IFS
2848 test -z "$as_dir" && as_dir=.
2849 for ac_exec_ext in '' $ac_executable_extensions; do
2850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2851 ac_cv_prog_ac_ct_CC="gcc"
2852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2853 break 2
2855 done
2856 done
2857 IFS=$as_save_IFS
2861 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2862 if test -n "$ac_ct_CC"; then
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2864 $as_echo "$ac_ct_CC" >&6; }
2865 else
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2867 $as_echo "no" >&6; }
2870 if test "x$ac_ct_CC" = x; then
2871 CC=""
2872 else
2873 case $cross_compiling:$ac_tool_warned in
2874 yes:)
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2876 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2877 ac_tool_warned=yes ;;
2878 esac
2879 CC=$ac_ct_CC
2881 else
2882 CC="$ac_cv_prog_CC"
2885 if test -z "$CC"; then
2886 if test -n "$ac_tool_prefix"; then
2887 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2888 set dummy ${ac_tool_prefix}cc; ac_word=$2
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2890 $as_echo_n "checking for $ac_word... " >&6; }
2891 if ${ac_cv_prog_CC+:} false; then :
2892 $as_echo_n "(cached) " >&6
2893 else
2894 if test -n "$CC"; then
2895 ac_cv_prog_CC="$CC" # Let the user override the test.
2896 else
2897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2898 for as_dir in $PATH
2900 IFS=$as_save_IFS
2901 test -z "$as_dir" && as_dir=.
2902 for ac_exec_ext in '' $ac_executable_extensions; do
2903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2904 ac_cv_prog_CC="${ac_tool_prefix}cc"
2905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2906 break 2
2908 done
2909 done
2910 IFS=$as_save_IFS
2914 CC=$ac_cv_prog_CC
2915 if test -n "$CC"; then
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2917 $as_echo "$CC" >&6; }
2918 else
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2920 $as_echo "no" >&6; }
2926 if test -z "$CC"; then
2927 # Extract the first word of "cc", so it can be a program name with args.
2928 set dummy cc; ac_word=$2
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2930 $as_echo_n "checking for $ac_word... " >&6; }
2931 if ${ac_cv_prog_CC+:} false; then :
2932 $as_echo_n "(cached) " >&6
2933 else
2934 if test -n "$CC"; then
2935 ac_cv_prog_CC="$CC" # Let the user override the test.
2936 else
2937 ac_prog_rejected=no
2938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2939 for as_dir in $PATH
2941 IFS=$as_save_IFS
2942 test -z "$as_dir" && as_dir=.
2943 for ac_exec_ext in '' $ac_executable_extensions; do
2944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2945 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2946 ac_prog_rejected=yes
2947 continue
2949 ac_cv_prog_CC="cc"
2950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2951 break 2
2953 done
2954 done
2955 IFS=$as_save_IFS
2957 if test $ac_prog_rejected = yes; then
2958 # We found a bogon in the path, so make sure we never use it.
2959 set dummy $ac_cv_prog_CC
2960 shift
2961 if test $# != 0; then
2962 # We chose a different compiler from the bogus one.
2963 # However, it has the same basename, so the bogon will be chosen
2964 # first if we set CC to just the basename; use the full file name.
2965 shift
2966 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2971 CC=$ac_cv_prog_CC
2972 if test -n "$CC"; then
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2974 $as_echo "$CC" >&6; }
2975 else
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2977 $as_echo "no" >&6; }
2982 if test -z "$CC"; then
2983 if test -n "$ac_tool_prefix"; then
2984 for ac_prog in cl.exe
2986 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2987 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2989 $as_echo_n "checking for $ac_word... " >&6; }
2990 if ${ac_cv_prog_CC+:} false; then :
2991 $as_echo_n "(cached) " >&6
2992 else
2993 if test -n "$CC"; then
2994 ac_cv_prog_CC="$CC" # Let the user override the test.
2995 else
2996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2997 for as_dir in $PATH
2999 IFS=$as_save_IFS
3000 test -z "$as_dir" && as_dir=.
3001 for ac_exec_ext in '' $ac_executable_extensions; do
3002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3003 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3005 break 2
3007 done
3008 done
3009 IFS=$as_save_IFS
3013 CC=$ac_cv_prog_CC
3014 if test -n "$CC"; then
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3016 $as_echo "$CC" >&6; }
3017 else
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3019 $as_echo "no" >&6; }
3023 test -n "$CC" && break
3024 done
3026 if test -z "$CC"; then
3027 ac_ct_CC=$CC
3028 for ac_prog in cl.exe
3030 # Extract the first word of "$ac_prog", so it can be a program name with args.
3031 set dummy $ac_prog; ac_word=$2
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3033 $as_echo_n "checking for $ac_word... " >&6; }
3034 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3035 $as_echo_n "(cached) " >&6
3036 else
3037 if test -n "$ac_ct_CC"; then
3038 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3039 else
3040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3041 for as_dir in $PATH
3043 IFS=$as_save_IFS
3044 test -z "$as_dir" && as_dir=.
3045 for ac_exec_ext in '' $ac_executable_extensions; do
3046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3047 ac_cv_prog_ac_ct_CC="$ac_prog"
3048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3049 break 2
3051 done
3052 done
3053 IFS=$as_save_IFS
3057 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3058 if test -n "$ac_ct_CC"; then
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3060 $as_echo "$ac_ct_CC" >&6; }
3061 else
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3063 $as_echo "no" >&6; }
3067 test -n "$ac_ct_CC" && break
3068 done
3070 if test "x$ac_ct_CC" = x; then
3071 CC=""
3072 else
3073 case $cross_compiling:$ac_tool_warned in
3074 yes:)
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3076 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3077 ac_tool_warned=yes ;;
3078 esac
3079 CC=$ac_ct_CC
3086 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3087 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3088 as_fn_error $? "no acceptable C compiler found in \$PATH
3089 See \`config.log' for more details" "$LINENO" 5; }
3091 # Provide some information about the compiler.
3092 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3093 set X $ac_compile
3094 ac_compiler=$2
3095 for ac_option in --version -v -V -qversion; do
3096 { { ac_try="$ac_compiler $ac_option >&5"
3097 case "(($ac_try" in
3098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3099 *) ac_try_echo=$ac_try;;
3100 esac
3101 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3102 $as_echo "$ac_try_echo"; } >&5
3103 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3104 ac_status=$?
3105 if test -s conftest.err; then
3106 sed '10a\
3107 ... rest of stderr output deleted ...
3108 10q' conftest.err >conftest.er1
3109 cat conftest.er1 >&5
3111 rm -f conftest.er1 conftest.err
3112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3113 test $ac_status = 0; }
3114 done
3116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3117 /* end confdefs.h. */
3120 main ()
3124 return 0;
3126 _ACEOF
3127 ac_clean_files_save=$ac_clean_files
3128 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3129 # Try to create an executable without -o first, disregard a.out.
3130 # It will help us diagnose broken compilers, and finding out an intuition
3131 # of exeext.
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3133 $as_echo_n "checking whether the C compiler works... " >&6; }
3134 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3136 # The possible output files:
3137 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3139 ac_rmfiles=
3140 for ac_file in $ac_files
3142 case $ac_file in
3143 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3144 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3145 esac
3146 done
3147 rm -f $ac_rmfiles
3149 if { { ac_try="$ac_link_default"
3150 case "(($ac_try" in
3151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3152 *) ac_try_echo=$ac_try;;
3153 esac
3154 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3155 $as_echo "$ac_try_echo"; } >&5
3156 (eval "$ac_link_default") 2>&5
3157 ac_status=$?
3158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3159 test $ac_status = 0; }; then :
3160 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3161 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3162 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3163 # so that the user can short-circuit this test for compilers unknown to
3164 # Autoconf.
3165 for ac_file in $ac_files ''
3167 test -f "$ac_file" || continue
3168 case $ac_file in
3169 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3171 [ab].out )
3172 # We found the default executable, but exeext='' is most
3173 # certainly right.
3174 break;;
3175 *.* )
3176 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3177 then :; else
3178 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3180 # We set ac_cv_exeext here because the later test for it is not
3181 # safe: cross compilers may not add the suffix if given an `-o'
3182 # argument, so we may need to know it at that point already.
3183 # Even if this section looks crufty: it has the advantage of
3184 # actually working.
3185 break;;
3187 break;;
3188 esac
3189 done
3190 test "$ac_cv_exeext" = no && ac_cv_exeext=
3192 else
3193 ac_file=''
3195 if test -z "$ac_file"; then :
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3197 $as_echo "no" >&6; }
3198 $as_echo "$as_me: failed program was:" >&5
3199 sed 's/^/| /' conftest.$ac_ext >&5
3201 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3202 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3203 as_fn_error 77 "C compiler cannot create executables
3204 See \`config.log' for more details" "$LINENO" 5; }
3205 else
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3207 $as_echo "yes" >&6; }
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3210 $as_echo_n "checking for C compiler default output file name... " >&6; }
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3212 $as_echo "$ac_file" >&6; }
3213 ac_exeext=$ac_cv_exeext
3215 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3216 ac_clean_files=$ac_clean_files_save
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3218 $as_echo_n "checking for suffix of executables... " >&6; }
3219 if { { ac_try="$ac_link"
3220 case "(($ac_try" in
3221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3222 *) ac_try_echo=$ac_try;;
3223 esac
3224 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3225 $as_echo "$ac_try_echo"; } >&5
3226 (eval "$ac_link") 2>&5
3227 ac_status=$?
3228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3229 test $ac_status = 0; }; then :
3230 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3231 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3232 # work properly (i.e., refer to `conftest.exe'), while it won't with
3233 # `rm'.
3234 for ac_file in conftest.exe conftest conftest.*; do
3235 test -f "$ac_file" || continue
3236 case $ac_file in
3237 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3238 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3239 break;;
3240 * ) break;;
3241 esac
3242 done
3243 else
3244 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3245 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3246 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3247 See \`config.log' for more details" "$LINENO" 5; }
3249 rm -f conftest conftest$ac_cv_exeext
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3251 $as_echo "$ac_cv_exeext" >&6; }
3253 rm -f conftest.$ac_ext
3254 EXEEXT=$ac_cv_exeext
3255 ac_exeext=$EXEEXT
3256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3257 /* end confdefs.h. */
3258 #include <stdio.h>
3260 main ()
3262 FILE *f = fopen ("conftest.out", "w");
3263 return ferror (f) || fclose (f) != 0;
3266 return 0;
3268 _ACEOF
3269 ac_clean_files="$ac_clean_files conftest.out"
3270 # Check that the compiler produces executables we can run. If not, either
3271 # the compiler is broken, or we cross compile.
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3273 $as_echo_n "checking whether we are cross compiling... " >&6; }
3274 if test "$cross_compiling" != yes; then
3275 { { ac_try="$ac_link"
3276 case "(($ac_try" in
3277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3278 *) ac_try_echo=$ac_try;;
3279 esac
3280 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3281 $as_echo "$ac_try_echo"; } >&5
3282 (eval "$ac_link") 2>&5
3283 ac_status=$?
3284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3285 test $ac_status = 0; }
3286 if { ac_try='./conftest$ac_cv_exeext'
3287 { { case "(($ac_try" in
3288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3289 *) ac_try_echo=$ac_try;;
3290 esac
3291 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3292 $as_echo "$ac_try_echo"; } >&5
3293 (eval "$ac_try") 2>&5
3294 ac_status=$?
3295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3296 test $ac_status = 0; }; }; then
3297 cross_compiling=no
3298 else
3299 if test "$cross_compiling" = maybe; then
3300 cross_compiling=yes
3301 else
3302 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3303 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3304 as_fn_error $? "cannot run C compiled programs.
3305 If you meant to cross compile, use \`--host'.
3306 See \`config.log' for more details" "$LINENO" 5; }
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3311 $as_echo "$cross_compiling" >&6; }
3313 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3314 ac_clean_files=$ac_clean_files_save
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3316 $as_echo_n "checking for suffix of object files... " >&6; }
3317 if ${ac_cv_objext+:} false; then :
3318 $as_echo_n "(cached) " >&6
3319 else
3320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3321 /* end confdefs.h. */
3324 main ()
3328 return 0;
3330 _ACEOF
3331 rm -f conftest.o conftest.obj
3332 if { { ac_try="$ac_compile"
3333 case "(($ac_try" in
3334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3335 *) ac_try_echo=$ac_try;;
3336 esac
3337 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3338 $as_echo "$ac_try_echo"; } >&5
3339 (eval "$ac_compile") 2>&5
3340 ac_status=$?
3341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3342 test $ac_status = 0; }; then :
3343 for ac_file in conftest.o conftest.obj conftest.*; do
3344 test -f "$ac_file" || continue;
3345 case $ac_file in
3346 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3347 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3348 break;;
3349 esac
3350 done
3351 else
3352 $as_echo "$as_me: failed program was:" >&5
3353 sed 's/^/| /' conftest.$ac_ext >&5
3355 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3356 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3357 as_fn_error $? "cannot compute suffix of object files: cannot compile
3358 See \`config.log' for more details" "$LINENO" 5; }
3360 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3363 $as_echo "$ac_cv_objext" >&6; }
3364 OBJEXT=$ac_cv_objext
3365 ac_objext=$OBJEXT
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3367 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3368 if ${ac_cv_c_compiler_gnu+:} false; then :
3369 $as_echo_n "(cached) " >&6
3370 else
3371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3372 /* end confdefs.h. */
3375 main ()
3377 #ifndef __GNUC__
3378 choke me
3379 #endif
3382 return 0;
3384 _ACEOF
3385 if ac_fn_c_try_compile "$LINENO"; then :
3386 ac_compiler_gnu=yes
3387 else
3388 ac_compiler_gnu=no
3390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3391 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3395 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3396 if test $ac_compiler_gnu = yes; then
3397 GCC=yes
3398 else
3399 GCC=
3401 ac_test_CFLAGS=${CFLAGS+set}
3402 ac_save_CFLAGS=$CFLAGS
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3404 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3405 if ${ac_cv_prog_cc_g+:} false; then :
3406 $as_echo_n "(cached) " >&6
3407 else
3408 ac_save_c_werror_flag=$ac_c_werror_flag
3409 ac_c_werror_flag=yes
3410 ac_cv_prog_cc_g=no
3411 CFLAGS="-g"
3412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3413 /* end confdefs.h. */
3416 main ()
3420 return 0;
3422 _ACEOF
3423 if ac_fn_c_try_compile "$LINENO"; then :
3424 ac_cv_prog_cc_g=yes
3425 else
3426 CFLAGS=""
3427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3428 /* end confdefs.h. */
3431 main ()
3435 return 0;
3437 _ACEOF
3438 if ac_fn_c_try_compile "$LINENO"; then :
3440 else
3441 ac_c_werror_flag=$ac_save_c_werror_flag
3442 CFLAGS="-g"
3443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3444 /* end confdefs.h. */
3447 main ()
3451 return 0;
3453 _ACEOF
3454 if ac_fn_c_try_compile "$LINENO"; then :
3455 ac_cv_prog_cc_g=yes
3457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3462 ac_c_werror_flag=$ac_save_c_werror_flag
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3465 $as_echo "$ac_cv_prog_cc_g" >&6; }
3466 if test "$ac_test_CFLAGS" = set; then
3467 CFLAGS=$ac_save_CFLAGS
3468 elif test $ac_cv_prog_cc_g = yes; then
3469 if test "$GCC" = yes; then
3470 CFLAGS="-g -O2"
3471 else
3472 CFLAGS="-g"
3474 else
3475 if test "$GCC" = yes; then
3476 CFLAGS="-O2"
3477 else
3478 CFLAGS=
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3482 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3483 if ${ac_cv_prog_cc_c89+:} false; then :
3484 $as_echo_n "(cached) " >&6
3485 else
3486 ac_cv_prog_cc_c89=no
3487 ac_save_CC=$CC
3488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3489 /* end confdefs.h. */
3490 #include <stdarg.h>
3491 #include <stdio.h>
3492 struct stat;
3493 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3494 struct buf { int x; };
3495 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3496 static char *e (p, i)
3497 char **p;
3498 int i;
3500 return p[i];
3502 static char *f (char * (*g) (char **, int), char **p, ...)
3504 char *s;
3505 va_list v;
3506 va_start (v,p);
3507 s = g (p, va_arg (v,int));
3508 va_end (v);
3509 return s;
3512 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3513 function prototypes and stuff, but not '\xHH' hex character constants.
3514 These don't provoke an error unfortunately, instead are silently treated
3515 as 'x'. The following induces an error, until -std is added to get
3516 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3517 array size at least. It's necessary to write '\x00'==0 to get something
3518 that's true only with -std. */
3519 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3521 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3522 inside strings and character constants. */
3523 #define FOO(x) 'x'
3524 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3526 int test (int i, double x);
3527 struct s1 {int (*f) (int a);};
3528 struct s2 {int (*f) (double a);};
3529 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3530 int argc;
3531 char **argv;
3533 main ()
3535 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3537 return 0;
3539 _ACEOF
3540 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3541 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3543 CC="$ac_save_CC $ac_arg"
3544 if ac_fn_c_try_compile "$LINENO"; then :
3545 ac_cv_prog_cc_c89=$ac_arg
3547 rm -f core conftest.err conftest.$ac_objext
3548 test "x$ac_cv_prog_cc_c89" != "xno" && break
3549 done
3550 rm -f conftest.$ac_ext
3551 CC=$ac_save_CC
3554 # AC_CACHE_VAL
3555 case "x$ac_cv_prog_cc_c89" in
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3558 $as_echo "none needed" >&6; } ;;
3559 xno)
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3561 $as_echo "unsupported" >&6; } ;;
3563 CC="$CC $ac_cv_prog_cc_c89"
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3565 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3566 esac
3567 if test "x$ac_cv_prog_cc_c89" != xno; then :
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
3577 ac_ext=c
3578 ac_cpp='$CPP $CPPFLAGS'
3579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3583 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3584 if ${am_cv_prog_cc_c_o+:} false; then :
3585 $as_echo_n "(cached) " >&6
3586 else
3587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3588 /* end confdefs.h. */
3591 main ()
3595 return 0;
3597 _ACEOF
3598 # Make sure it works both with $CC and with simple cc.
3599 # Following AC_PROG_CC_C_O, we do the test twice because some
3600 # compilers refuse to overwrite an existing .o file with -o,
3601 # though they will create one.
3602 am_cv_prog_cc_c_o=yes
3603 for am_i in 1 2; do
3604 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3605 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3606 ac_status=$?
3607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608 (exit $ac_status); } \
3609 && test -f conftest2.$ac_objext; then
3610 : OK
3611 else
3612 am_cv_prog_cc_c_o=no
3613 break
3615 done
3616 rm -f core conftest*
3617 unset am_i
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3620 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3621 if test "$am_cv_prog_cc_c_o" != yes; then
3622 # Losing compiler, so override with the script.
3623 # FIXME: It is wrong to rewrite CC.
3624 # But if we don't then we get into trouble of one sort or another.
3625 # A longer-term fix would be to have automake use am__CC in this case,
3626 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3627 CC="$am_aux_dir/compile $CC"
3629 ac_ext=c
3630 ac_cpp='$CPP $CPPFLAGS'
3631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3637 ac_ext=c
3638 ac_cpp='$CPP $CPPFLAGS'
3639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3643 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3644 # On Suns, sometimes $CPP names a directory.
3645 if test -n "$CPP" && test -d "$CPP"; then
3646 CPP=
3648 if test -z "$CPP"; then
3649 if ${ac_cv_prog_CPP+:} false; then :
3650 $as_echo_n "(cached) " >&6
3651 else
3652 # Double quotes because CPP needs to be expanded
3653 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3655 ac_preproc_ok=false
3656 for ac_c_preproc_warn_flag in '' yes
3658 # Use a header file that comes with gcc, so configuring glibc
3659 # with a fresh cross-compiler works.
3660 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3661 # <limits.h> exists even on freestanding compilers.
3662 # On the NeXT, cc -E runs the code through the compiler's parser,
3663 # not just through cpp. "Syntax error" is here to catch this case.
3664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3665 /* end confdefs.h. */
3666 #ifdef __STDC__
3667 # include <limits.h>
3668 #else
3669 # include <assert.h>
3670 #endif
3671 Syntax error
3672 _ACEOF
3673 if ac_fn_c_try_cpp "$LINENO"; then :
3675 else
3676 # Broken: fails on valid input.
3677 continue
3679 rm -f conftest.err conftest.i conftest.$ac_ext
3681 # OK, works on sane cases. Now check whether nonexistent headers
3682 # can be detected and how.
3683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3684 /* end confdefs.h. */
3685 #include <ac_nonexistent.h>
3686 _ACEOF
3687 if ac_fn_c_try_cpp "$LINENO"; then :
3688 # Broken: success on invalid input.
3689 continue
3690 else
3691 # Passes both tests.
3692 ac_preproc_ok=:
3693 break
3695 rm -f conftest.err conftest.i conftest.$ac_ext
3697 done
3698 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3699 rm -f conftest.i conftest.err conftest.$ac_ext
3700 if $ac_preproc_ok; then :
3701 break
3704 done
3705 ac_cv_prog_CPP=$CPP
3708 CPP=$ac_cv_prog_CPP
3709 else
3710 ac_cv_prog_CPP=$CPP
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3713 $as_echo "$CPP" >&6; }
3714 ac_preproc_ok=false
3715 for ac_c_preproc_warn_flag in '' yes
3717 # Use a header file that comes with gcc, so configuring glibc
3718 # with a fresh cross-compiler works.
3719 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3720 # <limits.h> exists even on freestanding compilers.
3721 # On the NeXT, cc -E runs the code through the compiler's parser,
3722 # not just through cpp. "Syntax error" is here to catch this case.
3723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3724 /* end confdefs.h. */
3725 #ifdef __STDC__
3726 # include <limits.h>
3727 #else
3728 # include <assert.h>
3729 #endif
3730 Syntax error
3731 _ACEOF
3732 if ac_fn_c_try_cpp "$LINENO"; then :
3734 else
3735 # Broken: fails on valid input.
3736 continue
3738 rm -f conftest.err conftest.i conftest.$ac_ext
3740 # OK, works on sane cases. Now check whether nonexistent headers
3741 # can be detected and how.
3742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3743 /* end confdefs.h. */
3744 #include <ac_nonexistent.h>
3745 _ACEOF
3746 if ac_fn_c_try_cpp "$LINENO"; then :
3747 # Broken: success on invalid input.
3748 continue
3749 else
3750 # Passes both tests.
3751 ac_preproc_ok=:
3752 break
3754 rm -f conftest.err conftest.i conftest.$ac_ext
3756 done
3757 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3758 rm -f conftest.i conftest.err conftest.$ac_ext
3759 if $ac_preproc_ok; then :
3761 else
3762 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3763 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3764 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3765 See \`config.log' for more details" "$LINENO" 5; }
3768 ac_ext=c
3769 ac_cpp='$CPP $CPPFLAGS'
3770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3776 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3777 if ${ac_cv_path_GREP+:} false; then :
3778 $as_echo_n "(cached) " >&6
3779 else
3780 if test -z "$GREP"; then
3781 ac_path_GREP_found=false
3782 # Loop through the user's path and test for each of PROGNAME-LIST
3783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3784 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3786 IFS=$as_save_IFS
3787 test -z "$as_dir" && as_dir=.
3788 for ac_prog in grep ggrep; do
3789 for ac_exec_ext in '' $ac_executable_extensions; do
3790 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3791 as_fn_executable_p "$ac_path_GREP" || continue
3792 # Check for GNU ac_path_GREP and select it if it is found.
3793 # Check for GNU $ac_path_GREP
3794 case `"$ac_path_GREP" --version 2>&1` in
3795 *GNU*)
3796 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3798 ac_count=0
3799 $as_echo_n 0123456789 >"conftest.in"
3800 while :
3802 cat "conftest.in" "conftest.in" >"conftest.tmp"
3803 mv "conftest.tmp" "conftest.in"
3804 cp "conftest.in" "conftest.nl"
3805 $as_echo 'GREP' >> "conftest.nl"
3806 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3807 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3808 as_fn_arith $ac_count + 1 && ac_count=$as_val
3809 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3810 # Best one so far, save it but keep looking for a better one
3811 ac_cv_path_GREP="$ac_path_GREP"
3812 ac_path_GREP_max=$ac_count
3814 # 10*(2^10) chars as input seems more than enough
3815 test $ac_count -gt 10 && break
3816 done
3817 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3818 esac
3820 $ac_path_GREP_found && break 3
3821 done
3822 done
3823 done
3824 IFS=$as_save_IFS
3825 if test -z "$ac_cv_path_GREP"; then
3826 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3828 else
3829 ac_cv_path_GREP=$GREP
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3834 $as_echo "$ac_cv_path_GREP" >&6; }
3835 GREP="$ac_cv_path_GREP"
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3839 $as_echo_n "checking for egrep... " >&6; }
3840 if ${ac_cv_path_EGREP+:} false; then :
3841 $as_echo_n "(cached) " >&6
3842 else
3843 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3844 then ac_cv_path_EGREP="$GREP -E"
3845 else
3846 if test -z "$EGREP"; then
3847 ac_path_EGREP_found=false
3848 # Loop through the user's path and test for each of PROGNAME-LIST
3849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3850 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3852 IFS=$as_save_IFS
3853 test -z "$as_dir" && as_dir=.
3854 for ac_prog in egrep; do
3855 for ac_exec_ext in '' $ac_executable_extensions; do
3856 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3857 as_fn_executable_p "$ac_path_EGREP" || continue
3858 # Check for GNU ac_path_EGREP and select it if it is found.
3859 # Check for GNU $ac_path_EGREP
3860 case `"$ac_path_EGREP" --version 2>&1` in
3861 *GNU*)
3862 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3864 ac_count=0
3865 $as_echo_n 0123456789 >"conftest.in"
3866 while :
3868 cat "conftest.in" "conftest.in" >"conftest.tmp"
3869 mv "conftest.tmp" "conftest.in"
3870 cp "conftest.in" "conftest.nl"
3871 $as_echo 'EGREP' >> "conftest.nl"
3872 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3873 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3874 as_fn_arith $ac_count + 1 && ac_count=$as_val
3875 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3876 # Best one so far, save it but keep looking for a better one
3877 ac_cv_path_EGREP="$ac_path_EGREP"
3878 ac_path_EGREP_max=$ac_count
3880 # 10*(2^10) chars as input seems more than enough
3881 test $ac_count -gt 10 && break
3882 done
3883 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3884 esac
3886 $ac_path_EGREP_found && break 3
3887 done
3888 done
3889 done
3890 IFS=$as_save_IFS
3891 if test -z "$ac_cv_path_EGREP"; then
3892 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3894 else
3895 ac_cv_path_EGREP=$EGREP
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3901 $as_echo "$ac_cv_path_EGREP" >&6; }
3902 EGREP="$ac_cv_path_EGREP"
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3906 $as_echo_n "checking for ANSI C header files... " >&6; }
3907 if ${ac_cv_header_stdc+:} false; then :
3908 $as_echo_n "(cached) " >&6
3909 else
3910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3911 /* end confdefs.h. */
3912 #include <stdlib.h>
3913 #include <stdarg.h>
3914 #include <string.h>
3915 #include <float.h>
3918 main ()
3922 return 0;
3924 _ACEOF
3925 if ac_fn_c_try_compile "$LINENO"; then :
3926 ac_cv_header_stdc=yes
3927 else
3928 ac_cv_header_stdc=no
3930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3932 if test $ac_cv_header_stdc = yes; then
3933 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3935 /* end confdefs.h. */
3936 #include <string.h>
3938 _ACEOF
3939 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3940 $EGREP "memchr" >/dev/null 2>&1; then :
3942 else
3943 ac_cv_header_stdc=no
3945 rm -f conftest*
3949 if test $ac_cv_header_stdc = yes; then
3950 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3952 /* end confdefs.h. */
3953 #include <stdlib.h>
3955 _ACEOF
3956 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3957 $EGREP "free" >/dev/null 2>&1; then :
3959 else
3960 ac_cv_header_stdc=no
3962 rm -f conftest*
3966 if test $ac_cv_header_stdc = yes; then
3967 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3968 if test "$cross_compiling" = yes; then :
3970 else
3971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3972 /* end confdefs.h. */
3973 #include <ctype.h>
3974 #include <stdlib.h>
3975 #if ((' ' & 0x0FF) == 0x020)
3976 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3977 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3978 #else
3979 # define ISLOWER(c) \
3980 (('a' <= (c) && (c) <= 'i') \
3981 || ('j' <= (c) && (c) <= 'r') \
3982 || ('s' <= (c) && (c) <= 'z'))
3983 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3984 #endif
3986 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3988 main ()
3990 int i;
3991 for (i = 0; i < 256; i++)
3992 if (XOR (islower (i), ISLOWER (i))
3993 || toupper (i) != TOUPPER (i))
3994 return 2;
3995 return 0;
3997 _ACEOF
3998 if ac_fn_c_try_run "$LINENO"; then :
4000 else
4001 ac_cv_header_stdc=no
4003 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4004 conftest.$ac_objext conftest.beam conftest.$ac_ext
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4010 $as_echo "$ac_cv_header_stdc" >&6; }
4011 if test $ac_cv_header_stdc = yes; then
4013 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4017 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4018 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4019 inttypes.h stdint.h unistd.h
4020 do :
4021 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4022 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4024 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4025 cat >>confdefs.h <<_ACEOF
4026 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4027 _ACEOF
4031 done
4035 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4036 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4037 MINIX=yes
4038 else
4039 MINIX=
4043 if test "$MINIX" = yes; then
4045 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4048 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4051 $as_echo "#define _MINIX 1" >>confdefs.h
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4057 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4058 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4059 $as_echo_n "(cached) " >&6
4060 else
4061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4062 /* end confdefs.h. */
4064 # define __EXTENSIONS__ 1
4065 $ac_includes_default
4067 main ()
4071 return 0;
4073 _ACEOF
4074 if ac_fn_c_try_compile "$LINENO"; then :
4075 ac_cv_safe_to_define___extensions__=yes
4076 else
4077 ac_cv_safe_to_define___extensions__=no
4079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4082 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4083 test $ac_cv_safe_to_define___extensions__ = yes &&
4084 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4086 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4088 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4090 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4092 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4096 # Do not delete or change the following two lines. For why, see
4097 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
4098 # Make sure we can run config.sub.
4099 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4100 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4103 $as_echo_n "checking build system type... " >&6; }
4104 if ${ac_cv_build+:} false; then :
4105 $as_echo_n "(cached) " >&6
4106 else
4107 ac_build_alias=$build_alias
4108 test "x$ac_build_alias" = x &&
4109 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4110 test "x$ac_build_alias" = x &&
4111 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4112 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4113 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4117 $as_echo "$ac_cv_build" >&6; }
4118 case $ac_cv_build in
4119 *-*-*) ;;
4120 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4121 esac
4122 build=$ac_cv_build
4123 ac_save_IFS=$IFS; IFS='-'
4124 set x $ac_cv_build
4125 shift
4126 build_cpu=$1
4127 build_vendor=$2
4128 shift; shift
4129 # Remember, the first character of IFS is used to create $*,
4130 # except with old shells:
4131 build_os=$*
4132 IFS=$ac_save_IFS
4133 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4137 $as_echo_n "checking host system type... " >&6; }
4138 if ${ac_cv_host+:} false; then :
4139 $as_echo_n "(cached) " >&6
4140 else
4141 if test "x$host_alias" = x; then
4142 ac_cv_host=$ac_cv_build
4143 else
4144 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4145 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4150 $as_echo "$ac_cv_host" >&6; }
4151 case $ac_cv_host in
4152 *-*-*) ;;
4153 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4154 esac
4155 host=$ac_cv_host
4156 ac_save_IFS=$IFS; IFS='-'
4157 set x $ac_cv_host
4158 shift
4159 host_cpu=$1
4160 host_vendor=$2
4161 shift; shift
4162 # Remember, the first character of IFS is used to create $*,
4163 # except with old shells:
4164 host_os=$*
4165 IFS=$ac_save_IFS
4166 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4170 $as_echo_n "checking target system type... " >&6; }
4171 if ${ac_cv_target+:} false; then :
4172 $as_echo_n "(cached) " >&6
4173 else
4174 if test "x$target_alias" = x; then
4175 ac_cv_target=$ac_cv_host
4176 else
4177 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4178 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4183 $as_echo "$ac_cv_target" >&6; }
4184 case $ac_cv_target in
4185 *-*-*) ;;
4186 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
4187 esac
4188 target=$ac_cv_target
4189 ac_save_IFS=$IFS; IFS='-'
4190 set x $ac_cv_target
4191 shift
4192 target_cpu=$1
4193 target_vendor=$2
4194 shift; shift
4195 # Remember, the first character of IFS is used to create $*,
4196 # except with old shells:
4197 target_os=$*
4198 IFS=$ac_save_IFS
4199 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4202 # The aliases save the names the user supplied, while $host etc.
4203 # will get canonicalized.
4204 test -n "$target_alias" &&
4205 test "$program_prefix$program_suffix$program_transform_name" = \
4206 NONENONEs,x,x, &&
4207 program_prefix=${target_alias}-
4209 target_alias=${target_alias-$host_alias}
4211 case ${build_alias} in
4212 "") build_noncanonical=${build} ;;
4213 *) build_noncanonical=${build_alias} ;;
4214 esac
4216 case ${host_alias} in
4217 "") host_noncanonical=${build_noncanonical} ;;
4218 *) host_noncanonical=${host_alias} ;;
4219 esac
4221 case ${target_alias} in
4222 "") target_noncanonical=${host_noncanonical} ;;
4223 *) target_noncanonical=${target_alias} ;;
4224 esac
4230 LIBSTDCXX_RAW_CXX_CXXFLAGS="\
4231 -I\$(top_builddir)/../libstdc++-v3/include \
4232 -I\$(top_builddir)/../libstdc++-v3/include/\$(target_noncanonical) \
4233 -I\$(top_srcdir)/../libstdc++-v3/libsupc++"
4234 LIBSTDCXX_RAW_CXX_LDFLAGS="\
4235 \$(top_builddir)/../libstdc++-v3/src/libstdc++.la"
4240 am__api_version='1.15'
4242 # Find a good install program. We prefer a C program (faster),
4243 # so one script is as good as another. But avoid the broken or
4244 # incompatible versions:
4245 # SysV /etc/install, /usr/sbin/install
4246 # SunOS /usr/etc/install
4247 # IRIX /sbin/install
4248 # AIX /bin/install
4249 # AmigaOS /C/install, which installs bootblocks on floppy discs
4250 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4251 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4252 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4253 # OS/2's system install, which has a completely different semantic
4254 # ./install, which can be erroneously created by make from ./install.sh.
4255 # Reject install programs that cannot install multiple files.
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4257 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4258 if test -z "$INSTALL"; then
4259 if ${ac_cv_path_install+:} false; then :
4260 $as_echo_n "(cached) " >&6
4261 else
4262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4263 for as_dir in $PATH
4265 IFS=$as_save_IFS
4266 test -z "$as_dir" && as_dir=.
4267 # Account for people who put trailing slashes in PATH elements.
4268 case $as_dir/ in #((
4269 ./ | .// | /[cC]/* | \
4270 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4271 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4272 /usr/ucb/* ) ;;
4274 # OSF1 and SCO ODT 3.0 have their own names for install.
4275 # Don't use installbsd from OSF since it installs stuff as root
4276 # by default.
4277 for ac_prog in ginstall scoinst install; do
4278 for ac_exec_ext in '' $ac_executable_extensions; do
4279 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4280 if test $ac_prog = install &&
4281 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4282 # AIX install. It has an incompatible calling convention.
4284 elif test $ac_prog = install &&
4285 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4286 # program-specific install script used by HP pwplus--don't use.
4288 else
4289 rm -rf conftest.one conftest.two conftest.dir
4290 echo one > conftest.one
4291 echo two > conftest.two
4292 mkdir conftest.dir
4293 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4294 test -s conftest.one && test -s conftest.two &&
4295 test -s conftest.dir/conftest.one &&
4296 test -s conftest.dir/conftest.two
4297 then
4298 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4299 break 3
4303 done
4304 done
4306 esac
4308 done
4309 IFS=$as_save_IFS
4311 rm -rf conftest.one conftest.two conftest.dir
4314 if test "${ac_cv_path_install+set}" = set; then
4315 INSTALL=$ac_cv_path_install
4316 else
4317 # As a last resort, use the slow shell script. Don't cache a
4318 # value for INSTALL within a source directory, because that will
4319 # break other packages using the cache if that directory is
4320 # removed, or if the value is a relative name.
4321 INSTALL=$ac_install_sh
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4325 $as_echo "$INSTALL" >&6; }
4327 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4328 # It thinks the first close brace ends the variable substitution.
4329 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4331 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4333 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4336 $as_echo_n "checking whether build environment is sane... " >&6; }
4337 # Reject unsafe characters in $srcdir or the absolute working directory
4338 # name. Accept space and tab only in the latter.
4339 am_lf='
4341 case `pwd` in
4342 *[\\\"\#\$\&\'\`$am_lf]*)
4343 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4344 esac
4345 case $srcdir in
4346 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4347 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4348 esac
4350 # Do 'set' in a subshell so we don't clobber the current shell's
4351 # arguments. Must try -L first in case configure is actually a
4352 # symlink; some systems play weird games with the mod time of symlinks
4353 # (eg FreeBSD returns the mod time of the symlink's containing
4354 # directory).
4355 if (
4356 am_has_slept=no
4357 for am_try in 1 2; do
4358 echo "timestamp, slept: $am_has_slept" > conftest.file
4359 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4360 if test "$*" = "X"; then
4361 # -L didn't work.
4362 set X `ls -t "$srcdir/configure" conftest.file`
4364 if test "$*" != "X $srcdir/configure conftest.file" \
4365 && test "$*" != "X conftest.file $srcdir/configure"; then
4367 # If neither matched, then we have a broken ls. This can happen
4368 # if, for instance, CONFIG_SHELL is bash and it inherits a
4369 # broken ls alias from the environment. This has actually
4370 # happened. Such a system could not be considered "sane".
4371 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4372 alias in your environment" "$LINENO" 5
4374 if test "$2" = conftest.file || test $am_try -eq 2; then
4375 break
4377 # Just in case.
4378 sleep 1
4379 am_has_slept=yes
4380 done
4381 test "$2" = conftest.file
4383 then
4384 # Ok.
4386 else
4387 as_fn_error $? "newly created file is older than distributed files!
4388 Check your system clock" "$LINENO" 5
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4391 $as_echo "yes" >&6; }
4392 # If we didn't sleep, we still need to ensure time stamps of config.status and
4393 # generated files are strictly newer.
4394 am_sleep_pid=
4395 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4396 ( sleep 1 ) &
4397 am_sleep_pid=$!
4400 rm -f conftest.file
4402 test "$program_prefix" != NONE &&
4403 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4404 # Use a double $ so make ignores it.
4405 test "$program_suffix" != NONE &&
4406 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4407 # Double any \ or $.
4408 # By default was `s,x,x', remove it if useless.
4409 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4410 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4412 if test x"${MISSING+set}" != xset; then
4413 case $am_aux_dir in
4414 *\ * | *\ *)
4415 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4417 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4418 esac
4420 # Use eval to expand $SHELL
4421 if eval "$MISSING --is-lightweight"; then
4422 am_missing_run="$MISSING "
4423 else
4424 am_missing_run=
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4426 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4429 if test x"${install_sh+set}" != xset; then
4430 case $am_aux_dir in
4431 *\ * | *\ *)
4432 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4434 install_sh="\${SHELL} $am_aux_dir/install-sh"
4435 esac
4438 # Installed binaries are usually stripped using 'strip' when the user
4439 # run "make install-strip". However 'strip' might not be the right
4440 # tool to use in cross-compilation environments, therefore Automake
4441 # will honor the 'STRIP' environment variable to overrule this program.
4442 if test "$cross_compiling" != no; then
4443 if test -n "$ac_tool_prefix"; then
4444 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4445 set dummy ${ac_tool_prefix}strip; ac_word=$2
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4447 $as_echo_n "checking for $ac_word... " >&6; }
4448 if ${ac_cv_prog_STRIP+:} false; then :
4449 $as_echo_n "(cached) " >&6
4450 else
4451 if test -n "$STRIP"; then
4452 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4453 else
4454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4455 for as_dir in $PATH
4457 IFS=$as_save_IFS
4458 test -z "$as_dir" && as_dir=.
4459 for ac_exec_ext in '' $ac_executable_extensions; do
4460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4461 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4463 break 2
4465 done
4466 done
4467 IFS=$as_save_IFS
4471 STRIP=$ac_cv_prog_STRIP
4472 if test -n "$STRIP"; then
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4474 $as_echo "$STRIP" >&6; }
4475 else
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4477 $as_echo "no" >&6; }
4482 if test -z "$ac_cv_prog_STRIP"; then
4483 ac_ct_STRIP=$STRIP
4484 # Extract the first word of "strip", so it can be a program name with args.
4485 set dummy strip; ac_word=$2
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4487 $as_echo_n "checking for $ac_word... " >&6; }
4488 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4489 $as_echo_n "(cached) " >&6
4490 else
4491 if test -n "$ac_ct_STRIP"; then
4492 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4493 else
4494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4495 for as_dir in $PATH
4497 IFS=$as_save_IFS
4498 test -z "$as_dir" && as_dir=.
4499 for ac_exec_ext in '' $ac_executable_extensions; do
4500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4501 ac_cv_prog_ac_ct_STRIP="strip"
4502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4503 break 2
4505 done
4506 done
4507 IFS=$as_save_IFS
4511 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4512 if test -n "$ac_ct_STRIP"; then
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4514 $as_echo "$ac_ct_STRIP" >&6; }
4515 else
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4517 $as_echo "no" >&6; }
4520 if test "x$ac_ct_STRIP" = x; then
4521 STRIP=":"
4522 else
4523 case $cross_compiling:$ac_tool_warned in
4524 yes:)
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4526 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4527 ac_tool_warned=yes ;;
4528 esac
4529 STRIP=$ac_ct_STRIP
4531 else
4532 STRIP="$ac_cv_prog_STRIP"
4536 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4539 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4540 if test -z "$MKDIR_P"; then
4541 if ${ac_cv_path_mkdir+:} false; then :
4542 $as_echo_n "(cached) " >&6
4543 else
4544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4545 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4547 IFS=$as_save_IFS
4548 test -z "$as_dir" && as_dir=.
4549 for ac_prog in mkdir gmkdir; do
4550 for ac_exec_ext in '' $ac_executable_extensions; do
4551 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4552 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4553 'mkdir (GNU coreutils) '* | \
4554 'mkdir (coreutils) '* | \
4555 'mkdir (fileutils) '4.1*)
4556 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4557 break 3;;
4558 esac
4559 done
4560 done
4561 done
4562 IFS=$as_save_IFS
4566 test -d ./--version && rmdir ./--version
4567 if test "${ac_cv_path_mkdir+set}" = set; then
4568 MKDIR_P="$ac_cv_path_mkdir -p"
4569 else
4570 # As a last resort, use the slow shell script. Don't cache a
4571 # value for MKDIR_P within a source directory, because that will
4572 # break other packages using the cache if that directory is
4573 # removed, or if the value is a relative name.
4574 MKDIR_P="$ac_install_sh -d"
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4578 $as_echo "$MKDIR_P" >&6; }
4580 for ac_prog in gawk mawk nawk awk
4582 # Extract the first word of "$ac_prog", so it can be a program name with args.
4583 set dummy $ac_prog; ac_word=$2
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4585 $as_echo_n "checking for $ac_word... " >&6; }
4586 if ${ac_cv_prog_AWK+:} false; then :
4587 $as_echo_n "(cached) " >&6
4588 else
4589 if test -n "$AWK"; then
4590 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4591 else
4592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4593 for as_dir in $PATH
4595 IFS=$as_save_IFS
4596 test -z "$as_dir" && as_dir=.
4597 for ac_exec_ext in '' $ac_executable_extensions; do
4598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4599 ac_cv_prog_AWK="$ac_prog"
4600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4601 break 2
4603 done
4604 done
4605 IFS=$as_save_IFS
4609 AWK=$ac_cv_prog_AWK
4610 if test -n "$AWK"; then
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4612 $as_echo "$AWK" >&6; }
4613 else
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4615 $as_echo "no" >&6; }
4619 test -n "$AWK" && break
4620 done
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4623 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4624 set x ${MAKE-make}
4625 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4626 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4627 $as_echo_n "(cached) " >&6
4628 else
4629 cat >conftest.make <<\_ACEOF
4630 SHELL = /bin/sh
4631 all:
4632 @echo '@@@%%%=$(MAKE)=@@@%%%'
4633 _ACEOF
4634 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4635 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4636 *@@@%%%=?*=@@@%%%*)
4637 eval ac_cv_prog_make_${ac_make}_set=yes;;
4639 eval ac_cv_prog_make_${ac_make}_set=no;;
4640 esac
4641 rm -f conftest.make
4643 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4645 $as_echo "yes" >&6; }
4646 SET_MAKE=
4647 else
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4649 $as_echo "no" >&6; }
4650 SET_MAKE="MAKE=${MAKE-make}"
4653 rm -rf .tst 2>/dev/null
4654 mkdir .tst 2>/dev/null
4655 if test -d .tst; then
4656 am__leading_dot=.
4657 else
4658 am__leading_dot=_
4660 rmdir .tst 2>/dev/null
4662 DEPDIR="${am__leading_dot}deps"
4664 ac_config_commands="$ac_config_commands depfiles"
4667 am_make=${MAKE-make}
4668 cat > confinc << 'END'
4669 am__doit:
4670 @echo this is the am__doit target
4671 .PHONY: am__doit
4673 # If we don't find an include directive, just comment out the code.
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4675 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4676 am__include="#"
4677 am__quote=
4678 _am_result=none
4679 # First try GNU make style include.
4680 echo "include confinc" > confmf
4681 # Ignore all kinds of additional output from 'make'.
4682 case `$am_make -s -f confmf 2> /dev/null` in #(
4683 *the\ am__doit\ target*)
4684 am__include=include
4685 am__quote=
4686 _am_result=GNU
4688 esac
4689 # Now try BSD make style include.
4690 if test "$am__include" = "#"; then
4691 echo '.include "confinc"' > confmf
4692 case `$am_make -s -f confmf 2> /dev/null` in #(
4693 *the\ am__doit\ target*)
4694 am__include=.include
4695 am__quote="\""
4696 _am_result=BSD
4698 esac
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4703 $as_echo "$_am_result" >&6; }
4704 rm -f confinc confmf
4706 # Check whether --enable-dependency-tracking was given.
4707 if test "${enable_dependency_tracking+set}" = set; then :
4708 enableval=$enable_dependency_tracking;
4711 if test "x$enable_dependency_tracking" != xno; then
4712 am_depcomp="$ac_aux_dir/depcomp"
4713 AMDEPBACKSLASH='\'
4714 am__nodep='_no'
4716 if test "x$enable_dependency_tracking" != xno; then
4717 AMDEP_TRUE=
4718 AMDEP_FALSE='#'
4719 else
4720 AMDEP_TRUE='#'
4721 AMDEP_FALSE=
4725 # Check whether --enable-silent-rules was given.
4726 if test "${enable_silent_rules+set}" = set; then :
4727 enableval=$enable_silent_rules;
4730 case $enable_silent_rules in # (((
4731 yes) AM_DEFAULT_VERBOSITY=0;;
4732 no) AM_DEFAULT_VERBOSITY=1;;
4733 *) AM_DEFAULT_VERBOSITY=1;;
4734 esac
4735 am_make=${MAKE-make}
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4737 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4738 if ${am_cv_make_support_nested_variables+:} false; then :
4739 $as_echo_n "(cached) " >&6
4740 else
4741 if $as_echo 'TRUE=$(BAR$(V))
4742 BAR0=false
4743 BAR1=true
4745 am__doit:
4746 @$(TRUE)
4747 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4748 am_cv_make_support_nested_variables=yes
4749 else
4750 am_cv_make_support_nested_variables=no
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4754 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4755 if test $am_cv_make_support_nested_variables = yes; then
4756 AM_V='$(V)'
4757 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4758 else
4759 AM_V=$AM_DEFAULT_VERBOSITY
4760 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4762 AM_BACKSLASH='\'
4764 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4765 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4766 # is not polluted with repeated "-I."
4767 am__isrc=' -I$(srcdir)'
4768 # test to see if srcdir already configured
4769 if test -f $srcdir/config.status; then
4770 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4774 # test whether we have cygpath
4775 if test -z "$CYGPATH_W"; then
4776 if (cygpath --version) >/dev/null 2>/dev/null; then
4777 CYGPATH_W='cygpath -w'
4778 else
4779 CYGPATH_W=echo
4784 # Define the identity of the package.
4785 PACKAGE='package-unused'
4786 VERSION='version-unused'
4789 cat >>confdefs.h <<_ACEOF
4790 #define PACKAGE "$PACKAGE"
4791 _ACEOF
4794 cat >>confdefs.h <<_ACEOF
4795 #define VERSION "$VERSION"
4796 _ACEOF
4798 # Some tools Automake needs.
4800 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4803 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4806 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4809 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4812 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4814 # For better backward compatibility. To be removed once Automake 1.9.x
4815 # dies out for good. For more background, see:
4816 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4817 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4818 mkdir_p='$(MKDIR_P)'
4820 # We need awk for the "check" target (and possibly the TAP driver). The
4821 # system "awk" is bad on some platforms.
4822 # Always define AMTAR for backward compatibility. Yes, it's still used
4823 # in the wild :-( We should find a proper way to deprecate it ...
4824 AMTAR='$${TAR-tar}'
4827 # We'll loop over all known methods to create a tar archive until one works.
4828 _am_tools='gnutar pax cpio none'
4830 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4836 depcc="$CC" am_compiler_list=
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4839 $as_echo_n "checking dependency style of $depcc... " >&6; }
4840 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4841 $as_echo_n "(cached) " >&6
4842 else
4843 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4844 # We make a subdir and do the tests there. Otherwise we can end up
4845 # making bogus files that we don't know about and never remove. For
4846 # instance it was reported that on HP-UX the gcc test will end up
4847 # making a dummy file named 'D' -- because '-MD' means "put the output
4848 # in D".
4849 rm -rf conftest.dir
4850 mkdir conftest.dir
4851 # Copy depcomp to subdir because otherwise we won't find it if we're
4852 # using a relative directory.
4853 cp "$am_depcomp" conftest.dir
4854 cd conftest.dir
4855 # We will build objects and dependencies in a subdirectory because
4856 # it helps to detect inapplicable dependency modes. For instance
4857 # both Tru64's cc and ICC support -MD to output dependencies as a
4858 # side effect of compilation, but ICC will put the dependencies in
4859 # the current directory while Tru64 will put them in the object
4860 # directory.
4861 mkdir sub
4863 am_cv_CC_dependencies_compiler_type=none
4864 if test "$am_compiler_list" = ""; then
4865 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4867 am__universal=false
4868 case " $depcc " in #(
4869 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4870 esac
4872 for depmode in $am_compiler_list; do
4873 # Setup a source with many dependencies, because some compilers
4874 # like to wrap large dependency lists on column 80 (with \), and
4875 # we should not choose a depcomp mode which is confused by this.
4877 # We need to recreate these files for each test, as the compiler may
4878 # overwrite some of them when testing with obscure command lines.
4879 # This happens at least with the AIX C compiler.
4880 : > sub/conftest.c
4881 for i in 1 2 3 4 5 6; do
4882 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4883 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4884 # Solaris 10 /bin/sh.
4885 echo '/* dummy */' > sub/conftst$i.h
4886 done
4887 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4889 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4890 # mode. It turns out that the SunPro C++ compiler does not properly
4891 # handle '-M -o', and we need to detect this. Also, some Intel
4892 # versions had trouble with output in subdirs.
4893 am__obj=sub/conftest.${OBJEXT-o}
4894 am__minus_obj="-o $am__obj"
4895 case $depmode in
4896 gcc)
4897 # This depmode causes a compiler race in universal mode.
4898 test "$am__universal" = false || continue
4900 nosideeffect)
4901 # After this tag, mechanisms are not by side-effect, so they'll
4902 # only be used when explicitly requested.
4903 if test "x$enable_dependency_tracking" = xyes; then
4904 continue
4905 else
4906 break
4909 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4910 # This compiler won't grok '-c -o', but also, the minuso test has
4911 # not run yet. These depmodes are late enough in the game, and
4912 # so weak that their functioning should not be impacted.
4913 am__obj=conftest.${OBJEXT-o}
4914 am__minus_obj=
4916 none) break ;;
4917 esac
4918 if depmode=$depmode \
4919 source=sub/conftest.c object=$am__obj \
4920 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4921 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4922 >/dev/null 2>conftest.err &&
4923 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4924 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4925 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4926 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4927 # icc doesn't choke on unknown options, it will just issue warnings
4928 # or remarks (even with -Werror). So we grep stderr for any message
4929 # that says an option was ignored or not supported.
4930 # When given -MP, icc 7.0 and 7.1 complain thusly:
4931 # icc: Command line warning: ignoring option '-M'; no argument required
4932 # The diagnosis changed in icc 8.0:
4933 # icc: Command line remark: option '-MP' not supported
4934 if (grep 'ignoring option' conftest.err ||
4935 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4936 am_cv_CC_dependencies_compiler_type=$depmode
4937 break
4940 done
4942 cd ..
4943 rm -rf conftest.dir
4944 else
4945 am_cv_CC_dependencies_compiler_type=none
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4950 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4951 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4954 test "x$enable_dependency_tracking" != xno \
4955 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4956 am__fastdepCC_TRUE=
4957 am__fastdepCC_FALSE='#'
4958 else
4959 am__fastdepCC_TRUE='#'
4960 am__fastdepCC_FALSE=
4965 # POSIX will say in a future version that running "rm -f" with no argument
4966 # is OK; and we want to be able to make that assumption in our Makefile
4967 # recipes. So use an aggressive probe to check that the usage we want is
4968 # actually supported "in the wild" to an acceptable degree.
4969 # See automake bug#10828.
4970 # To make any issue more visible, cause the running configure to be aborted
4971 # by default if the 'rm' program in use doesn't match our expectations; the
4972 # user can still override this though.
4973 if rm -f && rm -fr && rm -rf; then : OK; else
4974 cat >&2 <<'END'
4975 Oops!
4977 Your 'rm' program seems unable to run without file operands specified
4978 on the command line, even when the '-f' option is present. This is contrary
4979 to the behaviour of most rm programs out there, and not conforming with
4980 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4982 Please tell bug-automake@gnu.org about your system, including the value
4983 of your $PATH and any error possibly output before this message. This
4984 can help us improve future automake versions.
4987 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4988 echo 'Configuration will proceed anyway, since you have set the' >&2
4989 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4990 echo >&2
4991 else
4992 cat >&2 <<'END'
4993 Aborting the configuration process, to ensure you take notice of the issue.
4995 You can download and install GNU coreutils to get an 'rm' implementation
4996 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4998 If you want to complete the configuration process using your problematic
4999 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
5000 to "yes", and re-run configure.
5003 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5009 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5010 # Check whether --enable-maintainer-mode was given.
5011 if test "${enable_maintainer_mode+set}" = set; then :
5012 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5013 else
5014 USE_MAINTAINER_MODE=no
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5018 $as_echo "$USE_MAINTAINER_MODE" >&6; }
5019 if test $USE_MAINTAINER_MODE = yes; then
5020 MAINTAINER_MODE_TRUE=
5021 MAINTAINER_MODE_FALSE='#'
5022 else
5023 MAINTAINER_MODE_TRUE='#'
5024 MAINTAINER_MODE_FALSE=
5027 MAINT=$MAINTAINER_MODE_TRUE
5032 # Check whether --with-toolexeclibdir was given.
5033 if test "${with_toolexeclibdir+set}" = set; then :
5034 withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
5038 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
5040 esac
5041 else
5042 with_toolexeclibdir=no
5047 # Calculate toolexeclibdir
5048 # Also toolexecdir, though it's only used in toolexeclibdir
5049 case ${version_specific_libs} in
5050 yes)
5051 # Need the gcc compiler version to know where to install libraries
5052 # and header files if --enable-version-specific-runtime-libs option
5053 # is selected.
5054 toolexecdir='$(libdir)/gcc/$(target_alias)'
5055 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
5058 if test -n "$with_cross_host" &&
5059 test x"$with_cross_host" != x"no"; then
5060 # Install a library built with a cross compiler in tooldir, not libdir.
5061 toolexecdir='$(exec_prefix)/$(target_alias)'
5062 case ${with_toolexeclibdir} in
5064 toolexeclibdir='$(toolexecdir)/lib'
5067 toolexeclibdir=${with_toolexeclibdir}
5069 esac
5070 else
5071 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
5072 toolexeclibdir='$(libdir)'
5074 multi_os_directory=`$CC -print-multi-os-directory`
5075 case $multi_os_directory in
5076 .) ;; # Avoid trailing /.
5077 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
5078 esac
5080 esac
5084 # Checks for programs.
5085 ac_ext=c
5086 ac_cpp='$CPP $CPPFLAGS'
5087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5090 if test -n "$ac_tool_prefix"; then
5091 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5092 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5094 $as_echo_n "checking for $ac_word... " >&6; }
5095 if ${ac_cv_prog_CC+:} false; then :
5096 $as_echo_n "(cached) " >&6
5097 else
5098 if test -n "$CC"; then
5099 ac_cv_prog_CC="$CC" # Let the user override the test.
5100 else
5101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5102 for as_dir in $PATH
5104 IFS=$as_save_IFS
5105 test -z "$as_dir" && as_dir=.
5106 for ac_exec_ext in '' $ac_executable_extensions; do
5107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5108 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5110 break 2
5112 done
5113 done
5114 IFS=$as_save_IFS
5118 CC=$ac_cv_prog_CC
5119 if test -n "$CC"; then
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5121 $as_echo "$CC" >&6; }
5122 else
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5124 $as_echo "no" >&6; }
5129 if test -z "$ac_cv_prog_CC"; then
5130 ac_ct_CC=$CC
5131 # Extract the first word of "gcc", so it can be a program name with args.
5132 set dummy gcc; ac_word=$2
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5134 $as_echo_n "checking for $ac_word... " >&6; }
5135 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5136 $as_echo_n "(cached) " >&6
5137 else
5138 if test -n "$ac_ct_CC"; then
5139 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5140 else
5141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5142 for as_dir in $PATH
5144 IFS=$as_save_IFS
5145 test -z "$as_dir" && as_dir=.
5146 for ac_exec_ext in '' $ac_executable_extensions; do
5147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5148 ac_cv_prog_ac_ct_CC="gcc"
5149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5150 break 2
5152 done
5153 done
5154 IFS=$as_save_IFS
5158 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5159 if test -n "$ac_ct_CC"; then
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5161 $as_echo "$ac_ct_CC" >&6; }
5162 else
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5164 $as_echo "no" >&6; }
5167 if test "x$ac_ct_CC" = x; then
5168 CC=""
5169 else
5170 case $cross_compiling:$ac_tool_warned in
5171 yes:)
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5173 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5174 ac_tool_warned=yes ;;
5175 esac
5176 CC=$ac_ct_CC
5178 else
5179 CC="$ac_cv_prog_CC"
5182 if test -z "$CC"; then
5183 if test -n "$ac_tool_prefix"; then
5184 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5185 set dummy ${ac_tool_prefix}cc; ac_word=$2
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5187 $as_echo_n "checking for $ac_word... " >&6; }
5188 if ${ac_cv_prog_CC+:} false; then :
5189 $as_echo_n "(cached) " >&6
5190 else
5191 if test -n "$CC"; then
5192 ac_cv_prog_CC="$CC" # Let the user override the test.
5193 else
5194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5195 for as_dir in $PATH
5197 IFS=$as_save_IFS
5198 test -z "$as_dir" && as_dir=.
5199 for ac_exec_ext in '' $ac_executable_extensions; do
5200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5201 ac_cv_prog_CC="${ac_tool_prefix}cc"
5202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5203 break 2
5205 done
5206 done
5207 IFS=$as_save_IFS
5211 CC=$ac_cv_prog_CC
5212 if test -n "$CC"; then
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5214 $as_echo "$CC" >&6; }
5215 else
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5217 $as_echo "no" >&6; }
5223 if test -z "$CC"; then
5224 # Extract the first word of "cc", so it can be a program name with args.
5225 set dummy cc; ac_word=$2
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5227 $as_echo_n "checking for $ac_word... " >&6; }
5228 if ${ac_cv_prog_CC+:} false; then :
5229 $as_echo_n "(cached) " >&6
5230 else
5231 if test -n "$CC"; then
5232 ac_cv_prog_CC="$CC" # Let the user override the test.
5233 else
5234 ac_prog_rejected=no
5235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5236 for as_dir in $PATH
5238 IFS=$as_save_IFS
5239 test -z "$as_dir" && as_dir=.
5240 for ac_exec_ext in '' $ac_executable_extensions; do
5241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5242 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5243 ac_prog_rejected=yes
5244 continue
5246 ac_cv_prog_CC="cc"
5247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5248 break 2
5250 done
5251 done
5252 IFS=$as_save_IFS
5254 if test $ac_prog_rejected = yes; then
5255 # We found a bogon in the path, so make sure we never use it.
5256 set dummy $ac_cv_prog_CC
5257 shift
5258 if test $# != 0; then
5259 # We chose a different compiler from the bogus one.
5260 # However, it has the same basename, so the bogon will be chosen
5261 # first if we set CC to just the basename; use the full file name.
5262 shift
5263 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5268 CC=$ac_cv_prog_CC
5269 if test -n "$CC"; then
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5271 $as_echo "$CC" >&6; }
5272 else
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5274 $as_echo "no" >&6; }
5279 if test -z "$CC"; then
5280 if test -n "$ac_tool_prefix"; then
5281 for ac_prog in cl.exe
5283 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5284 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5286 $as_echo_n "checking for $ac_word... " >&6; }
5287 if ${ac_cv_prog_CC+:} false; then :
5288 $as_echo_n "(cached) " >&6
5289 else
5290 if test -n "$CC"; then
5291 ac_cv_prog_CC="$CC" # Let the user override the test.
5292 else
5293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5294 for as_dir in $PATH
5296 IFS=$as_save_IFS
5297 test -z "$as_dir" && as_dir=.
5298 for ac_exec_ext in '' $ac_executable_extensions; do
5299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5300 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5302 break 2
5304 done
5305 done
5306 IFS=$as_save_IFS
5310 CC=$ac_cv_prog_CC
5311 if test -n "$CC"; then
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5313 $as_echo "$CC" >&6; }
5314 else
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5316 $as_echo "no" >&6; }
5320 test -n "$CC" && break
5321 done
5323 if test -z "$CC"; then
5324 ac_ct_CC=$CC
5325 for ac_prog in cl.exe
5327 # Extract the first word of "$ac_prog", so it can be a program name with args.
5328 set dummy $ac_prog; ac_word=$2
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5330 $as_echo_n "checking for $ac_word... " >&6; }
5331 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5332 $as_echo_n "(cached) " >&6
5333 else
5334 if test -n "$ac_ct_CC"; then
5335 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5336 else
5337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5338 for as_dir in $PATH
5340 IFS=$as_save_IFS
5341 test -z "$as_dir" && as_dir=.
5342 for ac_exec_ext in '' $ac_executable_extensions; do
5343 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5344 ac_cv_prog_ac_ct_CC="$ac_prog"
5345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5346 break 2
5348 done
5349 done
5350 IFS=$as_save_IFS
5354 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5355 if test -n "$ac_ct_CC"; then
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5357 $as_echo "$ac_ct_CC" >&6; }
5358 else
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5360 $as_echo "no" >&6; }
5364 test -n "$ac_ct_CC" && break
5365 done
5367 if test "x$ac_ct_CC" = x; then
5368 CC=""
5369 else
5370 case $cross_compiling:$ac_tool_warned in
5371 yes:)
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5373 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5374 ac_tool_warned=yes ;;
5375 esac
5376 CC=$ac_ct_CC
5383 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5384 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5385 as_fn_error $? "no acceptable C compiler found in \$PATH
5386 See \`config.log' for more details" "$LINENO" 5; }
5388 # Provide some information about the compiler.
5389 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5390 set X $ac_compile
5391 ac_compiler=$2
5392 for ac_option in --version -v -V -qversion; do
5393 { { ac_try="$ac_compiler $ac_option >&5"
5394 case "(($ac_try" in
5395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5396 *) ac_try_echo=$ac_try;;
5397 esac
5398 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5399 $as_echo "$ac_try_echo"; } >&5
5400 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5401 ac_status=$?
5402 if test -s conftest.err; then
5403 sed '10a\
5404 ... rest of stderr output deleted ...
5405 10q' conftest.err >conftest.er1
5406 cat conftest.er1 >&5
5408 rm -f conftest.er1 conftest.err
5409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5410 test $ac_status = 0; }
5411 done
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5414 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5415 if ${ac_cv_c_compiler_gnu+:} false; then :
5416 $as_echo_n "(cached) " >&6
5417 else
5418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5419 /* end confdefs.h. */
5422 main ()
5424 #ifndef __GNUC__
5425 choke me
5426 #endif
5429 return 0;
5431 _ACEOF
5432 if ac_fn_c_try_compile "$LINENO"; then :
5433 ac_compiler_gnu=yes
5434 else
5435 ac_compiler_gnu=no
5437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5438 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5442 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5443 if test $ac_compiler_gnu = yes; then
5444 GCC=yes
5445 else
5446 GCC=
5448 ac_test_CFLAGS=${CFLAGS+set}
5449 ac_save_CFLAGS=$CFLAGS
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5451 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5452 if ${ac_cv_prog_cc_g+:} false; then :
5453 $as_echo_n "(cached) " >&6
5454 else
5455 ac_save_c_werror_flag=$ac_c_werror_flag
5456 ac_c_werror_flag=yes
5457 ac_cv_prog_cc_g=no
5458 CFLAGS="-g"
5459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5460 /* end confdefs.h. */
5463 main ()
5467 return 0;
5469 _ACEOF
5470 if ac_fn_c_try_compile "$LINENO"; then :
5471 ac_cv_prog_cc_g=yes
5472 else
5473 CFLAGS=""
5474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5475 /* end confdefs.h. */
5478 main ()
5482 return 0;
5484 _ACEOF
5485 if ac_fn_c_try_compile "$LINENO"; then :
5487 else
5488 ac_c_werror_flag=$ac_save_c_werror_flag
5489 CFLAGS="-g"
5490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5491 /* end confdefs.h. */
5494 main ()
5498 return 0;
5500 _ACEOF
5501 if ac_fn_c_try_compile "$LINENO"; then :
5502 ac_cv_prog_cc_g=yes
5504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5509 ac_c_werror_flag=$ac_save_c_werror_flag
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5512 $as_echo "$ac_cv_prog_cc_g" >&6; }
5513 if test "$ac_test_CFLAGS" = set; then
5514 CFLAGS=$ac_save_CFLAGS
5515 elif test $ac_cv_prog_cc_g = yes; then
5516 if test "$GCC" = yes; then
5517 CFLAGS="-g -O2"
5518 else
5519 CFLAGS="-g"
5521 else
5522 if test "$GCC" = yes; then
5523 CFLAGS="-O2"
5524 else
5525 CFLAGS=
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5529 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5530 if ${ac_cv_prog_cc_c89+:} false; then :
5531 $as_echo_n "(cached) " >&6
5532 else
5533 ac_cv_prog_cc_c89=no
5534 ac_save_CC=$CC
5535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5536 /* end confdefs.h. */
5537 #include <stdarg.h>
5538 #include <stdio.h>
5539 struct stat;
5540 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5541 struct buf { int x; };
5542 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5543 static char *e (p, i)
5544 char **p;
5545 int i;
5547 return p[i];
5549 static char *f (char * (*g) (char **, int), char **p, ...)
5551 char *s;
5552 va_list v;
5553 va_start (v,p);
5554 s = g (p, va_arg (v,int));
5555 va_end (v);
5556 return s;
5559 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5560 function prototypes and stuff, but not '\xHH' hex character constants.
5561 These don't provoke an error unfortunately, instead are silently treated
5562 as 'x'. The following induces an error, until -std is added to get
5563 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5564 array size at least. It's necessary to write '\x00'==0 to get something
5565 that's true only with -std. */
5566 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5568 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5569 inside strings and character constants. */
5570 #define FOO(x) 'x'
5571 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5573 int test (int i, double x);
5574 struct s1 {int (*f) (int a);};
5575 struct s2 {int (*f) (double a);};
5576 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5577 int argc;
5578 char **argv;
5580 main ()
5582 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5584 return 0;
5586 _ACEOF
5587 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5588 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5590 CC="$ac_save_CC $ac_arg"
5591 if ac_fn_c_try_compile "$LINENO"; then :
5592 ac_cv_prog_cc_c89=$ac_arg
5594 rm -f core conftest.err conftest.$ac_objext
5595 test "x$ac_cv_prog_cc_c89" != "xno" && break
5596 done
5597 rm -f conftest.$ac_ext
5598 CC=$ac_save_CC
5601 # AC_CACHE_VAL
5602 case "x$ac_cv_prog_cc_c89" in
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5605 $as_echo "none needed" >&6; } ;;
5606 xno)
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5608 $as_echo "unsupported" >&6; } ;;
5610 CC="$CC $ac_cv_prog_cc_c89"
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5612 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5613 esac
5614 if test "x$ac_cv_prog_cc_c89" != xno; then :
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
5624 ac_ext=c
5625 ac_cpp='$CPP $CPPFLAGS'
5626 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5627 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5628 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5630 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5631 if ${am_cv_prog_cc_c_o+:} false; then :
5632 $as_echo_n "(cached) " >&6
5633 else
5634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5635 /* end confdefs.h. */
5638 main ()
5642 return 0;
5644 _ACEOF
5645 # Make sure it works both with $CC and with simple cc.
5646 # Following AC_PROG_CC_C_O, we do the test twice because some
5647 # compilers refuse to overwrite an existing .o file with -o,
5648 # though they will create one.
5649 am_cv_prog_cc_c_o=yes
5650 for am_i in 1 2; do
5651 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5652 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5653 ac_status=$?
5654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5655 (exit $ac_status); } \
5656 && test -f conftest2.$ac_objext; then
5657 : OK
5658 else
5659 am_cv_prog_cc_c_o=no
5660 break
5662 done
5663 rm -f core conftest*
5664 unset am_i
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5667 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5668 if test "$am_cv_prog_cc_c_o" != yes; then
5669 # Losing compiler, so override with the script.
5670 # FIXME: It is wrong to rewrite CC.
5671 # But if we don't then we get into trouble of one sort or another.
5672 # A longer-term fix would be to have automake use am__CC in this case,
5673 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5674 CC="$am_aux_dir/compile $CC"
5676 ac_ext=c
5677 ac_cpp='$CPP $CPPFLAGS'
5678 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5679 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5680 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5683 ac_ext=cpp
5684 ac_cpp='$CXXCPP $CPPFLAGS'
5685 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5686 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5687 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5688 if test -z "$CXX"; then
5689 if test -n "$CCC"; then
5690 CXX=$CCC
5691 else
5692 if test -n "$ac_tool_prefix"; then
5693 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5695 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5696 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5698 $as_echo_n "checking for $ac_word... " >&6; }
5699 if ${ac_cv_prog_CXX+:} false; then :
5700 $as_echo_n "(cached) " >&6
5701 else
5702 if test -n "$CXX"; then
5703 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5704 else
5705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5706 for as_dir in $PATH
5708 IFS=$as_save_IFS
5709 test -z "$as_dir" && as_dir=.
5710 for ac_exec_ext in '' $ac_executable_extensions; do
5711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5712 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5714 break 2
5716 done
5717 done
5718 IFS=$as_save_IFS
5722 CXX=$ac_cv_prog_CXX
5723 if test -n "$CXX"; then
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5725 $as_echo "$CXX" >&6; }
5726 else
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5728 $as_echo "no" >&6; }
5732 test -n "$CXX" && break
5733 done
5735 if test -z "$CXX"; then
5736 ac_ct_CXX=$CXX
5737 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5739 # Extract the first word of "$ac_prog", so it can be a program name with args.
5740 set dummy $ac_prog; ac_word=$2
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5742 $as_echo_n "checking for $ac_word... " >&6; }
5743 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5744 $as_echo_n "(cached) " >&6
5745 else
5746 if test -n "$ac_ct_CXX"; then
5747 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5748 else
5749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5750 for as_dir in $PATH
5752 IFS=$as_save_IFS
5753 test -z "$as_dir" && as_dir=.
5754 for ac_exec_ext in '' $ac_executable_extensions; do
5755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5756 ac_cv_prog_ac_ct_CXX="$ac_prog"
5757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5758 break 2
5760 done
5761 done
5762 IFS=$as_save_IFS
5766 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5767 if test -n "$ac_ct_CXX"; then
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5769 $as_echo "$ac_ct_CXX" >&6; }
5770 else
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5772 $as_echo "no" >&6; }
5776 test -n "$ac_ct_CXX" && break
5777 done
5779 if test "x$ac_ct_CXX" = x; then
5780 CXX="g++"
5781 else
5782 case $cross_compiling:$ac_tool_warned in
5783 yes:)
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5785 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5786 ac_tool_warned=yes ;;
5787 esac
5788 CXX=$ac_ct_CXX
5794 # Provide some information about the compiler.
5795 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5796 set X $ac_compile
5797 ac_compiler=$2
5798 for ac_option in --version -v -V -qversion; do
5799 { { ac_try="$ac_compiler $ac_option >&5"
5800 case "(($ac_try" in
5801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5802 *) ac_try_echo=$ac_try;;
5803 esac
5804 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5805 $as_echo "$ac_try_echo"; } >&5
5806 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5807 ac_status=$?
5808 if test -s conftest.err; then
5809 sed '10a\
5810 ... rest of stderr output deleted ...
5811 10q' conftest.err >conftest.er1
5812 cat conftest.er1 >&5
5814 rm -f conftest.er1 conftest.err
5815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5816 test $ac_status = 0; }
5817 done
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5820 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5821 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5822 $as_echo_n "(cached) " >&6
5823 else
5824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5825 /* end confdefs.h. */
5828 main ()
5830 #ifndef __GNUC__
5831 choke me
5832 #endif
5835 return 0;
5837 _ACEOF
5838 if ac_fn_cxx_try_compile "$LINENO"; then :
5839 ac_compiler_gnu=yes
5840 else
5841 ac_compiler_gnu=no
5843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5844 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5848 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5849 if test $ac_compiler_gnu = yes; then
5850 GXX=yes
5851 else
5852 GXX=
5854 ac_test_CXXFLAGS=${CXXFLAGS+set}
5855 ac_save_CXXFLAGS=$CXXFLAGS
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5857 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5858 if ${ac_cv_prog_cxx_g+:} false; then :
5859 $as_echo_n "(cached) " >&6
5860 else
5861 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5862 ac_cxx_werror_flag=yes
5863 ac_cv_prog_cxx_g=no
5864 CXXFLAGS="-g"
5865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5866 /* end confdefs.h. */
5869 main ()
5873 return 0;
5875 _ACEOF
5876 if ac_fn_cxx_try_compile "$LINENO"; then :
5877 ac_cv_prog_cxx_g=yes
5878 else
5879 CXXFLAGS=""
5880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5881 /* end confdefs.h. */
5884 main ()
5888 return 0;
5890 _ACEOF
5891 if ac_fn_cxx_try_compile "$LINENO"; then :
5893 else
5894 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5895 CXXFLAGS="-g"
5896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5897 /* end confdefs.h. */
5900 main ()
5904 return 0;
5906 _ACEOF
5907 if ac_fn_cxx_try_compile "$LINENO"; then :
5908 ac_cv_prog_cxx_g=yes
5910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5915 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5918 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5919 if test "$ac_test_CXXFLAGS" = set; then
5920 CXXFLAGS=$ac_save_CXXFLAGS
5921 elif test $ac_cv_prog_cxx_g = yes; then
5922 if test "$GXX" = yes; then
5923 CXXFLAGS="-g -O2"
5924 else
5925 CXXFLAGS="-g"
5927 else
5928 if test "$GXX" = yes; then
5929 CXXFLAGS="-O2"
5930 else
5931 CXXFLAGS=
5934 ac_ext=c
5935 ac_cpp='$CPP $CPPFLAGS'
5936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5940 depcc="$CXX" am_compiler_list=
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5943 $as_echo_n "checking dependency style of $depcc... " >&6; }
5944 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5945 $as_echo_n "(cached) " >&6
5946 else
5947 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5948 # We make a subdir and do the tests there. Otherwise we can end up
5949 # making bogus files that we don't know about and never remove. For
5950 # instance it was reported that on HP-UX the gcc test will end up
5951 # making a dummy file named 'D' -- because '-MD' means "put the output
5952 # in D".
5953 rm -rf conftest.dir
5954 mkdir conftest.dir
5955 # Copy depcomp to subdir because otherwise we won't find it if we're
5956 # using a relative directory.
5957 cp "$am_depcomp" conftest.dir
5958 cd conftest.dir
5959 # We will build objects and dependencies in a subdirectory because
5960 # it helps to detect inapplicable dependency modes. For instance
5961 # both Tru64's cc and ICC support -MD to output dependencies as a
5962 # side effect of compilation, but ICC will put the dependencies in
5963 # the current directory while Tru64 will put them in the object
5964 # directory.
5965 mkdir sub
5967 am_cv_CXX_dependencies_compiler_type=none
5968 if test "$am_compiler_list" = ""; then
5969 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5971 am__universal=false
5972 case " $depcc " in #(
5973 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5974 esac
5976 for depmode in $am_compiler_list; do
5977 # Setup a source with many dependencies, because some compilers
5978 # like to wrap large dependency lists on column 80 (with \), and
5979 # we should not choose a depcomp mode which is confused by this.
5981 # We need to recreate these files for each test, as the compiler may
5982 # overwrite some of them when testing with obscure command lines.
5983 # This happens at least with the AIX C compiler.
5984 : > sub/conftest.c
5985 for i in 1 2 3 4 5 6; do
5986 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5987 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5988 # Solaris 10 /bin/sh.
5989 echo '/* dummy */' > sub/conftst$i.h
5990 done
5991 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5993 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5994 # mode. It turns out that the SunPro C++ compiler does not properly
5995 # handle '-M -o', and we need to detect this. Also, some Intel
5996 # versions had trouble with output in subdirs.
5997 am__obj=sub/conftest.${OBJEXT-o}
5998 am__minus_obj="-o $am__obj"
5999 case $depmode in
6000 gcc)
6001 # This depmode causes a compiler race in universal mode.
6002 test "$am__universal" = false || continue
6004 nosideeffect)
6005 # After this tag, mechanisms are not by side-effect, so they'll
6006 # only be used when explicitly requested.
6007 if test "x$enable_dependency_tracking" = xyes; then
6008 continue
6009 else
6010 break
6013 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6014 # This compiler won't grok '-c -o', but also, the minuso test has
6015 # not run yet. These depmodes are late enough in the game, and
6016 # so weak that their functioning should not be impacted.
6017 am__obj=conftest.${OBJEXT-o}
6018 am__minus_obj=
6020 none) break ;;
6021 esac
6022 if depmode=$depmode \
6023 source=sub/conftest.c object=$am__obj \
6024 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6025 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6026 >/dev/null 2>conftest.err &&
6027 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6028 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6029 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6030 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6031 # icc doesn't choke on unknown options, it will just issue warnings
6032 # or remarks (even with -Werror). So we grep stderr for any message
6033 # that says an option was ignored or not supported.
6034 # When given -MP, icc 7.0 and 7.1 complain thusly:
6035 # icc: Command line warning: ignoring option '-M'; no argument required
6036 # The diagnosis changed in icc 8.0:
6037 # icc: Command line remark: option '-MP' not supported
6038 if (grep 'ignoring option' conftest.err ||
6039 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6040 am_cv_CXX_dependencies_compiler_type=$depmode
6041 break
6044 done
6046 cd ..
6047 rm -rf conftest.dir
6048 else
6049 am_cv_CXX_dependencies_compiler_type=none
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6054 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6055 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6058 test "x$enable_dependency_tracking" != xno \
6059 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6060 am__fastdepCXX_TRUE=
6061 am__fastdepCXX_FALSE='#'
6062 else
6063 am__fastdepCXX_TRUE='#'
6064 am__fastdepCXX_FALSE=
6068 # By default we simply use the C compiler to build assembly code.
6070 test "${CCAS+set}" = set || CCAS=$CC
6071 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
6075 depcc="$CCAS" am_compiler_list=
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6078 $as_echo_n "checking dependency style of $depcc... " >&6; }
6079 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
6080 $as_echo_n "(cached) " >&6
6081 else
6082 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6083 # We make a subdir and do the tests there. Otherwise we can end up
6084 # making bogus files that we don't know about and never remove. For
6085 # instance it was reported that on HP-UX the gcc test will end up
6086 # making a dummy file named 'D' -- because '-MD' means "put the output
6087 # in D".
6088 rm -rf conftest.dir
6089 mkdir conftest.dir
6090 # Copy depcomp to subdir because otherwise we won't find it if we're
6091 # using a relative directory.
6092 cp "$am_depcomp" conftest.dir
6093 cd conftest.dir
6094 # We will build objects and dependencies in a subdirectory because
6095 # it helps to detect inapplicable dependency modes. For instance
6096 # both Tru64's cc and ICC support -MD to output dependencies as a
6097 # side effect of compilation, but ICC will put the dependencies in
6098 # the current directory while Tru64 will put them in the object
6099 # directory.
6100 mkdir sub
6102 am_cv_CCAS_dependencies_compiler_type=none
6103 if test "$am_compiler_list" = ""; then
6104 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6106 am__universal=false
6109 for depmode in $am_compiler_list; do
6110 # Setup a source with many dependencies, because some compilers
6111 # like to wrap large dependency lists on column 80 (with \), and
6112 # we should not choose a depcomp mode which is confused by this.
6114 # We need to recreate these files for each test, as the compiler may
6115 # overwrite some of them when testing with obscure command lines.
6116 # This happens at least with the AIX C compiler.
6117 : > sub/conftest.c
6118 for i in 1 2 3 4 5 6; do
6119 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6120 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6121 # Solaris 10 /bin/sh.
6122 echo '/* dummy */' > sub/conftst$i.h
6123 done
6124 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6126 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6127 # mode. It turns out that the SunPro C++ compiler does not properly
6128 # handle '-M -o', and we need to detect this. Also, some Intel
6129 # versions had trouble with output in subdirs.
6130 am__obj=sub/conftest.${OBJEXT-o}
6131 am__minus_obj="-o $am__obj"
6132 case $depmode in
6133 gcc)
6134 # This depmode causes a compiler race in universal mode.
6135 test "$am__universal" = false || continue
6137 nosideeffect)
6138 # After this tag, mechanisms are not by side-effect, so they'll
6139 # only be used when explicitly requested.
6140 if test "x$enable_dependency_tracking" = xyes; then
6141 continue
6142 else
6143 break
6146 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6147 # This compiler won't grok '-c -o', but also, the minuso test has
6148 # not run yet. These depmodes are late enough in the game, and
6149 # so weak that their functioning should not be impacted.
6150 am__obj=conftest.${OBJEXT-o}
6151 am__minus_obj=
6153 none) break ;;
6154 esac
6155 if depmode=$depmode \
6156 source=sub/conftest.c object=$am__obj \
6157 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6158 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6159 >/dev/null 2>conftest.err &&
6160 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6161 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6162 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6163 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6164 # icc doesn't choke on unknown options, it will just issue warnings
6165 # or remarks (even with -Werror). So we grep stderr for any message
6166 # that says an option was ignored or not supported.
6167 # When given -MP, icc 7.0 and 7.1 complain thusly:
6168 # icc: Command line warning: ignoring option '-M'; no argument required
6169 # The diagnosis changed in icc 8.0:
6170 # icc: Command line remark: option '-MP' not supported
6171 if (grep 'ignoring option' conftest.err ||
6172 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6173 am_cv_CCAS_dependencies_compiler_type=$depmode
6174 break
6177 done
6179 cd ..
6180 rm -rf conftest.dir
6181 else
6182 am_cv_CCAS_dependencies_compiler_type=none
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
6187 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
6188 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
6191 test "x$enable_dependency_tracking" != xno \
6192 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
6193 am__fastdepCCAS_TRUE=
6194 am__fastdepCCAS_FALSE='#'
6195 else
6196 am__fastdepCCAS_TRUE='#'
6197 am__fastdepCCAS_FALSE=
6201 if test -n "$ac_tool_prefix"; then
6202 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6203 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6205 $as_echo_n "checking for $ac_word... " >&6; }
6206 if ${ac_cv_prog_RANLIB+:} false; then :
6207 $as_echo_n "(cached) " >&6
6208 else
6209 if test -n "$RANLIB"; then
6210 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6211 else
6212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6213 for as_dir in $PATH
6215 IFS=$as_save_IFS
6216 test -z "$as_dir" && as_dir=.
6217 for ac_exec_ext in '' $ac_executable_extensions; do
6218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6219 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6221 break 2
6223 done
6224 done
6225 IFS=$as_save_IFS
6229 RANLIB=$ac_cv_prog_RANLIB
6230 if test -n "$RANLIB"; then
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6232 $as_echo "$RANLIB" >&6; }
6233 else
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6235 $as_echo "no" >&6; }
6240 if test -z "$ac_cv_prog_RANLIB"; then
6241 ac_ct_RANLIB=$RANLIB
6242 # Extract the first word of "ranlib", so it can be a program name with args.
6243 set dummy ranlib; ac_word=$2
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6245 $as_echo_n "checking for $ac_word... " >&6; }
6246 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6247 $as_echo_n "(cached) " >&6
6248 else
6249 if test -n "$ac_ct_RANLIB"; then
6250 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6251 else
6252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6253 for as_dir in $PATH
6255 IFS=$as_save_IFS
6256 test -z "$as_dir" && as_dir=.
6257 for ac_exec_ext in '' $ac_executable_extensions; do
6258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6259 ac_cv_prog_ac_ct_RANLIB="ranlib"
6260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6261 break 2
6263 done
6264 done
6265 IFS=$as_save_IFS
6269 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6270 if test -n "$ac_ct_RANLIB"; then
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6272 $as_echo "$ac_ct_RANLIB" >&6; }
6273 else
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6275 $as_echo "no" >&6; }
6278 if test "x$ac_ct_RANLIB" = x; then
6279 RANLIB=":"
6280 else
6281 case $cross_compiling:$ac_tool_warned in
6282 yes:)
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6284 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6285 ac_tool_warned=yes ;;
6286 esac
6287 RANLIB=$ac_ct_RANLIB
6289 else
6290 RANLIB="$ac_cv_prog_RANLIB"
6294 enable_dlopen=yes
6298 case `pwd` in
6299 *\ * | *\ *)
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6301 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6302 esac
6306 macro_version='2.2.7a'
6307 macro_revision='1.3134'
6321 ltmain="$ac_aux_dir/ltmain.sh"
6323 # Backslashify metacharacters that are still active within
6324 # double-quoted strings.
6325 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6327 # Same as above, but do not quote variable references.
6328 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6330 # Sed substitution to delay expansion of an escaped shell variable in a
6331 # double_quote_subst'ed string.
6332 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6334 # Sed substitution to delay expansion of an escaped single quote.
6335 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6337 # Sed substitution to avoid accidental globbing in evaled expressions
6338 no_glob_subst='s/\*/\\\*/g'
6340 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6341 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6342 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6345 $as_echo_n "checking how to print strings... " >&6; }
6346 # Test print first, because it will be a builtin if present.
6347 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6348 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6349 ECHO='print -r --'
6350 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6351 ECHO='printf %s\n'
6352 else
6353 # Use this function as a fallback that always works.
6354 func_fallback_echo ()
6356 eval 'cat <<_LTECHO_EOF
6358 _LTECHO_EOF'
6360 ECHO='func_fallback_echo'
6363 # func_echo_all arg...
6364 # Invoke $ECHO with all args, space-separated.
6365 func_echo_all ()
6367 $ECHO ""
6370 case "$ECHO" in
6371 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6372 $as_echo "printf" >&6; } ;;
6373 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6374 $as_echo "print -r" >&6; } ;;
6375 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6376 $as_echo "cat" >&6; } ;;
6377 esac
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6393 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6394 if ${ac_cv_path_SED+:} false; then :
6395 $as_echo_n "(cached) " >&6
6396 else
6397 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6398 for ac_i in 1 2 3 4 5 6 7; do
6399 ac_script="$ac_script$as_nl$ac_script"
6400 done
6401 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6402 { ac_script=; unset ac_script;}
6403 if test -z "$SED"; then
6404 ac_path_SED_found=false
6405 # Loop through the user's path and test for each of PROGNAME-LIST
6406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6407 for as_dir in $PATH
6409 IFS=$as_save_IFS
6410 test -z "$as_dir" && as_dir=.
6411 for ac_prog in sed gsed; do
6412 for ac_exec_ext in '' $ac_executable_extensions; do
6413 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6414 as_fn_executable_p "$ac_path_SED" || continue
6415 # Check for GNU ac_path_SED and select it if it is found.
6416 # Check for GNU $ac_path_SED
6417 case `"$ac_path_SED" --version 2>&1` in
6418 *GNU*)
6419 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6421 ac_count=0
6422 $as_echo_n 0123456789 >"conftest.in"
6423 while :
6425 cat "conftest.in" "conftest.in" >"conftest.tmp"
6426 mv "conftest.tmp" "conftest.in"
6427 cp "conftest.in" "conftest.nl"
6428 $as_echo '' >> "conftest.nl"
6429 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6430 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6431 as_fn_arith $ac_count + 1 && ac_count=$as_val
6432 if test $ac_count -gt ${ac_path_SED_max-0}; then
6433 # Best one so far, save it but keep looking for a better one
6434 ac_cv_path_SED="$ac_path_SED"
6435 ac_path_SED_max=$ac_count
6437 # 10*(2^10) chars as input seems more than enough
6438 test $ac_count -gt 10 && break
6439 done
6440 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6441 esac
6443 $ac_path_SED_found && break 3
6444 done
6445 done
6446 done
6447 IFS=$as_save_IFS
6448 if test -z "$ac_cv_path_SED"; then
6449 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6451 else
6452 ac_cv_path_SED=$SED
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6457 $as_echo "$ac_cv_path_SED" >&6; }
6458 SED="$ac_cv_path_SED"
6459 rm -f conftest.sed
6461 test -z "$SED" && SED=sed
6462 Xsed="$SED -e 1s/^X//"
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6475 $as_echo_n "checking for fgrep... " >&6; }
6476 if ${ac_cv_path_FGREP+:} false; then :
6477 $as_echo_n "(cached) " >&6
6478 else
6479 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6480 then ac_cv_path_FGREP="$GREP -F"
6481 else
6482 if test -z "$FGREP"; then
6483 ac_path_FGREP_found=false
6484 # Loop through the user's path and test for each of PROGNAME-LIST
6485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6486 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6488 IFS=$as_save_IFS
6489 test -z "$as_dir" && as_dir=.
6490 for ac_prog in fgrep; do
6491 for ac_exec_ext in '' $ac_executable_extensions; do
6492 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6493 as_fn_executable_p "$ac_path_FGREP" || continue
6494 # Check for GNU ac_path_FGREP and select it if it is found.
6495 # Check for GNU $ac_path_FGREP
6496 case `"$ac_path_FGREP" --version 2>&1` in
6497 *GNU*)
6498 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6500 ac_count=0
6501 $as_echo_n 0123456789 >"conftest.in"
6502 while :
6504 cat "conftest.in" "conftest.in" >"conftest.tmp"
6505 mv "conftest.tmp" "conftest.in"
6506 cp "conftest.in" "conftest.nl"
6507 $as_echo 'FGREP' >> "conftest.nl"
6508 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6509 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6510 as_fn_arith $ac_count + 1 && ac_count=$as_val
6511 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6512 # Best one so far, save it but keep looking for a better one
6513 ac_cv_path_FGREP="$ac_path_FGREP"
6514 ac_path_FGREP_max=$ac_count
6516 # 10*(2^10) chars as input seems more than enough
6517 test $ac_count -gt 10 && break
6518 done
6519 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6520 esac
6522 $ac_path_FGREP_found && break 3
6523 done
6524 done
6525 done
6526 IFS=$as_save_IFS
6527 if test -z "$ac_cv_path_FGREP"; then
6528 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6530 else
6531 ac_cv_path_FGREP=$FGREP
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6537 $as_echo "$ac_cv_path_FGREP" >&6; }
6538 FGREP="$ac_cv_path_FGREP"
6541 test -z "$GREP" && GREP=grep
6561 # Check whether --with-gnu-ld was given.
6562 if test "${with_gnu_ld+set}" = set; then :
6563 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6564 else
6565 with_gnu_ld=no
6568 ac_prog=ld
6569 if test "$GCC" = yes; then
6570 # Check if gcc -print-prog-name=ld gives a path.
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6572 $as_echo_n "checking for ld used by $CC... " >&6; }
6573 case $host in
6574 *-*-mingw*)
6575 # gcc leaves a trailing carriage return which upsets mingw
6576 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6578 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6579 esac
6580 case $ac_prog in
6581 # Accept absolute paths.
6582 [\\/]* | ?:[\\/]*)
6583 re_direlt='/[^/][^/]*/\.\./'
6584 # Canonicalize the pathname of ld
6585 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6586 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6587 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6588 done
6589 test -z "$LD" && LD="$ac_prog"
6592 # If it fails, then pretend we aren't using GCC.
6593 ac_prog=ld
6596 # If it is relative, then search for the first ld in PATH.
6597 with_gnu_ld=unknown
6599 esac
6600 elif test "$with_gnu_ld" = yes; then
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6602 $as_echo_n "checking for GNU ld... " >&6; }
6603 else
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6605 $as_echo_n "checking for non-GNU ld... " >&6; }
6607 if ${lt_cv_path_LD+:} false; then :
6608 $as_echo_n "(cached) " >&6
6609 else
6610 if test -z "$LD"; then
6611 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6612 for ac_dir in $PATH; do
6613 IFS="$lt_save_ifs"
6614 test -z "$ac_dir" && ac_dir=.
6615 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6616 lt_cv_path_LD="$ac_dir/$ac_prog"
6617 # Check to see if the program is GNU ld. I'd rather use --version,
6618 # but apparently some variants of GNU ld only accept -v.
6619 # Break only if it was the GNU/non-GNU ld that we prefer.
6620 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6621 *GNU* | *'with BFD'*)
6622 test "$with_gnu_ld" != no && break
6625 test "$with_gnu_ld" != yes && break
6627 esac
6629 done
6630 IFS="$lt_save_ifs"
6631 else
6632 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6636 LD="$lt_cv_path_LD"
6637 if test -n "$LD"; then
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6639 $as_echo "$LD" >&6; }
6640 else
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6642 $as_echo "no" >&6; }
6644 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6646 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6647 if ${lt_cv_prog_gnu_ld+:} false; then :
6648 $as_echo_n "(cached) " >&6
6649 else
6650 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6651 case `$LD -v 2>&1 </dev/null` in
6652 *GNU* | *'with BFD'*)
6653 lt_cv_prog_gnu_ld=yes
6656 lt_cv_prog_gnu_ld=no
6658 esac
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6661 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6662 with_gnu_ld=$lt_cv_prog_gnu_ld
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6673 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6674 if ${lt_cv_path_NM+:} false; then :
6675 $as_echo_n "(cached) " >&6
6676 else
6677 if test -n "$NM"; then
6678 # Let the user override the nm to test.
6679 lt_nm_to_check="$NM"
6680 else
6681 lt_nm_to_check="${ac_tool_prefix}nm"
6682 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6683 lt_nm_to_check="$lt_nm_to_check nm"
6686 for lt_tmp_nm in "$lt_nm_to_check"; do
6687 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6688 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6689 IFS="$lt_save_ifs"
6690 test -z "$ac_dir" && ac_dir=.
6691 # Strip out any user-provided options from the nm to test twice,
6692 # the first time to test to see if nm (rather than its options) has
6693 # an explicit path, the second time to yield a file which can be
6694 # nm'ed itself.
6695 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
6696 case "$tmp_nm_path" in
6697 */*|*\\*) tmp_nm="$lt_tmp_nm";;
6698 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
6699 esac
6700 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
6701 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
6702 # Check to see if the nm accepts a BSD-compat flag.
6703 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6704 # nm: unknown option "B" ignored
6705 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
6706 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
6707 break
6710 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
6711 *$tmp_nm*)
6712 lt_cv_path_NM="$tmp_nm -p"
6713 break
6716 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6717 continue # so that we can try to find one that supports BSD flags
6719 esac
6721 esac
6723 done
6724 IFS="$lt_save_ifs"
6725 done
6726 : ${lt_cv_path_NM=no}
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6729 $as_echo "$lt_cv_path_NM" >&6; }
6730 if test "$lt_cv_path_NM" != "no"; then
6731 NM="$lt_cv_path_NM"
6732 else
6733 # Didn't find any BSD compatible name lister, look for dumpbin.
6734 if test -n "$DUMPBIN"; then :
6735 # Let the user override the test.
6736 else
6737 if test -n "$ac_tool_prefix"; then
6738 for ac_prog in dumpbin "link -dump"
6740 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6741 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6743 $as_echo_n "checking for $ac_word... " >&6; }
6744 if ${ac_cv_prog_DUMPBIN+:} false; then :
6745 $as_echo_n "(cached) " >&6
6746 else
6747 if test -n "$DUMPBIN"; then
6748 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6749 else
6750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6751 for as_dir in $PATH
6753 IFS=$as_save_IFS
6754 test -z "$as_dir" && as_dir=.
6755 for ac_exec_ext in '' $ac_executable_extensions; do
6756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6757 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6759 break 2
6761 done
6762 done
6763 IFS=$as_save_IFS
6767 DUMPBIN=$ac_cv_prog_DUMPBIN
6768 if test -n "$DUMPBIN"; then
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6770 $as_echo "$DUMPBIN" >&6; }
6771 else
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6773 $as_echo "no" >&6; }
6777 test -n "$DUMPBIN" && break
6778 done
6780 if test -z "$DUMPBIN"; then
6781 ac_ct_DUMPBIN=$DUMPBIN
6782 for ac_prog in dumpbin "link -dump"
6784 # Extract the first word of "$ac_prog", so it can be a program name with args.
6785 set dummy $ac_prog; ac_word=$2
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6787 $as_echo_n "checking for $ac_word... " >&6; }
6788 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6789 $as_echo_n "(cached) " >&6
6790 else
6791 if test -n "$ac_ct_DUMPBIN"; then
6792 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6793 else
6794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6795 for as_dir in $PATH
6797 IFS=$as_save_IFS
6798 test -z "$as_dir" && as_dir=.
6799 for ac_exec_ext in '' $ac_executable_extensions; do
6800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6801 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6803 break 2
6805 done
6806 done
6807 IFS=$as_save_IFS
6811 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6812 if test -n "$ac_ct_DUMPBIN"; then
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6814 $as_echo "$ac_ct_DUMPBIN" >&6; }
6815 else
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6817 $as_echo "no" >&6; }
6821 test -n "$ac_ct_DUMPBIN" && break
6822 done
6824 if test "x$ac_ct_DUMPBIN" = x; then
6825 DUMPBIN=":"
6826 else
6827 case $cross_compiling:$ac_tool_warned in
6828 yes:)
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6830 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6831 ac_tool_warned=yes ;;
6832 esac
6833 DUMPBIN=$ac_ct_DUMPBIN
6837 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6838 *COFF*)
6839 DUMPBIN="$DUMPBIN -symbols"
6842 DUMPBIN=:
6844 esac
6847 if test "$DUMPBIN" != ":"; then
6848 NM="$DUMPBIN"
6851 test -z "$NM" && NM=nm
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6859 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6860 if ${lt_cv_nm_interface+:} false; then :
6861 $as_echo_n "(cached) " >&6
6862 else
6863 lt_cv_nm_interface="BSD nm"
6864 echo "int some_variable = 0;" > conftest.$ac_ext
6865 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6866 (eval "$ac_compile" 2>conftest.err)
6867 cat conftest.err >&5
6868 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6869 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6870 cat conftest.err >&5
6871 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6872 cat conftest.out >&5
6873 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6874 lt_cv_nm_interface="MS dumpbin"
6876 rm -f conftest*
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6879 $as_echo "$lt_cv_nm_interface" >&6; }
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6882 $as_echo_n "checking whether ln -s works... " >&6; }
6883 LN_S=$as_ln_s
6884 if test "$LN_S" = "ln -s"; then
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6886 $as_echo "yes" >&6; }
6887 else
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6889 $as_echo "no, using $LN_S" >&6; }
6892 # find the maximum length of command line arguments
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6894 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6895 if ${lt_cv_sys_max_cmd_len+:} false; then :
6896 $as_echo_n "(cached) " >&6
6897 else
6899 teststring="ABCD"
6901 case $build_os in
6902 msdosdjgpp*)
6903 # On DJGPP, this test can blow up pretty badly due to problems in libc
6904 # (any single argument exceeding 2000 bytes causes a buffer overrun
6905 # during glob expansion). Even if it were fixed, the result of this
6906 # check would be larger than it should be.
6907 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6910 gnu*)
6911 # Under GNU Hurd, this test is not required because there is
6912 # no limit to the length of command line arguments.
6913 # Libtool will interpret -1 as no limit whatsoever
6914 lt_cv_sys_max_cmd_len=-1;
6917 cygwin* | mingw* | cegcc*)
6918 # On Win9x/ME, this test blows up -- it succeeds, but takes
6919 # about 5 minutes as the teststring grows exponentially.
6920 # Worse, since 9x/ME are not pre-emptively multitasking,
6921 # you end up with a "frozen" computer, even though with patience
6922 # the test eventually succeeds (with a max line length of 256k).
6923 # Instead, let's just punt: use the minimum linelength reported by
6924 # all of the supported platforms: 8192 (on NT/2K/XP).
6925 lt_cv_sys_max_cmd_len=8192;
6928 mint*)
6929 # On MiNT this can take a long time and run out of memory.
6930 lt_cv_sys_max_cmd_len=8192;
6933 amigaos*)
6934 # On AmigaOS with pdksh, this test takes hours, literally.
6935 # So we just punt and use a minimum line length of 8192.
6936 lt_cv_sys_max_cmd_len=8192;
6939 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6940 # This has been around since 386BSD, at least. Likely further.
6941 if test -x /sbin/sysctl; then
6942 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6943 elif test -x /usr/sbin/sysctl; then
6944 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6945 else
6946 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6948 # And add a safety zone
6949 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6950 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6953 interix*)
6954 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6955 lt_cv_sys_max_cmd_len=196608
6958 osf*)
6959 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6960 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6961 # nice to cause kernel panics so lets avoid the loop below.
6962 # First set a reasonable default.
6963 lt_cv_sys_max_cmd_len=16384
6965 if test -x /sbin/sysconfig; then
6966 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6967 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6968 esac
6971 sco3.2v5*)
6972 lt_cv_sys_max_cmd_len=102400
6974 sysv5* | sco5v6* | sysv4.2uw2*)
6975 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6976 if test -n "$kargmax"; then
6977 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6978 else
6979 lt_cv_sys_max_cmd_len=32768
6983 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6984 if test -n "$lt_cv_sys_max_cmd_len"; then
6985 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6986 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6987 else
6988 # Make teststring a little bigger before we do anything with it.
6989 # a 1K string should be a reasonable start.
6990 for i in 1 2 3 4 5 6 7 8 ; do
6991 teststring=$teststring$teststring
6992 done
6993 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6994 # If test is not a shell built-in, we'll probably end up computing a
6995 # maximum length that is only half of the actual maximum length, but
6996 # we can't tell.
6997 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6998 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6999 test $i != 17 # 1/2 MB should be enough
7001 i=`expr $i + 1`
7002 teststring=$teststring$teststring
7003 done
7004 # Only check the string length outside the loop.
7005 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7006 teststring=
7007 # Add a significant safety factor because C++ compilers can tack on
7008 # massive amounts of additional arguments before passing them to the
7009 # linker. It appears as though 1/2 is a usable value.
7010 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7013 esac
7017 if test -n $lt_cv_sys_max_cmd_len ; then
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7019 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7020 else
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7022 $as_echo "none" >&6; }
7024 max_cmd_len=$lt_cv_sys_max_cmd_len
7031 : ${CP="cp -f"}
7032 : ${MV="mv -f"}
7033 : ${RM="rm -f"}
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7036 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7037 # Try some XSI features
7038 xsi_shell=no
7039 ( _lt_dummy="a/b/c"
7040 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7041 = c,a/b,, \
7042 && eval 'test $(( 1 + 1 )) -eq 2 \
7043 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7044 && xsi_shell=yes
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7046 $as_echo "$xsi_shell" >&6; }
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7050 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7051 lt_shell_append=no
7052 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7053 >/dev/null 2>&1 \
7054 && lt_shell_append=yes
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7056 $as_echo "$lt_shell_append" >&6; }
7059 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7060 lt_unset=unset
7061 else
7062 lt_unset=false
7069 # test EBCDIC or ASCII
7070 case `echo X|tr X '\101'` in
7071 A) # ASCII based system
7072 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7073 lt_SP2NL='tr \040 \012'
7074 lt_NL2SP='tr \015\012 \040\040'
7076 *) # EBCDIC based system
7077 lt_SP2NL='tr \100 \n'
7078 lt_NL2SP='tr \r\n \100\100'
7080 esac
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7091 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7092 if ${lt_cv_ld_reload_flag+:} false; then :
7093 $as_echo_n "(cached) " >&6
7094 else
7095 lt_cv_ld_reload_flag='-r'
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7098 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7099 reload_flag=$lt_cv_ld_reload_flag
7100 case $reload_flag in
7101 "" | " "*) ;;
7102 *) reload_flag=" $reload_flag" ;;
7103 esac
7104 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7105 case $host_os in
7106 darwin*)
7107 if test "$GCC" = yes; then
7108 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7109 else
7110 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7113 esac
7123 if test -n "$ac_tool_prefix"; then
7124 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7125 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7127 $as_echo_n "checking for $ac_word... " >&6; }
7128 if ${ac_cv_prog_OBJDUMP+:} false; then :
7129 $as_echo_n "(cached) " >&6
7130 else
7131 if test -n "$OBJDUMP"; then
7132 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7133 else
7134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7135 for as_dir in $PATH
7137 IFS=$as_save_IFS
7138 test -z "$as_dir" && as_dir=.
7139 for ac_exec_ext in '' $ac_executable_extensions; do
7140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7141 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7143 break 2
7145 done
7146 done
7147 IFS=$as_save_IFS
7151 OBJDUMP=$ac_cv_prog_OBJDUMP
7152 if test -n "$OBJDUMP"; then
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7154 $as_echo "$OBJDUMP" >&6; }
7155 else
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7157 $as_echo "no" >&6; }
7162 if test -z "$ac_cv_prog_OBJDUMP"; then
7163 ac_ct_OBJDUMP=$OBJDUMP
7164 # Extract the first word of "objdump", so it can be a program name with args.
7165 set dummy objdump; ac_word=$2
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7167 $as_echo_n "checking for $ac_word... " >&6; }
7168 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7169 $as_echo_n "(cached) " >&6
7170 else
7171 if test -n "$ac_ct_OBJDUMP"; then
7172 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7173 else
7174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7175 for as_dir in $PATH
7177 IFS=$as_save_IFS
7178 test -z "$as_dir" && as_dir=.
7179 for ac_exec_ext in '' $ac_executable_extensions; do
7180 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7181 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7183 break 2
7185 done
7186 done
7187 IFS=$as_save_IFS
7191 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7192 if test -n "$ac_ct_OBJDUMP"; then
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7194 $as_echo "$ac_ct_OBJDUMP" >&6; }
7195 else
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7197 $as_echo "no" >&6; }
7200 if test "x$ac_ct_OBJDUMP" = x; then
7201 OBJDUMP="false"
7202 else
7203 case $cross_compiling:$ac_tool_warned in
7204 yes:)
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7206 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7207 ac_tool_warned=yes ;;
7208 esac
7209 OBJDUMP=$ac_ct_OBJDUMP
7211 else
7212 OBJDUMP="$ac_cv_prog_OBJDUMP"
7215 test -z "$OBJDUMP" && OBJDUMP=objdump
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7226 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7227 if ${lt_cv_deplibs_check_method+:} false; then :
7228 $as_echo_n "(cached) " >&6
7229 else
7230 lt_cv_file_magic_cmd='$MAGIC_CMD'
7231 lt_cv_file_magic_test_file=
7232 lt_cv_deplibs_check_method='unknown'
7233 # Need to set the preceding variable on all platforms that support
7234 # interlibrary dependencies.
7235 # 'none' -- dependencies not supported.
7236 # `unknown' -- same as none, but documents that we really don't know.
7237 # 'pass_all' -- all dependencies passed with no checks.
7238 # 'test_compile' -- check by making test program.
7239 # 'file_magic [[regex]]' -- check by looking for files in library path
7240 # which responds to the $file_magic_cmd with a given extended regex.
7241 # If you have `file' or equivalent on your system and you're not sure
7242 # whether `pass_all' will *always* work, you probably want this one.
7244 case $host_os in
7245 aix[4-9]*)
7246 lt_cv_deplibs_check_method=pass_all
7249 beos*)
7250 lt_cv_deplibs_check_method=pass_all
7253 bsdi[45]*)
7254 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7255 lt_cv_file_magic_cmd='/usr/bin/file -L'
7256 lt_cv_file_magic_test_file=/shlib/libc.so
7259 cygwin*)
7260 # func_win32_libid is a shell function defined in ltmain.sh
7261 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7262 lt_cv_file_magic_cmd='func_win32_libid'
7265 mingw* | pw32*)
7266 # Base MSYS/MinGW do not provide the 'file' command needed by
7267 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7268 # unless we find 'file', for example because we are cross-compiling.
7269 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7270 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7271 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7272 lt_cv_file_magic_cmd='func_win32_libid'
7273 else
7274 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7275 lt_cv_file_magic_cmd='$OBJDUMP -f'
7279 cegcc*)
7280 # use the weaker test based on 'objdump'. See mingw*.
7281 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7282 lt_cv_file_magic_cmd='$OBJDUMP -f'
7285 darwin* | rhapsody*)
7286 lt_cv_deplibs_check_method=pass_all
7289 freebsd* | dragonfly*)
7290 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7291 case $host_cpu in
7292 i*86 )
7293 # Not sure whether the presence of OpenBSD here was a mistake.
7294 # Let's accept both of them until this is cleared up.
7295 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7296 lt_cv_file_magic_cmd=/usr/bin/file
7297 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7299 esac
7300 else
7301 lt_cv_deplibs_check_method=pass_all
7305 gnu*)
7306 lt_cv_deplibs_check_method=pass_all
7309 haiku*)
7310 lt_cv_deplibs_check_method=pass_all
7313 hpux10.20* | hpux11*)
7314 lt_cv_file_magic_cmd=/usr/bin/file
7315 case $host_cpu in
7316 ia64*)
7317 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7318 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7320 hppa*64*)
7321 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]'
7322 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7325 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7326 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7328 esac
7331 interix[3-9]*)
7332 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7333 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7336 irix5* | irix6* | nonstopux*)
7337 case $LD in
7338 *-32|*"-32 ") libmagic=32-bit;;
7339 *-n32|*"-n32 ") libmagic=N32;;
7340 *-64|*"-64 ") libmagic=64-bit;;
7341 *) libmagic=never-match;;
7342 esac
7343 lt_cv_deplibs_check_method=pass_all
7346 # This must be Linux ELF.
7347 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
7348 lt_cv_deplibs_check_method=pass_all
7351 netbsd*)
7352 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7353 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7354 else
7355 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7359 newos6*)
7360 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7361 lt_cv_file_magic_cmd=/usr/bin/file
7362 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7365 *nto* | *qnx*)
7366 lt_cv_deplibs_check_method=pass_all
7369 openbsd*)
7370 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7371 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7372 else
7373 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7377 osf3* | osf4* | osf5*)
7378 lt_cv_deplibs_check_method=pass_all
7381 rdos*)
7382 lt_cv_deplibs_check_method=pass_all
7385 solaris*)
7386 lt_cv_deplibs_check_method=pass_all
7389 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7390 lt_cv_deplibs_check_method=pass_all
7393 sysv4 | sysv4.3*)
7394 case $host_vendor in
7395 motorola)
7396 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]'
7397 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7399 ncr)
7400 lt_cv_deplibs_check_method=pass_all
7402 sequent)
7403 lt_cv_file_magic_cmd='/bin/file'
7404 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7406 sni)
7407 lt_cv_file_magic_cmd='/bin/file'
7408 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7409 lt_cv_file_magic_test_file=/lib/libc.so
7411 siemens)
7412 lt_cv_deplibs_check_method=pass_all
7415 lt_cv_deplibs_check_method=pass_all
7417 esac
7420 tpf*)
7421 lt_cv_deplibs_check_method=pass_all
7423 vxworks*)
7424 # Assume VxWorks cross toolchains are built on Linux, possibly
7425 # as canadian for Windows hosts.
7426 lt_cv_deplibs_check_method=pass_all
7428 esac
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7432 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7433 file_magic_cmd=$lt_cv_file_magic_cmd
7434 deplibs_check_method=$lt_cv_deplibs_check_method
7435 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7448 plugin_option=
7449 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
7450 for plugin in $plugin_names; do
7451 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
7452 if test x$plugin_so = x$plugin; then
7453 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
7455 if test x$plugin_so != x$plugin; then
7456 plugin_option="--plugin $plugin_so"
7457 break
7459 done
7461 if test -n "$ac_tool_prefix"; then
7462 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7463 set dummy ${ac_tool_prefix}ar; ac_word=$2
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7465 $as_echo_n "checking for $ac_word... " >&6; }
7466 if ${ac_cv_prog_AR+:} false; then :
7467 $as_echo_n "(cached) " >&6
7468 else
7469 if test -n "$AR"; then
7470 ac_cv_prog_AR="$AR" # Let the user override the test.
7471 else
7472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7473 for as_dir in $PATH
7475 IFS=$as_save_IFS
7476 test -z "$as_dir" && as_dir=.
7477 for ac_exec_ext in '' $ac_executable_extensions; do
7478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7479 ac_cv_prog_AR="${ac_tool_prefix}ar"
7480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7481 break 2
7483 done
7484 done
7485 IFS=$as_save_IFS
7489 AR=$ac_cv_prog_AR
7490 if test -n "$AR"; then
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7492 $as_echo "$AR" >&6; }
7493 else
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7495 $as_echo "no" >&6; }
7500 if test -z "$ac_cv_prog_AR"; then
7501 ac_ct_AR=$AR
7502 # Extract the first word of "ar", so it can be a program name with args.
7503 set dummy ar; ac_word=$2
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7505 $as_echo_n "checking for $ac_word... " >&6; }
7506 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7507 $as_echo_n "(cached) " >&6
7508 else
7509 if test -n "$ac_ct_AR"; then
7510 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7511 else
7512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7513 for as_dir in $PATH
7515 IFS=$as_save_IFS
7516 test -z "$as_dir" && as_dir=.
7517 for ac_exec_ext in '' $ac_executable_extensions; do
7518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7519 ac_cv_prog_ac_ct_AR="ar"
7520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7521 break 2
7523 done
7524 done
7525 IFS=$as_save_IFS
7529 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7530 if test -n "$ac_ct_AR"; then
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7532 $as_echo "$ac_ct_AR" >&6; }
7533 else
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7535 $as_echo "no" >&6; }
7538 if test "x$ac_ct_AR" = x; then
7539 AR="false"
7540 else
7541 case $cross_compiling:$ac_tool_warned in
7542 yes:)
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7544 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7545 ac_tool_warned=yes ;;
7546 esac
7547 AR=$ac_ct_AR
7549 else
7550 AR="$ac_cv_prog_AR"
7553 test -z "$AR" && AR=ar
7554 if test -n "$plugin_option"; then
7555 if $AR --help 2>&1 | grep -q "\--plugin"; then
7556 touch conftest.c
7557 $AR $plugin_option rc conftest.a conftest.c
7558 if test "$?" != 0; then
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
7560 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
7561 else
7562 AR="$AR $plugin_option"
7564 rm -f conftest.*
7567 test -z "$AR_FLAGS" && AR_FLAGS=cru
7579 if test -n "$ac_tool_prefix"; then
7580 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7581 set dummy ${ac_tool_prefix}strip; ac_word=$2
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7583 $as_echo_n "checking for $ac_word... " >&6; }
7584 if ${ac_cv_prog_STRIP+:} false; then :
7585 $as_echo_n "(cached) " >&6
7586 else
7587 if test -n "$STRIP"; then
7588 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7589 else
7590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7591 for as_dir in $PATH
7593 IFS=$as_save_IFS
7594 test -z "$as_dir" && as_dir=.
7595 for ac_exec_ext in '' $ac_executable_extensions; do
7596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7597 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7599 break 2
7601 done
7602 done
7603 IFS=$as_save_IFS
7607 STRIP=$ac_cv_prog_STRIP
7608 if test -n "$STRIP"; then
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7610 $as_echo "$STRIP" >&6; }
7611 else
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7613 $as_echo "no" >&6; }
7618 if test -z "$ac_cv_prog_STRIP"; then
7619 ac_ct_STRIP=$STRIP
7620 # Extract the first word of "strip", so it can be a program name with args.
7621 set dummy strip; ac_word=$2
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7623 $as_echo_n "checking for $ac_word... " >&6; }
7624 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7625 $as_echo_n "(cached) " >&6
7626 else
7627 if test -n "$ac_ct_STRIP"; then
7628 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7629 else
7630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7631 for as_dir in $PATH
7633 IFS=$as_save_IFS
7634 test -z "$as_dir" && as_dir=.
7635 for ac_exec_ext in '' $ac_executable_extensions; do
7636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7637 ac_cv_prog_ac_ct_STRIP="strip"
7638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7639 break 2
7641 done
7642 done
7643 IFS=$as_save_IFS
7647 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7648 if test -n "$ac_ct_STRIP"; then
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7650 $as_echo "$ac_ct_STRIP" >&6; }
7651 else
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7653 $as_echo "no" >&6; }
7656 if test "x$ac_ct_STRIP" = x; then
7657 STRIP=":"
7658 else
7659 case $cross_compiling:$ac_tool_warned in
7660 yes:)
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7662 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7663 ac_tool_warned=yes ;;
7664 esac
7665 STRIP=$ac_ct_STRIP
7667 else
7668 STRIP="$ac_cv_prog_STRIP"
7671 test -z "$STRIP" && STRIP=:
7678 if test -n "$ac_tool_prefix"; then
7679 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7680 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7682 $as_echo_n "checking for $ac_word... " >&6; }
7683 if ${ac_cv_prog_RANLIB+:} false; then :
7684 $as_echo_n "(cached) " >&6
7685 else
7686 if test -n "$RANLIB"; then
7687 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7688 else
7689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7690 for as_dir in $PATH
7692 IFS=$as_save_IFS
7693 test -z "$as_dir" && as_dir=.
7694 for ac_exec_ext in '' $ac_executable_extensions; do
7695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7696 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7698 break 2
7700 done
7701 done
7702 IFS=$as_save_IFS
7706 RANLIB=$ac_cv_prog_RANLIB
7707 if test -n "$RANLIB"; then
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7709 $as_echo "$RANLIB" >&6; }
7710 else
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7712 $as_echo "no" >&6; }
7717 if test -z "$ac_cv_prog_RANLIB"; then
7718 ac_ct_RANLIB=$RANLIB
7719 # Extract the first word of "ranlib", so it can be a program name with args.
7720 set dummy ranlib; ac_word=$2
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7722 $as_echo_n "checking for $ac_word... " >&6; }
7723 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7724 $as_echo_n "(cached) " >&6
7725 else
7726 if test -n "$ac_ct_RANLIB"; then
7727 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7728 else
7729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7730 for as_dir in $PATH
7732 IFS=$as_save_IFS
7733 test -z "$as_dir" && as_dir=.
7734 for ac_exec_ext in '' $ac_executable_extensions; do
7735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7736 ac_cv_prog_ac_ct_RANLIB="ranlib"
7737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7738 break 2
7740 done
7741 done
7742 IFS=$as_save_IFS
7746 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7747 if test -n "$ac_ct_RANLIB"; then
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7749 $as_echo "$ac_ct_RANLIB" >&6; }
7750 else
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7752 $as_echo "no" >&6; }
7755 if test "x$ac_ct_RANLIB" = x; then
7756 RANLIB=":"
7757 else
7758 case $cross_compiling:$ac_tool_warned in
7759 yes:)
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7761 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7762 ac_tool_warned=yes ;;
7763 esac
7764 RANLIB=$ac_ct_RANLIB
7766 else
7767 RANLIB="$ac_cv_prog_RANLIB"
7770 test -z "$RANLIB" && RANLIB=:
7771 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
7772 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
7773 RANLIB="$RANLIB $plugin_option"
7782 # Determine commands to create old-style static archives.
7783 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7784 old_postinstall_cmds='chmod 644 $oldlib'
7785 old_postuninstall_cmds=
7787 if test -n "$RANLIB"; then
7788 case $host_os in
7789 openbsd*)
7790 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7793 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7795 esac
7796 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7799 case $host_os in
7800 darwin*)
7801 lock_old_archive_extraction=yes ;;
7803 lock_old_archive_extraction=no ;;
7804 esac
7844 # If no C compiler was specified, use CC.
7845 LTCC=${LTCC-"$CC"}
7847 # If no C compiler flags were specified, use CFLAGS.
7848 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7850 # Allow CC to be a program name with arguments.
7851 compiler=$CC
7854 # Check for command to grab the raw symbol name followed by C symbol from nm.
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7856 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7857 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7858 $as_echo_n "(cached) " >&6
7859 else
7861 # These are sane defaults that work on at least a few old systems.
7862 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7864 # Character class describing NM global symbol codes.
7865 symcode='[BCDEGRST]'
7867 # Regexp to match symbols that can be accessed directly from C.
7868 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7870 # Define system-specific variables.
7871 case $host_os in
7872 aix*)
7873 symcode='[BCDT]'
7875 cygwin* | mingw* | pw32* | cegcc*)
7876 symcode='[ABCDGISTW]'
7878 hpux*)
7879 if test "$host_cpu" = ia64; then
7880 symcode='[ABCDEGRST]'
7883 irix* | nonstopux*)
7884 symcode='[BCDEGRST]'
7886 osf*)
7887 symcode='[BCDEGQRST]'
7889 solaris*)
7890 symcode='[BCDRT]'
7892 sco3.2v5*)
7893 symcode='[DT]'
7895 sysv4.2uw2*)
7896 symcode='[DT]'
7898 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7899 symcode='[ABDT]'
7901 sysv4)
7902 symcode='[DFNSTU]'
7904 esac
7906 # If we're using GNU nm, then use its standard symbol codes.
7907 case `$NM -V 2>&1` in
7908 *GNU* | *'with BFD'*)
7909 symcode='[ABCDGIRSTW]' ;;
7910 esac
7912 # Transform an extracted symbol line into a proper C declaration.
7913 # Some systems (esp. on ia64) link data and code symbols differently,
7914 # so use this general approach.
7915 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7917 # Transform an extracted symbol line into symbol name and symbol address
7918 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7919 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'"
7921 # Handle CRLF in mingw tool chain
7922 opt_cr=
7923 case $build_os in
7924 mingw*)
7925 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7927 esac
7929 # Try without a prefix underscore, then with it.
7930 for ac_symprfx in "" "_"; do
7932 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7933 symxfrm="\\1 $ac_symprfx\\2 \\2"
7935 # Write the raw and C identifiers.
7936 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7937 # Fake it for dumpbin and say T for any non-static function
7938 # and D for any global variable.
7939 # Also find C++ and __fastcall symbols from MSVC++,
7940 # which start with @ or ?.
7941 lt_cv_sys_global_symbol_pipe="$AWK '"\
7942 " {last_section=section; section=\$ 3};"\
7943 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7944 " \$ 0!~/External *\|/{next};"\
7945 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7946 " {if(hide[section]) next};"\
7947 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7948 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7949 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7950 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7951 " ' prfx=^$ac_symprfx"
7952 else
7953 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7956 # Check to see that the pipe works correctly.
7957 pipe_works=no
7959 rm -f conftest*
7960 cat > conftest.$ac_ext <<_LT_EOF
7961 #ifdef __cplusplus
7962 extern "C" {
7963 #endif
7964 char nm_test_var;
7965 void nm_test_func(void);
7966 void nm_test_func(void){}
7967 #ifdef __cplusplus
7969 #endif
7970 int main(){nm_test_var='a';nm_test_func();return(0);}
7971 _LT_EOF
7973 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7974 (eval $ac_compile) 2>&5
7975 ac_status=$?
7976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7977 test $ac_status = 0; }; then
7978 # Now try to grab the symbols.
7979 nlist=conftest.nm
7980 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7981 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7982 ac_status=$?
7983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7984 test $ac_status = 0; } && test -s "$nlist"; then
7985 # Try sorting and uniquifying the output.
7986 if sort "$nlist" | uniq > "$nlist"T; then
7987 mv -f "$nlist"T "$nlist"
7988 else
7989 rm -f "$nlist"T
7992 # Make sure that we snagged all the symbols we need.
7993 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7994 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7995 cat <<_LT_EOF > conftest.$ac_ext
7996 #ifdef __cplusplus
7997 extern "C" {
7998 #endif
8000 _LT_EOF
8001 # Now generate the symbol file.
8002 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8004 cat <<_LT_EOF >> conftest.$ac_ext
8006 /* The mapping between symbol names and symbols. */
8007 const struct {
8008 const char *name;
8009 void *address;
8011 lt__PROGRAM__LTX_preloaded_symbols[] =
8013 { "@PROGRAM@", (void *) 0 },
8014 _LT_EOF
8015 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8016 cat <<\_LT_EOF >> conftest.$ac_ext
8017 {0, (void *) 0}
8020 /* This works around a problem in FreeBSD linker */
8021 #ifdef FREEBSD_WORKAROUND
8022 static const void *lt_preloaded_setup() {
8023 return lt__PROGRAM__LTX_preloaded_symbols;
8025 #endif
8027 #ifdef __cplusplus
8029 #endif
8030 _LT_EOF
8031 # Now try linking the two files.
8032 mv conftest.$ac_objext conftstm.$ac_objext
8033 lt_save_LIBS="$LIBS"
8034 lt_save_CFLAGS="$CFLAGS"
8035 LIBS="conftstm.$ac_objext"
8036 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8037 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8038 (eval $ac_link) 2>&5
8039 ac_status=$?
8040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8041 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8042 pipe_works=yes
8044 LIBS="$lt_save_LIBS"
8045 CFLAGS="$lt_save_CFLAGS"
8046 else
8047 echo "cannot find nm_test_func in $nlist" >&5
8049 else
8050 echo "cannot find nm_test_var in $nlist" >&5
8052 else
8053 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8055 else
8056 echo "$progname: failed program was:" >&5
8057 cat conftest.$ac_ext >&5
8059 rm -rf conftest* conftst*
8061 # Do not use the global_symbol_pipe unless it works.
8062 if test "$pipe_works" = yes; then
8063 break
8064 else
8065 lt_cv_sys_global_symbol_pipe=
8067 done
8071 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8072 lt_cv_sys_global_symbol_to_cdecl=
8074 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8076 $as_echo "failed" >&6; }
8077 else
8078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8079 $as_echo "ok" >&6; }
8103 # Check whether --enable-libtool-lock was given.
8104 if test "${enable_libtool_lock+set}" = set; then :
8105 enableval=$enable_libtool_lock;
8108 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8110 # Some flags need to be propagated to the compiler or linker for good
8111 # libtool support.
8112 case $host in
8113 ia64-*-hpux*)
8114 # Find out which ABI we are using.
8115 echo 'int i;' > conftest.$ac_ext
8116 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8117 (eval $ac_compile) 2>&5
8118 ac_status=$?
8119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8120 test $ac_status = 0; }; then
8121 case `/usr/bin/file conftest.$ac_objext` in
8122 *ELF-32*)
8123 HPUX_IA64_MODE="32"
8125 *ELF-64*)
8126 HPUX_IA64_MODE="64"
8128 esac
8130 rm -rf conftest*
8132 *-*-irix6*)
8133 # Find out which ABI we are using.
8134 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8135 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8136 (eval $ac_compile) 2>&5
8137 ac_status=$?
8138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8139 test $ac_status = 0; }; then
8140 if test "$lt_cv_prog_gnu_ld" = yes; then
8141 case `/usr/bin/file conftest.$ac_objext` in
8142 *32-bit*)
8143 LD="${LD-ld} -melf32bsmip"
8145 *N32*)
8146 LD="${LD-ld} -melf32bmipn32"
8148 *64-bit*)
8149 LD="${LD-ld} -melf64bmip"
8151 esac
8152 else
8153 case `/usr/bin/file conftest.$ac_objext` in
8154 *32-bit*)
8155 LD="${LD-ld} -32"
8157 *N32*)
8158 LD="${LD-ld} -n32"
8160 *64-bit*)
8161 LD="${LD-ld} -64"
8163 esac
8166 rm -rf conftest*
8169 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8170 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8171 # Find out which ABI we are using.
8172 echo 'int i;' > conftest.$ac_ext
8173 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8174 (eval $ac_compile) 2>&5
8175 ac_status=$?
8176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8177 test $ac_status = 0; }; then
8178 case `/usr/bin/file conftest.o` in
8179 *32-bit*)
8180 case $host in
8181 x86_64-*kfreebsd*-gnu)
8182 LD="${LD-ld} -m elf_i386_fbsd"
8184 x86_64-*linux*)
8185 case `/usr/bin/file conftest.o` in
8186 *x86-64*)
8187 LD="${LD-ld} -m elf32_x86_64"
8190 LD="${LD-ld} -m elf_i386"
8192 esac
8194 powerpc64le-*linux*)
8195 LD="${LD-ld} -m elf32lppclinux"
8197 powerpc64-*linux*)
8198 LD="${LD-ld} -m elf32ppclinux"
8200 s390x-*linux*)
8201 LD="${LD-ld} -m elf_s390"
8203 sparc64-*linux*)
8204 LD="${LD-ld} -m elf32_sparc"
8206 esac
8208 *64-bit*)
8209 case $host in
8210 x86_64-*kfreebsd*-gnu)
8211 LD="${LD-ld} -m elf_x86_64_fbsd"
8213 x86_64-*linux*)
8214 LD="${LD-ld} -m elf_x86_64"
8216 powerpcle-*linux*)
8217 LD="${LD-ld} -m elf64lppc"
8219 powerpc-*linux*)
8220 LD="${LD-ld} -m elf64ppc"
8222 s390*-*linux*|s390*-*tpf*)
8223 LD="${LD-ld} -m elf64_s390"
8225 sparc*-*linux*)
8226 LD="${LD-ld} -m elf64_sparc"
8228 esac
8230 esac
8232 rm -rf conftest*
8235 *-*-sco3.2v5*)
8236 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8237 SAVE_CFLAGS="$CFLAGS"
8238 CFLAGS="$CFLAGS -belf"
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8240 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8241 if ${lt_cv_cc_needs_belf+:} false; then :
8242 $as_echo_n "(cached) " >&6
8243 else
8244 ac_ext=c
8245 ac_cpp='$CPP $CPPFLAGS'
8246 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8247 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8248 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8251 /* end confdefs.h. */
8254 main ()
8258 return 0;
8260 _ACEOF
8261 if ac_fn_c_try_link "$LINENO"; then :
8262 lt_cv_cc_needs_belf=yes
8263 else
8264 lt_cv_cc_needs_belf=no
8266 rm -f core conftest.err conftest.$ac_objext \
8267 conftest$ac_exeext conftest.$ac_ext
8268 ac_ext=c
8269 ac_cpp='$CPP $CPPFLAGS'
8270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8276 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8277 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8278 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8279 CFLAGS="$SAVE_CFLAGS"
8282 sparc*-*solaris*)
8283 # Find out which ABI we are using.
8284 echo 'int i;' > conftest.$ac_ext
8285 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8286 (eval $ac_compile) 2>&5
8287 ac_status=$?
8288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8289 test $ac_status = 0; }; then
8290 case `/usr/bin/file conftest.o` in
8291 *64-bit*)
8292 case $lt_cv_prog_gnu_ld in
8293 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8295 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8296 LD="${LD-ld} -64"
8299 esac
8301 esac
8303 rm -rf conftest*
8305 esac
8307 need_locks="$enable_libtool_lock"
8310 case $host_os in
8311 rhapsody* | darwin*)
8312 if test -n "$ac_tool_prefix"; then
8313 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8314 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8316 $as_echo_n "checking for $ac_word... " >&6; }
8317 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8318 $as_echo_n "(cached) " >&6
8319 else
8320 if test -n "$DSYMUTIL"; then
8321 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8322 else
8323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8324 for as_dir in $PATH
8326 IFS=$as_save_IFS
8327 test -z "$as_dir" && as_dir=.
8328 for ac_exec_ext in '' $ac_executable_extensions; do
8329 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8330 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8332 break 2
8334 done
8335 done
8336 IFS=$as_save_IFS
8340 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8341 if test -n "$DSYMUTIL"; then
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8343 $as_echo "$DSYMUTIL" >&6; }
8344 else
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8346 $as_echo "no" >&6; }
8351 if test -z "$ac_cv_prog_DSYMUTIL"; then
8352 ac_ct_DSYMUTIL=$DSYMUTIL
8353 # Extract the first word of "dsymutil", so it can be a program name with args.
8354 set dummy dsymutil; ac_word=$2
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8356 $as_echo_n "checking for $ac_word... " >&6; }
8357 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8358 $as_echo_n "(cached) " >&6
8359 else
8360 if test -n "$ac_ct_DSYMUTIL"; then
8361 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8362 else
8363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8364 for as_dir in $PATH
8366 IFS=$as_save_IFS
8367 test -z "$as_dir" && as_dir=.
8368 for ac_exec_ext in '' $ac_executable_extensions; do
8369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8370 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8372 break 2
8374 done
8375 done
8376 IFS=$as_save_IFS
8380 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8381 if test -n "$ac_ct_DSYMUTIL"; then
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8383 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8384 else
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8386 $as_echo "no" >&6; }
8389 if test "x$ac_ct_DSYMUTIL" = x; then
8390 DSYMUTIL=":"
8391 else
8392 case $cross_compiling:$ac_tool_warned in
8393 yes:)
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8395 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8396 ac_tool_warned=yes ;;
8397 esac
8398 DSYMUTIL=$ac_ct_DSYMUTIL
8400 else
8401 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8404 if test -n "$ac_tool_prefix"; then
8405 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8406 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8408 $as_echo_n "checking for $ac_word... " >&6; }
8409 if ${ac_cv_prog_NMEDIT+:} false; then :
8410 $as_echo_n "(cached) " >&6
8411 else
8412 if test -n "$NMEDIT"; then
8413 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8414 else
8415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8416 for as_dir in $PATH
8418 IFS=$as_save_IFS
8419 test -z "$as_dir" && as_dir=.
8420 for ac_exec_ext in '' $ac_executable_extensions; do
8421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8422 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8424 break 2
8426 done
8427 done
8428 IFS=$as_save_IFS
8432 NMEDIT=$ac_cv_prog_NMEDIT
8433 if test -n "$NMEDIT"; then
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8435 $as_echo "$NMEDIT" >&6; }
8436 else
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8438 $as_echo "no" >&6; }
8443 if test -z "$ac_cv_prog_NMEDIT"; then
8444 ac_ct_NMEDIT=$NMEDIT
8445 # Extract the first word of "nmedit", so it can be a program name with args.
8446 set dummy nmedit; ac_word=$2
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8448 $as_echo_n "checking for $ac_word... " >&6; }
8449 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8450 $as_echo_n "(cached) " >&6
8451 else
8452 if test -n "$ac_ct_NMEDIT"; then
8453 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8454 else
8455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8456 for as_dir in $PATH
8458 IFS=$as_save_IFS
8459 test -z "$as_dir" && as_dir=.
8460 for ac_exec_ext in '' $ac_executable_extensions; do
8461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8462 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8464 break 2
8466 done
8467 done
8468 IFS=$as_save_IFS
8472 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8473 if test -n "$ac_ct_NMEDIT"; then
8474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8475 $as_echo "$ac_ct_NMEDIT" >&6; }
8476 else
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8478 $as_echo "no" >&6; }
8481 if test "x$ac_ct_NMEDIT" = x; then
8482 NMEDIT=":"
8483 else
8484 case $cross_compiling:$ac_tool_warned in
8485 yes:)
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8487 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8488 ac_tool_warned=yes ;;
8489 esac
8490 NMEDIT=$ac_ct_NMEDIT
8492 else
8493 NMEDIT="$ac_cv_prog_NMEDIT"
8496 if test -n "$ac_tool_prefix"; then
8497 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8498 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8500 $as_echo_n "checking for $ac_word... " >&6; }
8501 if ${ac_cv_prog_LIPO+:} false; then :
8502 $as_echo_n "(cached) " >&6
8503 else
8504 if test -n "$LIPO"; then
8505 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8506 else
8507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8508 for as_dir in $PATH
8510 IFS=$as_save_IFS
8511 test -z "$as_dir" && as_dir=.
8512 for ac_exec_ext in '' $ac_executable_extensions; do
8513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8514 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8516 break 2
8518 done
8519 done
8520 IFS=$as_save_IFS
8524 LIPO=$ac_cv_prog_LIPO
8525 if test -n "$LIPO"; then
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8527 $as_echo "$LIPO" >&6; }
8528 else
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8530 $as_echo "no" >&6; }
8535 if test -z "$ac_cv_prog_LIPO"; then
8536 ac_ct_LIPO=$LIPO
8537 # Extract the first word of "lipo", so it can be a program name with args.
8538 set dummy lipo; ac_word=$2
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8540 $as_echo_n "checking for $ac_word... " >&6; }
8541 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8542 $as_echo_n "(cached) " >&6
8543 else
8544 if test -n "$ac_ct_LIPO"; then
8545 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8546 else
8547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8548 for as_dir in $PATH
8550 IFS=$as_save_IFS
8551 test -z "$as_dir" && as_dir=.
8552 for ac_exec_ext in '' $ac_executable_extensions; do
8553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8554 ac_cv_prog_ac_ct_LIPO="lipo"
8555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8556 break 2
8558 done
8559 done
8560 IFS=$as_save_IFS
8564 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8565 if test -n "$ac_ct_LIPO"; then
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8567 $as_echo "$ac_ct_LIPO" >&6; }
8568 else
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8570 $as_echo "no" >&6; }
8573 if test "x$ac_ct_LIPO" = x; then
8574 LIPO=":"
8575 else
8576 case $cross_compiling:$ac_tool_warned in
8577 yes:)
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8579 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8580 ac_tool_warned=yes ;;
8581 esac
8582 LIPO=$ac_ct_LIPO
8584 else
8585 LIPO="$ac_cv_prog_LIPO"
8588 if test -n "$ac_tool_prefix"; then
8589 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8590 set dummy ${ac_tool_prefix}otool; ac_word=$2
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8592 $as_echo_n "checking for $ac_word... " >&6; }
8593 if ${ac_cv_prog_OTOOL+:} false; then :
8594 $as_echo_n "(cached) " >&6
8595 else
8596 if test -n "$OTOOL"; then
8597 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8598 else
8599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8600 for as_dir in $PATH
8602 IFS=$as_save_IFS
8603 test -z "$as_dir" && as_dir=.
8604 for ac_exec_ext in '' $ac_executable_extensions; do
8605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8606 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8608 break 2
8610 done
8611 done
8612 IFS=$as_save_IFS
8616 OTOOL=$ac_cv_prog_OTOOL
8617 if test -n "$OTOOL"; then
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8619 $as_echo "$OTOOL" >&6; }
8620 else
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8622 $as_echo "no" >&6; }
8627 if test -z "$ac_cv_prog_OTOOL"; then
8628 ac_ct_OTOOL=$OTOOL
8629 # Extract the first word of "otool", so it can be a program name with args.
8630 set dummy otool; ac_word=$2
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8632 $as_echo_n "checking for $ac_word... " >&6; }
8633 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8634 $as_echo_n "(cached) " >&6
8635 else
8636 if test -n "$ac_ct_OTOOL"; then
8637 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8638 else
8639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8640 for as_dir in $PATH
8642 IFS=$as_save_IFS
8643 test -z "$as_dir" && as_dir=.
8644 for ac_exec_ext in '' $ac_executable_extensions; do
8645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8646 ac_cv_prog_ac_ct_OTOOL="otool"
8647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8648 break 2
8650 done
8651 done
8652 IFS=$as_save_IFS
8656 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8657 if test -n "$ac_ct_OTOOL"; then
8658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8659 $as_echo "$ac_ct_OTOOL" >&6; }
8660 else
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8662 $as_echo "no" >&6; }
8665 if test "x$ac_ct_OTOOL" = x; then
8666 OTOOL=":"
8667 else
8668 case $cross_compiling:$ac_tool_warned in
8669 yes:)
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8671 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8672 ac_tool_warned=yes ;;
8673 esac
8674 OTOOL=$ac_ct_OTOOL
8676 else
8677 OTOOL="$ac_cv_prog_OTOOL"
8680 if test -n "$ac_tool_prefix"; then
8681 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8682 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8684 $as_echo_n "checking for $ac_word... " >&6; }
8685 if ${ac_cv_prog_OTOOL64+:} false; then :
8686 $as_echo_n "(cached) " >&6
8687 else
8688 if test -n "$OTOOL64"; then
8689 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8690 else
8691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8692 for as_dir in $PATH
8694 IFS=$as_save_IFS
8695 test -z "$as_dir" && as_dir=.
8696 for ac_exec_ext in '' $ac_executable_extensions; do
8697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8698 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8700 break 2
8702 done
8703 done
8704 IFS=$as_save_IFS
8708 OTOOL64=$ac_cv_prog_OTOOL64
8709 if test -n "$OTOOL64"; then
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8711 $as_echo "$OTOOL64" >&6; }
8712 else
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8714 $as_echo "no" >&6; }
8719 if test -z "$ac_cv_prog_OTOOL64"; then
8720 ac_ct_OTOOL64=$OTOOL64
8721 # Extract the first word of "otool64", so it can be a program name with args.
8722 set dummy otool64; ac_word=$2
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8724 $as_echo_n "checking for $ac_word... " >&6; }
8725 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8726 $as_echo_n "(cached) " >&6
8727 else
8728 if test -n "$ac_ct_OTOOL64"; then
8729 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8730 else
8731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8732 for as_dir in $PATH
8734 IFS=$as_save_IFS
8735 test -z "$as_dir" && as_dir=.
8736 for ac_exec_ext in '' $ac_executable_extensions; do
8737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8738 ac_cv_prog_ac_ct_OTOOL64="otool64"
8739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8740 break 2
8742 done
8743 done
8744 IFS=$as_save_IFS
8748 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8749 if test -n "$ac_ct_OTOOL64"; then
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8751 $as_echo "$ac_ct_OTOOL64" >&6; }
8752 else
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8754 $as_echo "no" >&6; }
8757 if test "x$ac_ct_OTOOL64" = x; then
8758 OTOOL64=":"
8759 else
8760 case $cross_compiling:$ac_tool_warned in
8761 yes:)
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8763 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8764 ac_tool_warned=yes ;;
8765 esac
8766 OTOOL64=$ac_ct_OTOOL64
8768 else
8769 OTOOL64="$ac_cv_prog_OTOOL64"
8798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8799 $as_echo_n "checking for -single_module linker flag... " >&6; }
8800 if ${lt_cv_apple_cc_single_mod+:} false; then :
8801 $as_echo_n "(cached) " >&6
8802 else
8803 lt_cv_apple_cc_single_mod=no
8804 if test -z "${LT_MULTI_MODULE}"; then
8805 # By default we will add the -single_module flag. You can override
8806 # by either setting the environment variable LT_MULTI_MODULE
8807 # non-empty at configure time, or by adding -multi_module to the
8808 # link flags.
8809 rm -rf libconftest.dylib*
8810 echo "int foo(void){return 1;}" > conftest.c
8811 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8812 -dynamiclib -Wl,-single_module conftest.c" >&5
8813 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8814 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8815 _lt_result=$?
8816 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8817 lt_cv_apple_cc_single_mod=yes
8818 else
8819 cat conftest.err >&5
8821 rm -rf libconftest.dylib*
8822 rm -f conftest.*
8825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8826 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8828 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8829 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8830 $as_echo_n "(cached) " >&6
8831 else
8832 lt_cv_ld_exported_symbols_list=no
8833 save_LDFLAGS=$LDFLAGS
8834 echo "_main" > conftest.sym
8835 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8837 /* end confdefs.h. */
8840 main ()
8844 return 0;
8846 _ACEOF
8847 if ac_fn_c_try_link "$LINENO"; then :
8848 lt_cv_ld_exported_symbols_list=yes
8849 else
8850 lt_cv_ld_exported_symbols_list=no
8852 rm -f core conftest.err conftest.$ac_objext \
8853 conftest$ac_exeext conftest.$ac_ext
8854 LDFLAGS="$save_LDFLAGS"
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8858 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8860 $as_echo_n "checking for -force_load linker flag... " >&6; }
8861 if ${lt_cv_ld_force_load+:} false; then :
8862 $as_echo_n "(cached) " >&6
8863 else
8864 lt_cv_ld_force_load=no
8865 cat > conftest.c << _LT_EOF
8866 int forced_loaded() { return 2;}
8867 _LT_EOF
8868 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8869 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8870 echo "$AR cru libconftest.a conftest.o" >&5
8871 $AR cru libconftest.a conftest.o 2>&5
8872 cat > conftest.c << _LT_EOF
8873 int main() { return 0;}
8874 _LT_EOF
8875 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8876 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8877 _lt_result=$?
8878 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8879 lt_cv_ld_force_load=yes
8880 else
8881 cat conftest.err >&5
8883 rm -f conftest.err libconftest.a conftest conftest.c
8884 rm -rf conftest.dSYM
8887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8888 $as_echo "$lt_cv_ld_force_load" >&6; }
8889 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
8890 # build without first building modern cctools / linker.
8891 case $host_cpu-$host_os in
8892 *-rhapsody* | *-darwin1.[012])
8893 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8894 *-darwin1.*)
8895 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8896 *-darwin*)
8897 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
8898 # deployment target is forced to an earlier version.
8899 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
8900 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0-9]*)
8902 10.[012][,.]*)
8903 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8907 esac
8909 esac
8910 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8911 _lt_dar_single_mod='$single_module'
8913 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8914 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8915 else
8916 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8918 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8919 _lt_dsymutil='~$DSYMUTIL $lib || :'
8920 else
8921 _lt_dsymutil=
8924 esac
8926 for ac_header in dlfcn.h
8927 do :
8928 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8930 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8931 cat >>confdefs.h <<_ACEOF
8932 #define HAVE_DLFCN_H 1
8933 _ACEOF
8937 done
8944 # Set options
8949 enable_win32_dll=no
8952 # Check whether --enable-shared was given.
8953 if test "${enable_shared+set}" = set; then :
8954 enableval=$enable_shared; p=${PACKAGE-default}
8955 case $enableval in
8956 yes) enable_shared=yes ;;
8957 no) enable_shared=no ;;
8959 enable_shared=no
8960 # Look at the argument we got. We use all the common list separators.
8961 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8962 for pkg in $enableval; do
8963 IFS="$lt_save_ifs"
8964 if test "X$pkg" = "X$p"; then
8965 enable_shared=yes
8967 done
8968 IFS="$lt_save_ifs"
8970 esac
8971 else
8972 enable_shared=yes
8983 # Check whether --enable-static was given.
8984 if test "${enable_static+set}" = set; then :
8985 enableval=$enable_static; p=${PACKAGE-default}
8986 case $enableval in
8987 yes) enable_static=yes ;;
8988 no) enable_static=no ;;
8990 enable_static=no
8991 # Look at the argument we got. We use all the common list separators.
8992 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8993 for pkg in $enableval; do
8994 IFS="$lt_save_ifs"
8995 if test "X$pkg" = "X$p"; then
8996 enable_static=yes
8998 done
8999 IFS="$lt_save_ifs"
9001 esac
9002 else
9003 enable_static=yes
9015 # Check whether --with-pic was given.
9016 if test "${with_pic+set}" = set; then :
9017 withval=$with_pic; pic_mode="$withval"
9018 else
9019 pic_mode=default
9023 test -z "$pic_mode" && pic_mode=default
9031 # Check whether --enable-fast-install was given.
9032 if test "${enable_fast_install+set}" = set; then :
9033 enableval=$enable_fast_install; p=${PACKAGE-default}
9034 case $enableval in
9035 yes) enable_fast_install=yes ;;
9036 no) enable_fast_install=no ;;
9038 enable_fast_install=no
9039 # Look at the argument we got. We use all the common list separators.
9040 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9041 for pkg in $enableval; do
9042 IFS="$lt_save_ifs"
9043 if test "X$pkg" = "X$p"; then
9044 enable_fast_install=yes
9046 done
9047 IFS="$lt_save_ifs"
9049 esac
9050 else
9051 enable_fast_install=yes
9064 # This can be used to rebuild libtool when needed
9065 LIBTOOL_DEPS="$ltmain"
9067 # Always use our own libtool.
9068 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9095 test -z "$LN_S" && LN_S="ln -s"
9110 if test -n "${ZSH_VERSION+set}" ; then
9111 setopt NO_GLOB_SUBST
9114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9115 $as_echo_n "checking for objdir... " >&6; }
9116 if ${lt_cv_objdir+:} false; then :
9117 $as_echo_n "(cached) " >&6
9118 else
9119 rm -f .libs 2>/dev/null
9120 mkdir .libs 2>/dev/null
9121 if test -d .libs; then
9122 lt_cv_objdir=.libs
9123 else
9124 # MS-DOS does not allow filenames that begin with a dot.
9125 lt_cv_objdir=_libs
9127 rmdir .libs 2>/dev/null
9129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9130 $as_echo "$lt_cv_objdir" >&6; }
9131 objdir=$lt_cv_objdir
9137 cat >>confdefs.h <<_ACEOF
9138 #define LT_OBJDIR "$lt_cv_objdir/"
9139 _ACEOF
9144 case $host_os in
9145 aix3*)
9146 # AIX sometimes has problems with the GCC collect2 program. For some
9147 # reason, if we set the COLLECT_NAMES environment variable, the problems
9148 # vanish in a puff of smoke.
9149 if test "X${COLLECT_NAMES+set}" != Xset; then
9150 COLLECT_NAMES=
9151 export COLLECT_NAMES
9154 esac
9156 # Global variables:
9157 ofile=libtool
9158 can_build_shared=yes
9160 # All known linkers require a `.a' archive for static linking (except MSVC,
9161 # which needs '.lib').
9162 libext=a
9164 with_gnu_ld="$lt_cv_prog_gnu_ld"
9166 old_CC="$CC"
9167 old_CFLAGS="$CFLAGS"
9169 # Set sane defaults for various variables
9170 test -z "$CC" && CC=cc
9171 test -z "$LTCC" && LTCC=$CC
9172 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9173 test -z "$LD" && LD=ld
9174 test -z "$ac_objext" && ac_objext=o
9176 for cc_temp in $compiler""; do
9177 case $cc_temp in
9178 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9179 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9180 \-*) ;;
9181 *) break;;
9182 esac
9183 done
9184 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9187 # Only perform the check for file, if the check method requires it
9188 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9189 case $deplibs_check_method in
9190 file_magic*)
9191 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9193 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9194 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9195 $as_echo_n "(cached) " >&6
9196 else
9197 case $MAGIC_CMD in
9198 [\\/*] | ?:[\\/]*)
9199 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9202 lt_save_MAGIC_CMD="$MAGIC_CMD"
9203 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9204 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9205 for ac_dir in $ac_dummy; do
9206 IFS="$lt_save_ifs"
9207 test -z "$ac_dir" && ac_dir=.
9208 if test -f $ac_dir/${ac_tool_prefix}file; then
9209 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9210 if test -n "$file_magic_test_file"; then
9211 case $deplibs_check_method in
9212 "file_magic "*)
9213 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9214 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9215 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9216 $EGREP "$file_magic_regex" > /dev/null; then
9218 else
9219 cat <<_LT_EOF 1>&2
9221 *** Warning: the command libtool uses to detect shared libraries,
9222 *** $file_magic_cmd, produces output that libtool cannot recognize.
9223 *** The result is that libtool may fail to recognize shared libraries
9224 *** as such. This will affect the creation of libtool libraries that
9225 *** depend on shared libraries, but programs linked with such libtool
9226 *** libraries will work regardless of this problem. Nevertheless, you
9227 *** may want to report the problem to your system manager and/or to
9228 *** bug-libtool@gnu.org
9230 _LT_EOF
9231 fi ;;
9232 esac
9234 break
9236 done
9237 IFS="$lt_save_ifs"
9238 MAGIC_CMD="$lt_save_MAGIC_CMD"
9240 esac
9243 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9244 if test -n "$MAGIC_CMD"; then
9245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9246 $as_echo "$MAGIC_CMD" >&6; }
9247 else
9248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9249 $as_echo "no" >&6; }
9256 if test -z "$lt_cv_path_MAGIC_CMD"; then
9257 if test -n "$ac_tool_prefix"; then
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9259 $as_echo_n "checking for file... " >&6; }
9260 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9261 $as_echo_n "(cached) " >&6
9262 else
9263 case $MAGIC_CMD in
9264 [\\/*] | ?:[\\/]*)
9265 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9268 lt_save_MAGIC_CMD="$MAGIC_CMD"
9269 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9270 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9271 for ac_dir in $ac_dummy; do
9272 IFS="$lt_save_ifs"
9273 test -z "$ac_dir" && ac_dir=.
9274 if test -f $ac_dir/file; then
9275 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9276 if test -n "$file_magic_test_file"; then
9277 case $deplibs_check_method in
9278 "file_magic "*)
9279 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9280 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9281 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9282 $EGREP "$file_magic_regex" > /dev/null; then
9284 else
9285 cat <<_LT_EOF 1>&2
9287 *** Warning: the command libtool uses to detect shared libraries,
9288 *** $file_magic_cmd, produces output that libtool cannot recognize.
9289 *** The result is that libtool may fail to recognize shared libraries
9290 *** as such. This will affect the creation of libtool libraries that
9291 *** depend on shared libraries, but programs linked with such libtool
9292 *** libraries will work regardless of this problem. Nevertheless, you
9293 *** may want to report the problem to your system manager and/or to
9294 *** bug-libtool@gnu.org
9296 _LT_EOF
9297 fi ;;
9298 esac
9300 break
9302 done
9303 IFS="$lt_save_ifs"
9304 MAGIC_CMD="$lt_save_MAGIC_CMD"
9306 esac
9309 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9310 if test -n "$MAGIC_CMD"; then
9311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9312 $as_echo "$MAGIC_CMD" >&6; }
9313 else
9314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9315 $as_echo "no" >&6; }
9319 else
9320 MAGIC_CMD=:
9326 esac
9328 # Use C for the default configuration in the libtool script
9330 lt_save_CC="$CC"
9331 ac_ext=c
9332 ac_cpp='$CPP $CPPFLAGS'
9333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9338 # Source file extension for C test sources.
9339 ac_ext=c
9341 # Object file extension for compiled C test sources.
9342 objext=o
9343 objext=$objext
9345 # Code to be used in simple compile tests
9346 lt_simple_compile_test_code="int some_variable = 0;"
9348 # Code to be used in simple link tests
9349 lt_simple_link_test_code='int main(){return(0);}'
9357 # If no C compiler was specified, use CC.
9358 LTCC=${LTCC-"$CC"}
9360 # If no C compiler flags were specified, use CFLAGS.
9361 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9363 # Allow CC to be a program name with arguments.
9364 compiler=$CC
9366 # Save the default compiler, since it gets overwritten when the other
9367 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9368 compiler_DEFAULT=$CC
9370 # save warnings/boilerplate of simple test code
9371 ac_outfile=conftest.$ac_objext
9372 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9373 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9374 _lt_compiler_boilerplate=`cat conftest.err`
9375 $RM conftest*
9377 ac_outfile=conftest.$ac_objext
9378 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9379 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9380 _lt_linker_boilerplate=`cat conftest.err`
9381 $RM -r conftest*
9384 ## CAVEAT EMPTOR:
9385 ## There is no encapsulation within the following macros, do not change
9386 ## the running order or otherwise move them around unless you know exactly
9387 ## what you are doing...
9388 if test -n "$compiler"; then
9390 lt_prog_compiler_no_builtin_flag=
9392 if test "$GCC" = yes; then
9393 case $cc_basename in
9394 nvcc*)
9395 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9397 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9398 esac
9400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9401 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9402 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9403 $as_echo_n "(cached) " >&6
9404 else
9405 lt_cv_prog_compiler_rtti_exceptions=no
9406 ac_outfile=conftest.$ac_objext
9407 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9408 lt_compiler_flag="-fno-rtti -fno-exceptions"
9409 # Insert the option either (1) after the last *FLAGS variable, or
9410 # (2) before a word containing "conftest.", or (3) at the end.
9411 # Note that $ac_compile itself does not contain backslashes and begins
9412 # with a dollar sign (not a hyphen), so the echo should work correctly.
9413 # The option is referenced via a variable to avoid confusing sed.
9414 lt_compile=`echo "$ac_compile" | $SED \
9415 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9416 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9417 -e 's:$: $lt_compiler_flag:'`
9418 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9419 (eval "$lt_compile" 2>conftest.err)
9420 ac_status=$?
9421 cat conftest.err >&5
9422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9423 if (exit $ac_status) && test -s "$ac_outfile"; then
9424 # The compiler can only warn and ignore the option if not recognized
9425 # So say no if there are warnings other than the usual output.
9426 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9427 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9428 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9429 lt_cv_prog_compiler_rtti_exceptions=yes
9432 $RM conftest*
9435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9436 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9438 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9439 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9440 else
9451 lt_prog_compiler_wl=
9452 lt_prog_compiler_pic=
9453 lt_prog_compiler_static=
9455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9456 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9458 if test "$GCC" = yes; then
9459 lt_prog_compiler_wl='-Wl,'
9460 lt_prog_compiler_static='-static'
9462 case $host_os in
9463 aix*)
9464 # All AIX code is PIC.
9465 if test "$host_cpu" = ia64; then
9466 # AIX 5 now supports IA64 processor
9467 lt_prog_compiler_static='-Bstatic'
9469 lt_prog_compiler_pic='-fPIC'
9472 amigaos*)
9473 case $host_cpu in
9474 powerpc)
9475 # see comment about AmigaOS4 .so support
9476 lt_prog_compiler_pic='-fPIC'
9478 m68k)
9479 # FIXME: we need at least 68020 code to build shared libraries, but
9480 # adding the `-m68020' flag to GCC prevents building anything better,
9481 # like `-m68040'.
9482 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9484 esac
9487 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9488 # PIC is the default for these OSes.
9491 mingw* | cygwin* | pw32* | os2* | cegcc*)
9492 # This hack is so that the source file can tell whether it is being
9493 # built for inclusion in a dll (and should export symbols for example).
9494 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9495 # (--disable-auto-import) libraries
9496 lt_prog_compiler_pic='-DDLL_EXPORT'
9499 darwin* | rhapsody*)
9500 # PIC is the default on this platform
9501 # Common symbols not allowed in MH_DYLIB files
9502 lt_prog_compiler_pic='-fno-common'
9505 haiku*)
9506 # PIC is the default for Haiku.
9507 # The "-static" flag exists, but is broken.
9508 lt_prog_compiler_static=
9511 hpux*)
9512 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9513 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9514 # sets the default TLS model and affects inlining.
9515 case $host_cpu in
9516 hppa*64*)
9517 # +Z the default
9520 lt_prog_compiler_pic='-fPIC'
9522 esac
9525 interix[3-9]*)
9526 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9527 # Instead, we relocate shared libraries at runtime.
9530 msdosdjgpp*)
9531 # Just because we use GCC doesn't mean we suddenly get shared libraries
9532 # on systems that don't support them.
9533 lt_prog_compiler_can_build_shared=no
9534 enable_shared=no
9537 *nto* | *qnx*)
9538 # QNX uses GNU C++, but need to define -shared option too, otherwise
9539 # it will coredump.
9540 lt_prog_compiler_pic='-fPIC -shared'
9543 sysv4*MP*)
9544 if test -d /usr/nec; then
9545 lt_prog_compiler_pic=-Kconform_pic
9550 lt_prog_compiler_pic='-fPIC'
9552 esac
9554 case $cc_basename in
9555 nvcc*) # Cuda Compiler Driver 2.2
9556 lt_prog_compiler_wl='-Xlinker '
9557 lt_prog_compiler_pic='-Xcompiler -fPIC'
9559 esac
9560 else
9561 # PORTME Check for flag to pass linker flags through the system compiler.
9562 case $host_os in
9563 aix*)
9564 lt_prog_compiler_wl='-Wl,'
9565 if test "$host_cpu" = ia64; then
9566 # AIX 5 now supports IA64 processor
9567 lt_prog_compiler_static='-Bstatic'
9568 else
9569 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9573 mingw* | cygwin* | pw32* | os2* | cegcc*)
9574 # This hack is so that the source file can tell whether it is being
9575 # built for inclusion in a dll (and should export symbols for example).
9576 lt_prog_compiler_pic='-DDLL_EXPORT'
9579 hpux9* | hpux10* | hpux11*)
9580 lt_prog_compiler_wl='-Wl,'
9581 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9582 # not for PA HP-UX.
9583 case $host_cpu in
9584 hppa*64*|ia64*)
9585 # +Z the default
9588 lt_prog_compiler_pic='+Z'
9590 esac
9591 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9592 lt_prog_compiler_static='${wl}-a ${wl}archive'
9595 irix5* | irix6* | nonstopux*)
9596 lt_prog_compiler_wl='-Wl,'
9597 # PIC (with -KPIC) is the default.
9598 lt_prog_compiler_static='-non_shared'
9601 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9602 case $cc_basename in
9603 # old Intel for x86_64 which still supported -KPIC.
9604 ecc*)
9605 lt_prog_compiler_wl='-Wl,'
9606 lt_prog_compiler_pic='-KPIC'
9607 lt_prog_compiler_static='-static'
9609 # icc used to be incompatible with GCC.
9610 # ICC 10 doesn't accept -KPIC any more.
9611 icc* | ifort*)
9612 lt_prog_compiler_wl='-Wl,'
9613 lt_prog_compiler_pic='-fPIC'
9614 lt_prog_compiler_static='-static'
9616 # Lahey Fortran 8.1.
9617 lf95*)
9618 lt_prog_compiler_wl='-Wl,'
9619 lt_prog_compiler_pic='--shared'
9620 lt_prog_compiler_static='--static'
9622 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9623 # Portland Group compilers (*not* the Pentium gcc compiler,
9624 # which looks to be a dead project)
9625 lt_prog_compiler_wl='-Wl,'
9626 lt_prog_compiler_pic='-fpic'
9627 lt_prog_compiler_static='-Bstatic'
9629 ccc*)
9630 lt_prog_compiler_wl='-Wl,'
9631 # All Alpha code is PIC.
9632 lt_prog_compiler_static='-non_shared'
9634 xl* | bgxl* | bgf* | mpixl*)
9635 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9636 lt_prog_compiler_wl='-Wl,'
9637 lt_prog_compiler_pic='-qpic'
9638 lt_prog_compiler_static='-qstaticlink'
9641 case `$CC -V 2>&1 | sed 5q` in
9642 *Sun\ F* | *Sun*Fortran*)
9643 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9644 lt_prog_compiler_pic='-KPIC'
9645 lt_prog_compiler_static='-Bstatic'
9646 lt_prog_compiler_wl=''
9648 *Sun\ C*)
9649 # Sun C 5.9
9650 lt_prog_compiler_pic='-KPIC'
9651 lt_prog_compiler_static='-Bstatic'
9652 lt_prog_compiler_wl='-Wl,'
9654 esac
9656 esac
9659 newsos6)
9660 lt_prog_compiler_pic='-KPIC'
9661 lt_prog_compiler_static='-Bstatic'
9664 *nto* | *qnx*)
9665 # QNX uses GNU C++, but need to define -shared option too, otherwise
9666 # it will coredump.
9667 lt_prog_compiler_pic='-fPIC -shared'
9670 osf3* | osf4* | osf5*)
9671 lt_prog_compiler_wl='-Wl,'
9672 # All OSF/1 code is PIC.
9673 lt_prog_compiler_static='-non_shared'
9676 rdos*)
9677 lt_prog_compiler_static='-non_shared'
9680 solaris*)
9681 lt_prog_compiler_pic='-KPIC'
9682 lt_prog_compiler_static='-Bstatic'
9683 case $cc_basename in
9684 f77* | f90* | f95*)
9685 lt_prog_compiler_wl='-Qoption ld ';;
9687 lt_prog_compiler_wl='-Wl,';;
9688 esac
9691 sunos4*)
9692 lt_prog_compiler_wl='-Qoption ld '
9693 lt_prog_compiler_pic='-PIC'
9694 lt_prog_compiler_static='-Bstatic'
9697 sysv4 | sysv4.2uw2* | sysv4.3*)
9698 lt_prog_compiler_wl='-Wl,'
9699 lt_prog_compiler_pic='-KPIC'
9700 lt_prog_compiler_static='-Bstatic'
9703 sysv4*MP*)
9704 if test -d /usr/nec ;then
9705 lt_prog_compiler_pic='-Kconform_pic'
9706 lt_prog_compiler_static='-Bstatic'
9710 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9711 lt_prog_compiler_wl='-Wl,'
9712 lt_prog_compiler_pic='-KPIC'
9713 lt_prog_compiler_static='-Bstatic'
9716 unicos*)
9717 lt_prog_compiler_wl='-Wl,'
9718 lt_prog_compiler_can_build_shared=no
9721 uts4*)
9722 lt_prog_compiler_pic='-pic'
9723 lt_prog_compiler_static='-Bstatic'
9727 lt_prog_compiler_can_build_shared=no
9729 esac
9732 case $host_os in
9733 # For platforms which do not support PIC, -DPIC is meaningless:
9734 *djgpp*)
9735 lt_prog_compiler_pic=
9738 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9740 esac
9741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9742 $as_echo "$lt_prog_compiler_pic" >&6; }
9750 # Check to make sure the PIC flag actually works.
9752 if test -n "$lt_prog_compiler_pic"; then
9753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9754 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9755 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9756 $as_echo_n "(cached) " >&6
9757 else
9758 lt_cv_prog_compiler_pic_works=no
9759 ac_outfile=conftest.$ac_objext
9760 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9761 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9762 # Insert the option either (1) after the last *FLAGS variable, or
9763 # (2) before a word containing "conftest.", or (3) at the end.
9764 # Note that $ac_compile itself does not contain backslashes and begins
9765 # with a dollar sign (not a hyphen), so the echo should work correctly.
9766 # The option is referenced via a variable to avoid confusing sed.
9767 lt_compile=`echo "$ac_compile" | $SED \
9768 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9769 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9770 -e 's:$: $lt_compiler_flag:'`
9771 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9772 (eval "$lt_compile" 2>conftest.err)
9773 ac_status=$?
9774 cat conftest.err >&5
9775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9776 if (exit $ac_status) && test -s "$ac_outfile"; then
9777 # The compiler can only warn and ignore the option if not recognized
9778 # So say no if there are warnings other than the usual output.
9779 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9780 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9781 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9782 lt_cv_prog_compiler_pic_works=yes
9785 $RM conftest*
9788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9789 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9791 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9792 case $lt_prog_compiler_pic in
9793 "" | " "*) ;;
9794 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9795 esac
9796 else
9797 lt_prog_compiler_pic=
9798 lt_prog_compiler_can_build_shared=no
9809 # Check to make sure the static flag actually works.
9811 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9813 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9814 if ${lt_cv_prog_compiler_static_works+:} false; then :
9815 $as_echo_n "(cached) " >&6
9816 else
9817 lt_cv_prog_compiler_static_works=no
9818 save_LDFLAGS="$LDFLAGS"
9819 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9820 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9821 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9822 # The linker can only warn and ignore the option if not recognized
9823 # So say no if there are warnings
9824 if test -s conftest.err; then
9825 # Append any errors to the config.log.
9826 cat conftest.err 1>&5
9827 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9828 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9829 if diff conftest.exp conftest.er2 >/dev/null; then
9830 lt_cv_prog_compiler_static_works=yes
9832 else
9833 lt_cv_prog_compiler_static_works=yes
9836 $RM -r conftest*
9837 LDFLAGS="$save_LDFLAGS"
9840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9841 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9843 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9845 else
9846 lt_prog_compiler_static=
9855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9856 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9857 if ${lt_cv_prog_compiler_c_o+:} false; then :
9858 $as_echo_n "(cached) " >&6
9859 else
9860 lt_cv_prog_compiler_c_o=no
9861 $RM -r conftest 2>/dev/null
9862 mkdir conftest
9863 cd conftest
9864 mkdir out
9865 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9867 lt_compiler_flag="-o out/conftest2.$ac_objext"
9868 # Insert the option either (1) after the last *FLAGS variable, or
9869 # (2) before a word containing "conftest.", or (3) at the end.
9870 # Note that $ac_compile itself does not contain backslashes and begins
9871 # with a dollar sign (not a hyphen), so the echo should work correctly.
9872 lt_compile=`echo "$ac_compile" | $SED \
9873 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9874 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9875 -e 's:$: $lt_compiler_flag:'`
9876 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9877 (eval "$lt_compile" 2>out/conftest.err)
9878 ac_status=$?
9879 cat out/conftest.err >&5
9880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9881 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9882 then
9883 # The compiler can only warn and ignore the option if not recognized
9884 # So say no if there are warnings
9885 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9886 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9887 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9888 lt_cv_prog_compiler_c_o=yes
9891 chmod u+w . 2>&5
9892 $RM conftest*
9893 # SGI C++ compiler will create directory out/ii_files/ for
9894 # template instantiation
9895 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9896 $RM out/* && rmdir out
9897 cd ..
9898 $RM -r conftest
9899 $RM conftest*
9902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9903 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9911 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9912 if ${lt_cv_prog_compiler_c_o+:} false; then :
9913 $as_echo_n "(cached) " >&6
9914 else
9915 lt_cv_prog_compiler_c_o=no
9916 $RM -r conftest 2>/dev/null
9917 mkdir conftest
9918 cd conftest
9919 mkdir out
9920 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9922 lt_compiler_flag="-o out/conftest2.$ac_objext"
9923 # Insert the option either (1) after the last *FLAGS variable, or
9924 # (2) before a word containing "conftest.", or (3) at the end.
9925 # Note that $ac_compile itself does not contain backslashes and begins
9926 # with a dollar sign (not a hyphen), so the echo should work correctly.
9927 lt_compile=`echo "$ac_compile" | $SED \
9928 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9929 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9930 -e 's:$: $lt_compiler_flag:'`
9931 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9932 (eval "$lt_compile" 2>out/conftest.err)
9933 ac_status=$?
9934 cat out/conftest.err >&5
9935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9937 then
9938 # The compiler can only warn and ignore the option if not recognized
9939 # So say no if there are warnings
9940 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9941 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9942 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9943 lt_cv_prog_compiler_c_o=yes
9946 chmod u+w . 2>&5
9947 $RM conftest*
9948 # SGI C++ compiler will create directory out/ii_files/ for
9949 # template instantiation
9950 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9951 $RM out/* && rmdir out
9952 cd ..
9953 $RM -r conftest
9954 $RM conftest*
9957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9958 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9963 hard_links="nottested"
9964 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9965 # do not overwrite the value of need_locks provided by the user
9966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9967 $as_echo_n "checking if we can lock with hard links... " >&6; }
9968 hard_links=yes
9969 $RM conftest*
9970 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9971 touch conftest.a
9972 ln conftest.a conftest.b 2>&5 || hard_links=no
9973 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9975 $as_echo "$hard_links" >&6; }
9976 if test "$hard_links" = no; then
9977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9978 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9979 need_locks=warn
9981 else
9982 need_locks=no
9990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9991 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9993 runpath_var=
9994 allow_undefined_flag=
9995 always_export_symbols=no
9996 archive_cmds=
9997 archive_expsym_cmds=
9998 compiler_needs_object=no
9999 enable_shared_with_static_runtimes=no
10000 export_dynamic_flag_spec=
10001 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10002 hardcode_automatic=no
10003 hardcode_direct=no
10004 hardcode_direct_absolute=no
10005 hardcode_libdir_flag_spec=
10006 hardcode_libdir_flag_spec_ld=
10007 hardcode_libdir_separator=
10008 hardcode_minus_L=no
10009 hardcode_shlibpath_var=unsupported
10010 inherit_rpath=no
10011 link_all_deplibs=unknown
10012 module_cmds=
10013 module_expsym_cmds=
10014 old_archive_from_new_cmds=
10015 old_archive_from_expsyms_cmds=
10016 thread_safe_flag_spec=
10017 whole_archive_flag_spec=
10018 # include_expsyms should be a list of space-separated symbols to be *always*
10019 # included in the symbol list
10020 include_expsyms=
10021 # exclude_expsyms can be an extended regexp of symbols to exclude
10022 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10023 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10024 # as well as any symbol that contains `d'.
10025 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10026 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10027 # platforms (ab)use it in PIC code, but their linkers get confused if
10028 # the symbol is explicitly referenced. Since portable code cannot
10029 # rely on this symbol name, it's probably fine to never include it in
10030 # preloaded symbol tables.
10031 # Exclude shared library initialization/finalization symbols.
10032 extract_expsyms_cmds=
10034 case $host_os in
10035 cygwin* | mingw* | pw32* | cegcc*)
10036 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10037 # When not using gcc, we currently assume that we are using
10038 # Microsoft Visual C++.
10039 if test "$GCC" != yes; then
10040 with_gnu_ld=no
10043 interix*)
10044 # we just hope/assume this is gcc and not c89 (= MSVC++)
10045 with_gnu_ld=yes
10047 openbsd*)
10048 with_gnu_ld=no
10050 esac
10052 ld_shlibs=yes
10054 # On some targets, GNU ld is compatible enough with the native linker
10055 # that we're better off using the native interface for both.
10056 lt_use_gnu_ld_interface=no
10057 if test "$with_gnu_ld" = yes; then
10058 case $host_os in
10059 aix*)
10060 # The AIX port of GNU ld has always aspired to compatibility
10061 # with the native linker. However, as the warning in the GNU ld
10062 # block says, versions before 2.19.5* couldn't really create working
10063 # shared libraries, regardless of the interface used.
10064 case `$LD -v 2>&1` in
10065 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10066 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10067 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10069 lt_use_gnu_ld_interface=yes
10071 esac
10074 lt_use_gnu_ld_interface=yes
10076 esac
10079 if test "$lt_use_gnu_ld_interface" = yes; then
10080 # If archive_cmds runs LD, not CC, wlarc should be empty
10081 wlarc='${wl}'
10083 # Set some defaults for GNU ld with shared library support. These
10084 # are reset later if shared libraries are not supported. Putting them
10085 # here allows them to be overridden if necessary.
10086 runpath_var=LD_RUN_PATH
10087 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10088 export_dynamic_flag_spec='${wl}--export-dynamic'
10089 # ancient GNU ld didn't support --whole-archive et. al.
10090 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10091 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10092 else
10093 whole_archive_flag_spec=
10095 supports_anon_versioning=no
10096 case `$LD -v 2>&1` in
10097 *GNU\ gold*) supports_anon_versioning=yes ;;
10098 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10099 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10100 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10101 *\ 2.11.*) ;; # other 2.11 versions
10102 *) supports_anon_versioning=yes ;;
10103 esac
10105 # See if GNU ld supports shared libraries.
10106 case $host_os in
10107 aix[3-9]*)
10108 # On AIX/PPC, the GNU linker is very broken
10109 if test "$host_cpu" != ia64; then
10110 ld_shlibs=no
10111 cat <<_LT_EOF 1>&2
10113 *** Warning: the GNU linker, at least up to release 2.19, is reported
10114 *** to be unable to reliably create shared libraries on AIX.
10115 *** Therefore, libtool is disabling shared libraries support. If you
10116 *** really care for shared libraries, you may want to install binutils
10117 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10118 *** You will then need to restart the configuration process.
10120 _LT_EOF
10124 amigaos*)
10125 case $host_cpu in
10126 powerpc)
10127 # see comment about AmigaOS4 .so support
10128 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10129 archive_expsym_cmds=''
10131 m68k)
10132 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)'
10133 hardcode_libdir_flag_spec='-L$libdir'
10134 hardcode_minus_L=yes
10136 esac
10139 beos*)
10140 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10141 allow_undefined_flag=unsupported
10142 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10143 # support --undefined. This deserves some investigation. FIXME
10144 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10145 else
10146 ld_shlibs=no
10150 cygwin* | mingw* | pw32* | cegcc*)
10151 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10152 # as there is no search path for DLLs.
10153 hardcode_libdir_flag_spec='-L$libdir'
10154 export_dynamic_flag_spec='${wl}--export-all-symbols'
10155 allow_undefined_flag=unsupported
10156 always_export_symbols=no
10157 enable_shared_with_static_runtimes=yes
10158 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10160 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10161 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10162 # If the export-symbols file already is a .def file (1st line
10163 # is EXPORTS), use it as is; otherwise, prepend...
10164 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10165 cp $export_symbols $output_objdir/$soname.def;
10166 else
10167 echo EXPORTS > $output_objdir/$soname.def;
10168 cat $export_symbols >> $output_objdir/$soname.def;
10170 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10171 else
10172 ld_shlibs=no
10176 haiku*)
10177 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10178 link_all_deplibs=yes
10181 interix[3-9]*)
10182 hardcode_direct=no
10183 hardcode_shlibpath_var=no
10184 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10185 export_dynamic_flag_spec='${wl}-E'
10186 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10187 # Instead, shared libraries are loaded at an image base (0x10000000 by
10188 # default) and relocated if they conflict, which is a slow very memory
10189 # consuming and fragmenting process. To avoid this, we pick a random,
10190 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10191 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10192 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10193 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'
10196 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
10197 tmp_diet=no
10198 if test "$host_os" = linux-dietlibc; then
10199 case $cc_basename in
10200 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10201 esac
10203 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10204 && test "$tmp_diet" = no
10205 then
10206 tmp_addflag=' $pic_flag'
10207 tmp_sharedflag='-shared'
10208 case $cc_basename,$host_cpu in
10209 pgcc*) # Portland Group C compiler
10210 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'
10211 tmp_addflag=' $pic_flag'
10213 pgf77* | pgf90* | pgf95* | pgfortran*)
10214 # Portland Group f77 and f90 compilers
10215 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'
10216 tmp_addflag=' $pic_flag -Mnomain' ;;
10217 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10218 tmp_addflag=' -i_dynamic' ;;
10219 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10220 tmp_addflag=' -i_dynamic -nofor_main' ;;
10221 ifc* | ifort*) # Intel Fortran compiler
10222 tmp_addflag=' -nofor_main' ;;
10223 lf95*) # Lahey Fortran 8.1
10224 whole_archive_flag_spec=
10225 tmp_sharedflag='--shared' ;;
10226 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10227 tmp_sharedflag='-qmkshrobj'
10228 tmp_addflag= ;;
10229 nvcc*) # Cuda Compiler Driver 2.2
10230 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'
10231 compiler_needs_object=yes
10233 esac
10234 case `$CC -V 2>&1 | sed 5q` in
10235 *Sun\ C*) # Sun C 5.9
10236 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'
10237 compiler_needs_object=yes
10238 tmp_sharedflag='-G' ;;
10239 *Sun\ F*) # Sun Fortran 8.3
10240 tmp_sharedflag='-G' ;;
10241 esac
10242 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10244 if test "x$supports_anon_versioning" = xyes; then
10245 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10246 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10247 echo "local: *; };" >> $output_objdir/$libname.ver~
10248 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10251 case $cc_basename in
10252 xlf* | bgf* | bgxlf* | mpixlf*)
10253 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10254 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10255 hardcode_libdir_flag_spec=
10256 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10257 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10258 if test "x$supports_anon_versioning" = xyes; then
10259 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10260 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10261 echo "local: *; };" >> $output_objdir/$libname.ver~
10262 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10265 esac
10266 else
10267 ld_shlibs=no
10271 netbsd*)
10272 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10273 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10274 wlarc=
10275 else
10276 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10277 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10281 solaris*)
10282 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10283 ld_shlibs=no
10284 cat <<_LT_EOF 1>&2
10286 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10287 *** create shared libraries on Solaris systems. Therefore, libtool
10288 *** is disabling shared libraries support. We urge you to upgrade GNU
10289 *** binutils to release 2.9.1 or newer. Another option is to modify
10290 *** your PATH or compiler configuration so that the native linker is
10291 *** used, and then restart.
10293 _LT_EOF
10294 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10295 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10296 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10297 else
10298 ld_shlibs=no
10302 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10303 case `$LD -v 2>&1` in
10304 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10305 ld_shlibs=no
10306 cat <<_LT_EOF 1>&2
10308 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10309 *** reliably create shared libraries on SCO systems. Therefore, libtool
10310 *** is disabling shared libraries support. We urge you to upgrade GNU
10311 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10312 *** your PATH or compiler configuration so that the native linker is
10313 *** used, and then restart.
10315 _LT_EOF
10318 # For security reasons, it is highly recommended that you always
10319 # use absolute paths for naming shared libraries, and exclude the
10320 # DT_RUNPATH tag from executables and libraries. But doing so
10321 # requires that you compile everything twice, which is a pain.
10322 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10323 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10324 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10325 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10326 else
10327 ld_shlibs=no
10330 esac
10333 sunos4*)
10334 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10335 wlarc=
10336 hardcode_direct=yes
10337 hardcode_shlibpath_var=no
10341 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10342 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10343 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10344 else
10345 ld_shlibs=no
10348 esac
10350 if test "$ld_shlibs" = no; then
10351 runpath_var=
10352 hardcode_libdir_flag_spec=
10353 export_dynamic_flag_spec=
10354 whole_archive_flag_spec=
10356 else
10357 # PORTME fill in a description of your system's linker (not GNU ld)
10358 case $host_os in
10359 aix3*)
10360 allow_undefined_flag=unsupported
10361 always_export_symbols=yes
10362 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'
10363 # Note: this linker hardcodes the directories in LIBPATH if there
10364 # are no directories specified by -L.
10365 hardcode_minus_L=yes
10366 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10367 # Neither direct hardcoding nor static linking is supported with a
10368 # broken collect2.
10369 hardcode_direct=unsupported
10373 aix[4-9]*)
10374 if test "$host_cpu" = ia64; then
10375 # On IA64, the linker does run time linking by default, so we don't
10376 # have to do anything special.
10377 aix_use_runtimelinking=no
10378 exp_sym_flag='-Bexport'
10379 no_entry_flag=""
10380 else
10381 # If we're using GNU nm, then we don't want the "-C" option.
10382 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10383 # Also, AIX nm treats weak defined symbols like other global
10384 # defined symbols, whereas GNU nm marks them as "W".
10385 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10386 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'
10387 else
10388 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'
10390 aix_use_runtimelinking=no
10392 # Test if we are trying to use run time linking or normal
10393 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10394 # need to do runtime linking.
10395 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10396 for ld_flag in $LDFLAGS; do
10397 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10398 aix_use_runtimelinking=yes
10399 break
10401 done
10403 esac
10405 exp_sym_flag='-bexport'
10406 no_entry_flag='-bnoentry'
10409 # When large executables or shared objects are built, AIX ld can
10410 # have problems creating the table of contents. If linking a library
10411 # or program results in "error TOC overflow" add -mminimal-toc to
10412 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10413 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10415 archive_cmds=''
10416 hardcode_direct=yes
10417 hardcode_direct_absolute=yes
10418 hardcode_libdir_separator=':'
10419 link_all_deplibs=yes
10420 file_list_spec='${wl}-f,'
10422 if test "$GCC" = yes; then
10423 case $host_os in aix4.[012]|aix4.[012].*)
10424 # We only want to do this on AIX 4.2 and lower, the check
10425 # below for broken collect2 doesn't work under 4.3+
10426 collect2name=`${CC} -print-prog-name=collect2`
10427 if test -f "$collect2name" &&
10428 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10429 then
10430 # We have reworked collect2
10432 else
10433 # We have old collect2
10434 hardcode_direct=unsupported
10435 # It fails to find uninstalled libraries when the uninstalled
10436 # path is not listed in the libpath. Setting hardcode_minus_L
10437 # to unsupported forces relinking
10438 hardcode_minus_L=yes
10439 hardcode_libdir_flag_spec='-L$libdir'
10440 hardcode_libdir_separator=
10443 esac
10444 shared_flag='-shared'
10445 if test "$aix_use_runtimelinking" = yes; then
10446 shared_flag="$shared_flag "'${wl}-G'
10448 else
10449 # not using gcc
10450 if test "$host_cpu" = ia64; then
10451 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10452 # chokes on -Wl,-G. The following line is correct:
10453 shared_flag='-G'
10454 else
10455 if test "$aix_use_runtimelinking" = yes; then
10456 shared_flag='${wl}-G'
10457 else
10458 shared_flag='${wl}-bM:SRE'
10463 export_dynamic_flag_spec='${wl}-bexpall'
10464 # It seems that -bexpall does not export symbols beginning with
10465 # underscore (_), so it is better to generate a list of symbols to export.
10466 always_export_symbols=yes
10467 if test "$aix_use_runtimelinking" = yes; then
10468 # Warning - without using the other runtime loading flags (-brtl),
10469 # -berok will link without error, but may produce a broken library.
10470 allow_undefined_flag='-berok'
10471 # Determine the default libpath from the value encoded in an
10472 # empty executable.
10473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10474 /* end confdefs.h. */
10477 main ()
10481 return 0;
10483 _ACEOF
10484 if ac_fn_c_try_link "$LINENO"; then :
10486 lt_aix_libpath_sed='
10487 /Import File Strings/,/^$/ {
10488 /^0/ {
10489 s/^0 *\(.*\)$/\1/
10493 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10494 # Check for a 64-bit object if we didn't find anything.
10495 if test -z "$aix_libpath"; then
10496 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10499 rm -f core conftest.err conftest.$ac_objext \
10500 conftest$ac_exeext conftest.$ac_ext
10501 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10503 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10504 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"
10505 else
10506 if test "$host_cpu" = ia64; then
10507 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10508 allow_undefined_flag="-z nodefs"
10509 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"
10510 else
10511 # Determine the default libpath from the value encoded in an
10512 # empty executable.
10513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10514 /* end confdefs.h. */
10517 main ()
10521 return 0;
10523 _ACEOF
10524 if ac_fn_c_try_link "$LINENO"; then :
10526 lt_aix_libpath_sed='
10527 /Import File Strings/,/^$/ {
10528 /^0/ {
10529 s/^0 *\(.*\)$/\1/
10533 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10534 # Check for a 64-bit object if we didn't find anything.
10535 if test -z "$aix_libpath"; then
10536 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10539 rm -f core conftest.err conftest.$ac_objext \
10540 conftest$ac_exeext conftest.$ac_ext
10541 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10543 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10544 # Warning - without using the other run time loading flags,
10545 # -berok will link without error, but may produce a broken library.
10546 no_undefined_flag=' ${wl}-bernotok'
10547 allow_undefined_flag=' ${wl}-berok'
10548 if test "$with_gnu_ld" = yes; then
10549 # We only use this code for GNU lds that support --whole-archive.
10550 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10551 else
10552 # Exported symbols can be pulled into shared objects from archives
10553 whole_archive_flag_spec='$convenience'
10555 archive_cmds_need_lc=yes
10556 # This is similar to how AIX traditionally builds its shared libraries.
10557 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'
10562 amigaos*)
10563 case $host_cpu in
10564 powerpc)
10565 # see comment about AmigaOS4 .so support
10566 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10567 archive_expsym_cmds=''
10569 m68k)
10570 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)'
10571 hardcode_libdir_flag_spec='-L$libdir'
10572 hardcode_minus_L=yes
10574 esac
10577 bsdi[45]*)
10578 export_dynamic_flag_spec=-rdynamic
10581 cygwin* | mingw* | pw32* | cegcc*)
10582 # When not using gcc, we currently assume that we are using
10583 # Microsoft Visual C++.
10584 # hardcode_libdir_flag_spec is actually meaningless, as there is
10585 # no search path for DLLs.
10586 hardcode_libdir_flag_spec=' '
10587 allow_undefined_flag=unsupported
10588 # Tell ltmain to make .lib files, not .a files.
10589 libext=lib
10590 # Tell ltmain to make .dll files, not .so files.
10591 shrext_cmds=".dll"
10592 # FIXME: Setting linknames here is a bad hack.
10593 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10594 # The linker will automatically build a .lib file if we build a DLL.
10595 old_archive_from_new_cmds='true'
10596 # FIXME: Should let the user specify the lib program.
10597 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10598 fix_srcfile_path='`cygpath -w "$srcfile"`'
10599 enable_shared_with_static_runtimes=yes
10602 darwin* | rhapsody*)
10606 # Publish an arg to allow the user to select that Darwin host (and target)
10607 # libraries should be given install-names like @rpath/libfoo.dylib. This
10608 # requires that the user of the library then adds an 'rpath' to the DSO that
10609 # needs access.
10610 # NOTE: there are defaults below, for systems that support rpaths. The person
10611 # configuring can override the defaults for any system version that supports
10612 # them - they are, however, forced off for system versions without support.
10613 # Check whether --enable-darwin-at-rpath was given.
10614 if test "${enable_darwin_at_rpath+set}" = set; then :
10615 enableval=$enable_darwin_at_rpath; if test "x$enable_darwin_at_rpath" = "xyes"; then
10616 # This is not supported before macOS 10.5 / Darwin9.
10617 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
10618 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
10619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&5
10620 $as_echo "$as_me: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&2;}
10621 enable_darwin_at_rpath=no
10623 esac
10625 else
10626 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
10627 # As above, before 10.5 / Darwin9 this does not work.
10628 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
10629 enable_darwin_at_rpath=no
10632 # We cannot build and test reliably on macOS 10.11+ (Darwin15+) without use
10633 # of rpaths, since runpaths set via DYLD_LIBRARY_PATH are elided by key
10634 # system executables (e.g. /bin/sh). Force rpaths on for these systems.
10635 UNSET,darwin1[5-9]*|UNSET,darwin2*|10.1[1-9][,.]*|1[1-9].*[,.]* )
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&5
10637 $as_echo "$as_me: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&6;}
10638 enable_darwin_at_rpath=yes
10640 # NOTE: we are not (yet) doing anything for 10.5 .. 10.10, since they can
10641 # work with either DYLD_LIBRARY_PATH or embedded rpaths.
10643 esac
10648 archive_cmds_need_lc=no
10649 hardcode_direct=no
10650 hardcode_automatic=yes
10651 hardcode_shlibpath_var=unsupported
10652 if test "$lt_cv_ld_force_load" = "yes"; then
10653 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\"`'
10654 else
10655 whole_archive_flag_spec=''
10657 link_all_deplibs=yes
10658 allow_undefined_flag="$_lt_dar_allow_undefined"
10659 case $cc_basename in
10660 ifort*) _lt_dar_can_shared=yes ;;
10661 *) _lt_dar_can_shared=$GCC ;;
10662 esac
10663 if test "$_lt_dar_can_shared" = "yes"; then
10664 output_verbose_link_cmd=func_echo_all
10665 _lt_install_name='\$rpath/\$soname'
10666 if test "x$enable_darwin_at_rpath" = "xyes"; then
10667 _lt_install_name='@rpath/\$soname'
10669 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dsymutil}"
10670 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10671 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 ${_lt_install_name} \$verstring ${_lt_dar_export_syms}${_lt_dsymutil}"
10672 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}"
10674 else
10675 ld_shlibs=no
10680 dgux*)
10681 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10682 hardcode_libdir_flag_spec='-L$libdir'
10683 hardcode_shlibpath_var=no
10686 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10687 # support. Future versions do this automatically, but an explicit c++rt0.o
10688 # does not break anything, and helps significantly (at the cost of a little
10689 # extra space).
10690 freebsd2.2*)
10691 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10692 hardcode_libdir_flag_spec='-R$libdir'
10693 hardcode_direct=yes
10694 hardcode_shlibpath_var=no
10697 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10698 freebsd2.*)
10699 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10700 hardcode_direct=yes
10701 hardcode_minus_L=yes
10702 hardcode_shlibpath_var=no
10705 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10706 freebsd* | dragonfly*)
10707 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10708 hardcode_libdir_flag_spec='-R$libdir'
10709 hardcode_direct=yes
10710 hardcode_shlibpath_var=no
10713 hpux9*)
10714 if test "$GCC" = yes; then
10715 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'
10716 else
10717 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'
10719 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10720 hardcode_libdir_separator=:
10721 hardcode_direct=yes
10723 # hardcode_minus_L: Not really in the search PATH,
10724 # but as the default location of the library.
10725 hardcode_minus_L=yes
10726 export_dynamic_flag_spec='${wl}-E'
10729 hpux10*)
10730 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10731 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10732 else
10733 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10735 if test "$with_gnu_ld" = no; then
10736 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10737 hardcode_libdir_flag_spec_ld='+b $libdir'
10738 hardcode_libdir_separator=:
10739 hardcode_direct=yes
10740 hardcode_direct_absolute=yes
10741 export_dynamic_flag_spec='${wl}-E'
10742 # hardcode_minus_L: Not really in the search PATH,
10743 # but as the default location of the library.
10744 hardcode_minus_L=yes
10748 hpux11*)
10749 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10750 case $host_cpu in
10751 hppa*64*)
10752 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10754 ia64*)
10755 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10758 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10760 esac
10761 else
10762 case $host_cpu in
10763 hppa*64*)
10764 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10766 ia64*)
10767 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10771 # Older versions of the 11.00 compiler do not understand -b yet
10772 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10774 $as_echo_n "checking if $CC understands -b... " >&6; }
10775 if ${lt_cv_prog_compiler__b+:} false; then :
10776 $as_echo_n "(cached) " >&6
10777 else
10778 lt_cv_prog_compiler__b=no
10779 save_LDFLAGS="$LDFLAGS"
10780 LDFLAGS="$LDFLAGS -b"
10781 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10782 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10783 # The linker can only warn and ignore the option if not recognized
10784 # So say no if there are warnings
10785 if test -s conftest.err; then
10786 # Append any errors to the config.log.
10787 cat conftest.err 1>&5
10788 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10789 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10790 if diff conftest.exp conftest.er2 >/dev/null; then
10791 lt_cv_prog_compiler__b=yes
10793 else
10794 lt_cv_prog_compiler__b=yes
10797 $RM -r conftest*
10798 LDFLAGS="$save_LDFLAGS"
10801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10802 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10804 if test x"$lt_cv_prog_compiler__b" = xyes; then
10805 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10806 else
10807 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10811 esac
10813 if test "$with_gnu_ld" = no; then
10814 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10815 hardcode_libdir_separator=:
10817 case $host_cpu in
10818 hppa*64*|ia64*)
10819 hardcode_direct=no
10820 hardcode_shlibpath_var=no
10823 hardcode_direct=yes
10824 hardcode_direct_absolute=yes
10825 export_dynamic_flag_spec='${wl}-E'
10827 # hardcode_minus_L: Not really in the search PATH,
10828 # but as the default location of the library.
10829 hardcode_minus_L=yes
10831 esac
10835 irix5* | irix6* | nonstopux*)
10836 if test "$GCC" = yes; then
10837 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'
10838 # Try to use the -exported_symbol ld option, if it does not
10839 # work, assume that -exports_file does not work either and
10840 # implicitly export all symbols.
10841 save_LDFLAGS="$LDFLAGS"
10842 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10844 /* end confdefs.h. */
10845 int foo(void) {}
10846 _ACEOF
10847 if ac_fn_c_try_link "$LINENO"; then :
10848 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'
10851 rm -f core conftest.err conftest.$ac_objext \
10852 conftest$ac_exeext conftest.$ac_ext
10853 LDFLAGS="$save_LDFLAGS"
10854 else
10855 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'
10856 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'
10858 archive_cmds_need_lc='no'
10859 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10860 hardcode_libdir_separator=:
10861 inherit_rpath=yes
10862 link_all_deplibs=yes
10865 netbsd*)
10866 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10867 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10868 else
10869 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10871 hardcode_libdir_flag_spec='-R$libdir'
10872 hardcode_direct=yes
10873 hardcode_shlibpath_var=no
10876 newsos6)
10877 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10878 hardcode_direct=yes
10879 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10880 hardcode_libdir_separator=:
10881 hardcode_shlibpath_var=no
10884 *nto* | *qnx*)
10887 openbsd*)
10888 if test -f /usr/libexec/ld.so; then
10889 hardcode_direct=yes
10890 hardcode_shlibpath_var=no
10891 hardcode_direct_absolute=yes
10892 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10893 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10894 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10895 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10896 export_dynamic_flag_spec='${wl}-E'
10897 else
10898 case $host_os in
10899 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10900 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10901 hardcode_libdir_flag_spec='-R$libdir'
10904 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10905 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10907 esac
10909 else
10910 ld_shlibs=no
10914 os2*)
10915 hardcode_libdir_flag_spec='-L$libdir'
10916 hardcode_minus_L=yes
10917 allow_undefined_flag=unsupported
10918 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'
10919 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10922 osf3*)
10923 if test "$GCC" = yes; then
10924 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10925 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'
10926 else
10927 allow_undefined_flag=' -expect_unresolved \*'
10928 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'
10930 archive_cmds_need_lc='no'
10931 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10932 hardcode_libdir_separator=:
10935 osf4* | osf5*) # as osf3* with the addition of -msym flag
10936 if test "$GCC" = yes; then
10937 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10938 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'
10939 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10940 else
10941 allow_undefined_flag=' -expect_unresolved \*'
10942 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'
10943 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~
10944 $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'
10946 # Both c and cxx compiler support -rpath directly
10947 hardcode_libdir_flag_spec='-rpath $libdir'
10949 archive_cmds_need_lc='no'
10950 hardcode_libdir_separator=:
10953 solaris*)
10954 no_undefined_flag=' -z defs'
10955 if test "$GCC" = yes; then
10956 wlarc='${wl}'
10957 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10958 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10959 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10960 else
10961 case `$CC -V 2>&1` in
10962 *"Compilers 5.0"*)
10963 wlarc=''
10964 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10965 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10966 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10969 wlarc='${wl}'
10970 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10971 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10972 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10974 esac
10976 hardcode_libdir_flag_spec='-R$libdir'
10977 hardcode_shlibpath_var=no
10978 case $host_os in
10979 solaris2.[0-5] | solaris2.[0-5].*) ;;
10981 # The compiler driver will combine and reorder linker options,
10982 # but understands `-z linker_flag'. GCC discards it without `$wl',
10983 # but is careful enough not to reorder.
10984 # Supported since Solaris 2.6 (maybe 2.5.1?)
10985 if test "$GCC" = yes; then
10986 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10987 else
10988 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10991 esac
10992 link_all_deplibs=yes
10995 sunos4*)
10996 if test "x$host_vendor" = xsequent; then
10997 # Use $CC to link under sequent, because it throws in some extra .o
10998 # files that make .init and .fini sections work.
10999 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11000 else
11001 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11003 hardcode_libdir_flag_spec='-L$libdir'
11004 hardcode_direct=yes
11005 hardcode_minus_L=yes
11006 hardcode_shlibpath_var=no
11009 sysv4)
11010 case $host_vendor in
11011 sni)
11012 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11013 hardcode_direct=yes # is this really true???
11015 siemens)
11016 ## LD is ld it makes a PLAMLIB
11017 ## CC just makes a GrossModule.
11018 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11019 reload_cmds='$CC -r -o $output$reload_objs'
11020 hardcode_direct=no
11022 motorola)
11023 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11024 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11026 esac
11027 runpath_var='LD_RUN_PATH'
11028 hardcode_shlibpath_var=no
11031 sysv4.3*)
11032 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11033 hardcode_shlibpath_var=no
11034 export_dynamic_flag_spec='-Bexport'
11037 sysv4*MP*)
11038 if test -d /usr/nec; then
11039 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11040 hardcode_shlibpath_var=no
11041 runpath_var=LD_RUN_PATH
11042 hardcode_runpath_var=yes
11043 ld_shlibs=yes
11047 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11048 no_undefined_flag='${wl}-z,text'
11049 archive_cmds_need_lc=no
11050 hardcode_shlibpath_var=no
11051 runpath_var='LD_RUN_PATH'
11053 if test "$GCC" = yes; then
11054 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11055 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11056 else
11057 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11058 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11062 sysv5* | sco3.2v5* | sco5v6*)
11063 # Note: We can NOT use -z defs as we might desire, because we do not
11064 # link with -lc, and that would cause any symbols used from libc to
11065 # always be unresolved, which means just about no library would
11066 # ever link correctly. If we're not using GNU ld we use -z text
11067 # though, which does catch some bad symbols but isn't as heavy-handed
11068 # as -z defs.
11069 no_undefined_flag='${wl}-z,text'
11070 allow_undefined_flag='${wl}-z,nodefs'
11071 archive_cmds_need_lc=no
11072 hardcode_shlibpath_var=no
11073 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11074 hardcode_libdir_separator=':'
11075 link_all_deplibs=yes
11076 export_dynamic_flag_spec='${wl}-Bexport'
11077 runpath_var='LD_RUN_PATH'
11079 if test "$GCC" = yes; then
11080 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11081 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11082 else
11083 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11084 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11088 uts4*)
11089 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11090 hardcode_libdir_flag_spec='-L$libdir'
11091 hardcode_shlibpath_var=no
11095 ld_shlibs=no
11097 esac
11099 if test x$host_vendor = xsni; then
11100 case $host in
11101 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11102 export_dynamic_flag_spec='${wl}-Blargedynsym'
11104 esac
11108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11109 $as_echo "$ld_shlibs" >&6; }
11110 test "$ld_shlibs" = no && can_build_shared=no
11112 with_gnu_ld=$with_gnu_ld
11129 # Do we need to explicitly link libc?
11131 case "x$archive_cmds_need_lc" in
11132 x|xyes)
11133 # Assume -lc should be added
11134 archive_cmds_need_lc=yes
11136 if test "$enable_shared" = yes && test "$GCC" = yes; then
11137 case $archive_cmds in
11138 *'~'*)
11139 # FIXME: we may have to deal with multi-command sequences.
11141 '$CC '*)
11142 # Test whether the compiler implicitly links with -lc since on some
11143 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11144 # to ld, don't add -lc before -lgcc.
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11146 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11147 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11148 $as_echo_n "(cached) " >&6
11149 else
11150 $RM conftest*
11151 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11153 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11154 (eval $ac_compile) 2>&5
11155 ac_status=$?
11156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11157 test $ac_status = 0; } 2>conftest.err; then
11158 soname=conftest
11159 lib=conftest
11160 libobjs=conftest.$ac_objext
11161 deplibs=
11162 wl=$lt_prog_compiler_wl
11163 pic_flag=$lt_prog_compiler_pic
11164 compiler_flags=-v
11165 linker_flags=-v
11166 verstring=
11167 output_objdir=.
11168 libname=conftest
11169 lt_save_allow_undefined_flag=$allow_undefined_flag
11170 allow_undefined_flag=
11171 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11172 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11173 ac_status=$?
11174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11175 test $ac_status = 0; }
11176 then
11177 lt_cv_archive_cmds_need_lc=no
11178 else
11179 lt_cv_archive_cmds_need_lc=yes
11181 allow_undefined_flag=$lt_save_allow_undefined_flag
11182 else
11183 cat conftest.err 1>&5
11185 $RM conftest*
11188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11189 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11190 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11192 esac
11195 esac
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11354 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11356 if test "$GCC" = yes; then
11357 case $host_os in
11358 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11359 *) lt_awk_arg="/^libraries:/" ;;
11360 esac
11361 case $host_os in
11362 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11363 *) lt_sed_strip_eq="s,=/,/,g" ;;
11364 esac
11365 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11366 case $lt_search_path_spec in
11367 *\;*)
11368 # if the path contains ";" then we assume it to be the separator
11369 # otherwise default to the standard path separator (i.e. ":") - it is
11370 # assumed that no part of a normal pathname contains ";" but that should
11371 # okay in the real world where ";" in dirpaths is itself problematic.
11372 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11375 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11377 esac
11378 # Ok, now we have the path, separated by spaces, we can step through it
11379 # and add multilib dir if necessary.
11380 lt_tmp_lt_search_path_spec=
11381 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11382 for lt_sys_path in $lt_search_path_spec; do
11383 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11384 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11385 else
11386 test -d "$lt_sys_path" && \
11387 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11389 done
11390 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11391 BEGIN {RS=" "; FS="/|\n";} {
11392 lt_foo="";
11393 lt_count=0;
11394 for (lt_i = NF; lt_i > 0; lt_i--) {
11395 if ($lt_i != "" && $lt_i != ".") {
11396 if ($lt_i == "..") {
11397 lt_count++;
11398 } else {
11399 if (lt_count == 0) {
11400 lt_foo="/" $lt_i lt_foo;
11401 } else {
11402 lt_count--;
11407 if (lt_foo != "") { lt_freq[lt_foo]++; }
11408 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11410 # AWK program above erroneously prepends '/' to C:/dos/paths
11411 # for these hosts.
11412 case $host_os in
11413 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11414 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11415 esac
11416 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11417 else
11418 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11420 library_names_spec=
11421 libname_spec='lib$name'
11422 soname_spec=
11423 shrext_cmds=".so"
11424 postinstall_cmds=
11425 postuninstall_cmds=
11426 finish_cmds=
11427 finish_eval=
11428 shlibpath_var=
11429 shlibpath_overrides_runpath=unknown
11430 version_type=none
11431 dynamic_linker="$host_os ld.so"
11432 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11433 need_lib_prefix=unknown
11434 hardcode_into_libs=no
11436 # when you set need_version to no, make sure it does not cause -set_version
11437 # flags to be left without arguments
11438 need_version=unknown
11440 case $host_os in
11441 aix3*)
11442 version_type=linux
11443 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11444 shlibpath_var=LIBPATH
11446 # AIX 3 has no versioning support, so we append a major version to the name.
11447 soname_spec='${libname}${release}${shared_ext}$major'
11450 aix[4-9]*)
11451 version_type=linux
11452 need_lib_prefix=no
11453 need_version=no
11454 hardcode_into_libs=yes
11455 if test "$host_cpu" = ia64; then
11456 # AIX 5 supports IA64
11457 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11458 shlibpath_var=LD_LIBRARY_PATH
11459 else
11460 # With GCC up to 2.95.x, collect2 would create an import file
11461 # for dependence libraries. The import file would start with
11462 # the line `#! .'. This would cause the generated library to
11463 # depend on `.', always an invalid library. This was fixed in
11464 # development snapshots of GCC prior to 3.0.
11465 case $host_os in
11466 aix4 | aix4.[01] | aix4.[01].*)
11467 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11468 echo ' yes '
11469 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11471 else
11472 can_build_shared=no
11475 esac
11476 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11477 # soname into executable. Probably we can add versioning support to
11478 # collect2, so additional links can be useful in future.
11479 if test "$aix_use_runtimelinking" = yes; then
11480 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11481 # instead of lib<name>.a to let people know that these are not
11482 # typical AIX shared libraries.
11483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11484 else
11485 # We preserve .a as extension for shared libraries through AIX4.2
11486 # and later when we are not doing run time linking.
11487 library_names_spec='${libname}${release}.a $libname.a'
11488 soname_spec='${libname}${release}${shared_ext}$major'
11490 shlibpath_var=LIBPATH
11494 amigaos*)
11495 case $host_cpu in
11496 powerpc)
11497 # Since July 2007 AmigaOS4 officially supports .so libraries.
11498 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11501 m68k)
11502 library_names_spec='$libname.ixlibrary $libname.a'
11503 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11504 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'
11506 esac
11509 beos*)
11510 library_names_spec='${libname}${shared_ext}'
11511 dynamic_linker="$host_os ld.so"
11512 shlibpath_var=LIBRARY_PATH
11515 bsdi[45]*)
11516 version_type=linux
11517 need_version=no
11518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11519 soname_spec='${libname}${release}${shared_ext}$major'
11520 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11521 shlibpath_var=LD_LIBRARY_PATH
11522 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11523 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11524 # the default ld.so.conf also contains /usr/contrib/lib and
11525 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11526 # libtool to hard-code these into programs
11529 cygwin* | mingw* | pw32* | cegcc*)
11530 version_type=windows
11531 shrext_cmds=".dll"
11532 need_version=no
11533 need_lib_prefix=no
11535 case $GCC,$host_os in
11536 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11537 library_names_spec='$libname.dll.a'
11538 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11539 postinstall_cmds='base_file=`basename \${file}`~
11540 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11541 dldir=$destdir/`dirname \$dlpath`~
11542 test -d \$dldir || mkdir -p \$dldir~
11543 $install_prog $dir/$dlname \$dldir/$dlname~
11544 chmod a+x \$dldir/$dlname~
11545 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11546 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11548 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11549 dlpath=$dir/\$dldll~
11550 $RM \$dlpath'
11551 shlibpath_overrides_runpath=yes
11553 case $host_os in
11554 cygwin*)
11555 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11556 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11558 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11560 mingw* | cegcc*)
11561 # MinGW DLLs use traditional 'lib' prefix
11562 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11564 pw32*)
11565 # pw32 DLLs use 'pw' prefix rather than 'lib'
11566 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11568 esac
11572 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11574 esac
11575 dynamic_linker='Win32 ld.exe'
11576 # FIXME: first we should search . and the directory the executable is in
11577 shlibpath_var=PATH
11580 darwin* | rhapsody*)
11581 dynamic_linker="$host_os dyld"
11582 version_type=darwin
11583 need_lib_prefix=no
11584 need_version=no
11585 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11586 soname_spec='${libname}${release}${major}$shared_ext'
11587 shlibpath_overrides_runpath=yes
11588 shlibpath_var=DYLD_LIBRARY_PATH
11589 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11591 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11592 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11595 dgux*)
11596 version_type=linux
11597 need_lib_prefix=no
11598 need_version=no
11599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11600 soname_spec='${libname}${release}${shared_ext}$major'
11601 shlibpath_var=LD_LIBRARY_PATH
11604 freebsd* | dragonfly*)
11605 # DragonFly does not have aout. When/if they implement a new
11606 # versioning mechanism, adjust this.
11607 if test -x /usr/bin/objformat; then
11608 objformat=`/usr/bin/objformat`
11609 else
11610 case $host_os in
11611 freebsd[23].*) objformat=aout ;;
11612 *) objformat=elf ;;
11613 esac
11615 version_type=freebsd-$objformat
11616 case $version_type in
11617 freebsd-elf*)
11618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11619 need_version=no
11620 need_lib_prefix=no
11622 freebsd-*)
11623 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11624 need_version=yes
11626 esac
11627 shlibpath_var=LD_LIBRARY_PATH
11628 case $host_os in
11629 freebsd2.*)
11630 shlibpath_overrides_runpath=yes
11632 freebsd3.[01]* | freebsdelf3.[01]*)
11633 shlibpath_overrides_runpath=yes
11634 hardcode_into_libs=yes
11636 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11637 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11638 shlibpath_overrides_runpath=no
11639 hardcode_into_libs=yes
11641 *) # from 4.6 on, and DragonFly
11642 shlibpath_overrides_runpath=yes
11643 hardcode_into_libs=yes
11645 esac
11648 haiku*)
11649 version_type=linux
11650 need_lib_prefix=no
11651 need_version=no
11652 dynamic_linker="$host_os runtime_loader"
11653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11654 soname_spec='${libname}${release}${shared_ext}$major'
11655 shlibpath_var=LIBRARY_PATH
11656 shlibpath_overrides_runpath=yes
11657 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11658 hardcode_into_libs=yes
11661 hpux9* | hpux10* | hpux11*)
11662 # Give a soname corresponding to the major version so that dld.sl refuses to
11663 # link against other versions.
11664 version_type=sunos
11665 need_lib_prefix=no
11666 need_version=no
11667 case $host_cpu in
11668 ia64*)
11669 shrext_cmds='.so'
11670 hardcode_into_libs=yes
11671 dynamic_linker="$host_os dld.so"
11672 shlibpath_var=LD_LIBRARY_PATH
11673 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11675 soname_spec='${libname}${release}${shared_ext}$major'
11676 if test "X$HPUX_IA64_MODE" = X32; then
11677 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11678 else
11679 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11681 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11683 hppa*64*)
11684 shrext_cmds='.sl'
11685 hardcode_into_libs=yes
11686 dynamic_linker="$host_os dld.sl"
11687 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11688 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11690 soname_spec='${libname}${release}${shared_ext}$major'
11691 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11692 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11695 shrext_cmds='.sl'
11696 dynamic_linker="$host_os dld.sl"
11697 shlibpath_var=SHLIB_PATH
11698 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11700 soname_spec='${libname}${release}${shared_ext}$major'
11702 esac
11703 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11704 postinstall_cmds='chmod 555 $lib'
11705 # or fails outright, so override atomically:
11706 install_override_mode=555
11709 interix[3-9]*)
11710 version_type=linux
11711 need_lib_prefix=no
11712 need_version=no
11713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11714 soname_spec='${libname}${release}${shared_ext}$major'
11715 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11716 shlibpath_var=LD_LIBRARY_PATH
11717 shlibpath_overrides_runpath=no
11718 hardcode_into_libs=yes
11721 irix5* | irix6* | nonstopux*)
11722 case $host_os in
11723 nonstopux*) version_type=nonstopux ;;
11725 if test "$lt_cv_prog_gnu_ld" = yes; then
11726 version_type=linux
11727 else
11728 version_type=irix
11729 fi ;;
11730 esac
11731 need_lib_prefix=no
11732 need_version=no
11733 soname_spec='${libname}${release}${shared_ext}$major'
11734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11735 case $host_os in
11736 irix5* | nonstopux*)
11737 libsuff= shlibsuff=
11740 case $LD in # libtool.m4 will add one of these switches to LD
11741 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11742 libsuff= shlibsuff= libmagic=32-bit;;
11743 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11744 libsuff=32 shlibsuff=N32 libmagic=N32;;
11745 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11746 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11747 *) libsuff= shlibsuff= libmagic=never-match;;
11748 esac
11750 esac
11751 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11752 shlibpath_overrides_runpath=no
11753 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11754 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11755 hardcode_into_libs=yes
11758 # No shared lib support for Linux oldld, aout, or coff.
11759 linux*oldld* | linux*aout* | linux*coff*)
11760 dynamic_linker=no
11763 # This must be Linux ELF.
11765 # uclinux* changes (here and below) have been submitted to the libtool
11766 # project, but have not yet been accepted: they are GCC-local changes
11767 # for the time being. (See
11768 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
11769 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
11770 version_type=linux
11771 need_lib_prefix=no
11772 need_version=no
11773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11774 soname_spec='${libname}${release}${shared_ext}$major'
11775 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11776 shlibpath_var=LD_LIBRARY_PATH
11777 shlibpath_overrides_runpath=no
11779 # Some binutils ld are patched to set DT_RUNPATH
11780 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11781 $as_echo_n "(cached) " >&6
11782 else
11783 lt_cv_shlibpath_overrides_runpath=no
11784 save_LDFLAGS=$LDFLAGS
11785 save_libdir=$libdir
11786 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11787 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11789 /* end confdefs.h. */
11792 main ()
11796 return 0;
11798 _ACEOF
11799 if ac_fn_c_try_link "$LINENO"; then :
11800 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11801 lt_cv_shlibpath_overrides_runpath=yes
11804 rm -f core conftest.err conftest.$ac_objext \
11805 conftest$ac_exeext conftest.$ac_ext
11806 LDFLAGS=$save_LDFLAGS
11807 libdir=$save_libdir
11811 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11813 # This implies no fast_install, which is unacceptable.
11814 # Some rework will be needed to allow for fast_install
11815 # before this can be enabled.
11816 hardcode_into_libs=yes
11818 # Append ld.so.conf contents to the search path
11819 if test -f /etc/ld.so.conf; then
11820 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' ' '`
11821 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11824 # We used to test for /lib/ld.so.1 and disable shared libraries on
11825 # powerpc, because MkLinux only supported shared libraries with the
11826 # GNU dynamic linker. Since this was broken with cross compilers,
11827 # most powerpc-linux boxes support dynamic linking these days and
11828 # people can always --disable-shared, the test was removed, and we
11829 # assume the GNU/Linux dynamic linker is in use.
11830 dynamic_linker='GNU/Linux ld.so'
11833 netbsd*)
11834 version_type=sunos
11835 need_lib_prefix=no
11836 need_version=no
11837 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11839 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11840 dynamic_linker='NetBSD (a.out) ld.so'
11841 else
11842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11843 soname_spec='${libname}${release}${shared_ext}$major'
11844 dynamic_linker='NetBSD ld.elf_so'
11846 shlibpath_var=LD_LIBRARY_PATH
11847 shlibpath_overrides_runpath=yes
11848 hardcode_into_libs=yes
11851 newsos6)
11852 version_type=linux
11853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11854 shlibpath_var=LD_LIBRARY_PATH
11855 shlibpath_overrides_runpath=yes
11858 *nto* | *qnx*)
11859 version_type=qnx
11860 need_lib_prefix=no
11861 need_version=no
11862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11863 soname_spec='${libname}${release}${shared_ext}$major'
11864 shlibpath_var=LD_LIBRARY_PATH
11865 shlibpath_overrides_runpath=no
11866 hardcode_into_libs=yes
11867 dynamic_linker='ldqnx.so'
11870 openbsd*)
11871 version_type=sunos
11872 sys_lib_dlsearch_path_spec="/usr/lib"
11873 need_lib_prefix=no
11874 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11875 case $host_os in
11876 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11877 *) need_version=no ;;
11878 esac
11879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11880 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11881 shlibpath_var=LD_LIBRARY_PATH
11882 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11883 case $host_os in
11884 openbsd2.[89] | openbsd2.[89].*)
11885 shlibpath_overrides_runpath=no
11888 shlibpath_overrides_runpath=yes
11890 esac
11891 else
11892 shlibpath_overrides_runpath=yes
11896 os2*)
11897 libname_spec='$name'
11898 shrext_cmds=".dll"
11899 need_lib_prefix=no
11900 library_names_spec='$libname${shared_ext} $libname.a'
11901 dynamic_linker='OS/2 ld.exe'
11902 shlibpath_var=LIBPATH
11905 osf3* | osf4* | osf5*)
11906 version_type=osf
11907 need_lib_prefix=no
11908 need_version=no
11909 soname_spec='${libname}${release}${shared_ext}$major'
11910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11911 shlibpath_var=LD_LIBRARY_PATH
11912 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11913 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11916 rdos*)
11917 dynamic_linker=no
11920 solaris*)
11921 version_type=linux
11922 need_lib_prefix=no
11923 need_version=no
11924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11925 soname_spec='${libname}${release}${shared_ext}$major'
11926 shlibpath_var=LD_LIBRARY_PATH
11927 shlibpath_overrides_runpath=yes
11928 hardcode_into_libs=yes
11929 # ldd complains unless libraries are executable
11930 postinstall_cmds='chmod +x $lib'
11933 sunos4*)
11934 version_type=sunos
11935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11936 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11937 shlibpath_var=LD_LIBRARY_PATH
11938 shlibpath_overrides_runpath=yes
11939 if test "$with_gnu_ld" = yes; then
11940 need_lib_prefix=no
11942 need_version=yes
11945 sysv4 | sysv4.3*)
11946 version_type=linux
11947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11948 soname_spec='${libname}${release}${shared_ext}$major'
11949 shlibpath_var=LD_LIBRARY_PATH
11950 case $host_vendor in
11951 sni)
11952 shlibpath_overrides_runpath=no
11953 need_lib_prefix=no
11954 runpath_var=LD_RUN_PATH
11956 siemens)
11957 need_lib_prefix=no
11959 motorola)
11960 need_lib_prefix=no
11961 need_version=no
11962 shlibpath_overrides_runpath=no
11963 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11965 esac
11968 sysv4*MP*)
11969 if test -d /usr/nec ;then
11970 version_type=linux
11971 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11972 soname_spec='$libname${shared_ext}.$major'
11973 shlibpath_var=LD_LIBRARY_PATH
11977 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11978 version_type=freebsd-elf
11979 need_lib_prefix=no
11980 need_version=no
11981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11982 soname_spec='${libname}${release}${shared_ext}$major'
11983 shlibpath_var=LD_LIBRARY_PATH
11984 shlibpath_overrides_runpath=yes
11985 hardcode_into_libs=yes
11986 if test "$with_gnu_ld" = yes; then
11987 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11988 else
11989 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11990 case $host_os in
11991 sco3.2v5*)
11992 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11994 esac
11996 sys_lib_dlsearch_path_spec='/usr/lib'
11999 tpf*)
12000 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12001 version_type=linux
12002 need_lib_prefix=no
12003 need_version=no
12004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12005 shlibpath_var=LD_LIBRARY_PATH
12006 shlibpath_overrides_runpath=no
12007 hardcode_into_libs=yes
12010 uts4*)
12011 version_type=linux
12012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12013 soname_spec='${libname}${release}${shared_ext}$major'
12014 shlibpath_var=LD_LIBRARY_PATH
12017 # Shared libraries for VwWorks, >= 7 only at this stage
12018 # and (fpic) still incompatible with "large" code models
12019 # in a few configurations. Only for RTP mode in any case,
12020 # and upon explicit request at configure time.
12021 vxworks7*)
12022 dynamic_linker=no
12023 case ${with_multisubdir}-${enable_shared} in
12024 *large*)
12026 *mrtp*-yes)
12027 version_type=linux
12028 need_lib_prefix=no
12029 need_version=no
12030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12031 soname_spec='${libname}${release}${shared_ext}$major'
12032 dynamic_linker="$host_os module_loader"
12034 esac
12037 dynamic_linker=no
12039 esac
12040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12041 $as_echo "$dynamic_linker" >&6; }
12042 test "$dynamic_linker" = no && can_build_shared=no
12044 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12045 if test "$GCC" = yes; then
12046 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12049 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12050 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12052 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12053 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12148 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12149 hardcode_action=
12150 if test -n "$hardcode_libdir_flag_spec" ||
12151 test -n "$runpath_var" ||
12152 test "X$hardcode_automatic" = "Xyes" ; then
12154 # We can hardcode non-existent directories.
12155 if test "$hardcode_direct" != no &&
12156 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12157 # have to relink, otherwise we might link with an installed library
12158 # when we should be linking with a yet-to-be-installed one
12159 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12160 test "$hardcode_minus_L" != no; then
12161 # Linking always hardcodes the temporary library directory.
12162 hardcode_action=relink
12163 else
12164 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12165 hardcode_action=immediate
12167 else
12168 # We cannot hardcode anything, or else we can only hardcode existing
12169 # directories.
12170 hardcode_action=unsupported
12172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12173 $as_echo "$hardcode_action" >&6; }
12175 if test "$hardcode_action" = relink ||
12176 test "$inherit_rpath" = yes; then
12177 # Fast installation is not supported
12178 enable_fast_install=no
12179 elif test "$shlibpath_overrides_runpath" = yes ||
12180 test "$enable_shared" = no; then
12181 # Fast installation is not necessary
12182 enable_fast_install=needless
12190 if test "x$enable_dlopen" != xyes; then
12191 enable_dlopen=unknown
12192 enable_dlopen_self=unknown
12193 enable_dlopen_self_static=unknown
12194 else
12195 lt_cv_dlopen=no
12196 lt_cv_dlopen_libs=
12198 case $host_os in
12199 beos*)
12200 lt_cv_dlopen="load_add_on"
12201 lt_cv_dlopen_libs=
12202 lt_cv_dlopen_self=yes
12205 mingw* | pw32* | cegcc*)
12206 lt_cv_dlopen="LoadLibrary"
12207 lt_cv_dlopen_libs=
12210 cygwin*)
12211 lt_cv_dlopen="dlopen"
12212 lt_cv_dlopen_libs=
12215 darwin*)
12216 # if libdl is installed we need to link against it
12217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12218 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12219 if ${ac_cv_lib_dl_dlopen+:} false; then :
12220 $as_echo_n "(cached) " >&6
12221 else
12222 ac_check_lib_save_LIBS=$LIBS
12223 LIBS="-ldl $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 dlopen ();
12235 main ()
12237 return dlopen ();
12239 return 0;
12241 _ACEOF
12242 if ac_fn_c_try_link "$LINENO"; then :
12243 ac_cv_lib_dl_dlopen=yes
12244 else
12245 ac_cv_lib_dl_dlopen=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_dl_dlopen" >&5
12252 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12253 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12254 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12255 else
12257 lt_cv_dlopen="dyld"
12258 lt_cv_dlopen_libs=
12259 lt_cv_dlopen_self=yes
12266 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12267 if test "x$ac_cv_func_shl_load" = xyes; then :
12268 lt_cv_dlopen="shl_load"
12269 else
12270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12271 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12272 if ${ac_cv_lib_dld_shl_load+:} false; then :
12273 $as_echo_n "(cached) " >&6
12274 else
12275 ac_check_lib_save_LIBS=$LIBS
12276 LIBS="-ldld $LIBS"
12277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12278 /* end confdefs.h. */
12280 /* Override any GCC internal prototype to avoid an error.
12281 Use char because int might match the return type of a GCC
12282 builtin and then its argument prototype would still apply. */
12283 #ifdef __cplusplus
12284 extern "C"
12285 #endif
12286 char shl_load ();
12288 main ()
12290 return shl_load ();
12292 return 0;
12294 _ACEOF
12295 if ac_fn_c_try_link "$LINENO"; then :
12296 ac_cv_lib_dld_shl_load=yes
12297 else
12298 ac_cv_lib_dld_shl_load=no
12300 rm -f core conftest.err conftest.$ac_objext \
12301 conftest$ac_exeext conftest.$ac_ext
12302 LIBS=$ac_check_lib_save_LIBS
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12305 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12306 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12307 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12308 else
12309 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12310 if test "x$ac_cv_func_dlopen" = xyes; then :
12311 lt_cv_dlopen="dlopen"
12312 else
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12314 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12315 if ${ac_cv_lib_dl_dlopen+:} false; then :
12316 $as_echo_n "(cached) " >&6
12317 else
12318 ac_check_lib_save_LIBS=$LIBS
12319 LIBS="-ldl $LIBS"
12320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12321 /* end confdefs.h. */
12323 /* Override any GCC internal prototype to avoid an error.
12324 Use char because int might match the return type of a GCC
12325 builtin and then its argument prototype would still apply. */
12326 #ifdef __cplusplus
12327 extern "C"
12328 #endif
12329 char dlopen ();
12331 main ()
12333 return dlopen ();
12335 return 0;
12337 _ACEOF
12338 if ac_fn_c_try_link "$LINENO"; then :
12339 ac_cv_lib_dl_dlopen=yes
12340 else
12341 ac_cv_lib_dl_dlopen=no
12343 rm -f core conftest.err conftest.$ac_objext \
12344 conftest$ac_exeext conftest.$ac_ext
12345 LIBS=$ac_check_lib_save_LIBS
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12348 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12349 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12350 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12351 else
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12353 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12354 if ${ac_cv_lib_svld_dlopen+:} false; then :
12355 $as_echo_n "(cached) " >&6
12356 else
12357 ac_check_lib_save_LIBS=$LIBS
12358 LIBS="-lsvld $LIBS"
12359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12360 /* end confdefs.h. */
12362 /* Override any GCC internal prototype to avoid an error.
12363 Use char because int might match the return type of a GCC
12364 builtin and then its argument prototype would still apply. */
12365 #ifdef __cplusplus
12366 extern "C"
12367 #endif
12368 char dlopen ();
12370 main ()
12372 return dlopen ();
12374 return 0;
12376 _ACEOF
12377 if ac_fn_c_try_link "$LINENO"; then :
12378 ac_cv_lib_svld_dlopen=yes
12379 else
12380 ac_cv_lib_svld_dlopen=no
12382 rm -f core conftest.err conftest.$ac_objext \
12383 conftest$ac_exeext conftest.$ac_ext
12384 LIBS=$ac_check_lib_save_LIBS
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12387 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12388 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12389 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12390 else
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12392 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12393 if ${ac_cv_lib_dld_dld_link+:} false; then :
12394 $as_echo_n "(cached) " >&6
12395 else
12396 ac_check_lib_save_LIBS=$LIBS
12397 LIBS="-ldld $LIBS"
12398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12399 /* end confdefs.h. */
12401 /* Override any GCC internal prototype to avoid an error.
12402 Use char because int might match the return type of a GCC
12403 builtin and then its argument prototype would still apply. */
12404 #ifdef __cplusplus
12405 extern "C"
12406 #endif
12407 char dld_link ();
12409 main ()
12411 return dld_link ();
12413 return 0;
12415 _ACEOF
12416 if ac_fn_c_try_link "$LINENO"; then :
12417 ac_cv_lib_dld_dld_link=yes
12418 else
12419 ac_cv_lib_dld_dld_link=no
12421 rm -f core conftest.err conftest.$ac_objext \
12422 conftest$ac_exeext conftest.$ac_ext
12423 LIBS=$ac_check_lib_save_LIBS
12425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12426 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12427 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12428 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12447 esac
12449 if test "x$lt_cv_dlopen" != xno; then
12450 enable_dlopen=yes
12451 else
12452 enable_dlopen=no
12455 case $lt_cv_dlopen in
12456 dlopen)
12457 save_CPPFLAGS="$CPPFLAGS"
12458 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12460 save_LDFLAGS="$LDFLAGS"
12461 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12463 save_LIBS="$LIBS"
12464 LIBS="$lt_cv_dlopen_libs $LIBS"
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12467 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12468 if ${lt_cv_dlopen_self+:} false; then :
12469 $as_echo_n "(cached) " >&6
12470 else
12471 if test "$cross_compiling" = yes; then :
12472 lt_cv_dlopen_self=cross
12473 else
12474 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12475 lt_status=$lt_dlunknown
12476 cat > conftest.$ac_ext <<_LT_EOF
12477 #line 12477 "configure"
12478 #include "confdefs.h"
12480 #if HAVE_DLFCN_H
12481 #include <dlfcn.h>
12482 #endif
12484 #include <stdio.h>
12486 #ifdef RTLD_GLOBAL
12487 # define LT_DLGLOBAL RTLD_GLOBAL
12488 #else
12489 # ifdef DL_GLOBAL
12490 # define LT_DLGLOBAL DL_GLOBAL
12491 # else
12492 # define LT_DLGLOBAL 0
12493 # endif
12494 #endif
12496 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12497 find out it does not work in some platform. */
12498 #ifndef LT_DLLAZY_OR_NOW
12499 # ifdef RTLD_LAZY
12500 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12501 # else
12502 # ifdef DL_LAZY
12503 # define LT_DLLAZY_OR_NOW DL_LAZY
12504 # else
12505 # ifdef RTLD_NOW
12506 # define LT_DLLAZY_OR_NOW RTLD_NOW
12507 # else
12508 # ifdef DL_NOW
12509 # define LT_DLLAZY_OR_NOW DL_NOW
12510 # else
12511 # define LT_DLLAZY_OR_NOW 0
12512 # endif
12513 # endif
12514 # endif
12515 # endif
12516 #endif
12518 /* When -fvisbility=hidden is used, assume the code has been annotated
12519 correspondingly for the symbols needed. */
12520 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12521 void fnord () __attribute__((visibility("default")));
12522 #endif
12524 void fnord () { int i=42; }
12525 int main ()
12527 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12528 int status = $lt_dlunknown;
12530 if (self)
12532 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12533 else
12535 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12536 else puts (dlerror ());
12538 /* dlclose (self); */
12540 else
12541 puts (dlerror ());
12543 return status;
12545 _LT_EOF
12546 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12547 (eval $ac_link) 2>&5
12548 ac_status=$?
12549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12550 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12551 (./conftest; exit; ) >&5 2>/dev/null
12552 lt_status=$?
12553 case x$lt_status in
12554 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12555 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12556 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12557 esac
12558 else :
12559 # compilation failed
12560 lt_cv_dlopen_self=no
12563 rm -fr conftest*
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12568 $as_echo "$lt_cv_dlopen_self" >&6; }
12570 if test "x$lt_cv_dlopen_self" = xyes; then
12571 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12573 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12574 if ${lt_cv_dlopen_self_static+:} false; then :
12575 $as_echo_n "(cached) " >&6
12576 else
12577 if test "$cross_compiling" = yes; then :
12578 lt_cv_dlopen_self_static=cross
12579 else
12580 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12581 lt_status=$lt_dlunknown
12582 cat > conftest.$ac_ext <<_LT_EOF
12583 #line 12583 "configure"
12584 #include "confdefs.h"
12586 #if HAVE_DLFCN_H
12587 #include <dlfcn.h>
12588 #endif
12590 #include <stdio.h>
12592 #ifdef RTLD_GLOBAL
12593 # define LT_DLGLOBAL RTLD_GLOBAL
12594 #else
12595 # ifdef DL_GLOBAL
12596 # define LT_DLGLOBAL DL_GLOBAL
12597 # else
12598 # define LT_DLGLOBAL 0
12599 # endif
12600 #endif
12602 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12603 find out it does not work in some platform. */
12604 #ifndef LT_DLLAZY_OR_NOW
12605 # ifdef RTLD_LAZY
12606 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12607 # else
12608 # ifdef DL_LAZY
12609 # define LT_DLLAZY_OR_NOW DL_LAZY
12610 # else
12611 # ifdef RTLD_NOW
12612 # define LT_DLLAZY_OR_NOW RTLD_NOW
12613 # else
12614 # ifdef DL_NOW
12615 # define LT_DLLAZY_OR_NOW DL_NOW
12616 # else
12617 # define LT_DLLAZY_OR_NOW 0
12618 # endif
12619 # endif
12620 # endif
12621 # endif
12622 #endif
12624 /* When -fvisbility=hidden is used, assume the code has been annotated
12625 correspondingly for the symbols needed. */
12626 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12627 void fnord () __attribute__((visibility("default")));
12628 #endif
12630 void fnord () { int i=42; }
12631 int main ()
12633 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12634 int status = $lt_dlunknown;
12636 if (self)
12638 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12639 else
12641 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12642 else puts (dlerror ());
12644 /* dlclose (self); */
12646 else
12647 puts (dlerror ());
12649 return status;
12651 _LT_EOF
12652 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12653 (eval $ac_link) 2>&5
12654 ac_status=$?
12655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12656 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12657 (./conftest; exit; ) >&5 2>/dev/null
12658 lt_status=$?
12659 case x$lt_status in
12660 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12661 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12662 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12663 esac
12664 else :
12665 # compilation failed
12666 lt_cv_dlopen_self_static=no
12669 rm -fr conftest*
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12674 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12677 CPPFLAGS="$save_CPPFLAGS"
12678 LDFLAGS="$save_LDFLAGS"
12679 LIBS="$save_LIBS"
12681 esac
12683 case $lt_cv_dlopen_self in
12684 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12685 *) enable_dlopen_self=unknown ;;
12686 esac
12688 case $lt_cv_dlopen_self_static in
12689 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12690 *) enable_dlopen_self_static=unknown ;;
12691 esac
12710 striplib=
12711 old_striplib=
12712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12713 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12714 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12715 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12716 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12718 $as_echo "yes" >&6; }
12719 else
12720 # FIXME - insert some real tests, host_os isn't really good enough
12721 case $host_os in
12722 darwin*)
12723 if test -n "$STRIP" ; then
12724 striplib="$STRIP -x"
12725 old_striplib="$STRIP -S"
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12727 $as_echo "yes" >&6; }
12728 else
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12730 $as_echo "no" >&6; }
12734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12735 $as_echo "no" >&6; }
12737 esac
12751 # Report which library types will actually be built
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12753 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12755 $as_echo "$can_build_shared" >&6; }
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12758 $as_echo_n "checking whether to build shared libraries... " >&6; }
12759 test "$can_build_shared" = "no" && enable_shared=no
12761 # On AIX, shared libraries and static libraries use the same namespace, and
12762 # are all built from PIC.
12763 case $host_os in
12764 aix3*)
12765 test "$enable_shared" = yes && enable_static=no
12766 if test -n "$RANLIB"; then
12767 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12768 postinstall_cmds='$RANLIB $lib'
12772 aix[4-9]*)
12773 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12774 test "$enable_shared" = yes && enable_static=no
12777 esac
12778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12779 $as_echo "$enable_shared" >&6; }
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12782 $as_echo_n "checking whether to build static libraries... " >&6; }
12783 # Make sure either enable_shared or enable_static is yes.
12784 test "$enable_shared" = yes || enable_static=yes
12785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12786 $as_echo "$enable_static" >&6; }
12792 ac_ext=c
12793 ac_cpp='$CPP $CPPFLAGS'
12794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12798 CC="$lt_save_CC"
12800 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12801 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12802 (test "X$CXX" != "Xg++"))) ; then
12803 ac_ext=cpp
12804 ac_cpp='$CXXCPP $CPPFLAGS'
12805 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12806 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12807 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12809 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12810 if test -z "$CXXCPP"; then
12811 if ${ac_cv_prog_CXXCPP+:} false; then :
12812 $as_echo_n "(cached) " >&6
12813 else
12814 # Double quotes because CXXCPP needs to be expanded
12815 for CXXCPP in "$CXX -E" "/lib/cpp"
12817 ac_preproc_ok=false
12818 for ac_cxx_preproc_warn_flag in '' yes
12820 # Use a header file that comes with gcc, so configuring glibc
12821 # with a fresh cross-compiler works.
12822 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12823 # <limits.h> exists even on freestanding compilers.
12824 # On the NeXT, cc -E runs the code through the compiler's parser,
12825 # not just through cpp. "Syntax error" is here to catch this case.
12826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12827 /* end confdefs.h. */
12828 #ifdef __STDC__
12829 # include <limits.h>
12830 #else
12831 # include <assert.h>
12832 #endif
12833 Syntax error
12834 _ACEOF
12835 if ac_fn_cxx_try_cpp "$LINENO"; then :
12837 else
12838 # Broken: fails on valid input.
12839 continue
12841 rm -f conftest.err conftest.i conftest.$ac_ext
12843 # OK, works on sane cases. Now check whether nonexistent headers
12844 # can be detected and how.
12845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12846 /* end confdefs.h. */
12847 #include <ac_nonexistent.h>
12848 _ACEOF
12849 if ac_fn_cxx_try_cpp "$LINENO"; then :
12850 # Broken: success on invalid input.
12851 continue
12852 else
12853 # Passes both tests.
12854 ac_preproc_ok=:
12855 break
12857 rm -f conftest.err conftest.i conftest.$ac_ext
12859 done
12860 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12861 rm -f conftest.i conftest.err conftest.$ac_ext
12862 if $ac_preproc_ok; then :
12863 break
12866 done
12867 ac_cv_prog_CXXCPP=$CXXCPP
12870 CXXCPP=$ac_cv_prog_CXXCPP
12871 else
12872 ac_cv_prog_CXXCPP=$CXXCPP
12874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12875 $as_echo "$CXXCPP" >&6; }
12876 ac_preproc_ok=false
12877 for ac_cxx_preproc_warn_flag in '' yes
12879 # Use a header file that comes with gcc, so configuring glibc
12880 # with a fresh cross-compiler works.
12881 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12882 # <limits.h> exists even on freestanding compilers.
12883 # On the NeXT, cc -E runs the code through the compiler's parser,
12884 # not just through cpp. "Syntax error" is here to catch this case.
12885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12886 /* end confdefs.h. */
12887 #ifdef __STDC__
12888 # include <limits.h>
12889 #else
12890 # include <assert.h>
12891 #endif
12892 Syntax error
12893 _ACEOF
12894 if ac_fn_cxx_try_cpp "$LINENO"; then :
12896 else
12897 # Broken: fails on valid input.
12898 continue
12900 rm -f conftest.err conftest.i conftest.$ac_ext
12902 # OK, works on sane cases. Now check whether nonexistent headers
12903 # can be detected and how.
12904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12905 /* end confdefs.h. */
12906 #include <ac_nonexistent.h>
12907 _ACEOF
12908 if ac_fn_cxx_try_cpp "$LINENO"; then :
12909 # Broken: success on invalid input.
12910 continue
12911 else
12912 # Passes both tests.
12913 ac_preproc_ok=:
12914 break
12916 rm -f conftest.err conftest.i conftest.$ac_ext
12918 done
12919 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12920 rm -f conftest.i conftest.err conftest.$ac_ext
12921 if $ac_preproc_ok; then :
12923 else
12924 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12925 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12926 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12927 See \`config.log' for more details" "$LINENO" 5; }
12930 ac_ext=c
12931 ac_cpp='$CPP $CPPFLAGS'
12932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12936 else
12937 _lt_caught_CXX_error=yes
12940 ac_ext=cpp
12941 ac_cpp='$CXXCPP $CPPFLAGS'
12942 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12943 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12944 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12946 archive_cmds_need_lc_CXX=no
12947 allow_undefined_flag_CXX=
12948 always_export_symbols_CXX=no
12949 archive_expsym_cmds_CXX=
12950 compiler_needs_object_CXX=no
12951 export_dynamic_flag_spec_CXX=
12952 hardcode_direct_CXX=no
12953 hardcode_direct_absolute_CXX=no
12954 hardcode_libdir_flag_spec_CXX=
12955 hardcode_libdir_flag_spec_ld_CXX=
12956 hardcode_libdir_separator_CXX=
12957 hardcode_minus_L_CXX=no
12958 hardcode_shlibpath_var_CXX=unsupported
12959 hardcode_automatic_CXX=no
12960 inherit_rpath_CXX=no
12961 module_cmds_CXX=
12962 module_expsym_cmds_CXX=
12963 link_all_deplibs_CXX=unknown
12964 old_archive_cmds_CXX=$old_archive_cmds
12965 reload_flag_CXX=$reload_flag
12966 reload_cmds_CXX=$reload_cmds
12967 no_undefined_flag_CXX=
12968 whole_archive_flag_spec_CXX=
12969 enable_shared_with_static_runtimes_CXX=no
12971 # Source file extension for C++ test sources.
12972 ac_ext=cpp
12974 # Object file extension for compiled C++ test sources.
12975 objext=o
12976 objext_CXX=$objext
12978 # No sense in running all these tests if we already determined that
12979 # the CXX compiler isn't working. Some variables (like enable_shared)
12980 # are currently assumed to apply to all compilers on this platform,
12981 # and will be corrupted by setting them based on a non-working compiler.
12982 if test "$_lt_caught_CXX_error" != yes; then
12983 # Code to be used in simple compile tests
12984 lt_simple_compile_test_code="int some_variable = 0;"
12986 # Code to be used in simple link tests
12987 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12989 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12996 # If no C compiler was specified, use CC.
12997 LTCC=${LTCC-"$CC"}
12999 # If no C compiler flags were specified, use CFLAGS.
13000 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13002 # Allow CC to be a program name with arguments.
13003 compiler=$CC
13006 # save warnings/boilerplate of simple test code
13007 ac_outfile=conftest.$ac_objext
13008 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13009 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13010 _lt_compiler_boilerplate=`cat conftest.err`
13011 $RM conftest*
13013 ac_outfile=conftest.$ac_objext
13014 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13015 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13016 _lt_linker_boilerplate=`cat conftest.err`
13017 $RM -r conftest*
13020 # Allow CC to be a program name with arguments.
13021 lt_save_CC=$CC
13022 lt_save_LD=$LD
13023 lt_save_GCC=$GCC
13024 GCC=$GXX
13025 lt_save_with_gnu_ld=$with_gnu_ld
13026 lt_save_path_LD=$lt_cv_path_LD
13027 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13028 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13029 else
13030 $as_unset lt_cv_prog_gnu_ld
13032 if test -n "${lt_cv_path_LDCXX+set}"; then
13033 lt_cv_path_LD=$lt_cv_path_LDCXX
13034 else
13035 $as_unset lt_cv_path_LD
13037 test -z "${LDCXX+set}" || LD=$LDCXX
13038 CC=${CXX-"c++"}
13039 compiler=$CC
13040 compiler_CXX=$CC
13041 for cc_temp in $compiler""; do
13042 case $cc_temp in
13043 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13044 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13045 \-*) ;;
13046 *) break;;
13047 esac
13048 done
13049 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13052 if test -n "$compiler"; then
13053 # We don't want -fno-exception when compiling C++ code, so set the
13054 # no_builtin_flag separately
13055 if test "$GXX" = yes; then
13056 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13057 else
13058 lt_prog_compiler_no_builtin_flag_CXX=
13061 if test "$GXX" = yes; then
13062 # Set up default GNU C++ configuration
13066 # Check whether --with-gnu-ld was given.
13067 if test "${with_gnu_ld+set}" = set; then :
13068 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13069 else
13070 with_gnu_ld=no
13073 ac_prog=ld
13074 if test "$GCC" = yes; then
13075 # Check if gcc -print-prog-name=ld gives a path.
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13077 $as_echo_n "checking for ld used by $CC... " >&6; }
13078 case $host in
13079 *-*-mingw*)
13080 # gcc leaves a trailing carriage return which upsets mingw
13081 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13083 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13084 esac
13085 case $ac_prog in
13086 # Accept absolute paths.
13087 [\\/]* | ?:[\\/]*)
13088 re_direlt='/[^/][^/]*/\.\./'
13089 # Canonicalize the pathname of ld
13090 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13091 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13092 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13093 done
13094 test -z "$LD" && LD="$ac_prog"
13097 # If it fails, then pretend we aren't using GCC.
13098 ac_prog=ld
13101 # If it is relative, then search for the first ld in PATH.
13102 with_gnu_ld=unknown
13104 esac
13105 elif test "$with_gnu_ld" = yes; then
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13107 $as_echo_n "checking for GNU ld... " >&6; }
13108 else
13109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13110 $as_echo_n "checking for non-GNU ld... " >&6; }
13112 if ${lt_cv_path_LD+:} false; then :
13113 $as_echo_n "(cached) " >&6
13114 else
13115 if test -z "$LD"; then
13116 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13117 for ac_dir in $PATH; do
13118 IFS="$lt_save_ifs"
13119 test -z "$ac_dir" && ac_dir=.
13120 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13121 lt_cv_path_LD="$ac_dir/$ac_prog"
13122 # Check to see if the program is GNU ld. I'd rather use --version,
13123 # but apparently some variants of GNU ld only accept -v.
13124 # Break only if it was the GNU/non-GNU ld that we prefer.
13125 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13126 *GNU* | *'with BFD'*)
13127 test "$with_gnu_ld" != no && break
13130 test "$with_gnu_ld" != yes && break
13132 esac
13134 done
13135 IFS="$lt_save_ifs"
13136 else
13137 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13141 LD="$lt_cv_path_LD"
13142 if test -n "$LD"; then
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13144 $as_echo "$LD" >&6; }
13145 else
13146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13147 $as_echo "no" >&6; }
13149 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13151 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13152 if ${lt_cv_prog_gnu_ld+:} false; then :
13153 $as_echo_n "(cached) " >&6
13154 else
13155 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13156 case `$LD -v 2>&1 </dev/null` in
13157 *GNU* | *'with BFD'*)
13158 lt_cv_prog_gnu_ld=yes
13161 lt_cv_prog_gnu_ld=no
13163 esac
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13166 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13167 with_gnu_ld=$lt_cv_prog_gnu_ld
13175 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13176 # archiving commands below assume that GNU ld is being used.
13177 if test "$with_gnu_ld" = yes; then
13178 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13179 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'
13181 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13182 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13184 # If archive_cmds runs LD, not CC, wlarc should be empty
13185 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13186 # investigate it a little bit more. (MM)
13187 wlarc='${wl}'
13189 # ancient GNU ld didn't support --whole-archive et. al.
13190 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13191 $GREP 'no-whole-archive' > /dev/null; then
13192 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13193 else
13194 whole_archive_flag_spec_CXX=
13196 else
13197 with_gnu_ld=no
13198 wlarc=
13200 # A generic and very simple default shared library creation
13201 # command for GNU C++ for the case where it uses the native
13202 # linker, instead of GNU ld. If possible, this setting should
13203 # overridden to take advantage of the native linker features on
13204 # the platform it is being used on.
13205 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13208 # Commands to make compiler produce verbose output that lists
13209 # what "hidden" libraries, object files and flags are used when
13210 # linking a shared library.
13211 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13213 else
13214 GXX=no
13215 with_gnu_ld=no
13216 wlarc=
13219 # PORTME: fill in a description of your system's C++ link characteristics
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13221 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13222 ld_shlibs_CXX=yes
13223 case $host_os in
13224 aix3*)
13225 # FIXME: insert proper C++ library support
13226 ld_shlibs_CXX=no
13228 aix[4-9]*)
13229 if test "$host_cpu" = ia64; then
13230 # On IA64, the linker does run time linking by default, so we don't
13231 # have to do anything special.
13232 aix_use_runtimelinking=no
13233 exp_sym_flag='-Bexport'
13234 no_entry_flag=""
13235 else
13236 aix_use_runtimelinking=no
13238 # Test if we are trying to use run time linking or normal
13239 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13240 # need to do runtime linking.
13241 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13242 for ld_flag in $LDFLAGS; do
13243 case $ld_flag in
13244 *-brtl*)
13245 aix_use_runtimelinking=yes
13246 break
13248 esac
13249 done
13251 esac
13253 exp_sym_flag='-bexport'
13254 no_entry_flag='-bnoentry'
13257 # When large executables or shared objects are built, AIX ld can
13258 # have problems creating the table of contents. If linking a library
13259 # or program results in "error TOC overflow" add -mminimal-toc to
13260 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13261 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13263 archive_cmds_CXX=''
13264 hardcode_direct_CXX=yes
13265 hardcode_direct_absolute_CXX=yes
13266 hardcode_libdir_separator_CXX=':'
13267 link_all_deplibs_CXX=yes
13268 file_list_spec_CXX='${wl}-f,'
13270 if test "$GXX" = yes; then
13271 case $host_os in aix4.[012]|aix4.[012].*)
13272 # We only want to do this on AIX 4.2 and lower, the check
13273 # below for broken collect2 doesn't work under 4.3+
13274 collect2name=`${CC} -print-prog-name=collect2`
13275 if test -f "$collect2name" &&
13276 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13277 then
13278 # We have reworked collect2
13280 else
13281 # We have old collect2
13282 hardcode_direct_CXX=unsupported
13283 # It fails to find uninstalled libraries when the uninstalled
13284 # path is not listed in the libpath. Setting hardcode_minus_L
13285 # to unsupported forces relinking
13286 hardcode_minus_L_CXX=yes
13287 hardcode_libdir_flag_spec_CXX='-L$libdir'
13288 hardcode_libdir_separator_CXX=
13290 esac
13291 shared_flag='-shared'
13292 if test "$aix_use_runtimelinking" = yes; then
13293 shared_flag="$shared_flag "'${wl}-G'
13295 else
13296 # not using gcc
13297 if test "$host_cpu" = ia64; then
13298 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13299 # chokes on -Wl,-G. The following line is correct:
13300 shared_flag='-G'
13301 else
13302 if test "$aix_use_runtimelinking" = yes; then
13303 shared_flag='${wl}-G'
13304 else
13305 shared_flag='${wl}-bM:SRE'
13310 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13311 # It seems that -bexpall does not export symbols beginning with
13312 # underscore (_), so it is better to generate a list of symbols to
13313 # export.
13314 always_export_symbols_CXX=yes
13315 if test "$aix_use_runtimelinking" = yes; then
13316 # Warning - without using the other runtime loading flags (-brtl),
13317 # -berok will link without error, but may produce a broken library.
13318 allow_undefined_flag_CXX='-berok'
13319 # Determine the default libpath from the value encoded in an empty
13320 # executable.
13321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13322 /* end confdefs.h. */
13325 main ()
13329 return 0;
13331 _ACEOF
13332 if ac_fn_cxx_try_link "$LINENO"; then :
13334 lt_aix_libpath_sed='
13335 /Import File Strings/,/^$/ {
13336 /^0/ {
13337 s/^0 *\(.*\)$/\1/
13341 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13342 # Check for a 64-bit object if we didn't find anything.
13343 if test -z "$aix_libpath"; then
13344 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13347 rm -f core conftest.err conftest.$ac_objext \
13348 conftest$ac_exeext conftest.$ac_ext
13349 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13351 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13353 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"
13354 else
13355 if test "$host_cpu" = ia64; then
13356 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13357 allow_undefined_flag_CXX="-z nodefs"
13358 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"
13359 else
13360 # Determine the default libpath from the value encoded in an
13361 # empty executable.
13362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13363 /* end confdefs.h. */
13366 main ()
13370 return 0;
13372 _ACEOF
13373 if ac_fn_cxx_try_link "$LINENO"; then :
13375 lt_aix_libpath_sed='
13376 /Import File Strings/,/^$/ {
13377 /^0/ {
13378 s/^0 *\(.*\)$/\1/
13382 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13383 # Check for a 64-bit object if we didn't find anything.
13384 if test -z "$aix_libpath"; then
13385 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13388 rm -f core conftest.err conftest.$ac_objext \
13389 conftest$ac_exeext conftest.$ac_ext
13390 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13392 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13393 # Warning - without using the other run time loading flags,
13394 # -berok will link without error, but may produce a broken library.
13395 no_undefined_flag_CXX=' ${wl}-bernotok'
13396 allow_undefined_flag_CXX=' ${wl}-berok'
13397 if test "$with_gnu_ld" = yes; then
13398 # We only use this code for GNU lds that support --whole-archive.
13399 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13400 else
13401 # Exported symbols can be pulled into shared objects from archives
13402 whole_archive_flag_spec_CXX='$convenience'
13404 archive_cmds_need_lc_CXX=yes
13405 # This is similar to how AIX traditionally builds its shared
13406 # libraries.
13407 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'
13412 beos*)
13413 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13414 allow_undefined_flag_CXX=unsupported
13415 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13416 # support --undefined. This deserves some investigation. FIXME
13417 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13418 else
13419 ld_shlibs_CXX=no
13423 chorus*)
13424 case $cc_basename in
13426 # FIXME: insert proper C++ library support
13427 ld_shlibs_CXX=no
13429 esac
13432 cygwin* | mingw* | pw32* | cegcc*)
13433 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13434 # as there is no search path for DLLs.
13435 hardcode_libdir_flag_spec_CXX='-L$libdir'
13436 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13437 allow_undefined_flag_CXX=unsupported
13438 always_export_symbols_CXX=no
13439 enable_shared_with_static_runtimes_CXX=yes
13441 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13442 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'
13443 # If the export-symbols file already is a .def file (1st line
13444 # is EXPORTS), use it as is; otherwise, prepend...
13445 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13446 cp $export_symbols $output_objdir/$soname.def;
13447 else
13448 echo EXPORTS > $output_objdir/$soname.def;
13449 cat $export_symbols >> $output_objdir/$soname.def;
13451 $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'
13452 else
13453 ld_shlibs_CXX=no
13456 darwin* | rhapsody*)
13460 # Publish an arg to allow the user to select that Darwin host (and target)
13461 # libraries should be given install-names like @rpath/libfoo.dylib. This
13462 # requires that the user of the library then adds an 'rpath' to the DSO that
13463 # needs access.
13464 # NOTE: there are defaults below, for systems that support rpaths. The person
13465 # configuring can override the defaults for any system version that supports
13466 # them - they are, however, forced off for system versions without support.
13467 # Check whether --enable-darwin-at-rpath was given.
13468 if test "${enable_darwin_at_rpath+set}" = set; then :
13469 enableval=$enable_darwin_at_rpath; if test "x$enable_darwin_at_rpath" = "xyes"; then
13470 # This is not supported before macOS 10.5 / Darwin9.
13471 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
13472 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
13473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&5
13474 $as_echo "$as_me: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&2;}
13475 enable_darwin_at_rpath=no
13477 esac
13479 else
13480 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
13481 # As above, before 10.5 / Darwin9 this does not work.
13482 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
13483 enable_darwin_at_rpath=no
13486 # We cannot build and test reliably on macOS 10.11+ (Darwin15+) without use
13487 # of rpaths, since runpaths set via DYLD_LIBRARY_PATH are elided by key
13488 # system executables (e.g. /bin/sh). Force rpaths on for these systems.
13489 UNSET,darwin1[5-9]*|UNSET,darwin2*|10.1[1-9][,.]*|1[1-9].*[,.]* )
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&5
13491 $as_echo "$as_me: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&6;}
13492 enable_darwin_at_rpath=yes
13494 # NOTE: we are not (yet) doing anything for 10.5 .. 10.10, since they can
13495 # work with either DYLD_LIBRARY_PATH or embedded rpaths.
13497 esac
13502 archive_cmds_need_lc_CXX=no
13503 hardcode_direct_CXX=no
13504 hardcode_automatic_CXX=yes
13505 hardcode_shlibpath_var_CXX=unsupported
13506 if test "$lt_cv_ld_force_load" = "yes"; then
13507 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\"`'
13508 else
13509 whole_archive_flag_spec_CXX=''
13511 link_all_deplibs_CXX=yes
13512 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13513 case $cc_basename in
13514 ifort*) _lt_dar_can_shared=yes ;;
13515 *) _lt_dar_can_shared=$GCC ;;
13516 esac
13517 if test "$_lt_dar_can_shared" = "yes"; then
13518 output_verbose_link_cmd=func_echo_all
13519 _lt_install_name='\$rpath/\$soname'
13520 if test "x$enable_darwin_at_rpath" = "xyes"; then
13521 _lt_install_name='@rpath/\$soname'
13523 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dsymutil}"
13524 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13525 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 ${_lt_install_name} \$verstring ${_lt_dar_export_syms}${_lt_dsymutil}"
13526 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}"
13527 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13528 _lt_install_name='\$rpath/\$soname'
13529 if test "x$enable_darwin_at_rpath" = "xyes"; then
13530 _lt_install_name='@rpath/\$soname'
13532 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 ${_lt_install_name} \$verstring${_lt_dsymutil}"
13533 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}"
13536 else
13537 ld_shlibs_CXX=no
13542 dgux*)
13543 case $cc_basename in
13544 ec++*)
13545 # FIXME: insert proper C++ library support
13546 ld_shlibs_CXX=no
13548 ghcx*)
13549 # Green Hills C++ Compiler
13550 # FIXME: insert proper C++ library support
13551 ld_shlibs_CXX=no
13554 # FIXME: insert proper C++ library support
13555 ld_shlibs_CXX=no
13557 esac
13560 freebsd2.*)
13561 # C++ shared libraries reported to be fairly broken before
13562 # switch to ELF
13563 ld_shlibs_CXX=no
13566 freebsd-elf*)
13567 archive_cmds_need_lc_CXX=no
13570 freebsd* | dragonfly*)
13571 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13572 # conventions
13573 ld_shlibs_CXX=yes
13576 gnu*)
13579 haiku*)
13580 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13581 link_all_deplibs_CXX=yes
13584 hpux9*)
13585 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13586 hardcode_libdir_separator_CXX=:
13587 export_dynamic_flag_spec_CXX='${wl}-E'
13588 hardcode_direct_CXX=yes
13589 hardcode_minus_L_CXX=yes # Not in the search PATH,
13590 # but as the default
13591 # location of the library.
13593 case $cc_basename in
13594 CC*)
13595 # FIXME: insert proper C++ library support
13596 ld_shlibs_CXX=no
13598 aCC*)
13599 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'
13600 # Commands to make compiler produce verbose output that lists
13601 # what "hidden" libraries, object files and flags are used when
13602 # linking a shared library.
13604 # There doesn't appear to be a way to prevent this compiler from
13605 # explicitly linking system object files so we need to strip them
13606 # from the output so that they don't get included in the library
13607 # dependencies.
13608 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"'
13611 if test "$GXX" = yes; then
13612 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'
13613 else
13614 # FIXME: insert proper C++ library support
13615 ld_shlibs_CXX=no
13618 esac
13621 hpux10*|hpux11*)
13622 if test $with_gnu_ld = no; then
13623 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13624 hardcode_libdir_separator_CXX=:
13626 case $host_cpu in
13627 hppa*64*|ia64*)
13630 export_dynamic_flag_spec_CXX='${wl}-E'
13632 esac
13634 case $host_cpu in
13635 hppa*64*|ia64*)
13636 hardcode_direct_CXX=no
13637 hardcode_shlibpath_var_CXX=no
13640 hardcode_direct_CXX=yes
13641 hardcode_direct_absolute_CXX=yes
13642 hardcode_minus_L_CXX=yes # Not in the search PATH,
13643 # but as the default
13644 # location of the library.
13646 esac
13648 case $cc_basename in
13649 CC*)
13650 # FIXME: insert proper C++ library support
13651 ld_shlibs_CXX=no
13653 aCC*)
13654 case $host_cpu in
13655 hppa*64*)
13656 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13658 ia64*)
13659 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13662 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13664 esac
13665 # Commands to make compiler produce verbose output that lists
13666 # what "hidden" libraries, object files and flags are used when
13667 # linking a shared library.
13669 # There doesn't appear to be a way to prevent this compiler from
13670 # explicitly linking system object files so we need to strip them
13671 # from the output so that they don't get included in the library
13672 # dependencies.
13673 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"'
13676 if test "$GXX" = yes; then
13677 if test $with_gnu_ld = no; then
13678 case $host_cpu in
13679 hppa*64*)
13680 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13682 ia64*)
13683 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13686 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'
13688 esac
13690 else
13691 # FIXME: insert proper C++ library support
13692 ld_shlibs_CXX=no
13695 esac
13698 interix[3-9]*)
13699 hardcode_direct_CXX=no
13700 hardcode_shlibpath_var_CXX=no
13701 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13702 export_dynamic_flag_spec_CXX='${wl}-E'
13703 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13704 # Instead, shared libraries are loaded at an image base (0x10000000 by
13705 # default) and relocated if they conflict, which is a slow very memory
13706 # consuming and fragmenting process. To avoid this, we pick a random,
13707 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13708 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13709 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'
13710 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'
13712 irix5* | irix6*)
13713 case $cc_basename in
13714 CC*)
13715 # SGI C++
13716 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'
13718 # Archives containing C++ object files must be created using
13719 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13720 # necessary to make sure instantiated templates are included
13721 # in the archive.
13722 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13725 if test "$GXX" = yes; then
13726 if test "$with_gnu_ld" = no; then
13727 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'
13728 else
13729 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'
13732 link_all_deplibs_CXX=yes
13734 esac
13735 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13736 hardcode_libdir_separator_CXX=:
13737 inherit_rpath_CXX=yes
13740 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13741 case $cc_basename in
13742 KCC*)
13743 # Kuck and Associates, Inc. (KAI) C++ Compiler
13745 # KCC will only create a shared library if the output file
13746 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13747 # to its proper name (with version) after linking.
13748 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'
13749 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'
13750 # Commands to make compiler produce verbose output that lists
13751 # what "hidden" libraries, object files and flags are used when
13752 # linking a shared library.
13754 # There doesn't appear to be a way to prevent this compiler from
13755 # explicitly linking system object files so we need to strip them
13756 # from the output so that they don't get included in the library
13757 # dependencies.
13758 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"'
13760 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13761 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13763 # Archives containing C++ object files must be created using
13764 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13765 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13767 icpc* | ecpc* )
13768 # Intel C++
13769 with_gnu_ld=yes
13770 # version 8.0 and above of icpc choke on multiply defined symbols
13771 # if we add $predep_objects and $postdep_objects, however 7.1 and
13772 # earlier do not add the objects themselves.
13773 case `$CC -V 2>&1` in
13774 *"Version 7."*)
13775 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13776 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'
13778 *) # Version 8.0 or newer
13779 tmp_idyn=
13780 case $host_cpu in
13781 ia64*) tmp_idyn=' -i_dynamic';;
13782 esac
13783 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13784 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'
13786 esac
13787 archive_cmds_need_lc_CXX=no
13788 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13789 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13790 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13792 pgCC* | pgcpp*)
13793 # Portland Group C++ compiler
13794 case `$CC -V` in
13795 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13796 prelink_cmds_CXX='tpldir=Template.dir~
13797 rm -rf $tpldir~
13798 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13799 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13800 old_archive_cmds_CXX='tpldir=Template.dir~
13801 rm -rf $tpldir~
13802 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13803 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13804 $RANLIB $oldlib'
13805 archive_cmds_CXX='tpldir=Template.dir~
13806 rm -rf $tpldir~
13807 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13808 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13809 archive_expsym_cmds_CXX='tpldir=Template.dir~
13810 rm -rf $tpldir~
13811 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13812 $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'
13814 *) # Version 6 and above use weak symbols
13815 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13816 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'
13818 esac
13820 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13821 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13822 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'
13824 cxx*)
13825 # Compaq C++
13826 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13827 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'
13829 runpath_var=LD_RUN_PATH
13830 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13831 hardcode_libdir_separator_CXX=:
13833 # Commands to make compiler produce verbose output that lists
13834 # what "hidden" libraries, object files and flags are used when
13835 # linking a shared library.
13837 # There doesn't appear to be a way to prevent this compiler from
13838 # explicitly linking system object files so we need to strip them
13839 # from the output so that they don't get included in the library
13840 # dependencies.
13841 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'
13843 xl* | mpixl* | bgxl*)
13844 # IBM XL 8.0 on PPC, with GNU ld
13845 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13846 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13847 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13848 if test "x$supports_anon_versioning" = xyes; then
13849 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13850 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13851 echo "local: *; };" >> $output_objdir/$libname.ver~
13852 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13856 case `$CC -V 2>&1 | sed 5q` in
13857 *Sun\ C*)
13858 # Sun C++ 5.9
13859 no_undefined_flag_CXX=' -zdefs'
13860 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13861 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'
13862 hardcode_libdir_flag_spec_CXX='-R$libdir'
13863 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'
13864 compiler_needs_object_CXX=yes
13866 # Not sure whether something based on
13867 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13868 # would be better.
13869 output_verbose_link_cmd='func_echo_all'
13871 # Archives containing C++ object files must be created using
13872 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13873 # necessary to make sure instantiated templates are included
13874 # in the archive.
13875 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13877 esac
13879 esac
13882 lynxos*)
13883 # FIXME: insert proper C++ library support
13884 ld_shlibs_CXX=no
13887 m88k*)
13888 # FIXME: insert proper C++ library support
13889 ld_shlibs_CXX=no
13892 mvs*)
13893 case $cc_basename in
13894 cxx*)
13895 # FIXME: insert proper C++ library support
13896 ld_shlibs_CXX=no
13899 # FIXME: insert proper C++ library support
13900 ld_shlibs_CXX=no
13902 esac
13905 netbsd*)
13906 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13907 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13908 wlarc=
13909 hardcode_libdir_flag_spec_CXX='-R$libdir'
13910 hardcode_direct_CXX=yes
13911 hardcode_shlibpath_var_CXX=no
13913 # Workaround some broken pre-1.5 toolchains
13914 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13917 *nto* | *qnx*)
13918 ld_shlibs_CXX=yes
13921 openbsd2*)
13922 # C++ shared libraries are fairly broken
13923 ld_shlibs_CXX=no
13926 openbsd*)
13927 if test -f /usr/libexec/ld.so; then
13928 hardcode_direct_CXX=yes
13929 hardcode_shlibpath_var_CXX=no
13930 hardcode_direct_absolute_CXX=yes
13931 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13932 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13933 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13934 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13935 export_dynamic_flag_spec_CXX='${wl}-E'
13936 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13938 output_verbose_link_cmd=func_echo_all
13939 else
13940 ld_shlibs_CXX=no
13944 osf3* | osf4* | osf5*)
13945 case $cc_basename in
13946 KCC*)
13947 # Kuck and Associates, Inc. (KAI) C++ Compiler
13949 # KCC will only create a shared library if the output file
13950 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13951 # to its proper name (with version) after linking.
13952 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'
13954 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13955 hardcode_libdir_separator_CXX=:
13957 # Archives containing C++ object files must be created using
13958 # the KAI C++ compiler.
13959 case $host in
13960 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13961 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13962 esac
13964 RCC*)
13965 # Rational C++ 2.4.1
13966 # FIXME: insert proper C++ library support
13967 ld_shlibs_CXX=no
13969 cxx*)
13970 case $host in
13971 osf3*)
13972 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13973 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'
13974 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13977 allow_undefined_flag_CXX=' -expect_unresolved \*'
13978 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'
13979 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13980 echo "-hidden">> $lib.exp~
13981 $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~
13982 $RM $lib.exp'
13983 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13985 esac
13987 hardcode_libdir_separator_CXX=:
13989 # Commands to make compiler produce verbose output that lists
13990 # what "hidden" libraries, object files and flags are used when
13991 # linking a shared library.
13993 # There doesn't appear to be a way to prevent this compiler from
13994 # explicitly linking system object files so we need to strip them
13995 # from the output so that they don't get included in the library
13996 # dependencies.
13997 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"'
14000 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14001 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14002 case $host in
14003 osf3*)
14004 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'
14007 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'
14009 esac
14011 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14012 hardcode_libdir_separator_CXX=:
14014 # Commands to make compiler produce verbose output that lists
14015 # what "hidden" libraries, object files and flags are used when
14016 # linking a shared library.
14017 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14019 else
14020 # FIXME: insert proper C++ library support
14021 ld_shlibs_CXX=no
14024 esac
14027 psos*)
14028 # FIXME: insert proper C++ library support
14029 ld_shlibs_CXX=no
14032 sunos4*)
14033 case $cc_basename in
14034 CC*)
14035 # Sun C++ 4.x
14036 # FIXME: insert proper C++ library support
14037 ld_shlibs_CXX=no
14039 lcc*)
14040 # Lucid
14041 # FIXME: insert proper C++ library support
14042 ld_shlibs_CXX=no
14045 # FIXME: insert proper C++ library support
14046 ld_shlibs_CXX=no
14048 esac
14051 solaris*)
14052 case $cc_basename in
14053 CC*)
14054 # Sun C++ 4.2, 5.x and Centerline C++
14055 archive_cmds_need_lc_CXX=yes
14056 no_undefined_flag_CXX=' -zdefs'
14057 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14058 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14059 $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'
14061 hardcode_libdir_flag_spec_CXX='-R$libdir'
14062 hardcode_shlibpath_var_CXX=no
14063 case $host_os in
14064 solaris2.[0-5] | solaris2.[0-5].*) ;;
14066 # The compiler driver will combine and reorder linker options,
14067 # but understands `-z linker_flag'.
14068 # Supported since Solaris 2.6 (maybe 2.5.1?)
14069 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14071 esac
14072 link_all_deplibs_CXX=yes
14074 output_verbose_link_cmd='func_echo_all'
14076 # Archives containing C++ object files must be created using
14077 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14078 # necessary to make sure instantiated templates are included
14079 # in the archive.
14080 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14082 gcx*)
14083 # Green Hills C++ Compiler
14084 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14086 # The C++ compiler must be used to create the archive.
14087 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14090 # GNU C++ compiler with Solaris linker
14091 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14092 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14093 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14094 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14095 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14096 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14098 # Commands to make compiler produce verbose output that lists
14099 # what "hidden" libraries, object files and flags are used when
14100 # linking a shared library.
14101 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14102 else
14103 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14104 # platform.
14105 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14106 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14107 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14109 # Commands to make compiler produce verbose output that lists
14110 # what "hidden" libraries, object files and flags are used when
14111 # linking a shared library.
14112 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14115 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14116 case $host_os in
14117 solaris2.[0-5] | solaris2.[0-5].*) ;;
14119 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14121 esac
14124 esac
14127 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14128 no_undefined_flag_CXX='${wl}-z,text'
14129 archive_cmds_need_lc_CXX=no
14130 hardcode_shlibpath_var_CXX=no
14131 runpath_var='LD_RUN_PATH'
14133 case $cc_basename in
14134 CC*)
14135 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14136 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14139 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14140 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14142 esac
14145 sysv5* | sco3.2v5* | sco5v6*)
14146 # Note: We can NOT use -z defs as we might desire, because we do not
14147 # link with -lc, and that would cause any symbols used from libc to
14148 # always be unresolved, which means just about no library would
14149 # ever link correctly. If we're not using GNU ld we use -z text
14150 # though, which does catch some bad symbols but isn't as heavy-handed
14151 # as -z defs.
14152 no_undefined_flag_CXX='${wl}-z,text'
14153 allow_undefined_flag_CXX='${wl}-z,nodefs'
14154 archive_cmds_need_lc_CXX=no
14155 hardcode_shlibpath_var_CXX=no
14156 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14157 hardcode_libdir_separator_CXX=':'
14158 link_all_deplibs_CXX=yes
14159 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14160 runpath_var='LD_RUN_PATH'
14162 case $cc_basename in
14163 CC*)
14164 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14165 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14166 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14167 '"$old_archive_cmds_CXX"
14168 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14169 '"$reload_cmds_CXX"
14172 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14173 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14175 esac
14178 tandem*)
14179 case $cc_basename in
14180 NCC*)
14181 # NonStop-UX NCC 3.20
14182 # FIXME: insert proper C++ library support
14183 ld_shlibs_CXX=no
14186 # FIXME: insert proper C++ library support
14187 ld_shlibs_CXX=no
14189 esac
14192 vxworks*)
14193 # For VxWorks ports, we assume the use of a GNU linker with
14194 # standard elf conventions.
14195 ld_shlibs_CXX=yes
14199 # FIXME: insert proper C++ library support
14200 ld_shlibs_CXX=no
14202 esac
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14205 $as_echo "$ld_shlibs_CXX" >&6; }
14206 test "$ld_shlibs_CXX" = no && can_build_shared=no
14208 GCC_CXX="$GXX"
14209 LD_CXX="$LD"
14211 ## CAVEAT EMPTOR:
14212 ## There is no encapsulation within the following macros, do not change
14213 ## the running order or otherwise move them around unless you know exactly
14214 ## what you are doing...
14215 # Dependencies to place before and after the object being linked:
14216 predep_objects_CXX=
14217 postdep_objects_CXX=
14218 predeps_CXX=
14219 postdeps_CXX=
14220 compiler_lib_search_path_CXX=
14222 cat > conftest.$ac_ext <<_LT_EOF
14223 class Foo
14225 public:
14226 Foo (void) { a = 0; }
14227 private:
14228 int a;
14230 _LT_EOF
14232 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14233 (eval $ac_compile) 2>&5
14234 ac_status=$?
14235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14236 test $ac_status = 0; }; then
14237 # Parse the compiler output and extract the necessary
14238 # objects, libraries and library flags.
14240 # Sentinel used to keep track of whether or not we are before
14241 # the conftest object file.
14242 pre_test_object_deps_done=no
14244 for p in `eval "$output_verbose_link_cmd"`; do
14245 case $p in
14247 -L* | -R* | -l*)
14248 # Some compilers place space between "-{L,R}" and the path.
14249 # Remove the space.
14250 if test $p = "-L" ||
14251 test $p = "-R"; then
14252 prev=$p
14253 continue
14254 else
14255 prev=
14258 if test "$pre_test_object_deps_done" = no; then
14259 case $p in
14260 -L* | -R*)
14261 # Internal compiler library paths should come after those
14262 # provided the user. The postdeps already come after the
14263 # user supplied libs so there is no need to process them.
14264 if test -z "$compiler_lib_search_path_CXX"; then
14265 compiler_lib_search_path_CXX="${prev}${p}"
14266 else
14267 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14270 # The "-l" case would never come before the object being
14271 # linked, so don't bother handling this case.
14272 esac
14273 else
14274 if test -z "$postdeps_CXX"; then
14275 postdeps_CXX="${prev}${p}"
14276 else
14277 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14282 *.$objext)
14283 # This assumes that the test object file only shows up
14284 # once in the compiler output.
14285 if test "$p" = "conftest.$objext"; then
14286 pre_test_object_deps_done=yes
14287 continue
14290 if test "$pre_test_object_deps_done" = no; then
14291 if test -z "$predep_objects_CXX"; then
14292 predep_objects_CXX="$p"
14293 else
14294 predep_objects_CXX="$predep_objects_CXX $p"
14296 else
14297 if test -z "$postdep_objects_CXX"; then
14298 postdep_objects_CXX="$p"
14299 else
14300 postdep_objects_CXX="$postdep_objects_CXX $p"
14305 *) ;; # Ignore the rest.
14307 esac
14308 done
14310 # Clean up.
14311 rm -f a.out a.exe
14312 else
14313 echo "libtool.m4: error: problem compiling CXX test program"
14316 $RM -f confest.$objext
14318 # PORTME: override above test on systems where it is broken
14319 case $host_os in
14320 interix[3-9]*)
14321 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14322 # hack all around it, let's just trust "g++" to DTRT.
14323 predep_objects_CXX=
14324 postdep_objects_CXX=
14325 postdeps_CXX=
14328 linux*)
14329 case `$CC -V 2>&1 | sed 5q` in
14330 *Sun\ C*)
14331 # Sun C++ 5.9
14333 # The more standards-conforming stlport4 library is
14334 # incompatible with the Cstd library. Avoid specifying
14335 # it if it's in CXXFLAGS. Ignore libCrun as
14336 # -library=stlport4 depends on it.
14337 case " $CXX $CXXFLAGS " in
14338 *" -library=stlport4 "*)
14339 solaris_use_stlport4=yes
14341 esac
14343 if test "$solaris_use_stlport4" != yes; then
14344 postdeps_CXX='-library=Cstd -library=Crun'
14347 esac
14350 solaris*)
14351 case $cc_basename in
14352 CC*)
14353 # The more standards-conforming stlport4 library is
14354 # incompatible with the Cstd library. Avoid specifying
14355 # it if it's in CXXFLAGS. Ignore libCrun as
14356 # -library=stlport4 depends on it.
14357 case " $CXX $CXXFLAGS " in
14358 *" -library=stlport4 "*)
14359 solaris_use_stlport4=yes
14361 esac
14363 # Adding this requires a known-good setup of shared libraries for
14364 # Sun compiler versions before 5.6, else PIC objects from an old
14365 # archive will be linked into the output, leading to subtle bugs.
14366 if test "$solaris_use_stlport4" != yes; then
14367 postdeps_CXX='-library=Cstd -library=Crun'
14370 esac
14372 esac
14375 case " $postdeps_CXX " in
14376 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14377 esac
14378 compiler_lib_search_dirs_CXX=
14379 if test -n "${compiler_lib_search_path_CXX}"; then
14380 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14413 lt_prog_compiler_wl_CXX=
14414 lt_prog_compiler_pic_CXX=
14415 lt_prog_compiler_static_CXX=
14417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14418 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14420 # C++ specific cases for pic, static, wl, etc.
14421 if test "$GXX" = yes; then
14422 lt_prog_compiler_wl_CXX='-Wl,'
14423 lt_prog_compiler_static_CXX='-static'
14425 case $host_os in
14426 aix*)
14427 # All AIX code is PIC.
14428 if test "$host_cpu" = ia64; then
14429 # AIX 5 now supports IA64 processor
14430 lt_prog_compiler_static_CXX='-Bstatic'
14432 lt_prog_compiler_pic_CXX='-fPIC'
14435 amigaos*)
14436 case $host_cpu in
14437 powerpc)
14438 # see comment about AmigaOS4 .so support
14439 lt_prog_compiler_pic_CXX='-fPIC'
14441 m68k)
14442 # FIXME: we need at least 68020 code to build shared libraries, but
14443 # adding the `-m68020' flag to GCC prevents building anything better,
14444 # like `-m68040'.
14445 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14447 esac
14450 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14451 # PIC is the default for these OSes.
14453 mingw* | cygwin* | os2* | pw32* | cegcc*)
14454 # This hack is so that the source file can tell whether it is being
14455 # built for inclusion in a dll (and should export symbols for example).
14456 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14457 # (--disable-auto-import) libraries
14458 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14460 darwin* | rhapsody*)
14461 # PIC is the default on this platform
14462 # Common symbols not allowed in MH_DYLIB files
14463 lt_prog_compiler_pic_CXX='-fno-common'
14465 *djgpp*)
14466 # DJGPP does not support shared libraries at all
14467 lt_prog_compiler_pic_CXX=
14469 haiku*)
14470 # PIC is the default for Haiku.
14471 # The "-static" flag exists, but is broken.
14472 lt_prog_compiler_static_CXX=
14474 interix[3-9]*)
14475 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14476 # Instead, we relocate shared libraries at runtime.
14478 sysv4*MP*)
14479 if test -d /usr/nec; then
14480 lt_prog_compiler_pic_CXX=-Kconform_pic
14483 hpux*)
14484 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14485 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14486 # sets the default TLS model and affects inlining.
14487 case $host_cpu in
14488 hppa*64*)
14491 lt_prog_compiler_pic_CXX='-fPIC'
14493 esac
14495 *qnx* | *nto*)
14496 # QNX uses GNU C++, but need to define -shared option too, otherwise
14497 # it will coredump.
14498 lt_prog_compiler_pic_CXX='-fPIC -shared'
14501 lt_prog_compiler_pic_CXX='-fPIC'
14503 esac
14504 else
14505 case $host_os in
14506 aix[4-9]*)
14507 # All AIX code is PIC.
14508 if test "$host_cpu" = ia64; then
14509 # AIX 5 now supports IA64 processor
14510 lt_prog_compiler_static_CXX='-Bstatic'
14511 else
14512 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14515 chorus*)
14516 case $cc_basename in
14517 cxch68*)
14518 # Green Hills C++ Compiler
14519 # _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"
14521 esac
14523 dgux*)
14524 case $cc_basename in
14525 ec++*)
14526 lt_prog_compiler_pic_CXX='-KPIC'
14528 ghcx*)
14529 # Green Hills C++ Compiler
14530 lt_prog_compiler_pic_CXX='-pic'
14534 esac
14536 freebsd* | dragonfly*)
14537 # FreeBSD uses GNU C++
14539 hpux9* | hpux10* | hpux11*)
14540 case $cc_basename in
14541 CC*)
14542 lt_prog_compiler_wl_CXX='-Wl,'
14543 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14544 if test "$host_cpu" != ia64; then
14545 lt_prog_compiler_pic_CXX='+Z'
14548 aCC*)
14549 lt_prog_compiler_wl_CXX='-Wl,'
14550 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14551 case $host_cpu in
14552 hppa*64*|ia64*)
14553 # +Z the default
14556 lt_prog_compiler_pic_CXX='+Z'
14558 esac
14562 esac
14564 interix*)
14565 # This is c89, which is MS Visual C++ (no shared libs)
14566 # Anyone wants to do a port?
14568 irix5* | irix6* | nonstopux*)
14569 case $cc_basename in
14570 CC*)
14571 lt_prog_compiler_wl_CXX='-Wl,'
14572 lt_prog_compiler_static_CXX='-non_shared'
14573 # CC pic flag -KPIC is the default.
14577 esac
14579 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14580 case $cc_basename in
14581 KCC*)
14582 # KAI C++ Compiler
14583 lt_prog_compiler_wl_CXX='--backend -Wl,'
14584 lt_prog_compiler_pic_CXX='-fPIC'
14586 ecpc* )
14587 # old Intel C++ for x86_64 which still supported -KPIC.
14588 lt_prog_compiler_wl_CXX='-Wl,'
14589 lt_prog_compiler_pic_CXX='-KPIC'
14590 lt_prog_compiler_static_CXX='-static'
14592 icpc* )
14593 # Intel C++, used to be incompatible with GCC.
14594 # ICC 10 doesn't accept -KPIC any more.
14595 lt_prog_compiler_wl_CXX='-Wl,'
14596 lt_prog_compiler_pic_CXX='-fPIC'
14597 lt_prog_compiler_static_CXX='-static'
14599 pgCC* | pgcpp*)
14600 # Portland Group C++ compiler
14601 lt_prog_compiler_wl_CXX='-Wl,'
14602 lt_prog_compiler_pic_CXX='-fpic'
14603 lt_prog_compiler_static_CXX='-Bstatic'
14605 cxx*)
14606 # Compaq C++
14607 # Make sure the PIC flag is empty. It appears that all Alpha
14608 # Linux and Compaq Tru64 Unix objects are PIC.
14609 lt_prog_compiler_pic_CXX=
14610 lt_prog_compiler_static_CXX='-non_shared'
14612 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14613 # IBM XL 8.0, 9.0 on PPC and BlueGene
14614 lt_prog_compiler_wl_CXX='-Wl,'
14615 lt_prog_compiler_pic_CXX='-qpic'
14616 lt_prog_compiler_static_CXX='-qstaticlink'
14619 case `$CC -V 2>&1 | sed 5q` in
14620 *Sun\ C*)
14621 # Sun C++ 5.9
14622 lt_prog_compiler_pic_CXX='-KPIC'
14623 lt_prog_compiler_static_CXX='-Bstatic'
14624 lt_prog_compiler_wl_CXX='-Qoption ld '
14626 esac
14628 esac
14630 lynxos*)
14632 m88k*)
14634 mvs*)
14635 case $cc_basename in
14636 cxx*)
14637 lt_prog_compiler_pic_CXX='-W c,exportall'
14641 esac
14643 netbsd*)
14645 *qnx* | *nto*)
14646 # QNX uses GNU C++, but need to define -shared option too, otherwise
14647 # it will coredump.
14648 lt_prog_compiler_pic_CXX='-fPIC -shared'
14650 osf3* | osf4* | osf5*)
14651 case $cc_basename in
14652 KCC*)
14653 lt_prog_compiler_wl_CXX='--backend -Wl,'
14655 RCC*)
14656 # Rational C++ 2.4.1
14657 lt_prog_compiler_pic_CXX='-pic'
14659 cxx*)
14660 # Digital/Compaq C++
14661 lt_prog_compiler_wl_CXX='-Wl,'
14662 # Make sure the PIC flag is empty. It appears that all Alpha
14663 # Linux and Compaq Tru64 Unix objects are PIC.
14664 lt_prog_compiler_pic_CXX=
14665 lt_prog_compiler_static_CXX='-non_shared'
14669 esac
14671 psos*)
14673 solaris*)
14674 case $cc_basename in
14675 CC*)
14676 # Sun C++ 4.2, 5.x and Centerline C++
14677 lt_prog_compiler_pic_CXX='-KPIC'
14678 lt_prog_compiler_static_CXX='-Bstatic'
14679 lt_prog_compiler_wl_CXX='-Qoption ld '
14681 gcx*)
14682 # Green Hills C++ Compiler
14683 lt_prog_compiler_pic_CXX='-PIC'
14687 esac
14689 sunos4*)
14690 case $cc_basename in
14691 CC*)
14692 # Sun C++ 4.x
14693 lt_prog_compiler_pic_CXX='-pic'
14694 lt_prog_compiler_static_CXX='-Bstatic'
14696 lcc*)
14697 # Lucid
14698 lt_prog_compiler_pic_CXX='-pic'
14702 esac
14704 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14705 case $cc_basename in
14706 CC*)
14707 lt_prog_compiler_wl_CXX='-Wl,'
14708 lt_prog_compiler_pic_CXX='-KPIC'
14709 lt_prog_compiler_static_CXX='-Bstatic'
14711 esac
14713 tandem*)
14714 case $cc_basename in
14715 NCC*)
14716 # NonStop-UX NCC 3.20
14717 lt_prog_compiler_pic_CXX='-KPIC'
14721 esac
14723 vxworks*)
14726 lt_prog_compiler_can_build_shared_CXX=no
14728 esac
14731 case $host_os in
14732 # For platforms which do not support PIC, -DPIC is meaningless:
14733 *djgpp*)
14734 lt_prog_compiler_pic_CXX=
14737 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14739 esac
14740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14741 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14746 # Check to make sure the PIC flag actually works.
14748 if test -n "$lt_prog_compiler_pic_CXX"; then
14749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14750 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14751 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14752 $as_echo_n "(cached) " >&6
14753 else
14754 lt_cv_prog_compiler_pic_works_CXX=no
14755 ac_outfile=conftest.$ac_objext
14756 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14757 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14758 # Insert the option either (1) after the last *FLAGS variable, or
14759 # (2) before a word containing "conftest.", or (3) at the end.
14760 # Note that $ac_compile itself does not contain backslashes and begins
14761 # with a dollar sign (not a hyphen), so the echo should work correctly.
14762 # The option is referenced via a variable to avoid confusing sed.
14763 lt_compile=`echo "$ac_compile" | $SED \
14764 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14765 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14766 -e 's:$: $lt_compiler_flag:'`
14767 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14768 (eval "$lt_compile" 2>conftest.err)
14769 ac_status=$?
14770 cat conftest.err >&5
14771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14772 if (exit $ac_status) && test -s "$ac_outfile"; then
14773 # The compiler can only warn and ignore the option if not recognized
14774 # So say no if there are warnings other than the usual output.
14775 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14776 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14777 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14778 lt_cv_prog_compiler_pic_works_CXX=yes
14781 $RM conftest*
14784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14785 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14787 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14788 case $lt_prog_compiler_pic_CXX in
14789 "" | " "*) ;;
14790 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14791 esac
14792 else
14793 lt_prog_compiler_pic_CXX=
14794 lt_prog_compiler_can_build_shared_CXX=no
14802 # Check to make sure the static flag actually works.
14804 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14806 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14807 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14808 $as_echo_n "(cached) " >&6
14809 else
14810 lt_cv_prog_compiler_static_works_CXX=no
14811 save_LDFLAGS="$LDFLAGS"
14812 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14813 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14814 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14815 # The linker can only warn and ignore the option if not recognized
14816 # So say no if there are warnings
14817 if test -s conftest.err; then
14818 # Append any errors to the config.log.
14819 cat conftest.err 1>&5
14820 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14821 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14822 if diff conftest.exp conftest.er2 >/dev/null; then
14823 lt_cv_prog_compiler_static_works_CXX=yes
14825 else
14826 lt_cv_prog_compiler_static_works_CXX=yes
14829 $RM -r conftest*
14830 LDFLAGS="$save_LDFLAGS"
14833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14834 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14836 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14838 else
14839 lt_prog_compiler_static_CXX=
14845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14846 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14847 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14848 $as_echo_n "(cached) " >&6
14849 else
14850 lt_cv_prog_compiler_c_o_CXX=no
14851 $RM -r conftest 2>/dev/null
14852 mkdir conftest
14853 cd conftest
14854 mkdir out
14855 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14857 lt_compiler_flag="-o out/conftest2.$ac_objext"
14858 # Insert the option either (1) after the last *FLAGS variable, or
14859 # (2) before a word containing "conftest.", or (3) at the end.
14860 # Note that $ac_compile itself does not contain backslashes and begins
14861 # with a dollar sign (not a hyphen), so the echo should work correctly.
14862 lt_compile=`echo "$ac_compile" | $SED \
14863 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14864 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14865 -e 's:$: $lt_compiler_flag:'`
14866 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14867 (eval "$lt_compile" 2>out/conftest.err)
14868 ac_status=$?
14869 cat out/conftest.err >&5
14870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14871 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14872 then
14873 # The compiler can only warn and ignore the option if not recognized
14874 # So say no if there are warnings
14875 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14876 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14877 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14878 lt_cv_prog_compiler_c_o_CXX=yes
14881 chmod u+w . 2>&5
14882 $RM conftest*
14883 # SGI C++ compiler will create directory out/ii_files/ for
14884 # template instantiation
14885 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14886 $RM out/* && rmdir out
14887 cd ..
14888 $RM -r conftest
14889 $RM conftest*
14892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14893 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14898 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14899 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14900 $as_echo_n "(cached) " >&6
14901 else
14902 lt_cv_prog_compiler_c_o_CXX=no
14903 $RM -r conftest 2>/dev/null
14904 mkdir conftest
14905 cd conftest
14906 mkdir out
14907 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14909 lt_compiler_flag="-o out/conftest2.$ac_objext"
14910 # Insert the option either (1) after the last *FLAGS variable, or
14911 # (2) before a word containing "conftest.", or (3) at the end.
14912 # Note that $ac_compile itself does not contain backslashes and begins
14913 # with a dollar sign (not a hyphen), so the echo should work correctly.
14914 lt_compile=`echo "$ac_compile" | $SED \
14915 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14916 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14917 -e 's:$: $lt_compiler_flag:'`
14918 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14919 (eval "$lt_compile" 2>out/conftest.err)
14920 ac_status=$?
14921 cat out/conftest.err >&5
14922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14923 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14924 then
14925 # The compiler can only warn and ignore the option if not recognized
14926 # So say no if there are warnings
14927 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14928 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14929 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14930 lt_cv_prog_compiler_c_o_CXX=yes
14933 chmod u+w . 2>&5
14934 $RM conftest*
14935 # SGI C++ compiler will create directory out/ii_files/ for
14936 # template instantiation
14937 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14938 $RM out/* && rmdir out
14939 cd ..
14940 $RM -r conftest
14941 $RM conftest*
14944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14945 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14950 hard_links="nottested"
14951 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14952 # do not overwrite the value of need_locks provided by the user
14953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14954 $as_echo_n "checking if we can lock with hard links... " >&6; }
14955 hard_links=yes
14956 $RM conftest*
14957 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14958 touch conftest.a
14959 ln conftest.a conftest.b 2>&5 || hard_links=no
14960 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14962 $as_echo "$hard_links" >&6; }
14963 if test "$hard_links" = no; then
14964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14965 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14966 need_locks=warn
14968 else
14969 need_locks=no
14974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14975 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14977 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14978 case $host_os in
14979 aix[4-9]*)
14980 # If we're using GNU nm, then we don't want the "-C" option.
14981 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14982 # Also, AIX nm treats weak defined symbols like other global defined
14983 # symbols, whereas GNU nm marks them as "W".
14984 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14985 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'
14986 else
14987 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'
14990 pw32*)
14991 export_symbols_cmds_CXX="$ltdll_cmds"
14993 cygwin* | mingw* | cegcc*)
14994 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'
14997 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14999 esac
15000 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15003 $as_echo "$ld_shlibs_CXX" >&6; }
15004 test "$ld_shlibs_CXX" = no && can_build_shared=no
15006 with_gnu_ld_CXX=$with_gnu_ld
15014 # Do we need to explicitly link libc?
15016 case "x$archive_cmds_need_lc_CXX" in
15017 x|xyes)
15018 # Assume -lc should be added
15019 archive_cmds_need_lc_CXX=yes
15021 if test "$enable_shared" = yes && test "$GCC" = yes; then
15022 case $archive_cmds_CXX in
15023 *'~'*)
15024 # FIXME: we may have to deal with multi-command sequences.
15026 '$CC '*)
15027 # Test whether the compiler implicitly links with -lc since on some
15028 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15029 # to ld, don't add -lc before -lgcc.
15030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15031 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15032 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15033 $as_echo_n "(cached) " >&6
15034 else
15035 $RM conftest*
15036 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15038 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15039 (eval $ac_compile) 2>&5
15040 ac_status=$?
15041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15042 test $ac_status = 0; } 2>conftest.err; then
15043 soname=conftest
15044 lib=conftest
15045 libobjs=conftest.$ac_objext
15046 deplibs=
15047 wl=$lt_prog_compiler_wl_CXX
15048 pic_flag=$lt_prog_compiler_pic_CXX
15049 compiler_flags=-v
15050 linker_flags=-v
15051 verstring=
15052 output_objdir=.
15053 libname=conftest
15054 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15055 allow_undefined_flag_CXX=
15056 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15057 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15058 ac_status=$?
15059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15060 test $ac_status = 0; }
15061 then
15062 lt_cv_archive_cmds_need_lc_CXX=no
15063 else
15064 lt_cv_archive_cmds_need_lc_CXX=yes
15066 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15067 else
15068 cat conftest.err 1>&5
15070 $RM conftest*
15073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15074 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15075 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15077 esac
15080 esac
15145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15146 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15148 library_names_spec=
15149 libname_spec='lib$name'
15150 soname_spec=
15151 shrext_cmds=".so"
15152 postinstall_cmds=
15153 postuninstall_cmds=
15154 finish_cmds=
15155 finish_eval=
15156 shlibpath_var=
15157 shlibpath_overrides_runpath=unknown
15158 version_type=none
15159 dynamic_linker="$host_os ld.so"
15160 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15161 need_lib_prefix=unknown
15162 hardcode_into_libs=no
15164 # when you set need_version to no, make sure it does not cause -set_version
15165 # flags to be left without arguments
15166 need_version=unknown
15168 case $host_os in
15169 aix3*)
15170 version_type=linux
15171 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15172 shlibpath_var=LIBPATH
15174 # AIX 3 has no versioning support, so we append a major version to the name.
15175 soname_spec='${libname}${release}${shared_ext}$major'
15178 aix[4-9]*)
15179 version_type=linux
15180 need_lib_prefix=no
15181 need_version=no
15182 hardcode_into_libs=yes
15183 if test "$host_cpu" = ia64; then
15184 # AIX 5 supports IA64
15185 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15186 shlibpath_var=LD_LIBRARY_PATH
15187 else
15188 # With GCC up to 2.95.x, collect2 would create an import file
15189 # for dependence libraries. The import file would start with
15190 # the line `#! .'. This would cause the generated library to
15191 # depend on `.', always an invalid library. This was fixed in
15192 # development snapshots of GCC prior to 3.0.
15193 case $host_os in
15194 aix4 | aix4.[01] | aix4.[01].*)
15195 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15196 echo ' yes '
15197 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15199 else
15200 can_build_shared=no
15203 esac
15204 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15205 # soname into executable. Probably we can add versioning support to
15206 # collect2, so additional links can be useful in future.
15207 if test "$aix_use_runtimelinking" = yes; then
15208 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15209 # instead of lib<name>.a to let people know that these are not
15210 # typical AIX shared libraries.
15211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15212 else
15213 # We preserve .a as extension for shared libraries through AIX4.2
15214 # and later when we are not doing run time linking.
15215 library_names_spec='${libname}${release}.a $libname.a'
15216 soname_spec='${libname}${release}${shared_ext}$major'
15218 shlibpath_var=LIBPATH
15222 amigaos*)
15223 case $host_cpu in
15224 powerpc)
15225 # Since July 2007 AmigaOS4 officially supports .so libraries.
15226 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15229 m68k)
15230 library_names_spec='$libname.ixlibrary $libname.a'
15231 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15232 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'
15234 esac
15237 beos*)
15238 library_names_spec='${libname}${shared_ext}'
15239 dynamic_linker="$host_os ld.so"
15240 shlibpath_var=LIBRARY_PATH
15243 bsdi[45]*)
15244 version_type=linux
15245 need_version=no
15246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15247 soname_spec='${libname}${release}${shared_ext}$major'
15248 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15249 shlibpath_var=LD_LIBRARY_PATH
15250 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15251 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15252 # the default ld.so.conf also contains /usr/contrib/lib and
15253 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15254 # libtool to hard-code these into programs
15257 cygwin* | mingw* | pw32* | cegcc*)
15258 version_type=windows
15259 shrext_cmds=".dll"
15260 need_version=no
15261 need_lib_prefix=no
15263 case $GCC,$host_os in
15264 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15265 library_names_spec='$libname.dll.a'
15266 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15267 postinstall_cmds='base_file=`basename \${file}`~
15268 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15269 dldir=$destdir/`dirname \$dlpath`~
15270 test -d \$dldir || mkdir -p \$dldir~
15271 $install_prog $dir/$dlname \$dldir/$dlname~
15272 chmod a+x \$dldir/$dlname~
15273 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15274 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15276 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15277 dlpath=$dir/\$dldll~
15278 $RM \$dlpath'
15279 shlibpath_overrides_runpath=yes
15281 case $host_os in
15282 cygwin*)
15283 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15284 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15287 mingw* | cegcc*)
15288 # MinGW DLLs use traditional 'lib' prefix
15289 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15291 pw32*)
15292 # pw32 DLLs use 'pw' prefix rather than 'lib'
15293 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15295 esac
15299 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15301 esac
15302 dynamic_linker='Win32 ld.exe'
15303 # FIXME: first we should search . and the directory the executable is in
15304 shlibpath_var=PATH
15307 darwin* | rhapsody*)
15308 dynamic_linker="$host_os dyld"
15309 version_type=darwin
15310 need_lib_prefix=no
15311 need_version=no
15312 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15313 soname_spec='${libname}${release}${major}$shared_ext'
15314 shlibpath_overrides_runpath=yes
15315 shlibpath_var=DYLD_LIBRARY_PATH
15316 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15318 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15321 dgux*)
15322 version_type=linux
15323 need_lib_prefix=no
15324 need_version=no
15325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15326 soname_spec='${libname}${release}${shared_ext}$major'
15327 shlibpath_var=LD_LIBRARY_PATH
15330 freebsd* | dragonfly*)
15331 # DragonFly does not have aout. When/if they implement a new
15332 # versioning mechanism, adjust this.
15333 if test -x /usr/bin/objformat; then
15334 objformat=`/usr/bin/objformat`
15335 else
15336 case $host_os in
15337 freebsd[23].*) objformat=aout ;;
15338 *) objformat=elf ;;
15339 esac
15341 version_type=freebsd-$objformat
15342 case $version_type in
15343 freebsd-elf*)
15344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15345 need_version=no
15346 need_lib_prefix=no
15348 freebsd-*)
15349 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15350 need_version=yes
15352 esac
15353 shlibpath_var=LD_LIBRARY_PATH
15354 case $host_os in
15355 freebsd2.*)
15356 shlibpath_overrides_runpath=yes
15358 freebsd3.[01]* | freebsdelf3.[01]*)
15359 shlibpath_overrides_runpath=yes
15360 hardcode_into_libs=yes
15362 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15363 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15364 shlibpath_overrides_runpath=no
15365 hardcode_into_libs=yes
15367 *) # from 4.6 on, and DragonFly
15368 shlibpath_overrides_runpath=yes
15369 hardcode_into_libs=yes
15371 esac
15374 haiku*)
15375 version_type=linux
15376 need_lib_prefix=no
15377 need_version=no
15378 dynamic_linker="$host_os runtime_loader"
15379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15380 soname_spec='${libname}${release}${shared_ext}$major'
15381 shlibpath_var=LIBRARY_PATH
15382 shlibpath_overrides_runpath=yes
15383 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15384 hardcode_into_libs=yes
15387 hpux9* | hpux10* | hpux11*)
15388 # Give a soname corresponding to the major version so that dld.sl refuses to
15389 # link against other versions.
15390 version_type=sunos
15391 need_lib_prefix=no
15392 need_version=no
15393 case $host_cpu in
15394 ia64*)
15395 shrext_cmds='.so'
15396 hardcode_into_libs=yes
15397 dynamic_linker="$host_os dld.so"
15398 shlibpath_var=LD_LIBRARY_PATH
15399 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15401 soname_spec='${libname}${release}${shared_ext}$major'
15402 if test "X$HPUX_IA64_MODE" = X32; then
15403 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15404 else
15405 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15407 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15409 hppa*64*)
15410 shrext_cmds='.sl'
15411 hardcode_into_libs=yes
15412 dynamic_linker="$host_os dld.sl"
15413 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15414 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15416 soname_spec='${libname}${release}${shared_ext}$major'
15417 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15418 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15421 shrext_cmds='.sl'
15422 dynamic_linker="$host_os dld.sl"
15423 shlibpath_var=SHLIB_PATH
15424 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15426 soname_spec='${libname}${release}${shared_ext}$major'
15428 esac
15429 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15430 postinstall_cmds='chmod 555 $lib'
15431 # or fails outright, so override atomically:
15432 install_override_mode=555
15435 interix[3-9]*)
15436 version_type=linux
15437 need_lib_prefix=no
15438 need_version=no
15439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15440 soname_spec='${libname}${release}${shared_ext}$major'
15441 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15442 shlibpath_var=LD_LIBRARY_PATH
15443 shlibpath_overrides_runpath=no
15444 hardcode_into_libs=yes
15447 irix5* | irix6* | nonstopux*)
15448 case $host_os in
15449 nonstopux*) version_type=nonstopux ;;
15451 if test "$lt_cv_prog_gnu_ld" = yes; then
15452 version_type=linux
15453 else
15454 version_type=irix
15455 fi ;;
15456 esac
15457 need_lib_prefix=no
15458 need_version=no
15459 soname_spec='${libname}${release}${shared_ext}$major'
15460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15461 case $host_os in
15462 irix5* | nonstopux*)
15463 libsuff= shlibsuff=
15466 case $LD in # libtool.m4 will add one of these switches to LD
15467 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15468 libsuff= shlibsuff= libmagic=32-bit;;
15469 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15470 libsuff=32 shlibsuff=N32 libmagic=N32;;
15471 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15472 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15473 *) libsuff= shlibsuff= libmagic=never-match;;
15474 esac
15476 esac
15477 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15478 shlibpath_overrides_runpath=no
15479 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15480 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15481 hardcode_into_libs=yes
15484 # No shared lib support for Linux oldld, aout, or coff.
15485 linux*oldld* | linux*aout* | linux*coff*)
15486 dynamic_linker=no
15489 # This must be Linux ELF.
15491 # uclinux* changes (here and below) have been submitted to the libtool
15492 # project, but have not yet been accepted: they are GCC-local changes
15493 # for the time being. (See
15494 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
15495 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
15496 version_type=linux
15497 need_lib_prefix=no
15498 need_version=no
15499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15500 soname_spec='${libname}${release}${shared_ext}$major'
15501 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15502 shlibpath_var=LD_LIBRARY_PATH
15503 shlibpath_overrides_runpath=no
15505 # Some binutils ld are patched to set DT_RUNPATH
15506 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15507 $as_echo_n "(cached) " >&6
15508 else
15509 lt_cv_shlibpath_overrides_runpath=no
15510 save_LDFLAGS=$LDFLAGS
15511 save_libdir=$libdir
15512 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15513 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15515 /* end confdefs.h. */
15518 main ()
15522 return 0;
15524 _ACEOF
15525 if ac_fn_cxx_try_link "$LINENO"; then :
15526 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15527 lt_cv_shlibpath_overrides_runpath=yes
15530 rm -f core conftest.err conftest.$ac_objext \
15531 conftest$ac_exeext conftest.$ac_ext
15532 LDFLAGS=$save_LDFLAGS
15533 libdir=$save_libdir
15537 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15539 # This implies no fast_install, which is unacceptable.
15540 # Some rework will be needed to allow for fast_install
15541 # before this can be enabled.
15542 hardcode_into_libs=yes
15544 # Append ld.so.conf contents to the search path
15545 if test -f /etc/ld.so.conf; then
15546 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' ' '`
15547 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15550 # We used to test for /lib/ld.so.1 and disable shared libraries on
15551 # powerpc, because MkLinux only supported shared libraries with the
15552 # GNU dynamic linker. Since this was broken with cross compilers,
15553 # most powerpc-linux boxes support dynamic linking these days and
15554 # people can always --disable-shared, the test was removed, and we
15555 # assume the GNU/Linux dynamic linker is in use.
15556 dynamic_linker='GNU/Linux ld.so'
15559 netbsd*)
15560 version_type=sunos
15561 need_lib_prefix=no
15562 need_version=no
15563 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15565 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15566 dynamic_linker='NetBSD (a.out) ld.so'
15567 else
15568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15569 soname_spec='${libname}${release}${shared_ext}$major'
15570 dynamic_linker='NetBSD ld.elf_so'
15572 shlibpath_var=LD_LIBRARY_PATH
15573 shlibpath_overrides_runpath=yes
15574 hardcode_into_libs=yes
15577 newsos6)
15578 version_type=linux
15579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15580 shlibpath_var=LD_LIBRARY_PATH
15581 shlibpath_overrides_runpath=yes
15584 *nto* | *qnx*)
15585 version_type=qnx
15586 need_lib_prefix=no
15587 need_version=no
15588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15589 soname_spec='${libname}${release}${shared_ext}$major'
15590 shlibpath_var=LD_LIBRARY_PATH
15591 shlibpath_overrides_runpath=no
15592 hardcode_into_libs=yes
15593 dynamic_linker='ldqnx.so'
15596 openbsd*)
15597 version_type=sunos
15598 sys_lib_dlsearch_path_spec="/usr/lib"
15599 need_lib_prefix=no
15600 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15601 case $host_os in
15602 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15603 *) need_version=no ;;
15604 esac
15605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15606 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15607 shlibpath_var=LD_LIBRARY_PATH
15608 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15609 case $host_os in
15610 openbsd2.[89] | openbsd2.[89].*)
15611 shlibpath_overrides_runpath=no
15614 shlibpath_overrides_runpath=yes
15616 esac
15617 else
15618 shlibpath_overrides_runpath=yes
15622 os2*)
15623 libname_spec='$name'
15624 shrext_cmds=".dll"
15625 need_lib_prefix=no
15626 library_names_spec='$libname${shared_ext} $libname.a'
15627 dynamic_linker='OS/2 ld.exe'
15628 shlibpath_var=LIBPATH
15631 osf3* | osf4* | osf5*)
15632 version_type=osf
15633 need_lib_prefix=no
15634 need_version=no
15635 soname_spec='${libname}${release}${shared_ext}$major'
15636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15637 shlibpath_var=LD_LIBRARY_PATH
15638 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15639 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15642 rdos*)
15643 dynamic_linker=no
15646 solaris*)
15647 version_type=linux
15648 need_lib_prefix=no
15649 need_version=no
15650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15651 soname_spec='${libname}${release}${shared_ext}$major'
15652 shlibpath_var=LD_LIBRARY_PATH
15653 shlibpath_overrides_runpath=yes
15654 hardcode_into_libs=yes
15655 # ldd complains unless libraries are executable
15656 postinstall_cmds='chmod +x $lib'
15659 sunos4*)
15660 version_type=sunos
15661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15662 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15663 shlibpath_var=LD_LIBRARY_PATH
15664 shlibpath_overrides_runpath=yes
15665 if test "$with_gnu_ld" = yes; then
15666 need_lib_prefix=no
15668 need_version=yes
15671 sysv4 | sysv4.3*)
15672 version_type=linux
15673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15674 soname_spec='${libname}${release}${shared_ext}$major'
15675 shlibpath_var=LD_LIBRARY_PATH
15676 case $host_vendor in
15677 sni)
15678 shlibpath_overrides_runpath=no
15679 need_lib_prefix=no
15680 runpath_var=LD_RUN_PATH
15682 siemens)
15683 need_lib_prefix=no
15685 motorola)
15686 need_lib_prefix=no
15687 need_version=no
15688 shlibpath_overrides_runpath=no
15689 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15691 esac
15694 sysv4*MP*)
15695 if test -d /usr/nec ;then
15696 version_type=linux
15697 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15698 soname_spec='$libname${shared_ext}.$major'
15699 shlibpath_var=LD_LIBRARY_PATH
15703 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15704 version_type=freebsd-elf
15705 need_lib_prefix=no
15706 need_version=no
15707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15708 soname_spec='${libname}${release}${shared_ext}$major'
15709 shlibpath_var=LD_LIBRARY_PATH
15710 shlibpath_overrides_runpath=yes
15711 hardcode_into_libs=yes
15712 if test "$with_gnu_ld" = yes; then
15713 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15714 else
15715 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15716 case $host_os in
15717 sco3.2v5*)
15718 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15720 esac
15722 sys_lib_dlsearch_path_spec='/usr/lib'
15725 tpf*)
15726 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15727 version_type=linux
15728 need_lib_prefix=no
15729 need_version=no
15730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15731 shlibpath_var=LD_LIBRARY_PATH
15732 shlibpath_overrides_runpath=no
15733 hardcode_into_libs=yes
15736 uts4*)
15737 version_type=linux
15738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15739 soname_spec='${libname}${release}${shared_ext}$major'
15740 shlibpath_var=LD_LIBRARY_PATH
15743 # Shared libraries for VwWorks, >= 7 only at this stage
15744 # and (fpic) still incompatible with "large" code models
15745 # in a few configurations. Only for RTP mode in any case,
15746 # and upon explicit request at configure time.
15747 vxworks7*)
15748 dynamic_linker=no
15749 case ${with_multisubdir}-${enable_shared} in
15750 *large*)
15752 *mrtp*-yes)
15753 version_type=linux
15754 need_lib_prefix=no
15755 need_version=no
15756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15757 soname_spec='${libname}${release}${shared_ext}$major'
15758 dynamic_linker="$host_os module_loader"
15760 esac
15763 dynamic_linker=no
15765 esac
15766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15767 $as_echo "$dynamic_linker" >&6; }
15768 test "$dynamic_linker" = no && can_build_shared=no
15770 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15771 if test "$GCC" = yes; then
15772 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15775 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15776 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15778 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15779 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15820 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15821 hardcode_action_CXX=
15822 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15823 test -n "$runpath_var_CXX" ||
15824 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15826 # We can hardcode non-existent directories.
15827 if test "$hardcode_direct_CXX" != no &&
15828 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15829 # have to relink, otherwise we might link with an installed library
15830 # when we should be linking with a yet-to-be-installed one
15831 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15832 test "$hardcode_minus_L_CXX" != no; then
15833 # Linking always hardcodes the temporary library directory.
15834 hardcode_action_CXX=relink
15835 else
15836 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15837 hardcode_action_CXX=immediate
15839 else
15840 # We cannot hardcode anything, or else we can only hardcode existing
15841 # directories.
15842 hardcode_action_CXX=unsupported
15844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15845 $as_echo "$hardcode_action_CXX" >&6; }
15847 if test "$hardcode_action_CXX" = relink ||
15848 test "$inherit_rpath_CXX" = yes; then
15849 # Fast installation is not supported
15850 enable_fast_install=no
15851 elif test "$shlibpath_overrides_runpath" = yes ||
15852 test "$enable_shared" = no; then
15853 # Fast installation is not necessary
15854 enable_fast_install=needless
15863 fi # test -n "$compiler"
15865 CC=$lt_save_CC
15866 LDCXX=$LD
15867 LD=$lt_save_LD
15868 GCC=$lt_save_GCC
15869 with_gnu_ld=$lt_save_with_gnu_ld
15870 lt_cv_path_LDCXX=$lt_cv_path_LD
15871 lt_cv_path_LD=$lt_save_path_LD
15872 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15873 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15874 fi # test "$_lt_caught_CXX_error" != yes
15876 ac_ext=c
15877 ac_cpp='$CPP $CPPFLAGS'
15878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15894 ac_config_commands="$ac_config_commands libtool"
15899 # Only expand once:
15903 for ac_prog in gawk mawk nawk awk
15905 # Extract the first word of "$ac_prog", so it can be a program name with args.
15906 set dummy $ac_prog; ac_word=$2
15907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15908 $as_echo_n "checking for $ac_word... " >&6; }
15909 if ${ac_cv_prog_AWK+:} false; then :
15910 $as_echo_n "(cached) " >&6
15911 else
15912 if test -n "$AWK"; then
15913 ac_cv_prog_AWK="$AWK" # Let the user override the test.
15914 else
15915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15916 for as_dir in $PATH
15918 IFS=$as_save_IFS
15919 test -z "$as_dir" && as_dir=.
15920 for ac_exec_ext in '' $ac_executable_extensions; do
15921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15922 ac_cv_prog_AWK="$ac_prog"
15923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15924 break 2
15926 done
15927 done
15928 IFS=$as_save_IFS
15932 AWK=$ac_cv_prog_AWK
15933 if test -n "$AWK"; then
15934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
15935 $as_echo "$AWK" >&6; }
15936 else
15937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15938 $as_echo "no" >&6; }
15942 test -n "$AWK" && break
15943 done
15945 case "$AWK" in
15946 "") as_fn_error $? "can't build without awk" "$LINENO" 5 ;;
15947 esac
15952 if test x$enable_darwin_at_rpath = xyes; then
15953 ENABLE_DARWIN_AT_RPATH_TRUE=
15954 ENABLE_DARWIN_AT_RPATH_FALSE='#'
15955 else
15956 ENABLE_DARWIN_AT_RPATH_TRUE='#'
15957 ENABLE_DARWIN_AT_RPATH_FALSE=
15961 # The cast to long int works around a bug in the HP C Compiler
15962 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15963 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15964 # This bug is HP SR number 8606223364.
15965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15966 $as_echo_n "checking size of void *... " >&6; }
15967 if ${ac_cv_sizeof_void_p+:} false; then :
15968 $as_echo_n "(cached) " >&6
15969 else
15970 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15972 else
15973 if test "$ac_cv_type_void_p" = yes; then
15974 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15975 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15976 as_fn_error 77 "cannot compute sizeof (void *)
15977 See \`config.log' for more details" "$LINENO" 5; }
15978 else
15979 ac_cv_sizeof_void_p=0
15984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15985 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15989 cat >>confdefs.h <<_ACEOF
15990 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15991 _ACEOF
15995 if test "${multilib}" = "yes"; then
15996 multilib_arg="--enable-multilib"
15997 else
15998 multilib_arg=
16001 # Get target configury.
16002 unset TSAN_SUPPORTED
16003 unset LSAN_SUPPORTED
16004 unset HWASAN_SUPPORTED
16005 . ${srcdir}/configure.tgt
16006 if test "x$TSAN_SUPPORTED" = "xyes"; then
16007 TSAN_SUPPORTED_TRUE=
16008 TSAN_SUPPORTED_FALSE='#'
16009 else
16010 TSAN_SUPPORTED_TRUE='#'
16011 TSAN_SUPPORTED_FALSE=
16014 if test "x$LSAN_SUPPORTED" = "xyes"; then
16015 LSAN_SUPPORTED_TRUE=
16016 LSAN_SUPPORTED_FALSE='#'
16017 else
16018 LSAN_SUPPORTED_TRUE='#'
16019 LSAN_SUPPORTED_FALSE=
16022 if test "x$HWASAN_SUPPORTED" = "xyes"; then
16023 HWASAN_SUPPORTED_TRUE=
16024 HWASAN_SUPPORTED_FALSE='#'
16025 else
16026 HWASAN_SUPPORTED_TRUE='#'
16027 HWASAN_SUPPORTED_FALSE=
16031 # Check for functions needed.
16032 for ac_func in clock_getres clock_gettime clock_settime lstat readlink
16033 do :
16034 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16035 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16036 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16037 cat >>confdefs.h <<_ACEOF
16038 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16039 _ACEOF
16042 done
16045 # Common libraries that we need to link against for all sanitizer libs.
16046 link_sanitizer_common='-lpthread -lm'
16048 # At least for glibc, shm_open is in librt. But don't pull that
16049 # in if it still doesn't give us the function we want. This
16050 # test is copied from libgomp.
16051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shm_open in -lrt" >&5
16052 $as_echo_n "checking for shm_open in -lrt... " >&6; }
16053 if ${ac_cv_lib_rt_shm_open+:} false; then :
16054 $as_echo_n "(cached) " >&6
16055 else
16056 ac_check_lib_save_LIBS=$LIBS
16057 LIBS="-lrt $LIBS"
16058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16059 /* end confdefs.h. */
16061 /* Override any GCC internal prototype to avoid an error.
16062 Use char because int might match the return type of a GCC
16063 builtin and then its argument prototype would still apply. */
16064 #ifdef __cplusplus
16065 extern "C"
16066 #endif
16067 char shm_open ();
16069 main ()
16071 return shm_open ();
16073 return 0;
16075 _ACEOF
16076 if ac_fn_c_try_link "$LINENO"; then :
16077 ac_cv_lib_rt_shm_open=yes
16078 else
16079 ac_cv_lib_rt_shm_open=no
16081 rm -f core conftest.err conftest.$ac_objext \
16082 conftest$ac_exeext conftest.$ac_ext
16083 LIBS=$ac_check_lib_save_LIBS
16085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_shm_open" >&5
16086 $as_echo "$ac_cv_lib_rt_shm_open" >&6; }
16087 if test "x$ac_cv_lib_rt_shm_open" = xyes; then :
16088 link_sanitizer_common="-lrt $link_sanitizer_common"
16092 # Do a configure time check for -ldl
16093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
16094 $as_echo_n "checking for dlsym in -ldl... " >&6; }
16095 if ${ac_cv_lib_dl_dlsym+:} false; then :
16096 $as_echo_n "(cached) " >&6
16097 else
16098 ac_check_lib_save_LIBS=$LIBS
16099 LIBS="-ldl $LIBS"
16100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16101 /* end confdefs.h. */
16103 /* Override any GCC internal prototype to avoid an error.
16104 Use char because int might match the return type of a GCC
16105 builtin and then its argument prototype would still apply. */
16106 #ifdef __cplusplus
16107 extern "C"
16108 #endif
16109 char dlsym ();
16111 main ()
16113 return dlsym ();
16115 return 0;
16117 _ACEOF
16118 if ac_fn_c_try_link "$LINENO"; then :
16119 ac_cv_lib_dl_dlsym=yes
16120 else
16121 ac_cv_lib_dl_dlsym=no
16123 rm -f core conftest.err conftest.$ac_objext \
16124 conftest$ac_exeext conftest.$ac_ext
16125 LIBS=$ac_check_lib_save_LIBS
16127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
16128 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
16129 if test "x$ac_cv_lib_dl_dlsym" = xyes; then :
16130 link_sanitizer_common="-ldl $link_sanitizer_common"
16134 # Set up the set of additional libraries that we need to link against for libasan.
16135 link_libasan=$link_sanitizer_common
16138 # Set up the set of additional libraries that we need to link against for libhwasan.
16139 link_libhwasan=$link_sanitizer_common
16142 # Set up the set of additional libraries that we need to link against for libtsan.
16143 link_libtsan=$link_sanitizer_common
16146 # Set up the set of additional libraries that we need to link against for libubsan.
16147 link_libubsan=$link_sanitizer_common
16150 # Set up the set of additional libraries that we need to link against for liblsan.
16151 link_liblsan=$link_sanitizer_common
16155 # At least for glibc, clock_gettime is in librt. But don't pull that
16156 # in if it still doesn't give us the function we want. This
16157 # test is copied from libgomp.
16158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
16159 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
16160 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
16161 $as_echo_n "(cached) " >&6
16162 else
16163 ac_check_lib_save_LIBS=$LIBS
16164 LIBS="-lrt $LIBS"
16165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16166 /* end confdefs.h. */
16168 /* Override any GCC internal prototype to avoid an error.
16169 Use char because int might match the return type of a GCC
16170 builtin and then its argument prototype would still apply. */
16171 #ifdef __cplusplus
16172 extern "C"
16173 #endif
16174 char clock_gettime ();
16176 main ()
16178 return clock_gettime ();
16180 return 0;
16182 _ACEOF
16183 if ac_fn_c_try_link "$LINENO"; then :
16184 ac_cv_lib_rt_clock_gettime=yes
16185 else
16186 ac_cv_lib_rt_clock_gettime=no
16188 rm -f core conftest.err conftest.$ac_objext \
16189 conftest$ac_exeext conftest.$ac_ext
16190 LIBS=$ac_check_lib_save_LIBS
16192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
16193 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
16194 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
16195 link_libasan="-lrt $link_libasan"
16196 link_libtsan="-lrt $link_libtsan"
16197 # Other sanitizers do not override clock_* API
16202 case "$host" in
16203 *-*-darwin*) MAC_INTERPOSE=true ; enable_static=no ;;
16204 *) MAC_INTERPOSE=false ;;
16205 esac
16206 if $MAC_INTERPOSE; then
16207 USING_MAC_INTERPOSE_TRUE=
16208 USING_MAC_INTERPOSE_FALSE='#'
16209 else
16210 USING_MAC_INTERPOSE_TRUE='#'
16211 USING_MAC_INTERPOSE_FALSE=
16215 backtrace_supported=yes
16217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary platform features" >&5
16218 $as_echo_n "checking for necessary platform features... " >&6; }
16219 case "$target" in
16220 *-*-linux*)
16221 # Some old Linux distributions miss required syscalls.
16222 sanitizer_supported=no
16223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16224 /* end confdefs.h. */
16225 #include <sys/syscall.h>
16226 #include <unistd.h>
16228 main ()
16231 syscall (__NR_gettid);
16232 syscall (__NR_futex);
16233 syscall (__NR_exit_group);
16236 return 0;
16238 _ACEOF
16239 if ac_fn_c_try_compile "$LINENO"; then :
16240 sanitizer_supported=yes
16242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16245 sanitizer_supported=yes
16247 esac
16248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sanitizer_supported" >&5
16249 $as_echo "$sanitizer_supported" >&6; }
16250 if test "$sanitizer_supported" = yes; then
16251 SANITIZER_SUPPORTED_TRUE=
16252 SANITIZER_SUPPORTED_FALSE='#'
16253 else
16254 SANITIZER_SUPPORTED_TRUE='#'
16255 SANITIZER_SUPPORTED_FALSE=
16259 # Test for __sync support.
16260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __sync extensions" >&5
16261 $as_echo_n "checking __sync extensions... " >&6; }
16262 if ${libsanitizer_cv_sys_sync+:} false; then :
16263 $as_echo_n "(cached) " >&6
16264 else
16265 if test -n "${with_target_subdir}"; then
16266 libsanitizer_cv_sys_sync=yes
16267 else
16268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16269 /* end confdefs.h. */
16270 int i;
16272 main ()
16274 __sync_bool_compare_and_swap (&i, i, i);
16275 __sync_lock_test_and_set (&i, 1);
16276 __sync_lock_release (&i);
16278 return 0;
16280 _ACEOF
16281 if ac_fn_c_try_link "$LINENO"; then :
16282 libsanitizer_cv_sys_sync=yes
16283 else
16284 libsanitizer_cv_sys_sync=no
16286 rm -f core conftest.err conftest.$ac_objext \
16287 conftest$ac_exeext conftest.$ac_ext
16290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libsanitizer_cv_sys_sync" >&5
16291 $as_echo "$libsanitizer_cv_sys_sync" >&6; }
16292 if test "$libsanitizer_cv_sys_sync" = "yes"; then
16294 $as_echo "#define HAVE_SYNC_FUNCTIONS 1" >>confdefs.h
16298 # Test for __atomic support.
16299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __atomic extensions" >&5
16300 $as_echo_n "checking __atomic extensions... " >&6; }
16301 if ${libsanitizer_cv_sys_atomic+:} false; then :
16302 $as_echo_n "(cached) " >&6
16303 else
16304 if test -n "${with_target_subdir}"; then
16305 libsanitizer_cv_sys_atomic=yes
16306 else
16307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16308 /* end confdefs.h. */
16309 int i;
16311 main ()
16313 __atomic_load_n (&i, __ATOMIC_ACQUIRE);
16314 __atomic_store_n (&i, 1, __ATOMIC_RELEASE);
16316 return 0;
16318 _ACEOF
16319 if ac_fn_c_try_link "$LINENO"; then :
16320 libsanitizer_cv_sys_atomic=yes
16321 else
16322 libsanitizer_cv_sys_atomic=no
16324 rm -f core conftest.err conftest.$ac_objext \
16325 conftest$ac_exeext conftest.$ac_ext
16328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libsanitizer_cv_sys_atomic" >&5
16329 $as_echo "$libsanitizer_cv_sys_atomic" >&6; }
16330 if test "$libsanitizer_cv_sys_atomic" = "yes"; then
16332 $as_echo "#define HAVE_ATOMIC_FUNCTIONS 1" >>confdefs.h
16336 # The library needs to be able to read the executable itself. Compile
16337 # a file to determine the executable format. The awk script
16338 # filetype.awk prints out the file type.
16339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking output filetype" >&5
16340 $as_echo_n "checking output filetype... " >&6; }
16341 if ${libsanitizer_cv_sys_filetype+:} false; then :
16342 $as_echo_n "(cached) " >&6
16343 else
16344 filetype=
16345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16346 /* end confdefs.h. */
16347 int i;
16349 main ()
16351 int j;
16353 return 0;
16355 _ACEOF
16356 if ac_fn_c_try_compile "$LINENO"; then :
16357 filetype=`${AWK} -f $srcdir/../libbacktrace/filetype.awk conftest.$ac_objext`
16358 else
16359 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16360 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16361 as_fn_error $? "compiler failed
16362 See \`config.log' for more details" "$LINENO" 5; }
16364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16365 libsanitizer_cv_sys_filetype=$filetype
16367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libsanitizer_cv_sys_filetype" >&5
16368 $as_echo "$libsanitizer_cv_sys_filetype" >&6; }
16370 # Match the file type to decide what files to compile.
16371 FORMAT_FILE=
16372 case "$libsanitizer_cv_sys_filetype" in
16373 elf*) FORMAT_FILE="elf.lo" ;;
16374 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not determine output file type" >&5
16375 $as_echo "$as_me: WARNING: could not determine output file type" >&2;}
16376 FORMAT_FILE="unknown.lo"
16377 backtrace_supported=no
16379 esac
16382 # ELF defines.
16383 elfsize=
16384 case "$libsanitizer_cv_sys_filetype" in
16385 elf32) elfsize=32 ;;
16386 elf64) elfsize=64 ;;
16387 esac
16389 cat >>confdefs.h <<_ACEOF
16390 #define BACKTRACE_ELF_SIZE $elfsize
16391 _ACEOF
16394 BACKTRACE_SUPPORTED=0
16395 if test "$backtrace_supported" = "yes"; then
16396 BACKTRACE_SUPPORTED=1
16402 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
16404 acx_cv_header_stdint=stddef.h
16405 acx_cv_header_stdint_kind="(already complete)"
16406 for i in stdint.h $inttype_headers; do
16407 unset ac_cv_type_uintptr_t
16408 unset ac_cv_type_uintmax_t
16409 unset ac_cv_type_int_least32_t
16410 unset ac_cv_type_int_fast32_t
16411 unset ac_cv_type_uint64_t
16412 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
16413 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
16414 #include <$i>
16416 if test "x$ac_cv_type_uintmax_t" = xyes; then :
16417 acx_cv_header_stdint=$i
16418 else
16419 continue
16422 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
16423 #include <$i>
16425 if test "x$ac_cv_type_uintptr_t" = xyes; then :
16427 else
16428 acx_cv_header_stdint_kind="(mostly complete)"
16431 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
16432 #include <$i>
16434 if test "x$ac_cv_type_int_least32_t" = xyes; then :
16436 else
16437 acx_cv_header_stdint_kind="(mostly complete)"
16440 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
16441 #include <$i>
16443 if test "x$ac_cv_type_int_fast32_t" = xyes; then :
16445 else
16446 acx_cv_header_stdint_kind="(mostly complete)"
16449 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
16450 #include <$i>
16452 if test "x$ac_cv_type_uint64_t" = xyes; then :
16454 else
16455 acx_cv_header_stdint_kind="(lacks uint64_t)"
16458 break
16459 done
16460 if test "$acx_cv_header_stdint" = stddef.h; then
16461 acx_cv_header_stdint_kind="(lacks uintmax_t)"
16462 for i in stdint.h $inttype_headers; do
16463 unset ac_cv_type_uintptr_t
16464 unset ac_cv_type_uint32_t
16465 unset ac_cv_type_uint64_t
16466 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
16467 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
16468 #include <$i>
16470 if test "x$ac_cv_type_uint32_t" = xyes; then :
16471 acx_cv_header_stdint=$i
16472 else
16473 continue
16476 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
16477 #include <$i>
16479 if test "x$ac_cv_type_uint64_t" = xyes; then :
16483 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
16484 #include <$i>
16486 if test "x$ac_cv_type_uintptr_t" = xyes; then :
16490 break
16491 done
16493 if test "$acx_cv_header_stdint" = stddef.h; then
16494 acx_cv_header_stdint_kind="(u_intXX_t style)"
16495 for i in sys/types.h $inttype_headers; do
16496 unset ac_cv_type_u_int32_t
16497 unset ac_cv_type_u_int64_t
16498 $as_echo_n "looking for u_intXX_t types in $i, " >&6
16499 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
16500 #include <$i>
16502 if test "x$ac_cv_type_u_int32_t" = xyes; then :
16503 acx_cv_header_stdint=$i
16504 else
16505 continue
16508 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
16509 #include <$i>
16511 if test "x$ac_cv_type_u_int64_t" = xyes; then :
16515 break
16516 done
16518 if test "$acx_cv_header_stdint" = stddef.h; then
16519 acx_cv_header_stdint_kind="(using manual detection)"
16522 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
16523 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
16524 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
16525 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
16526 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
16528 # ----------------- Summarize what we found so far
16530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
16531 $as_echo_n "checking what to include in gstdint.h... " >&6; }
16533 case `$as_basename -- gstdint.h ||
16534 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
16535 Xgstdint.h : 'X\(//\)$' \| \
16536 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
16537 $as_echo X/gstdint.h |
16538 sed '/^.*\/\([^/][^/]*\)\/*$/{
16539 s//\1/
16542 /^X\/\(\/\/\)$/{
16543 s//\1/
16546 /^X\/\(\/\).*/{
16547 s//\1/
16550 s/.*/./; q'` in
16551 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
16552 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16553 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
16554 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16555 *) ;;
16556 esac
16558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
16559 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
16561 # ----------------- done included file, check C basic types --------
16563 # Lacking an uintptr_t? Test size of void *
16564 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
16565 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
16566 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16567 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16568 # This bug is HP SR number 8606223364.
16569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
16570 $as_echo_n "checking size of void *... " >&6; }
16571 if ${ac_cv_sizeof_void_p+:} false; then :
16572 $as_echo_n "(cached) " >&6
16573 else
16574 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
16576 else
16577 if test "$ac_cv_type_void_p" = yes; then
16578 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16579 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16580 as_fn_error 77 "cannot compute sizeof (void *)
16581 See \`config.log' for more details" "$LINENO" 5; }
16582 else
16583 ac_cv_sizeof_void_p=0
16588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
16589 $as_echo "$ac_cv_sizeof_void_p" >&6; }
16593 cat >>confdefs.h <<_ACEOF
16594 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16595 _ACEOF
16598 esac
16600 # Lacking an uint64_t? Test size of long
16601 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
16602 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
16603 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16604 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16605 # This bug is HP SR number 8606223364.
16606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
16607 $as_echo_n "checking size of long... " >&6; }
16608 if ${ac_cv_sizeof_long+:} false; then :
16609 $as_echo_n "(cached) " >&6
16610 else
16611 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
16613 else
16614 if test "$ac_cv_type_long" = yes; then
16615 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16616 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16617 as_fn_error 77 "cannot compute sizeof (long)
16618 See \`config.log' for more details" "$LINENO" 5; }
16619 else
16620 ac_cv_sizeof_long=0
16625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16626 $as_echo "$ac_cv_sizeof_long" >&6; }
16630 cat >>confdefs.h <<_ACEOF
16631 #define SIZEOF_LONG $ac_cv_sizeof_long
16632 _ACEOF
16635 esac
16637 if test $acx_cv_header_stdint = stddef.h; then
16638 # Lacking a good header? Test size of everything and deduce all types.
16639 # The cast to long int works around a bug in the HP C Compiler
16640 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16641 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16642 # This bug is HP SR number 8606223364.
16643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
16644 $as_echo_n "checking size of int... " >&6; }
16645 if ${ac_cv_sizeof_int+:} false; then :
16646 $as_echo_n "(cached) " >&6
16647 else
16648 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
16650 else
16651 if test "$ac_cv_type_int" = yes; then
16652 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16653 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16654 as_fn_error 77 "cannot compute sizeof (int)
16655 See \`config.log' for more details" "$LINENO" 5; }
16656 else
16657 ac_cv_sizeof_int=0
16662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
16663 $as_echo "$ac_cv_sizeof_int" >&6; }
16667 cat >>confdefs.h <<_ACEOF
16668 #define SIZEOF_INT $ac_cv_sizeof_int
16669 _ACEOF
16672 # The cast to long int works around a bug in the HP C Compiler
16673 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16674 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16675 # This bug is HP SR number 8606223364.
16676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
16677 $as_echo_n "checking size of short... " >&6; }
16678 if ${ac_cv_sizeof_short+:} false; then :
16679 $as_echo_n "(cached) " >&6
16680 else
16681 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
16683 else
16684 if test "$ac_cv_type_short" = yes; then
16685 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16686 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16687 as_fn_error 77 "cannot compute sizeof (short)
16688 See \`config.log' for more details" "$LINENO" 5; }
16689 else
16690 ac_cv_sizeof_short=0
16695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
16696 $as_echo "$ac_cv_sizeof_short" >&6; }
16700 cat >>confdefs.h <<_ACEOF
16701 #define SIZEOF_SHORT $ac_cv_sizeof_short
16702 _ACEOF
16705 # The cast to long int works around a bug in the HP C Compiler
16706 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16707 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16708 # This bug is HP SR number 8606223364.
16709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
16710 $as_echo_n "checking size of char... " >&6; }
16711 if ${ac_cv_sizeof_char+:} false; then :
16712 $as_echo_n "(cached) " >&6
16713 else
16714 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
16716 else
16717 if test "$ac_cv_type_char" = yes; then
16718 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16719 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16720 as_fn_error 77 "cannot compute sizeof (char)
16721 See \`config.log' for more details" "$LINENO" 5; }
16722 else
16723 ac_cv_sizeof_char=0
16728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
16729 $as_echo "$ac_cv_sizeof_char" >&6; }
16733 cat >>confdefs.h <<_ACEOF
16734 #define SIZEOF_CHAR $ac_cv_sizeof_char
16735 _ACEOF
16739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
16740 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
16741 case "$ac_cv_sizeof_char" in
16742 1) acx_cv_type_int8_t=char ;;
16743 *) as_fn_error $? "no 8-bit type, please report a bug" "$LINENO" 5
16744 esac
16745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
16746 $as_echo "$acx_cv_type_int8_t" >&6; }
16748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
16749 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
16750 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
16751 2:*) acx_cv_type_int16_t=int ;;
16752 *:2) acx_cv_type_int16_t=short ;;
16753 *) as_fn_error $? "no 16-bit type, please report a bug" "$LINENO" 5
16754 esac
16755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
16756 $as_echo "$acx_cv_type_int16_t" >&6; }
16758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
16759 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
16760 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
16761 4:*) acx_cv_type_int32_t=int ;;
16762 *:4) acx_cv_type_int32_t=long ;;
16763 *) as_fn_error $? "no 32-bit type, please report a bug" "$LINENO" 5
16764 esac
16765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
16766 $as_echo "$acx_cv_type_int32_t" >&6; }
16769 # These tests are here to make the output prettier
16771 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
16772 case "$ac_cv_sizeof_long" in
16773 8) acx_cv_type_int64_t=long ;;
16774 esac
16775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
16776 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
16777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
16778 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
16781 # Now we can use the above types
16783 if test "$ac_cv_type_uintptr_t" != yes; then
16784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
16785 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
16786 case $ac_cv_sizeof_void_p in
16787 2) acx_cv_type_intptr_t=int16_t ;;
16788 4) acx_cv_type_intptr_t=int32_t ;;
16789 8) acx_cv_type_intptr_t=int64_t ;;
16790 *) as_fn_error $? "no equivalent for intptr_t, please report a bug" "$LINENO" 5
16791 esac
16792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
16793 $as_echo "$acx_cv_type_intptr_t" >&6; }
16796 # ----------------- done all checks, emit header -------------
16797 ac_config_commands="$ac_config_commands gstdint.h"
16802 for ac_header in sys/mman.h alloca.h
16803 do :
16804 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16805 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16806 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16807 cat >>confdefs.h <<_ACEOF
16808 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16809 _ACEOF
16813 done
16815 if test "$ac_cv_header_sys_mman_h" = "no"; then
16816 have_mmap=no
16817 else
16818 if test -n "${with_target_subdir}"; then
16819 # When built as a GCC target library, we can't do a link test. We
16820 # simply assume that if we have mman.h, we have mmap.
16821 have_mmap=yes
16822 else
16823 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
16824 if test "x$ac_cv_func_mmap" = xyes; then :
16825 have_mmap=yes
16826 else
16827 have_mmap=no
16832 if test "$have_mmap" = "no"; then
16833 VIEW_FILE=read.lo
16834 ALLOC_FILE=alloc.lo
16835 else
16836 VIEW_FILE=mmapio.lo
16837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16838 /* end confdefs.h. */
16840 #include <sys/mman.h>
16841 #if !defined(MAP_ANONYMOUS) && !defined(MAP_ANON)
16842 #error no MAP_ANONYMOUS
16843 #endif
16845 _ACEOF
16846 if ac_fn_c_try_cpp "$LINENO"; then :
16847 ALLOC_FILE=mmap.lo
16848 else
16849 ALLOC_FILE=alloc.lo
16851 rm -f conftest.err conftest.i conftest.$ac_ext
16856 BACKTRACE_USES_MALLOC=0
16857 if test "$ALLOC_FILE" = "alloc.lo"; then
16858 BACKTRACE_USES_MALLOC=1
16862 # Don't care about thread support
16863 BACKTRACE_SUPPORTS_THREADS=0
16866 # Check for dl_iterate_phdr.
16867 for ac_header in link.h
16868 do :
16869 ac_fn_c_check_header_mongrel "$LINENO" "link.h" "ac_cv_header_link_h" "$ac_includes_default"
16870 if test "x$ac_cv_header_link_h" = xyes; then :
16871 cat >>confdefs.h <<_ACEOF
16872 #define HAVE_LINK_H 1
16873 _ACEOF
16877 done
16879 if test "$ac_cv_header_link_h" = "no"; then
16880 have_dl_iterate_phdr=no
16881 else
16882 # When built as a GCC target library, we can't do a link test.
16883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16884 /* end confdefs.h. */
16885 #include <link.h>
16887 _ACEOF
16888 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16889 $EGREP "dl_iterate_phdr" >/dev/null 2>&1; then :
16890 have_dl_iterate_phdr=yes
16891 else
16892 have_dl_iterate_phdr=no
16894 rm -f conftest*
16897 if test "$have_dl_iterate_phdr" = "yes"; then
16899 $as_echo "#define HAVE_DL_ITERATE_PHDR 1" >>confdefs.h
16903 # Check for the fcntl function.
16904 if test -n "${with_target_subdir}"; then
16905 case "${host}" in
16906 *-*-mingw*) have_fcntl=no ;;
16907 *) have_fcntl=yes ;;
16908 esac
16909 else
16910 ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
16911 if test "x$ac_cv_func_fcntl" = xyes; then :
16912 have_fcntl=yes
16913 else
16914 have_fcntl=no
16918 if test "$have_fcntl" = "yes"; then
16920 $as_echo "#define HAVE_FCNTL 1" >>confdefs.h
16924 ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
16925 if test "x$ac_cv_have_decl_strnlen" = xyes; then :
16926 ac_have_decl=1
16927 else
16928 ac_have_decl=0
16931 cat >>confdefs.h <<_ACEOF
16932 #define HAVE_DECL_STRNLEN $ac_have_decl
16933 _ACEOF
16936 # Check for getexecname function.
16937 if test -n "${with_target_subdir}"; then
16938 case "${host}" in
16939 *-*-solaris2*) have_getexecname=yes ;;
16940 *) have_getexecname=no ;;
16941 esac
16942 else
16943 ac_fn_c_check_func "$LINENO" "getexecname" "ac_cv_func_getexecname"
16944 if test "x$ac_cv_func_getexecname" = xyes; then :
16945 have_getexecname=yes
16946 else
16947 have_getexecname=no
16951 if test "$have_getexecname" = "yes"; then
16953 $as_echo "#define HAVE_GETEXECNAME 1" >>confdefs.h
16957 # Check for rpc/xdr.h
16958 for ac_header in rpc/xdr.h
16959 do :
16960 ac_fn_c_check_header_mongrel "$LINENO" "rpc/xdr.h" "ac_cv_header_rpc_xdr_h" "$ac_includes_default"
16961 if test "x$ac_cv_header_rpc_xdr_h" = xyes; then :
16962 cat >>confdefs.h <<_ACEOF
16963 #define HAVE_RPC_XDR_H 1
16964 _ACEOF
16968 done
16970 if test x"$ac_cv_header_rpc_xdr_h" = xyes; then
16971 rpc_defs="$rpc_defs -DHAVE_RPC_XDR_H=1"
16972 else
16973 rpc_defs="$rpc_defs -DHAVE_RPC_XDR_H=0"
16976 # Check for tirpc/rpc/xdr.h
16977 for ac_header in tirpc/rpc/xdr.h
16978 do :
16979 ac_fn_c_check_header_mongrel "$LINENO" "tirpc/rpc/xdr.h" "ac_cv_header_tirpc_rpc_xdr_h" "$ac_includes_default"
16980 if test "x$ac_cv_header_tirpc_rpc_xdr_h" = xyes; then :
16981 cat >>confdefs.h <<_ACEOF
16982 #define HAVE_TIRPC_RPC_XDR_H 1
16983 _ACEOF
16987 done
16989 if test x"$ac_cv_header_tirpc_rpc_xdr_h" = xyes; then
16990 rpc_defs="$rpc_defs -DHAVE_TIRPC_RPC_XDR_H=1"
16991 else
16992 rpc_defs="$rpc_defs -DHAVE_TIRPC_RPC_XDR_H=0"
16995 RPC_DEFS=$rpc_defs
16998 if test "x${BACKTRACE_SUPPORTED}x${BACKTRACE_USES_MALLOC}" = "x1x0"; then
16999 LIBBACKTRACE_SUPPORTED_TRUE=
17000 LIBBACKTRACE_SUPPORTED_FALSE='#'
17001 else
17002 LIBBACKTRACE_SUPPORTED_TRUE='#'
17003 LIBBACKTRACE_SUPPORTED_FALSE=
17008 ac_config_files="$ac_config_files Makefile libsanitizer.spec libbacktrace/backtrace-supported.h"
17010 ac_config_headers="$ac_config_headers config.h"
17013 ac_config_files="$ac_config_files interception/Makefile sanitizer_common/Makefile libbacktrace/Makefile lsan/Makefile asan/Makefile ubsan/Makefile"
17016 if test "x$TSAN_SUPPORTED" = "xyes"; then
17017 ac_config_files="$ac_config_files tsan/Makefile"
17021 if test "x$HWASAN_SUPPORTED" = "xyes"; then
17022 ac_config_files="$ac_config_files hwasan/Makefile"
17029 # Check whether --enable-werror was given.
17030 if test "${enable_werror+set}" = set; then :
17031 enableval=$enable_werror;
17035 ac_ext=c
17036 ac_cpp='$CPP $CPPFLAGS'
17037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17041 WARN_FLAGS=
17042 save_CFLAGS="$CFLAGS"
17043 for real_option in -Wextra -Wall -Wwrite-strings \
17044 -Wmissing-format-attribute -Wcast-qual; do
17045 # Do the check with the no- prefix removed since gcc silently
17046 # accepts any -Wno-* option on purpose
17047 case $real_option in
17048 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
17049 *) option=$real_option ;;
17050 esac
17051 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
17053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
17054 $as_echo_n "checking whether $CC supports $option... " >&6; }
17055 if eval \${$as_acx_Woption+:} false; then :
17056 $as_echo_n "(cached) " >&6
17057 else
17058 CFLAGS="$option"
17059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17060 /* end confdefs.h. */
17063 main ()
17067 return 0;
17069 _ACEOF
17070 if ac_fn_c_try_compile "$LINENO"; then :
17071 eval "$as_acx_Woption=yes"
17072 else
17073 eval "$as_acx_Woption=no"
17075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17078 eval ac_res=\$$as_acx_Woption
17079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17080 $as_echo "$ac_res" >&6; }
17081 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
17082 WARN_FLAGS="$WARN_FLAGS${WARN_FLAGS:+ }$real_option"
17084 done
17085 CFLAGS="$save_CFLAGS"
17086 ac_ext=c
17087 ac_cpp='$CPP $CPPFLAGS'
17088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17093 if test "x$enable_werror" != "xno"; then :
17094 WARN_FLAGS="$WARN_FLAGS -Werror"
17098 # Determine what GCC version number to use in filesystem paths.
17100 get_gcc_base_ver="cat"
17102 # Check whether --with-gcc-major-version-only was given.
17103 if test "${with_gcc_major_version_only+set}" = set; then :
17104 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
17105 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
17113 # Add CET specific flags if Intel CET is enabled.
17114 # Check whether --enable-cet was given.
17115 if test "${enable_cet+set}" = set; then :
17116 enableval=$enable_cet;
17117 case "$enableval" in
17118 yes|no|auto) ;;
17119 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
17120 esac
17122 else
17123 enable_cet=auto
17127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
17128 $as_echo_n "checking for CET support... " >&6; }
17130 # NB: Avoid nested save_CFLAGS and save_LDFLAGS.
17131 case "$host" in
17132 i[34567]86-*-linux* | x86_64-*-linux*)
17133 case "$enable_cet" in
17134 auto)
17135 # Check if target supports multi-byte NOPs
17136 # and if compiler and assembler support CET insn.
17137 cet_save_CFLAGS="$CFLAGS"
17138 CFLAGS="$CFLAGS -fcf-protection"
17139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17140 /* end confdefs.h. */
17143 main ()
17146 #if !defined(__SSE2__)
17147 #error target does not support multi-byte NOPs
17148 #else
17149 asm ("setssbsy");
17150 #endif
17153 return 0;
17155 _ACEOF
17156 if ac_fn_c_try_compile "$LINENO"; then :
17157 enable_cet=yes
17158 else
17159 enable_cet=no
17161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17162 CFLAGS="$cet_save_CFLAGS"
17164 yes)
17165 # Check if assembler supports CET.
17166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17167 /* end confdefs.h. */
17170 main ()
17172 asm ("setssbsy");
17174 return 0;
17176 _ACEOF
17177 if ac_fn_c_try_compile "$LINENO"; then :
17179 else
17180 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
17182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17184 esac
17187 enable_cet=no
17189 esac
17190 if test x$enable_cet = xyes; then
17191 CET_FLAGS="-fcf-protection -mshstk"
17192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17193 $as_echo "yes" >&6; }
17194 else
17195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17196 $as_echo "no" >&6; }
17200 # Always set -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 to sync with LLVM,
17201 # and keep struct *stat* have the same size.
17202 case "${host}" in
17203 mips*-*) FILE64_FLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" ;;
17204 *) FILE64_FLAGS="" ;;
17205 esac
17207 EXTRA_CFLAGS="$EXTRA_CFLAGS $CET_FLAGS $FILE64_FLAGS"
17208 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS $CET_FLAGS $FILE64_FLAGS"
17209 EXTRA_ASFLAGS=$CET_FLAGS
17214 cat >confcache <<\_ACEOF
17215 # This file is a shell script that caches the results of configure
17216 # tests run on this system so they can be shared between configure
17217 # scripts and configure runs, see configure's option --config-cache.
17218 # It is not useful on other systems. If it contains results you don't
17219 # want to keep, you may remove or edit it.
17221 # config.status only pays attention to the cache file if you give it
17222 # the --recheck option to rerun configure.
17224 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17225 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17226 # following values.
17228 _ACEOF
17230 # The following way of writing the cache mishandles newlines in values,
17231 # but we know of no workaround that is simple, portable, and efficient.
17232 # So, we kill variables containing newlines.
17233 # Ultrix sh set writes to stderr and can't be redirected directly,
17234 # and sets the high bit in the cache file unless we assign to the vars.
17236 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17237 eval ac_val=\$$ac_var
17238 case $ac_val in #(
17239 *${as_nl}*)
17240 case $ac_var in #(
17241 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17242 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17243 esac
17244 case $ac_var in #(
17245 _ | IFS | as_nl) ;; #(
17246 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17247 *) { eval $ac_var=; unset $ac_var;} ;;
17248 esac ;;
17249 esac
17250 done
17252 (set) 2>&1 |
17253 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17254 *${as_nl}ac_space=\ *)
17255 # `set' does not quote correctly, so add quotes: double-quote
17256 # substitution turns \\\\ into \\, and sed turns \\ into \.
17257 sed -n \
17258 "s/'/'\\\\''/g;
17259 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17260 ;; #(
17262 # `set' quotes correctly as required by POSIX, so do not add quotes.
17263 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17265 esac |
17266 sort
17268 sed '
17269 /^ac_cv_env_/b end
17270 t clear
17271 :clear
17272 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17273 t end
17274 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17275 :end' >>confcache
17276 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17277 if test -w "$cache_file"; then
17278 if test "x$cache_file" != "x/dev/null"; then
17279 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17280 $as_echo "$as_me: updating cache $cache_file" >&6;}
17281 if test ! -f "$cache_file" || test -h "$cache_file"; then
17282 cat confcache >"$cache_file"
17283 else
17284 case $cache_file in #(
17285 */* | ?:*)
17286 mv -f confcache "$cache_file"$$ &&
17287 mv -f "$cache_file"$$ "$cache_file" ;; #(
17289 mv -f confcache "$cache_file" ;;
17290 esac
17293 else
17294 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17295 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17298 rm -f confcache
17300 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17301 # Let make expand exec_prefix.
17302 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17304 DEFS=-DHAVE_CONFIG_H
17306 ac_libobjs=
17307 ac_ltlibobjs=
17309 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17310 # 1. Remove the extension, and $U if already installed.
17311 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17312 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17313 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17314 # will be set to the directory where LIBOBJS objects are built.
17315 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17316 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17317 done
17318 LIBOBJS=$ac_libobjs
17320 LTLIBOBJS=$ac_ltlibobjs
17323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17324 $as_echo_n "checking that generated files are newer than configure... " >&6; }
17325 if test -n "$am_sleep_pid"; then
17326 # Hide warnings about reused PIDs.
17327 wait $am_sleep_pid 2>/dev/null
17329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17330 $as_echo "done" >&6; }
17331 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17332 as_fn_error $? "conditional \"AMDEP\" was never defined.
17333 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17335 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17336 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17337 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17339 if test -n "$EXEEXT"; then
17340 am__EXEEXT_TRUE=
17341 am__EXEEXT_FALSE='#'
17342 else
17343 am__EXEEXT_TRUE='#'
17344 am__EXEEXT_FALSE=
17347 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17348 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17349 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17351 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17352 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
17353 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17355 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
17356 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
17357 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17359 if test -z "${ENABLE_DARWIN_AT_RPATH_TRUE}" && test -z "${ENABLE_DARWIN_AT_RPATH_FALSE}"; then
17360 as_fn_error $? "conditional \"ENABLE_DARWIN_AT_RPATH\" was never defined.
17361 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17363 if test -z "${TSAN_SUPPORTED_TRUE}" && test -z "${TSAN_SUPPORTED_FALSE}"; then
17364 as_fn_error $? "conditional \"TSAN_SUPPORTED\" was never defined.
17365 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17367 if test -z "${LSAN_SUPPORTED_TRUE}" && test -z "${LSAN_SUPPORTED_FALSE}"; then
17368 as_fn_error $? "conditional \"LSAN_SUPPORTED\" was never defined.
17369 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17371 if test -z "${HWASAN_SUPPORTED_TRUE}" && test -z "${HWASAN_SUPPORTED_FALSE}"; then
17372 as_fn_error $? "conditional \"HWASAN_SUPPORTED\" was never defined.
17373 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17375 if test -z "${USING_MAC_INTERPOSE_TRUE}" && test -z "${USING_MAC_INTERPOSE_FALSE}"; then
17376 as_fn_error $? "conditional \"USING_MAC_INTERPOSE\" was never defined.
17377 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17379 if test -z "${SANITIZER_SUPPORTED_TRUE}" && test -z "${SANITIZER_SUPPORTED_FALSE}"; then
17380 as_fn_error $? "conditional \"SANITIZER_SUPPORTED\" was never defined.
17381 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17383 if test -z "${LIBBACKTRACE_SUPPORTED_TRUE}" && test -z "${LIBBACKTRACE_SUPPORTED_FALSE}"; then
17384 as_fn_error $? "conditional \"LIBBACKTRACE_SUPPORTED\" was never defined.
17385 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17388 : "${CONFIG_STATUS=./config.status}"
17389 ac_write_fail=0
17390 ac_clean_files_save=$ac_clean_files
17391 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17392 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17393 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17394 as_write_fail=0
17395 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17396 #! $SHELL
17397 # Generated by $as_me.
17398 # Run this file to recreate the current configuration.
17399 # Compiler output produced by configure, useful for debugging
17400 # configure, is in config.log if it exists.
17402 debug=false
17403 ac_cs_recheck=false
17404 ac_cs_silent=false
17406 SHELL=\${CONFIG_SHELL-$SHELL}
17407 export SHELL
17408 _ASEOF
17409 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17410 ## -------------------- ##
17411 ## M4sh Initialization. ##
17412 ## -------------------- ##
17414 # Be more Bourne compatible
17415 DUALCASE=1; export DUALCASE # for MKS sh
17416 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17417 emulate sh
17418 NULLCMD=:
17419 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17420 # is contrary to our usage. Disable this feature.
17421 alias -g '${1+"$@"}'='"$@"'
17422 setopt NO_GLOB_SUBST
17423 else
17424 case `(set -o) 2>/dev/null` in #(
17425 *posix*) :
17426 set -o posix ;; #(
17427 *) :
17429 esac
17433 as_nl='
17435 export as_nl
17436 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17437 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17438 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17439 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17440 # Prefer a ksh shell builtin over an external printf program on Solaris,
17441 # but without wasting forks for bash or zsh.
17442 if test -z "$BASH_VERSION$ZSH_VERSION" \
17443 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17444 as_echo='print -r --'
17445 as_echo_n='print -rn --'
17446 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17447 as_echo='printf %s\n'
17448 as_echo_n='printf %s'
17449 else
17450 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17451 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17452 as_echo_n='/usr/ucb/echo -n'
17453 else
17454 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17455 as_echo_n_body='eval
17456 arg=$1;
17457 case $arg in #(
17458 *"$as_nl"*)
17459 expr "X$arg" : "X\\(.*\\)$as_nl";
17460 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17461 esac;
17462 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17464 export as_echo_n_body
17465 as_echo_n='sh -c $as_echo_n_body as_echo'
17467 export as_echo_body
17468 as_echo='sh -c $as_echo_body as_echo'
17471 # The user is always right.
17472 if test "${PATH_SEPARATOR+set}" != set; then
17473 PATH_SEPARATOR=:
17474 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17475 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17476 PATH_SEPARATOR=';'
17481 # IFS
17482 # We need space, tab and new line, in precisely that order. Quoting is
17483 # there to prevent editors from complaining about space-tab.
17484 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17485 # splitting by setting IFS to empty value.)
17486 IFS=" "" $as_nl"
17488 # Find who we are. Look in the path if we contain no directory separator.
17489 as_myself=
17490 case $0 in #((
17491 *[\\/]* ) as_myself=$0 ;;
17492 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17493 for as_dir in $PATH
17495 IFS=$as_save_IFS
17496 test -z "$as_dir" && as_dir=.
17497 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17498 done
17499 IFS=$as_save_IFS
17502 esac
17503 # We did not find ourselves, most probably we were run as `sh COMMAND'
17504 # in which case we are not to be found in the path.
17505 if test "x$as_myself" = x; then
17506 as_myself=$0
17508 if test ! -f "$as_myself"; then
17509 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17510 exit 1
17513 # Unset variables that we do not need and which cause bugs (e.g. in
17514 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17515 # suppresses any "Segmentation fault" message there. '((' could
17516 # trigger a bug in pdksh 5.2.14.
17517 for as_var in BASH_ENV ENV MAIL MAILPATH
17518 do eval test x\${$as_var+set} = xset \
17519 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17520 done
17521 PS1='$ '
17522 PS2='> '
17523 PS4='+ '
17525 # NLS nuisances.
17526 LC_ALL=C
17527 export LC_ALL
17528 LANGUAGE=C
17529 export LANGUAGE
17531 # CDPATH.
17532 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17535 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17536 # ----------------------------------------
17537 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17538 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17539 # script with STATUS, using 1 if that was 0.
17540 as_fn_error ()
17542 as_status=$1; test $as_status -eq 0 && as_status=1
17543 if test "$4"; then
17544 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17545 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17547 $as_echo "$as_me: error: $2" >&2
17548 as_fn_exit $as_status
17549 } # as_fn_error
17552 # as_fn_set_status STATUS
17553 # -----------------------
17554 # Set $? to STATUS, without forking.
17555 as_fn_set_status ()
17557 return $1
17558 } # as_fn_set_status
17560 # as_fn_exit STATUS
17561 # -----------------
17562 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17563 as_fn_exit ()
17565 set +e
17566 as_fn_set_status $1
17567 exit $1
17568 } # as_fn_exit
17570 # as_fn_unset VAR
17571 # ---------------
17572 # Portably unset VAR.
17573 as_fn_unset ()
17575 { eval $1=; unset $1;}
17577 as_unset=as_fn_unset
17578 # as_fn_append VAR VALUE
17579 # ----------------------
17580 # Append the text in VALUE to the end of the definition contained in VAR. Take
17581 # advantage of any shell optimizations that allow amortized linear growth over
17582 # repeated appends, instead of the typical quadratic growth present in naive
17583 # implementations.
17584 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17585 eval 'as_fn_append ()
17587 eval $1+=\$2
17589 else
17590 as_fn_append ()
17592 eval $1=\$$1\$2
17594 fi # as_fn_append
17596 # as_fn_arith ARG...
17597 # ------------------
17598 # Perform arithmetic evaluation on the ARGs, and store the result in the
17599 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17600 # must be portable across $(()) and expr.
17601 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17602 eval 'as_fn_arith ()
17604 as_val=$(( $* ))
17606 else
17607 as_fn_arith ()
17609 as_val=`expr "$@" || test $? -eq 1`
17611 fi # as_fn_arith
17614 if expr a : '\(a\)' >/dev/null 2>&1 &&
17615 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17616 as_expr=expr
17617 else
17618 as_expr=false
17621 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17622 as_basename=basename
17623 else
17624 as_basename=false
17627 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17628 as_dirname=dirname
17629 else
17630 as_dirname=false
17633 as_me=`$as_basename -- "$0" ||
17634 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17635 X"$0" : 'X\(//\)$' \| \
17636 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17637 $as_echo X/"$0" |
17638 sed '/^.*\/\([^/][^/]*\)\/*$/{
17639 s//\1/
17642 /^X\/\(\/\/\)$/{
17643 s//\1/
17646 /^X\/\(\/\).*/{
17647 s//\1/
17650 s/.*/./; q'`
17652 # Avoid depending upon Character Ranges.
17653 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17654 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17655 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17656 as_cr_digits='0123456789'
17657 as_cr_alnum=$as_cr_Letters$as_cr_digits
17659 ECHO_C= ECHO_N= ECHO_T=
17660 case `echo -n x` in #(((((
17661 -n*)
17662 case `echo 'xy\c'` in
17663 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17664 xy) ECHO_C='\c';;
17665 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17666 ECHO_T=' ';;
17667 esac;;
17669 ECHO_N='-n';;
17670 esac
17672 rm -f conf$$ conf$$.exe conf$$.file
17673 if test -d conf$$.dir; then
17674 rm -f conf$$.dir/conf$$.file
17675 else
17676 rm -f conf$$.dir
17677 mkdir conf$$.dir 2>/dev/null
17679 if (echo >conf$$.file) 2>/dev/null; then
17680 if ln -s conf$$.file conf$$ 2>/dev/null; then
17681 as_ln_s='ln -s'
17682 # ... but there are two gotchas:
17683 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17684 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17685 # In both cases, we have to default to `cp -pR'.
17686 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17687 as_ln_s='cp -pR'
17688 elif ln conf$$.file conf$$ 2>/dev/null; then
17689 as_ln_s=ln
17690 else
17691 as_ln_s='cp -pR'
17693 else
17694 as_ln_s='cp -pR'
17696 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17697 rmdir conf$$.dir 2>/dev/null
17700 # as_fn_mkdir_p
17701 # -------------
17702 # Create "$as_dir" as a directory, including parents if necessary.
17703 as_fn_mkdir_p ()
17706 case $as_dir in #(
17707 -*) as_dir=./$as_dir;;
17708 esac
17709 test -d "$as_dir" || eval $as_mkdir_p || {
17710 as_dirs=
17711 while :; do
17712 case $as_dir in #(
17713 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17714 *) as_qdir=$as_dir;;
17715 esac
17716 as_dirs="'$as_qdir' $as_dirs"
17717 as_dir=`$as_dirname -- "$as_dir" ||
17718 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17719 X"$as_dir" : 'X\(//\)[^/]' \| \
17720 X"$as_dir" : 'X\(//\)$' \| \
17721 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17722 $as_echo X"$as_dir" |
17723 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17724 s//\1/
17727 /^X\(\/\/\)[^/].*/{
17728 s//\1/
17731 /^X\(\/\/\)$/{
17732 s//\1/
17735 /^X\(\/\).*/{
17736 s//\1/
17739 s/.*/./; q'`
17740 test -d "$as_dir" && break
17741 done
17742 test -z "$as_dirs" || eval "mkdir $as_dirs"
17743 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17746 } # as_fn_mkdir_p
17747 if mkdir -p . 2>/dev/null; then
17748 as_mkdir_p='mkdir -p "$as_dir"'
17749 else
17750 test -d ./-p && rmdir ./-p
17751 as_mkdir_p=false
17755 # as_fn_executable_p FILE
17756 # -----------------------
17757 # Test if FILE is an executable regular file.
17758 as_fn_executable_p ()
17760 test -f "$1" && test -x "$1"
17761 } # as_fn_executable_p
17762 as_test_x='test -x'
17763 as_executable_p=as_fn_executable_p
17765 # Sed expression to map a string onto a valid CPP name.
17766 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17768 # Sed expression to map a string onto a valid variable name.
17769 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17772 exec 6>&1
17773 ## ----------------------------------- ##
17774 ## Main body of $CONFIG_STATUS script. ##
17775 ## ----------------------------------- ##
17776 _ASEOF
17777 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17779 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17780 # Save the log message, to keep $0 and so on meaningful, and to
17781 # report actual input values of CONFIG_FILES etc. instead of their
17782 # values after options handling.
17783 ac_log="
17784 This file was extended by package-unused $as_me version-unused, which was
17785 generated by GNU Autoconf 2.69. Invocation command line was
17787 CONFIG_FILES = $CONFIG_FILES
17788 CONFIG_HEADERS = $CONFIG_HEADERS
17789 CONFIG_LINKS = $CONFIG_LINKS
17790 CONFIG_COMMANDS = $CONFIG_COMMANDS
17791 $ $0 $@
17793 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17796 _ACEOF
17798 case $ac_config_files in *"
17799 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17800 esac
17802 case $ac_config_headers in *"
17803 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17804 esac
17807 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17808 # Files that config.status was made for.
17809 config_files="$ac_config_files"
17810 config_headers="$ac_config_headers"
17811 config_commands="$ac_config_commands"
17813 _ACEOF
17815 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17816 ac_cs_usage="\
17817 \`$as_me' instantiates files and other configuration actions
17818 from templates according to the current configuration. Unless the files
17819 and actions are specified as TAGs, all are instantiated by default.
17821 Usage: $0 [OPTION]... [TAG]...
17823 -h, --help print this help, then exit
17824 -V, --version print version number and configuration settings, then exit
17825 --config print configuration, then exit
17826 -q, --quiet, --silent
17827 do not print progress messages
17828 -d, --debug don't remove temporary files
17829 --recheck update $as_me by reconfiguring in the same conditions
17830 --file=FILE[:TEMPLATE]
17831 instantiate the configuration file FILE
17832 --header=FILE[:TEMPLATE]
17833 instantiate the configuration header FILE
17835 Configuration files:
17836 $config_files
17838 Configuration headers:
17839 $config_headers
17841 Configuration commands:
17842 $config_commands
17844 Report bugs to <libsanitizer>."
17846 _ACEOF
17847 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17848 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17849 ac_cs_version="\\
17850 package-unused config.status version-unused
17851 configured by $0, generated by GNU Autoconf 2.69,
17852 with options \\"\$ac_cs_config\\"
17854 Copyright (C) 2012 Free Software Foundation, Inc.
17855 This config.status script is free software; the Free Software Foundation
17856 gives unlimited permission to copy, distribute and modify it."
17858 ac_pwd='$ac_pwd'
17859 srcdir='$srcdir'
17860 INSTALL='$INSTALL'
17861 MKDIR_P='$MKDIR_P'
17862 AWK='$AWK'
17863 test -n "\$AWK" || AWK=awk
17864 _ACEOF
17866 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17867 # The default lists apply if the user does not specify any file.
17868 ac_need_defaults=:
17869 while test $# != 0
17871 case $1 in
17872 --*=?*)
17873 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17874 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17875 ac_shift=:
17877 --*=)
17878 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17879 ac_optarg=
17880 ac_shift=:
17883 ac_option=$1
17884 ac_optarg=$2
17885 ac_shift=shift
17887 esac
17889 case $ac_option in
17890 # Handling of the options.
17891 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17892 ac_cs_recheck=: ;;
17893 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17894 $as_echo "$ac_cs_version"; exit ;;
17895 --config | --confi | --conf | --con | --co | --c )
17896 $as_echo "$ac_cs_config"; exit ;;
17897 --debug | --debu | --deb | --de | --d | -d )
17898 debug=: ;;
17899 --file | --fil | --fi | --f )
17900 $ac_shift
17901 case $ac_optarg in
17902 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17903 '') as_fn_error $? "missing file argument" ;;
17904 esac
17905 as_fn_append CONFIG_FILES " '$ac_optarg'"
17906 ac_need_defaults=false;;
17907 --header | --heade | --head | --hea )
17908 $ac_shift
17909 case $ac_optarg in
17910 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17911 esac
17912 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17913 ac_need_defaults=false;;
17914 --he | --h)
17915 # Conflict between --help and --header
17916 as_fn_error $? "ambiguous option: \`$1'
17917 Try \`$0 --help' for more information.";;
17918 --help | --hel | -h )
17919 $as_echo "$ac_cs_usage"; exit ;;
17920 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17921 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17922 ac_cs_silent=: ;;
17924 # This is an error.
17925 -*) as_fn_error $? "unrecognized option: \`$1'
17926 Try \`$0 --help' for more information." ;;
17928 *) as_fn_append ac_config_targets " $1"
17929 ac_need_defaults=false ;;
17931 esac
17932 shift
17933 done
17935 ac_configure_extra_args=
17937 if $ac_cs_silent; then
17938 exec 6>/dev/null
17939 ac_configure_extra_args="$ac_configure_extra_args --silent"
17942 _ACEOF
17943 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17944 if \$ac_cs_recheck; then
17945 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17946 shift
17947 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17948 CONFIG_SHELL='$SHELL'
17949 export CONFIG_SHELL
17950 exec "\$@"
17953 _ACEOF
17954 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17955 exec 5>>config.log
17957 echo
17958 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17959 ## Running $as_me. ##
17960 _ASBOX
17961 $as_echo "$ac_log"
17962 } >&5
17964 _ACEOF
17965 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17967 # INIT-COMMANDS
17970 srcdir="$srcdir"
17971 host="$host"
17972 target="$target"
17973 with_multisubdir="$with_multisubdir"
17974 with_multisrctop="$with_multisrctop"
17975 with_target_subdir="$with_target_subdir"
17976 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17977 multi_basedir="$multi_basedir"
17978 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17979 CC="$CC"
17980 CXX="$CXX"
17981 GFORTRAN="$GFORTRAN"
17982 GDC="$GDC"
17983 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17986 # The HP-UX ksh and POSIX shell print the target directory to stdout
17987 # if CDPATH is set.
17988 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17990 sed_quote_subst='$sed_quote_subst'
17991 double_quote_subst='$double_quote_subst'
17992 delay_variable_subst='$delay_variable_subst'
17993 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17994 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17995 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17996 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17997 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17998 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17999 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18000 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18001 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18002 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18003 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18004 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18005 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18006 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18007 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18008 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18009 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18010 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18011 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18012 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18013 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18014 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18015 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18016 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18017 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18018 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18019 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18020 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18021 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18022 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18023 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18024 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18025 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18026 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18027 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18028 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18029 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18030 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18031 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18032 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18033 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18034 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18035 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18036 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18037 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18038 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18039 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18040 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18041 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"`'
18042 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18043 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18044 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18045 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18046 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18047 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18048 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18049 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18050 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18051 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18052 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18053 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18054 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18055 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18056 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18057 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18058 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18059 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18060 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18061 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18062 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18063 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18064 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18065 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18066 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18067 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18068 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18069 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18070 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18071 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18072 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18073 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
18074 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18075 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18076 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18077 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18078 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18079 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18080 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18081 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18082 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
18083 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18084 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18085 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18086 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18087 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18088 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18089 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18090 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18091 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18092 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18093 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18094 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18095 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18096 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18097 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18098 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18099 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18100 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18101 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18102 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18103 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18104 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18105 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18106 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18107 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18108 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18109 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18110 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18111 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18112 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18113 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18114 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18115 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18116 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18117 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18118 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18119 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18120 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18121 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18122 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18123 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18124 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18125 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18126 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18127 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18128 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18129 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18130 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18131 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18132 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18133 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18134 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18135 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18136 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18137 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18138 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18139 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18140 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18141 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18142 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18143 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18144 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18145 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
18146 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18147 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18148 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18149 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18150 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18151 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18152 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18153 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18154 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
18155 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18156 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18157 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18158 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18159 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18160 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18161 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18162 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18163 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18164 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18165 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18166 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18167 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18169 LTCC='$LTCC'
18170 LTCFLAGS='$LTCFLAGS'
18171 compiler='$compiler_DEFAULT'
18173 # A function that is used when there is no print builtin or printf.
18174 func_fallback_echo ()
18176 eval 'cat <<_LTECHO_EOF
18178 _LTECHO_EOF'
18181 # Quote evaled strings.
18182 for var in SHELL \
18183 ECHO \
18184 SED \
18185 GREP \
18186 EGREP \
18187 FGREP \
18188 LD \
18189 NM \
18190 LN_S \
18191 lt_SP2NL \
18192 lt_NL2SP \
18193 reload_flag \
18194 OBJDUMP \
18195 deplibs_check_method \
18196 file_magic_cmd \
18197 AR \
18198 AR_FLAGS \
18199 STRIP \
18200 RANLIB \
18201 CC \
18202 CFLAGS \
18203 compiler \
18204 lt_cv_sys_global_symbol_pipe \
18205 lt_cv_sys_global_symbol_to_cdecl \
18206 lt_cv_sys_global_symbol_to_c_name_address \
18207 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18208 lt_prog_compiler_no_builtin_flag \
18209 lt_prog_compiler_wl \
18210 lt_prog_compiler_pic \
18211 lt_prog_compiler_static \
18212 lt_cv_prog_compiler_c_o \
18213 need_locks \
18214 DSYMUTIL \
18215 NMEDIT \
18216 LIPO \
18217 OTOOL \
18218 OTOOL64 \
18219 shrext_cmds \
18220 export_dynamic_flag_spec \
18221 whole_archive_flag_spec \
18222 compiler_needs_object \
18223 with_gnu_ld \
18224 allow_undefined_flag \
18225 no_undefined_flag \
18226 hardcode_libdir_flag_spec \
18227 hardcode_libdir_flag_spec_ld \
18228 hardcode_libdir_separator \
18229 fix_srcfile_path \
18230 exclude_expsyms \
18231 include_expsyms \
18232 file_list_spec \
18233 variables_saved_for_relink \
18234 libname_spec \
18235 library_names_spec \
18236 soname_spec \
18237 install_override_mode \
18238 finish_eval \
18239 old_striplib \
18240 striplib \
18241 compiler_lib_search_dirs \
18242 predep_objects \
18243 postdep_objects \
18244 predeps \
18245 postdeps \
18246 compiler_lib_search_path \
18247 LD_CXX \
18248 reload_flag_CXX \
18249 compiler_CXX \
18250 lt_prog_compiler_no_builtin_flag_CXX \
18251 lt_prog_compiler_wl_CXX \
18252 lt_prog_compiler_pic_CXX \
18253 lt_prog_compiler_static_CXX \
18254 lt_cv_prog_compiler_c_o_CXX \
18255 export_dynamic_flag_spec_CXX \
18256 whole_archive_flag_spec_CXX \
18257 compiler_needs_object_CXX \
18258 with_gnu_ld_CXX \
18259 allow_undefined_flag_CXX \
18260 no_undefined_flag_CXX \
18261 hardcode_libdir_flag_spec_CXX \
18262 hardcode_libdir_flag_spec_ld_CXX \
18263 hardcode_libdir_separator_CXX \
18264 fix_srcfile_path_CXX \
18265 exclude_expsyms_CXX \
18266 include_expsyms_CXX \
18267 file_list_spec_CXX \
18268 compiler_lib_search_dirs_CXX \
18269 predep_objects_CXX \
18270 postdep_objects_CXX \
18271 predeps_CXX \
18272 postdeps_CXX \
18273 compiler_lib_search_path_CXX; do
18274 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18275 *[\\\\\\\`\\"\\\$]*)
18276 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18279 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18281 esac
18282 done
18284 # Double-quote double-evaled strings.
18285 for var in reload_cmds \
18286 old_postinstall_cmds \
18287 old_postuninstall_cmds \
18288 old_archive_cmds \
18289 extract_expsyms_cmds \
18290 old_archive_from_new_cmds \
18291 old_archive_from_expsyms_cmds \
18292 archive_cmds \
18293 archive_expsym_cmds \
18294 module_cmds \
18295 module_expsym_cmds \
18296 export_symbols_cmds \
18297 prelink_cmds \
18298 postinstall_cmds \
18299 postuninstall_cmds \
18300 finish_cmds \
18301 sys_lib_search_path_spec \
18302 sys_lib_dlsearch_path_spec \
18303 reload_cmds_CXX \
18304 old_archive_cmds_CXX \
18305 old_archive_from_new_cmds_CXX \
18306 old_archive_from_expsyms_cmds_CXX \
18307 archive_cmds_CXX \
18308 archive_expsym_cmds_CXX \
18309 module_cmds_CXX \
18310 module_expsym_cmds_CXX \
18311 export_symbols_cmds_CXX \
18312 prelink_cmds_CXX; do
18313 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18314 *[\\\\\\\`\\"\\\$]*)
18315 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18318 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18320 esac
18321 done
18323 ac_aux_dir='$ac_aux_dir'
18324 xsi_shell='$xsi_shell'
18325 lt_shell_append='$lt_shell_append'
18327 # See if we are running on zsh, and set the options which allow our
18328 # commands through without removal of \ escapes INIT.
18329 if test -n "\${ZSH_VERSION+set}" ; then
18330 setopt NO_GLOB_SUBST
18334 PACKAGE='$PACKAGE'
18335 VERSION='$VERSION'
18336 TIMESTAMP='$TIMESTAMP'
18337 RM='$RM'
18338 ofile='$ofile'
18345 GCC="$GCC"
18346 CC="$CC"
18347 acx_cv_header_stdint="$acx_cv_header_stdint"
18348 acx_cv_type_int8_t="$acx_cv_type_int8_t"
18349 acx_cv_type_int16_t="$acx_cv_type_int16_t"
18350 acx_cv_type_int32_t="$acx_cv_type_int32_t"
18351 acx_cv_type_int64_t="$acx_cv_type_int64_t"
18352 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
18353 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
18354 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
18355 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
18356 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
18357 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
18358 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
18359 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
18360 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
18363 _ACEOF
18365 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18367 # Handling of arguments.
18368 for ac_config_target in $ac_config_targets
18370 case $ac_config_target in
18371 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
18372 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18373 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18374 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
18375 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18376 "libsanitizer.spec") CONFIG_FILES="$CONFIG_FILES libsanitizer.spec" ;;
18377 "libbacktrace/backtrace-supported.h") CONFIG_FILES="$CONFIG_FILES libbacktrace/backtrace-supported.h" ;;
18378 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18379 "interception/Makefile") CONFIG_FILES="$CONFIG_FILES interception/Makefile" ;;
18380 "sanitizer_common/Makefile") CONFIG_FILES="$CONFIG_FILES sanitizer_common/Makefile" ;;
18381 "libbacktrace/Makefile") CONFIG_FILES="$CONFIG_FILES libbacktrace/Makefile" ;;
18382 "lsan/Makefile") CONFIG_FILES="$CONFIG_FILES lsan/Makefile" ;;
18383 "asan/Makefile") CONFIG_FILES="$CONFIG_FILES asan/Makefile" ;;
18384 "ubsan/Makefile") CONFIG_FILES="$CONFIG_FILES ubsan/Makefile" ;;
18385 "tsan/Makefile") CONFIG_FILES="$CONFIG_FILES tsan/Makefile" ;;
18386 "hwasan/Makefile") CONFIG_FILES="$CONFIG_FILES hwasan/Makefile" ;;
18388 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18389 esac
18390 done
18393 # If the user did not use the arguments to specify the items to instantiate,
18394 # then the envvar interface is used. Set only those that are not.
18395 # We use the long form for the default assignment because of an extremely
18396 # bizarre bug on SunOS 4.1.3.
18397 if $ac_need_defaults; then
18398 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18399 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18400 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18403 # Have a temporary directory for convenience. Make it in the build tree
18404 # simply because there is no reason against having it here, and in addition,
18405 # creating and moving files from /tmp can sometimes cause problems.
18406 # Hook for its removal unless debugging.
18407 # Note that there is a small window in which the directory will not be cleaned:
18408 # after its creation but before its name has been assigned to `$tmp'.
18409 $debug ||
18411 tmp= ac_tmp=
18412 trap 'exit_status=$?
18413 : "${ac_tmp:=$tmp}"
18414 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18416 trap 'as_fn_exit 1' 1 2 13 15
18418 # Create a (secure) tmp directory for tmp files.
18421 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18422 test -d "$tmp"
18423 } ||
18425 tmp=./conf$$-$RANDOM
18426 (umask 077 && mkdir "$tmp")
18427 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18428 ac_tmp=$tmp
18430 # Set up the scripts for CONFIG_FILES section.
18431 # No need to generate them if there are no CONFIG_FILES.
18432 # This happens for instance with `./config.status config.h'.
18433 if test -n "$CONFIG_FILES"; then
18436 ac_cr=`echo X | tr X '\015'`
18437 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18438 # But we know of no other shell where ac_cr would be empty at this
18439 # point, so we can use a bashism as a fallback.
18440 if test "x$ac_cr" = x; then
18441 eval ac_cr=\$\'\\r\'
18443 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18444 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18445 ac_cs_awk_cr='\\r'
18446 else
18447 ac_cs_awk_cr=$ac_cr
18450 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18451 _ACEOF
18455 echo "cat >conf$$subs.awk <<_ACEOF" &&
18456 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18457 echo "_ACEOF"
18458 } >conf$$subs.sh ||
18459 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18460 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18461 ac_delim='%!_!# '
18462 for ac_last_try in false false false false false :; do
18463 . ./conf$$subs.sh ||
18464 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18466 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18467 if test $ac_delim_n = $ac_delim_num; then
18468 break
18469 elif $ac_last_try; then
18470 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18471 else
18472 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18474 done
18475 rm -f conf$$subs.sh
18477 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18478 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18479 _ACEOF
18480 sed -n '
18482 s/^/S["/; s/!.*/"]=/
18485 s/^[^!]*!//
18486 :repl
18487 t repl
18488 s/'"$ac_delim"'$//
18489 t delim
18492 s/\(.\{148\}\)..*/\1/
18493 t more1
18494 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18497 b repl
18498 :more1
18499 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18502 s/.\{148\}//
18503 t nl
18504 :delim
18506 s/\(.\{148\}\)..*/\1/
18507 t more2
18508 s/["\\]/\\&/g; s/^/"/; s/$/"/
18511 :more2
18512 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18515 s/.\{148\}//
18516 t delim
18517 ' <conf$$subs.awk | sed '
18518 /^[^""]/{
18520 s/\n//
18522 ' >>$CONFIG_STATUS || ac_write_fail=1
18523 rm -f conf$$subs.awk
18524 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18525 _ACAWK
18526 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18527 for (key in S) S_is_set[key] = 1
18528 FS = "\a"
18532 line = $ 0
18533 nfields = split(line, field, "@")
18534 substed = 0
18535 len = length(field[1])
18536 for (i = 2; i < nfields; i++) {
18537 key = field[i]
18538 keylen = length(key)
18539 if (S_is_set[key]) {
18540 value = S[key]
18541 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18542 len += length(value) + length(field[++i])
18543 substed = 1
18544 } else
18545 len += 1 + keylen
18548 print line
18551 _ACAWK
18552 _ACEOF
18553 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18554 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18555 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18556 else
18558 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18559 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18560 _ACEOF
18562 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18563 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18564 # trailing colons and then remove the whole line if VPATH becomes empty
18565 # (actually we leave an empty line to preserve line numbers).
18566 if test "x$srcdir" = x.; then
18567 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18569 s///
18570 s/^/:/
18571 s/[ ]*$/:/
18572 s/:\$(srcdir):/:/g
18573 s/:\${srcdir}:/:/g
18574 s/:@srcdir@:/:/g
18575 s/^:*//
18576 s/:*$//
18578 s/\(=[ ]*\).*/\1/
18580 s/\n//
18581 s/^[^=]*=[ ]*$//
18585 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18586 fi # test -n "$CONFIG_FILES"
18588 # Set up the scripts for CONFIG_HEADERS section.
18589 # No need to generate them if there are no CONFIG_HEADERS.
18590 # This happens for instance with `./config.status Makefile'.
18591 if test -n "$CONFIG_HEADERS"; then
18592 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18593 BEGIN {
18594 _ACEOF
18596 # Transform confdefs.h into an awk script `defines.awk', embedded as
18597 # here-document in config.status, that substitutes the proper values into
18598 # config.h.in to produce config.h.
18600 # Create a delimiter string that does not exist in confdefs.h, to ease
18601 # handling of long lines.
18602 ac_delim='%!_!# '
18603 for ac_last_try in false false :; do
18604 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18605 if test -z "$ac_tt"; then
18606 break
18607 elif $ac_last_try; then
18608 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18609 else
18610 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18612 done
18614 # For the awk script, D is an array of macro values keyed by name,
18615 # likewise P contains macro parameters if any. Preserve backslash
18616 # newline sequences.
18618 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18619 sed -n '
18620 s/.\{148\}/&'"$ac_delim"'/g
18621 t rset
18622 :rset
18623 s/^[ ]*#[ ]*define[ ][ ]*/ /
18624 t def
18626 :def
18627 s/\\$//
18628 t bsnl
18629 s/["\\]/\\&/g
18630 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18631 D["\1"]=" \3"/p
18632 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18634 :bsnl
18635 s/["\\]/\\&/g
18636 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18637 D["\1"]=" \3\\\\\\n"\\/p
18638 t cont
18639 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18640 t cont
18642 :cont
18644 s/.\{148\}/&'"$ac_delim"'/g
18645 t clear
18646 :clear
18647 s/\\$//
18648 t bsnlc
18649 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18651 :bsnlc
18652 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18653 b cont
18654 ' <confdefs.h | sed '
18655 s/'"$ac_delim"'/"\\\
18656 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18658 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18659 for (key in D) D_is_set[key] = 1
18660 FS = "\a"
18662 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18663 line = \$ 0
18664 split(line, arg, " ")
18665 if (arg[1] == "#") {
18666 defundef = arg[2]
18667 mac1 = arg[3]
18668 } else {
18669 defundef = substr(arg[1], 2)
18670 mac1 = arg[2]
18672 split(mac1, mac2, "(") #)
18673 macro = mac2[1]
18674 prefix = substr(line, 1, index(line, defundef) - 1)
18675 if (D_is_set[macro]) {
18676 # Preserve the white space surrounding the "#".
18677 print prefix "define", macro P[macro] D[macro]
18678 next
18679 } else {
18680 # Replace #undef with comments. This is necessary, for example,
18681 # in the case of _POSIX_SOURCE, which is predefined and required
18682 # on some systems where configure will not decide to define it.
18683 if (defundef == "undef") {
18684 print "/*", prefix defundef, macro, "*/"
18685 next
18689 { print }
18690 _ACAWK
18691 _ACEOF
18692 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18693 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18694 fi # test -n "$CONFIG_HEADERS"
18697 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18698 shift
18699 for ac_tag
18701 case $ac_tag in
18702 :[FHLC]) ac_mode=$ac_tag; continue;;
18703 esac
18704 case $ac_mode$ac_tag in
18705 :[FHL]*:*);;
18706 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18707 :[FH]-) ac_tag=-:-;;
18708 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18709 esac
18710 ac_save_IFS=$IFS
18711 IFS=:
18712 set x $ac_tag
18713 IFS=$ac_save_IFS
18714 shift
18715 ac_file=$1
18716 shift
18718 case $ac_mode in
18719 :L) ac_source=$1;;
18720 :[FH])
18721 ac_file_inputs=
18722 for ac_f
18724 case $ac_f in
18725 -) ac_f="$ac_tmp/stdin";;
18726 *) # Look for the file first in the build tree, then in the source tree
18727 # (if the path is not absolute). The absolute path cannot be DOS-style,
18728 # because $ac_f cannot contain `:'.
18729 test -f "$ac_f" ||
18730 case $ac_f in
18731 [\\/$]*) false;;
18732 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18733 esac ||
18734 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18735 esac
18736 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18737 as_fn_append ac_file_inputs " '$ac_f'"
18738 done
18740 # Let's still pretend it is `configure' which instantiates (i.e., don't
18741 # use $as_me), people would be surprised to read:
18742 # /* config.h. Generated by config.status. */
18743 configure_input='Generated from '`
18744 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18745 `' by configure.'
18746 if test x"$ac_file" != x-; then
18747 configure_input="$ac_file. $configure_input"
18748 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18749 $as_echo "$as_me: creating $ac_file" >&6;}
18751 # Neutralize special characters interpreted by sed in replacement strings.
18752 case $configure_input in #(
18753 *\&* | *\|* | *\\* )
18754 ac_sed_conf_input=`$as_echo "$configure_input" |
18755 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18756 *) ac_sed_conf_input=$configure_input;;
18757 esac
18759 case $ac_tag in
18760 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18761 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18762 esac
18764 esac
18766 ac_dir=`$as_dirname -- "$ac_file" ||
18767 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18768 X"$ac_file" : 'X\(//\)[^/]' \| \
18769 X"$ac_file" : 'X\(//\)$' \| \
18770 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18771 $as_echo X"$ac_file" |
18772 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18773 s//\1/
18776 /^X\(\/\/\)[^/].*/{
18777 s//\1/
18780 /^X\(\/\/\)$/{
18781 s//\1/
18784 /^X\(\/\).*/{
18785 s//\1/
18788 s/.*/./; q'`
18789 as_dir="$ac_dir"; as_fn_mkdir_p
18790 ac_builddir=.
18792 case "$ac_dir" in
18793 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18795 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18796 # A ".." for each directory in $ac_dir_suffix.
18797 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18798 case $ac_top_builddir_sub in
18799 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18800 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18801 esac ;;
18802 esac
18803 ac_abs_top_builddir=$ac_pwd
18804 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18805 # for backward compatibility:
18806 ac_top_builddir=$ac_top_build_prefix
18808 case $srcdir in
18809 .) # We are building in place.
18810 ac_srcdir=.
18811 ac_top_srcdir=$ac_top_builddir_sub
18812 ac_abs_top_srcdir=$ac_pwd ;;
18813 [\\/]* | ?:[\\/]* ) # Absolute name.
18814 ac_srcdir=$srcdir$ac_dir_suffix;
18815 ac_top_srcdir=$srcdir
18816 ac_abs_top_srcdir=$srcdir ;;
18817 *) # Relative name.
18818 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18819 ac_top_srcdir=$ac_top_build_prefix$srcdir
18820 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18821 esac
18822 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18825 case $ac_mode in
18828 # CONFIG_FILE
18831 case $INSTALL in
18832 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18833 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18834 esac
18835 ac_MKDIR_P=$MKDIR_P
18836 case $MKDIR_P in
18837 [\\/$]* | ?:[\\/]* ) ;;
18838 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18839 esac
18840 _ACEOF
18842 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18843 # If the template does not know about datarootdir, expand it.
18844 # FIXME: This hack should be removed a few years after 2.60.
18845 ac_datarootdir_hack=; ac_datarootdir_seen=
18846 ac_sed_dataroot='
18847 /datarootdir/ {
18851 /@datadir@/p
18852 /@docdir@/p
18853 /@infodir@/p
18854 /@localedir@/p
18855 /@mandir@/p'
18856 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18857 *datarootdir*) ac_datarootdir_seen=yes;;
18858 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18860 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18861 _ACEOF
18862 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18863 ac_datarootdir_hack='
18864 s&@datadir@&$datadir&g
18865 s&@docdir@&$docdir&g
18866 s&@infodir@&$infodir&g
18867 s&@localedir@&$localedir&g
18868 s&@mandir@&$mandir&g
18869 s&\\\${datarootdir}&$datarootdir&g' ;;
18870 esac
18871 _ACEOF
18873 # Neutralize VPATH when `$srcdir' = `.'.
18874 # Shell code in configure.ac might set extrasub.
18875 # FIXME: do we really want to maintain this feature?
18876 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18877 ac_sed_extra="$ac_vpsub
18878 $extrasub
18879 _ACEOF
18880 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18882 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18883 s|@configure_input@|$ac_sed_conf_input|;t t
18884 s&@top_builddir@&$ac_top_builddir_sub&;t t
18885 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18886 s&@srcdir@&$ac_srcdir&;t t
18887 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18888 s&@top_srcdir@&$ac_top_srcdir&;t t
18889 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18890 s&@builddir@&$ac_builddir&;t t
18891 s&@abs_builddir@&$ac_abs_builddir&;t t
18892 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18893 s&@INSTALL@&$ac_INSTALL&;t t
18894 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18895 $ac_datarootdir_hack
18897 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18898 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18900 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18901 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18902 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18903 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18905 which seems to be undefined. Please make sure it is defined" >&5
18906 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18907 which seems to be undefined. Please make sure it is defined" >&2;}
18909 rm -f "$ac_tmp/stdin"
18910 case $ac_file in
18911 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18912 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18913 esac \
18914 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18918 # CONFIG_HEADER
18920 if test x"$ac_file" != x-; then
18922 $as_echo "/* $configure_input */" \
18923 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18924 } >"$ac_tmp/config.h" \
18925 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18926 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18927 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18928 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18929 else
18930 rm -f "$ac_file"
18931 mv "$ac_tmp/config.h" "$ac_file" \
18932 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18934 else
18935 $as_echo "/* $configure_input */" \
18936 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18937 || as_fn_error $? "could not create -" "$LINENO" 5
18939 # Compute "$ac_file"'s index in $config_headers.
18940 _am_arg="$ac_file"
18941 _am_stamp_count=1
18942 for _am_header in $config_headers :; do
18943 case $_am_header in
18944 $_am_arg | $_am_arg:* )
18945 break ;;
18947 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18948 esac
18949 done
18950 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18951 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18952 X"$_am_arg" : 'X\(//\)[^/]' \| \
18953 X"$_am_arg" : 'X\(//\)$' \| \
18954 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18955 $as_echo X"$_am_arg" |
18956 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18957 s//\1/
18960 /^X\(\/\/\)[^/].*/{
18961 s//\1/
18964 /^X\(\/\/\)$/{
18965 s//\1/
18968 /^X\(\/\).*/{
18969 s//\1/
18972 s/.*/./; q'`/stamp-h$_am_stamp_count
18975 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18976 $as_echo "$as_me: executing $ac_file commands" >&6;}
18978 esac
18981 case $ac_file$ac_mode in
18982 "default-1":C)
18983 # Only add multilib support code if we just rebuilt the top-level
18984 # Makefile.
18985 case " $CONFIG_FILES " in
18986 *" Makefile "*)
18987 ac_file=Makefile . ${multi_basedir}/config-ml.in
18989 esac ;;
18990 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18991 # Older Autoconf quotes --file arguments for eval, but not when files
18992 # are listed without --file. Let's play safe and only enable the eval
18993 # if we detect the quoting.
18994 case $CONFIG_FILES in
18995 *\'*) eval set x "$CONFIG_FILES" ;;
18996 *) set x $CONFIG_FILES ;;
18997 esac
18998 shift
18999 for mf
19001 # Strip MF so we end up with the name of the file.
19002 mf=`echo "$mf" | sed -e 's/:.*$//'`
19003 # Check whether this is an Automake generated Makefile or not.
19004 # We used to match only the files named 'Makefile.in', but
19005 # some people rename them; so instead we look at the file content.
19006 # Grep'ing the first line is not enough: some people post-process
19007 # each Makefile.in and add a new line on top of each file to say so.
19008 # Grep'ing the whole file is not good either: AIX grep has a line
19009 # limit of 2048, but all sed's we know have understand at least 4000.
19010 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19011 dirpart=`$as_dirname -- "$mf" ||
19012 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19013 X"$mf" : 'X\(//\)[^/]' \| \
19014 X"$mf" : 'X\(//\)$' \| \
19015 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19016 $as_echo X"$mf" |
19017 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19018 s//\1/
19021 /^X\(\/\/\)[^/].*/{
19022 s//\1/
19025 /^X\(\/\/\)$/{
19026 s//\1/
19029 /^X\(\/\).*/{
19030 s//\1/
19033 s/.*/./; q'`
19034 else
19035 continue
19037 # Extract the definition of DEPDIR, am__include, and am__quote
19038 # from the Makefile without running 'make'.
19039 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19040 test -z "$DEPDIR" && continue
19041 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19042 test -z "$am__include" && continue
19043 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19044 # Find all dependency output files, they are included files with
19045 # $(DEPDIR) in their names. We invoke sed twice because it is the
19046 # simplest approach to changing $(DEPDIR) to its actual value in the
19047 # expansion.
19048 for file in `sed -n "
19049 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19050 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
19051 # Make sure the directory exists.
19052 test -f "$dirpart/$file" && continue
19053 fdir=`$as_dirname -- "$file" ||
19054 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19055 X"$file" : 'X\(//\)[^/]' \| \
19056 X"$file" : 'X\(//\)$' \| \
19057 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19058 $as_echo X"$file" |
19059 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19060 s//\1/
19063 /^X\(\/\/\)[^/].*/{
19064 s//\1/
19067 /^X\(\/\/\)$/{
19068 s//\1/
19071 /^X\(\/\).*/{
19072 s//\1/
19075 s/.*/./; q'`
19076 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19077 # echo "creating $dirpart/$file"
19078 echo '# dummy' > "$dirpart/$file"
19079 done
19080 done
19083 "libtool":C)
19085 # See if we are running on zsh, and set the options which allow our
19086 # commands through without removal of \ escapes.
19087 if test -n "${ZSH_VERSION+set}" ; then
19088 setopt NO_GLOB_SUBST
19091 cfgfile="${ofile}T"
19092 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19093 $RM "$cfgfile"
19095 cat <<_LT_EOF >> "$cfgfile"
19096 #! $SHELL
19098 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19099 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19100 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19101 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19103 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19104 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
19105 # Written by Gordon Matzigkeit, 1996
19107 # This file is part of GNU Libtool.
19109 # GNU Libtool is free software; you can redistribute it and/or
19110 # modify it under the terms of the GNU General Public License as
19111 # published by the Free Software Foundation; either version 2 of
19112 # the License, or (at your option) any later version.
19114 # As a special exception to the GNU General Public License,
19115 # if you distribute this file as part of a program or library that
19116 # is built using GNU Libtool, you may include this file under the
19117 # same distribution terms that you use for the rest of that program.
19119 # GNU Libtool is distributed in the hope that it will be useful,
19120 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19121 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19122 # GNU General Public License for more details.
19124 # You should have received a copy of the GNU General Public License
19125 # along with GNU Libtool; see the file COPYING. If not, a copy
19126 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19127 # obtained by writing to the Free Software Foundation, Inc.,
19128 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19131 # The names of the tagged configurations supported by this script.
19132 available_tags="CXX "
19134 # ### BEGIN LIBTOOL CONFIG
19136 # Which release of libtool.m4 was used?
19137 macro_version=$macro_version
19138 macro_revision=$macro_revision
19140 # Whether or not to build shared libraries.
19141 build_libtool_libs=$enable_shared
19143 # Whether or not to build static libraries.
19144 build_old_libs=$enable_static
19146 # What type of objects to build.
19147 pic_mode=$pic_mode
19149 # Whether or not to optimize for fast installation.
19150 fast_install=$enable_fast_install
19152 # Shell to use when invoking shell scripts.
19153 SHELL=$lt_SHELL
19155 # An echo program that protects backslashes.
19156 ECHO=$lt_ECHO
19158 # The host system.
19159 host_alias=$host_alias
19160 host=$host
19161 host_os=$host_os
19163 # The build system.
19164 build_alias=$build_alias
19165 build=$build
19166 build_os=$build_os
19168 # A sed program that does not truncate output.
19169 SED=$lt_SED
19171 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19172 Xsed="\$SED -e 1s/^X//"
19174 # A grep program that handles long lines.
19175 GREP=$lt_GREP
19177 # An ERE matcher.
19178 EGREP=$lt_EGREP
19180 # A literal string matcher.
19181 FGREP=$lt_FGREP
19183 # A BSD- or MS-compatible name lister.
19184 NM=$lt_NM
19186 # Whether we need soft or hard links.
19187 LN_S=$lt_LN_S
19189 # What is the maximum length of a command?
19190 max_cmd_len=$max_cmd_len
19192 # Object file suffix (normally "o").
19193 objext=$ac_objext
19195 # Executable file suffix (normally "").
19196 exeext=$exeext
19198 # whether the shell understands "unset".
19199 lt_unset=$lt_unset
19201 # turn spaces into newlines.
19202 SP2NL=$lt_lt_SP2NL
19204 # turn newlines into spaces.
19205 NL2SP=$lt_lt_NL2SP
19207 # An object symbol dumper.
19208 OBJDUMP=$lt_OBJDUMP
19210 # Method to check whether dependent libraries are shared objects.
19211 deplibs_check_method=$lt_deplibs_check_method
19213 # Command to use when deplibs_check_method == "file_magic".
19214 file_magic_cmd=$lt_file_magic_cmd
19216 # The archiver.
19217 AR=$lt_AR
19218 AR_FLAGS=$lt_AR_FLAGS
19220 # A symbol stripping program.
19221 STRIP=$lt_STRIP
19223 # Commands used to install an old-style archive.
19224 RANLIB=$lt_RANLIB
19225 old_postinstall_cmds=$lt_old_postinstall_cmds
19226 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19228 # Whether to use a lock for old archive extraction.
19229 lock_old_archive_extraction=$lock_old_archive_extraction
19231 # A C compiler.
19232 LTCC=$lt_CC
19234 # LTCC compiler flags.
19235 LTCFLAGS=$lt_CFLAGS
19237 # Take the output of nm and produce a listing of raw symbols and C names.
19238 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19240 # Transform the output of nm in a proper C declaration.
19241 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19243 # Transform the output of nm in a C name address pair.
19244 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19246 # Transform the output of nm in a C name address pair when lib prefix is needed.
19247 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19249 # The name of the directory that contains temporary libtool files.
19250 objdir=$objdir
19252 # Used to examine libraries when file_magic_cmd begins with "file".
19253 MAGIC_CMD=$MAGIC_CMD
19255 # Must we lock files when doing compilation?
19256 need_locks=$lt_need_locks
19258 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19259 DSYMUTIL=$lt_DSYMUTIL
19261 # Tool to change global to local symbols on Mac OS X.
19262 NMEDIT=$lt_NMEDIT
19264 # Tool to manipulate fat objects and archives on Mac OS X.
19265 LIPO=$lt_LIPO
19267 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19268 OTOOL=$lt_OTOOL
19270 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19271 OTOOL64=$lt_OTOOL64
19273 # Old archive suffix (normally "a").
19274 libext=$libext
19276 # Shared library suffix (normally ".so").
19277 shrext_cmds=$lt_shrext_cmds
19279 # The commands to extract the exported symbol list from a shared archive.
19280 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19282 # Variables whose values should be saved in libtool wrapper scripts and
19283 # restored at link time.
19284 variables_saved_for_relink=$lt_variables_saved_for_relink
19286 # Do we need the "lib" prefix for modules?
19287 need_lib_prefix=$need_lib_prefix
19289 # Do we need a version for libraries?
19290 need_version=$need_version
19292 # Library versioning type.
19293 version_type=$version_type
19295 # Shared library runtime path variable.
19296 runpath_var=$runpath_var
19298 # Shared library path variable.
19299 shlibpath_var=$shlibpath_var
19301 # Is shlibpath searched before the hard-coded library search path?
19302 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19304 # Format of library name prefix.
19305 libname_spec=$lt_libname_spec
19307 # List of archive names. First name is the real one, the rest are links.
19308 # The last name is the one that the linker finds with -lNAME
19309 library_names_spec=$lt_library_names_spec
19311 # The coded name of the library, if different from the real name.
19312 soname_spec=$lt_soname_spec
19314 # Permission mode override for installation of shared libraries.
19315 install_override_mode=$lt_install_override_mode
19317 # Command to use after installation of a shared archive.
19318 postinstall_cmds=$lt_postinstall_cmds
19320 # Command to use after uninstallation of a shared archive.
19321 postuninstall_cmds=$lt_postuninstall_cmds
19323 # Commands used to finish a libtool library installation in a directory.
19324 finish_cmds=$lt_finish_cmds
19326 # As "finish_cmds", except a single script fragment to be evaled but
19327 # not shown.
19328 finish_eval=$lt_finish_eval
19330 # Whether we should hardcode library paths into libraries.
19331 hardcode_into_libs=$hardcode_into_libs
19333 # Compile-time system search path for libraries.
19334 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19336 # Run-time system search path for libraries.
19337 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19339 # Whether dlopen is supported.
19340 dlopen_support=$enable_dlopen
19342 # Whether dlopen of programs is supported.
19343 dlopen_self=$enable_dlopen_self
19345 # Whether dlopen of statically linked programs is supported.
19346 dlopen_self_static=$enable_dlopen_self_static
19348 # Commands to strip libraries.
19349 old_striplib=$lt_old_striplib
19350 striplib=$lt_striplib
19353 # The linker used to build libraries.
19354 LD=$lt_LD
19356 # How to create reloadable object files.
19357 reload_flag=$lt_reload_flag
19358 reload_cmds=$lt_reload_cmds
19360 # Commands used to build an old-style archive.
19361 old_archive_cmds=$lt_old_archive_cmds
19363 # A language specific compiler.
19364 CC=$lt_compiler
19366 # Is the compiler the GNU compiler?
19367 with_gcc=$GCC
19369 # Compiler flag to turn off builtin functions.
19370 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19372 # How to pass a linker flag through the compiler.
19373 wl=$lt_lt_prog_compiler_wl
19375 # Additional compiler flags for building library objects.
19376 pic_flag=$lt_lt_prog_compiler_pic
19378 # Compiler flag to prevent dynamic linking.
19379 link_static_flag=$lt_lt_prog_compiler_static
19381 # Does compiler simultaneously support -c and -o options?
19382 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19384 # Whether or not to add -lc for building shared libraries.
19385 build_libtool_need_lc=$archive_cmds_need_lc
19387 # Whether or not to disallow shared libs when runtime libs are static.
19388 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19390 # Compiler flag to allow reflexive dlopens.
19391 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19393 # Compiler flag to generate shared objects directly from archives.
19394 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19396 # Whether the compiler copes with passing no objects directly.
19397 compiler_needs_object=$lt_compiler_needs_object
19399 # Create an old-style archive from a shared archive.
19400 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19402 # Create a temporary old-style archive to link instead of a shared archive.
19403 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19405 # Commands used to build a shared archive.
19406 archive_cmds=$lt_archive_cmds
19407 archive_expsym_cmds=$lt_archive_expsym_cmds
19409 # Commands used to build a loadable module if different from building
19410 # a shared archive.
19411 module_cmds=$lt_module_cmds
19412 module_expsym_cmds=$lt_module_expsym_cmds
19414 # Whether we are building with GNU ld or not.
19415 with_gnu_ld=$lt_with_gnu_ld
19417 # Flag that allows shared libraries with undefined symbols to be built.
19418 allow_undefined_flag=$lt_allow_undefined_flag
19420 # Flag that enforces no undefined symbols.
19421 no_undefined_flag=$lt_no_undefined_flag
19423 # Flag to hardcode \$libdir into a binary during linking.
19424 # This must work even if \$libdir does not exist
19425 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19427 # If ld is used when linking, flag to hardcode \$libdir into a binary
19428 # during linking. This must work even if \$libdir does not exist.
19429 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19431 # Whether we need a single "-rpath" flag with a separated argument.
19432 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19434 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19435 # DIR into the resulting binary.
19436 hardcode_direct=$hardcode_direct
19438 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19439 # DIR into the resulting binary and the resulting library dependency is
19440 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19441 # library is relocated.
19442 hardcode_direct_absolute=$hardcode_direct_absolute
19444 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19445 # into the resulting binary.
19446 hardcode_minus_L=$hardcode_minus_L
19448 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19449 # into the resulting binary.
19450 hardcode_shlibpath_var=$hardcode_shlibpath_var
19452 # Set to "yes" if building a shared library automatically hardcodes DIR
19453 # into the library and all subsequent libraries and executables linked
19454 # against it.
19455 hardcode_automatic=$hardcode_automatic
19457 # Set to yes if linker adds runtime paths of dependent libraries
19458 # to runtime path list.
19459 inherit_rpath=$inherit_rpath
19461 # Whether libtool must link a program against all its dependency libraries.
19462 link_all_deplibs=$link_all_deplibs
19464 # Fix the shell variable \$srcfile for the compiler.
19465 fix_srcfile_path=$lt_fix_srcfile_path
19467 # Set to "yes" if exported symbols are required.
19468 always_export_symbols=$always_export_symbols
19470 # The commands to list exported symbols.
19471 export_symbols_cmds=$lt_export_symbols_cmds
19473 # Symbols that should not be listed in the preloaded symbols.
19474 exclude_expsyms=$lt_exclude_expsyms
19476 # Symbols that must always be exported.
19477 include_expsyms=$lt_include_expsyms
19479 # Commands necessary for linking programs (against libraries) with templates.
19480 prelink_cmds=$lt_prelink_cmds
19482 # Specify filename containing input files.
19483 file_list_spec=$lt_file_list_spec
19485 # How to hardcode a shared library path into an executable.
19486 hardcode_action=$hardcode_action
19488 # The directories searched by this compiler when creating a shared library.
19489 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19491 # Dependencies to place before and after the objects being linked to
19492 # create a shared library.
19493 predep_objects=$lt_predep_objects
19494 postdep_objects=$lt_postdep_objects
19495 predeps=$lt_predeps
19496 postdeps=$lt_postdeps
19498 # The library search path used internally by the compiler when linking
19499 # a shared library.
19500 compiler_lib_search_path=$lt_compiler_lib_search_path
19502 # ### END LIBTOOL CONFIG
19504 _LT_EOF
19506 case $host_os in
19507 aix3*)
19508 cat <<\_LT_EOF >> "$cfgfile"
19509 # AIX sometimes has problems with the GCC collect2 program. For some
19510 # reason, if we set the COLLECT_NAMES environment variable, the problems
19511 # vanish in a puff of smoke.
19512 if test "X${COLLECT_NAMES+set}" != Xset; then
19513 COLLECT_NAMES=
19514 export COLLECT_NAMES
19516 _LT_EOF
19518 esac
19521 ltmain="$ac_aux_dir/ltmain.sh"
19524 # We use sed instead of cat because bash on DJGPP gets confused if
19525 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19526 # text mode, it properly converts lines to CR/LF. This bash problem
19527 # is reportedly fixed, but why not run on old versions too?
19528 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19529 || (rm -f "$cfgfile"; exit 1)
19531 case $xsi_shell in
19532 yes)
19533 cat << \_LT_EOF >> "$cfgfile"
19535 # func_dirname file append nondir_replacement
19536 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19537 # otherwise set result to NONDIR_REPLACEMENT.
19538 func_dirname ()
19540 case ${1} in
19541 */*) func_dirname_result="${1%/*}${2}" ;;
19542 * ) func_dirname_result="${3}" ;;
19543 esac
19546 # func_basename file
19547 func_basename ()
19549 func_basename_result="${1##*/}"
19552 # func_dirname_and_basename file append nondir_replacement
19553 # perform func_basename and func_dirname in a single function
19554 # call:
19555 # dirname: Compute the dirname of FILE. If nonempty,
19556 # add APPEND to the result, otherwise set result
19557 # to NONDIR_REPLACEMENT.
19558 # value returned in "$func_dirname_result"
19559 # basename: Compute filename of FILE.
19560 # value retuned in "$func_basename_result"
19561 # Implementation must be kept synchronized with func_dirname
19562 # and func_basename. For efficiency, we do not delegate to
19563 # those functions but instead duplicate the functionality here.
19564 func_dirname_and_basename ()
19566 case ${1} in
19567 */*) func_dirname_result="${1%/*}${2}" ;;
19568 * ) func_dirname_result="${3}" ;;
19569 esac
19570 func_basename_result="${1##*/}"
19573 # func_stripname prefix suffix name
19574 # strip PREFIX and SUFFIX off of NAME.
19575 # PREFIX and SUFFIX must not contain globbing or regex special
19576 # characters, hashes, percent signs, but SUFFIX may contain a leading
19577 # dot (in which case that matches only a dot).
19578 func_stripname ()
19580 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19581 # positional parameters, so assign one to ordinary parameter first.
19582 func_stripname_result=${3}
19583 func_stripname_result=${func_stripname_result#"${1}"}
19584 func_stripname_result=${func_stripname_result%"${2}"}
19587 # func_opt_split
19588 func_opt_split ()
19590 func_opt_split_opt=${1%%=*}
19591 func_opt_split_arg=${1#*=}
19594 # func_lo2o object
19595 func_lo2o ()
19597 case ${1} in
19598 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19599 *) func_lo2o_result=${1} ;;
19600 esac
19603 # func_xform libobj-or-source
19604 func_xform ()
19606 func_xform_result=${1%.*}.lo
19609 # func_arith arithmetic-term...
19610 func_arith ()
19612 func_arith_result=$(( $* ))
19615 # func_len string
19616 # STRING may not start with a hyphen.
19617 func_len ()
19619 func_len_result=${#1}
19622 _LT_EOF
19624 *) # Bourne compatible functions.
19625 cat << \_LT_EOF >> "$cfgfile"
19627 # func_dirname file append nondir_replacement
19628 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19629 # otherwise set result to NONDIR_REPLACEMENT.
19630 func_dirname ()
19632 # Extract subdirectory from the argument.
19633 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
19634 if test "X$func_dirname_result" = "X${1}"; then
19635 func_dirname_result="${3}"
19636 else
19637 func_dirname_result="$func_dirname_result${2}"
19641 # func_basename file
19642 func_basename ()
19644 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
19648 # func_stripname prefix suffix name
19649 # strip PREFIX and SUFFIX off of NAME.
19650 # PREFIX and SUFFIX must not contain globbing or regex special
19651 # characters, hashes, percent signs, but SUFFIX may contain a leading
19652 # dot (in which case that matches only a dot).
19653 # func_strip_suffix prefix name
19654 func_stripname ()
19656 case ${2} in
19657 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19658 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19659 esac
19662 # sed scripts:
19663 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19664 my_sed_long_arg='1s/^-[^=]*=//'
19666 # func_opt_split
19667 func_opt_split ()
19669 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19670 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19673 # func_lo2o object
19674 func_lo2o ()
19676 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
19679 # func_xform libobj-or-source
19680 func_xform ()
19682 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19685 # func_arith arithmetic-term...
19686 func_arith ()
19688 func_arith_result=`expr "$@"`
19691 # func_len string
19692 # STRING may not start with a hyphen.
19693 func_len ()
19695 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19698 _LT_EOF
19699 esac
19701 case $lt_shell_append in
19702 yes)
19703 cat << \_LT_EOF >> "$cfgfile"
19705 # func_append var value
19706 # Append VALUE to the end of shell variable VAR.
19707 func_append ()
19709 eval "$1+=\$2"
19711 _LT_EOF
19714 cat << \_LT_EOF >> "$cfgfile"
19716 # func_append var value
19717 # Append VALUE to the end of shell variable VAR.
19718 func_append ()
19720 eval "$1=\$$1\$2"
19723 _LT_EOF
19725 esac
19728 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19729 || (rm -f "$cfgfile"; exit 1)
19731 mv -f "$cfgfile" "$ofile" ||
19732 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19733 chmod +x "$ofile"
19736 cat <<_LT_EOF >> "$ofile"
19738 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19740 # The linker used to build libraries.
19741 LD=$lt_LD_CXX
19743 # How to create reloadable object files.
19744 reload_flag=$lt_reload_flag_CXX
19745 reload_cmds=$lt_reload_cmds_CXX
19747 # Commands used to build an old-style archive.
19748 old_archive_cmds=$lt_old_archive_cmds_CXX
19750 # A language specific compiler.
19751 CC=$lt_compiler_CXX
19753 # Is the compiler the GNU compiler?
19754 with_gcc=$GCC_CXX
19756 # Compiler flag to turn off builtin functions.
19757 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19759 # How to pass a linker flag through the compiler.
19760 wl=$lt_lt_prog_compiler_wl_CXX
19762 # Additional compiler flags for building library objects.
19763 pic_flag=$lt_lt_prog_compiler_pic_CXX
19765 # Compiler flag to prevent dynamic linking.
19766 link_static_flag=$lt_lt_prog_compiler_static_CXX
19768 # Does compiler simultaneously support -c and -o options?
19769 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19771 # Whether or not to add -lc for building shared libraries.
19772 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19774 # Whether or not to disallow shared libs when runtime libs are static.
19775 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19777 # Compiler flag to allow reflexive dlopens.
19778 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19780 # Compiler flag to generate shared objects directly from archives.
19781 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19783 # Whether the compiler copes with passing no objects directly.
19784 compiler_needs_object=$lt_compiler_needs_object_CXX
19786 # Create an old-style archive from a shared archive.
19787 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19789 # Create a temporary old-style archive to link instead of a shared archive.
19790 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19792 # Commands used to build a shared archive.
19793 archive_cmds=$lt_archive_cmds_CXX
19794 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19796 # Commands used to build a loadable module if different from building
19797 # a shared archive.
19798 module_cmds=$lt_module_cmds_CXX
19799 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19801 # Whether we are building with GNU ld or not.
19802 with_gnu_ld=$lt_with_gnu_ld_CXX
19804 # Flag that allows shared libraries with undefined symbols to be built.
19805 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19807 # Flag that enforces no undefined symbols.
19808 no_undefined_flag=$lt_no_undefined_flag_CXX
19810 # Flag to hardcode \$libdir into a binary during linking.
19811 # This must work even if \$libdir does not exist
19812 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19814 # If ld is used when linking, flag to hardcode \$libdir into a binary
19815 # during linking. This must work even if \$libdir does not exist.
19816 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19818 # Whether we need a single "-rpath" flag with a separated argument.
19819 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19821 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19822 # DIR into the resulting binary.
19823 hardcode_direct=$hardcode_direct_CXX
19825 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19826 # DIR into the resulting binary and the resulting library dependency is
19827 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19828 # library is relocated.
19829 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19831 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19832 # into the resulting binary.
19833 hardcode_minus_L=$hardcode_minus_L_CXX
19835 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19836 # into the resulting binary.
19837 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19839 # Set to "yes" if building a shared library automatically hardcodes DIR
19840 # into the library and all subsequent libraries and executables linked
19841 # against it.
19842 hardcode_automatic=$hardcode_automatic_CXX
19844 # Set to yes if linker adds runtime paths of dependent libraries
19845 # to runtime path list.
19846 inherit_rpath=$inherit_rpath_CXX
19848 # Whether libtool must link a program against all its dependency libraries.
19849 link_all_deplibs=$link_all_deplibs_CXX
19851 # Fix the shell variable \$srcfile for the compiler.
19852 fix_srcfile_path=$lt_fix_srcfile_path_CXX
19854 # Set to "yes" if exported symbols are required.
19855 always_export_symbols=$always_export_symbols_CXX
19857 # The commands to list exported symbols.
19858 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19860 # Symbols that should not be listed in the preloaded symbols.
19861 exclude_expsyms=$lt_exclude_expsyms_CXX
19863 # Symbols that must always be exported.
19864 include_expsyms=$lt_include_expsyms_CXX
19866 # Commands necessary for linking programs (against libraries) with templates.
19867 prelink_cmds=$lt_prelink_cmds_CXX
19869 # Specify filename containing input files.
19870 file_list_spec=$lt_file_list_spec_CXX
19872 # How to hardcode a shared library path into an executable.
19873 hardcode_action=$hardcode_action_CXX
19875 # The directories searched by this compiler when creating a shared library.
19876 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19878 # Dependencies to place before and after the objects being linked to
19879 # create a shared library.
19880 predep_objects=$lt_predep_objects_CXX
19881 postdep_objects=$lt_postdep_objects_CXX
19882 predeps=$lt_predeps_CXX
19883 postdeps=$lt_postdeps_CXX
19885 # The library search path used internally by the compiler when linking
19886 # a shared library.
19887 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19889 # ### END LIBTOOL TAG CONFIG: CXX
19890 _LT_EOF
19893 "gstdint.h":C)
19894 if test "$GCC" = yes; then
19895 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
19896 else
19897 echo "/* generated for $CC */" > tmp-stdint.h
19900 sed 's/^ *//' >> tmp-stdint.h <<EOF
19902 #ifndef GCC_GENERATED_STDINT_H
19903 #define GCC_GENERATED_STDINT_H 1
19905 #include <sys/types.h>
19908 if test "$acx_cv_header_stdint" != stdint.h; then
19909 echo "#include <stddef.h>" >> tmp-stdint.h
19911 if test "$acx_cv_header_stdint" != stddef.h; then
19912 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
19915 sed 's/^ *//' >> tmp-stdint.h <<EOF
19916 /* glibc uses these symbols as guards to prevent redefinitions. */
19917 #ifdef __int8_t_defined
19918 #define _INT8_T
19919 #define _INT16_T
19920 #define _INT32_T
19921 #endif
19922 #ifdef __uint32_t_defined
19923 #define _UINT32_T
19924 #endif
19928 # ----------------- done header, emit basic int types -------------
19929 if test "$acx_cv_header_stdint" = stddef.h; then
19930 sed 's/^ *//' >> tmp-stdint.h <<EOF
19932 #ifndef _UINT8_T
19933 #define _UINT8_T
19934 #ifndef __uint8_t_defined
19935 #define __uint8_t_defined
19936 #ifndef uint8_t
19937 typedef unsigned $acx_cv_type_int8_t uint8_t;
19938 #endif
19939 #endif
19940 #endif
19942 #ifndef _UINT16_T
19943 #define _UINT16_T
19944 #ifndef __uint16_t_defined
19945 #define __uint16_t_defined
19946 #ifndef uint16_t
19947 typedef unsigned $acx_cv_type_int16_t uint16_t;
19948 #endif
19949 #endif
19950 #endif
19952 #ifndef _UINT32_T
19953 #define _UINT32_T
19954 #ifndef __uint32_t_defined
19955 #define __uint32_t_defined
19956 #ifndef uint32_t
19957 typedef unsigned $acx_cv_type_int32_t uint32_t;
19958 #endif
19959 #endif
19960 #endif
19962 #ifndef _INT8_T
19963 #define _INT8_T
19964 #ifndef __int8_t_defined
19965 #define __int8_t_defined
19966 #ifndef int8_t
19967 typedef $acx_cv_type_int8_t int8_t;
19968 #endif
19969 #endif
19970 #endif
19972 #ifndef _INT16_T
19973 #define _INT16_T
19974 #ifndef __int16_t_defined
19975 #define __int16_t_defined
19976 #ifndef int16_t
19977 typedef $acx_cv_type_int16_t int16_t;
19978 #endif
19979 #endif
19980 #endif
19982 #ifndef _INT32_T
19983 #define _INT32_T
19984 #ifndef __int32_t_defined
19985 #define __int32_t_defined
19986 #ifndef int32_t
19987 typedef $acx_cv_type_int32_t int32_t;
19988 #endif
19989 #endif
19990 #endif
19992 elif test "$ac_cv_type_u_int32_t" = yes; then
19993 sed 's/^ *//' >> tmp-stdint.h <<EOF
19995 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
19996 #ifndef _INT8_T
19997 #define _INT8_T
19998 #endif
19999 #ifndef _INT16_T
20000 #define _INT16_T
20001 #endif
20002 #ifndef _INT32_T
20003 #define _INT32_T
20004 #endif
20006 #ifndef _UINT8_T
20007 #define _UINT8_T
20008 #ifndef __uint8_t_defined
20009 #define __uint8_t_defined
20010 #ifndef uint8_t
20011 typedef u_int8_t uint8_t;
20012 #endif
20013 #endif
20014 #endif
20016 #ifndef _UINT16_T
20017 #define _UINT16_T
20018 #ifndef __uint16_t_defined
20019 #define __uint16_t_defined
20020 #ifndef uint16_t
20021 typedef u_int16_t uint16_t;
20022 #endif
20023 #endif
20024 #endif
20026 #ifndef _UINT32_T
20027 #define _UINT32_T
20028 #ifndef __uint32_t_defined
20029 #define __uint32_t_defined
20030 #ifndef uint32_t
20031 typedef u_int32_t uint32_t;
20032 #endif
20033 #endif
20034 #endif
20036 else
20037 sed 's/^ *//' >> tmp-stdint.h <<EOF
20039 /* Some systems have guard macros to prevent redefinitions, define them. */
20040 #ifndef _INT8_T
20041 #define _INT8_T
20042 #endif
20043 #ifndef _INT16_T
20044 #define _INT16_T
20045 #endif
20046 #ifndef _INT32_T
20047 #define _INT32_T
20048 #endif
20049 #ifndef _UINT8_T
20050 #define _UINT8_T
20051 #endif
20052 #ifndef _UINT16_T
20053 #define _UINT16_T
20054 #endif
20055 #ifndef _UINT32_T
20056 #define _UINT32_T
20057 #endif
20061 # ------------- done basic int types, emit int64_t types ------------
20062 if test "$ac_cv_type_uint64_t" = yes; then
20063 sed 's/^ *//' >> tmp-stdint.h <<EOF
20065 /* system headers have good uint64_t and int64_t */
20066 #ifndef _INT64_T
20067 #define _INT64_T
20068 #endif
20069 #ifndef _UINT64_T
20070 #define _UINT64_T
20071 #endif
20073 elif test "$ac_cv_type_u_int64_t" = yes; then
20074 sed 's/^ *//' >> tmp-stdint.h <<EOF
20076 /* system headers have an u_int64_t (and int64_t) */
20077 #ifndef _INT64_T
20078 #define _INT64_T
20079 #endif
20080 #ifndef _UINT64_T
20081 #define _UINT64_T
20082 #ifndef __uint64_t_defined
20083 #define __uint64_t_defined
20084 #ifndef uint64_t
20085 typedef u_int64_t uint64_t;
20086 #endif
20087 #endif
20088 #endif
20090 elif test -n "$acx_cv_type_int64_t"; then
20091 sed 's/^ *//' >> tmp-stdint.h <<EOF
20093 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
20094 #ifndef _INT64_T
20095 #define _INT64_T
20096 #ifndef int64_t
20097 typedef $acx_cv_type_int64_t int64_t;
20098 #endif
20099 #endif
20100 #ifndef _UINT64_T
20101 #define _UINT64_T
20102 #ifndef __uint64_t_defined
20103 #define __uint64_t_defined
20104 #ifndef uint64_t
20105 typedef unsigned $acx_cv_type_int64_t uint64_t;
20106 #endif
20107 #endif
20108 #endif
20110 else
20111 sed 's/^ *//' >> tmp-stdint.h <<EOF
20113 /* some common heuristics for int64_t, using compiler-specific tests */
20114 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
20115 #ifndef _INT64_T
20116 #define _INT64_T
20117 #ifndef __int64_t_defined
20118 #ifndef int64_t
20119 typedef long long int64_t;
20120 #endif
20121 #endif
20122 #endif
20123 #ifndef _UINT64_T
20124 #define _UINT64_T
20125 #ifndef uint64_t
20126 typedef unsigned long long uint64_t;
20127 #endif
20128 #endif
20130 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
20131 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
20132 does not implement __extension__. But that compiler doesn't define
20133 __GNUC_MINOR__. */
20134 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
20135 # define __extension__
20136 # endif
20138 # ifndef _INT64_T
20139 # define _INT64_T
20140 # ifndef int64_t
20141 __extension__ typedef long long int64_t;
20142 # endif
20143 # endif
20144 # ifndef _UINT64_T
20145 # define _UINT64_T
20146 # ifndef uint64_t
20147 __extension__ typedef unsigned long long uint64_t;
20148 # endif
20149 # endif
20151 #elif !defined __STRICT_ANSI__
20152 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
20154 # ifndef _INT64_T
20155 # define _INT64_T
20156 # ifndef int64_t
20157 typedef __int64 int64_t;
20158 # endif
20159 # endif
20160 # ifndef _UINT64_T
20161 # define _UINT64_T
20162 # ifndef uint64_t
20163 typedef unsigned __int64 uint64_t;
20164 # endif
20165 # endif
20166 # endif /* compiler */
20168 #endif /* ANSI version */
20172 # ------------- done int64_t types, emit intptr types ------------
20173 if test "$ac_cv_type_uintptr_t" != yes; then
20174 sed 's/^ *//' >> tmp-stdint.h <<EOF
20176 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
20177 #ifndef __uintptr_t_defined
20178 #ifndef uintptr_t
20179 typedef u$acx_cv_type_intptr_t uintptr_t;
20180 #endif
20181 #endif
20182 #ifndef __intptr_t_defined
20183 #ifndef intptr_t
20184 typedef $acx_cv_type_intptr_t intptr_t;
20185 #endif
20186 #endif
20190 # ------------- done intptr types, emit int_least types ------------
20191 if test "$ac_cv_type_int_least32_t" != yes; then
20192 sed 's/^ *//' >> tmp-stdint.h <<EOF
20194 /* Define int_least types */
20195 typedef int8_t int_least8_t;
20196 typedef int16_t int_least16_t;
20197 typedef int32_t int_least32_t;
20198 #ifdef _INT64_T
20199 typedef int64_t int_least64_t;
20200 #endif
20202 typedef uint8_t uint_least8_t;
20203 typedef uint16_t uint_least16_t;
20204 typedef uint32_t uint_least32_t;
20205 #ifdef _UINT64_T
20206 typedef uint64_t uint_least64_t;
20207 #endif
20211 # ------------- done intptr types, emit int_fast types ------------
20212 if test "$ac_cv_type_int_fast32_t" != yes; then
20213 sed 's/^ *//' >> tmp-stdint.h <<EOF
20215 /* Define int_fast types. short is often slow */
20216 typedef int8_t int_fast8_t;
20217 typedef int int_fast16_t;
20218 typedef int32_t int_fast32_t;
20219 #ifdef _INT64_T
20220 typedef int64_t int_fast64_t;
20221 #endif
20223 typedef uint8_t uint_fast8_t;
20224 typedef unsigned int uint_fast16_t;
20225 typedef uint32_t uint_fast32_t;
20226 #ifdef _UINT64_T
20227 typedef uint64_t uint_fast64_t;
20228 #endif
20232 if test "$ac_cv_type_uintmax_t" != yes; then
20233 sed 's/^ *//' >> tmp-stdint.h <<EOF
20235 /* Define intmax based on what we found */
20236 #ifndef intmax_t
20237 #ifdef _INT64_T
20238 typedef int64_t intmax_t;
20239 #else
20240 typedef long intmax_t;
20241 #endif
20242 #endif
20243 #ifndef uintmax_t
20244 #ifdef _UINT64_T
20245 typedef uint64_t uintmax_t;
20246 #else
20247 typedef unsigned long uintmax_t;
20248 #endif
20249 #endif
20253 sed 's/^ *//' >> tmp-stdint.h <<EOF
20255 #endif /* GCC_GENERATED_STDINT_H */
20258 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
20259 rm -f tmp-stdint.h
20260 else
20261 mv -f tmp-stdint.h gstdint.h
20265 "interception/Makefile":F) cat > vpsed$$ << \_EOF
20266 s!`test -f '$<' || echo '$(srcdir)/'`!!
20267 _EOF
20268 sed -f vpsed$$ $ac_file > tmp$$
20269 mv tmp$$ $ac_file
20270 rm vpsed$$
20271 echo 'MULTISUBDIR =' >> $ac_file
20272 ml_norecursion=yes
20273 . ${multi_basedir}/config-ml.in
20274 { ml_norecursion=; unset ml_norecursion;}
20276 "sanitizer_common/Makefile":F) cat > vpsed$$ << \_EOF
20277 s!`test -f '$<' || echo '$(srcdir)/'`!!
20278 _EOF
20279 sed -f vpsed$$ $ac_file > tmp$$
20280 mv tmp$$ $ac_file
20281 rm vpsed$$
20282 echo 'MULTISUBDIR =' >> $ac_file
20283 ml_norecursion=yes
20284 . ${multi_basedir}/config-ml.in
20285 { ml_norecursion=; unset ml_norecursion;}
20287 "libbacktrace/Makefile":F) cat > vpsed$$ << \_EOF
20288 s!`test -f '$<' || echo '$(srcdir)/'`!!
20289 _EOF
20290 sed -f vpsed$$ $ac_file > tmp$$
20291 mv tmp$$ $ac_file
20292 rm vpsed$$
20293 echo 'MULTISUBDIR =' >> $ac_file
20294 ml_norecursion=yes
20295 . ${multi_basedir}/config-ml.in
20296 { ml_norecursion=; unset ml_norecursion;}
20298 "lsan/Makefile":F) cat > vpsed$$ << \_EOF
20299 s!`test -f '$<' || echo '$(srcdir)/'`!!
20300 _EOF
20301 sed -f vpsed$$ $ac_file > tmp$$
20302 mv tmp$$ $ac_file
20303 rm vpsed$$
20304 echo 'MULTISUBDIR =' >> $ac_file
20305 ml_norecursion=yes
20306 . ${multi_basedir}/config-ml.in
20307 { ml_norecursion=; unset ml_norecursion;}
20309 "asan/Makefile":F) cat > vpsed$$ << \_EOF
20310 s!`test -f '$<' || echo '$(srcdir)/'`!!
20311 _EOF
20312 sed -f vpsed$$ $ac_file > tmp$$
20313 mv tmp$$ $ac_file
20314 rm vpsed$$
20315 echo 'MULTISUBDIR =' >> $ac_file
20316 ml_norecursion=yes
20317 . ${multi_basedir}/config-ml.in
20318 { ml_norecursion=; unset ml_norecursion;}
20320 "ubsan/Makefile":F) cat > vpsed$$ << \_EOF
20321 s!`test -f '$<' || echo '$(srcdir)/'`!!
20322 _EOF
20323 sed -f vpsed$$ $ac_file > tmp$$
20324 mv tmp$$ $ac_file
20325 rm vpsed$$
20326 echo 'MULTISUBDIR =' >> $ac_file
20327 ml_norecursion=yes
20328 . ${multi_basedir}/config-ml.in
20329 { ml_norecursion=; unset ml_norecursion;}
20331 "tsan/Makefile":F) cat > vpsed$$ << \_EOF
20332 s!`test -f '$<' || echo '$(srcdir)/'`!!
20333 _EOF
20334 sed -f vpsed$$ $ac_file > tmp$$
20335 mv tmp$$ $ac_file
20336 rm vpsed$$
20337 echo 'MULTISUBDIR =' >> $ac_file
20338 ml_norecursion=yes
20339 . ${multi_basedir}/config-ml.in
20340 { ml_norecursion=; unset ml_norecursion;}
20342 "hwasan/Makefile":F) cat > vpsed$$ << \_EOF
20343 s!`test -f '$<' || echo '$(srcdir)/'`!!
20344 _EOF
20345 sed -f vpsed$$ $ac_file > tmp$$
20346 mv tmp$$ $ac_file
20347 rm vpsed$$
20348 echo 'MULTISUBDIR =' >> $ac_file
20349 ml_norecursion=yes
20350 . ${multi_basedir}/config-ml.in
20351 { ml_norecursion=; unset ml_norecursion;}
20354 esac
20355 done # for ac_tag
20358 as_fn_exit 0
20359 _ACEOF
20360 ac_clean_files=$ac_clean_files_save
20362 test $ac_write_fail = 0 ||
20363 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20366 # configure is writing to config.log, and then calls config.status.
20367 # config.status does its own redirection, appending to config.log.
20368 # Unfortunately, on DOS this fails, as config.log is still kept open
20369 # by configure, so config.status won't be able to write to it; its
20370 # output is simply discarded. So we exec the FD to /dev/null,
20371 # effectively closing config.log, so it can be properly (re)opened and
20372 # appended to by config.status. When coming back to configure, we
20373 # need to make the FD available again.
20374 if test "$no_create" != yes; then
20375 ac_cs_success=:
20376 ac_config_status_args=
20377 test "$silent" = yes &&
20378 ac_config_status_args="$ac_config_status_args --quiet"
20379 exec 5>/dev/null
20380 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20381 exec 5>>config.log
20382 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20383 # would make configure fail if this is the last instruction.
20384 $ac_cs_success || as_fn_exit 1
20386 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20388 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}