]> git.ipfire.org Git - thirdparty/gcc.git/blob - libsanitizer/configure
[arm] fix bootstrap failure due to uninitialized warning
[thirdparty/gcc.git] / libsanitizer / configure
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.
4 #
5 # Report bugs to <libsanitizer>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
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 ## -------------------- ##
16
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 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
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"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
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=';'
80 }
81 fi
82
83
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"
90
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
97 do
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
103
104 ;;
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
110 fi
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
114 fi
115
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='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
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
159 fi
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 *) :
175 ;;
176 esac
177 fi
178 "
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; }
184
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 :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
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
202
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
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
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
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
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
235 fi
236 fi
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
246
247
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
268 fi
269
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."
281 fi
282 exit 1
283 fi
284 fi
285 fi
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
291
292 ## --------------------- ##
293 ## M4sh Shell Functions. ##
294 ## --------------------- ##
295 # as_fn_unset VAR
296 # ---------------
297 # Portably unset VAR.
298 as_fn_unset ()
299 {
300 { eval $1=; unset $1;}
301 }
302 as_unset=as_fn_unset
303
304 # as_fn_set_status STATUS
305 # -----------------------
306 # Set $? to STATUS, without forking.
307 as_fn_set_status ()
308 {
309 return $1
310 } # as_fn_set_status
311
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 ()
316 {
317 set +e
318 as_fn_set_status $1
319 exit $1
320 } # as_fn_exit
321
322 # as_fn_mkdir_p
323 # -------------
324 # Create "$as_dir" as a directory, including parents if necessary.
325 as_fn_mkdir_p ()
326 {
327
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/
347 q
348 }
349 /^X\(\/\/\)[^/].*/{
350 s//\1/
351 q
352 }
353 /^X\(\/\/\)$/{
354 s//\1/
355 q
356 }
357 /^X\(\/\).*/{
358 s//\1/
359 q
360 }
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"
366
367
368 } # as_fn_mkdir_p
369
370 # as_fn_executable_p FILE
371 # -----------------------
372 # Test if FILE is an executable regular file.
373 as_fn_executable_p ()
374 {
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 ()
385 {
386 eval $1+=\$2
387 }'
388 else
389 as_fn_append ()
390 {
391 eval $1=\$$1\$2
392 }
393 fi # as_fn_append
394
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 ()
402 {
403 as_val=$(( $* ))
404 }'
405 else
406 as_fn_arith ()
407 {
408 as_val=`expr "$@" || test $? -eq 1`
409 }
410 fi # as_fn_arith
411
412
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 ()
419 {
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
424 fi
425 $as_echo "$as_me: error: $2" >&2
426 as_fn_exit $as_status
427 } # as_fn_error
428
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
434 fi
435
436 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
437 as_basename=basename
438 else
439 as_basename=false
440 fi
441
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
446 fi
447
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/
455 q
456 }
457 /^X\/\(\/\/\)$/{
458 s//\1/
459 q
460 }
461 /^X\/\(\/\).*/{
462 s//\1/
463 q
464 }
465 s/.*/./; q'`
466
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
473
474
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 '
481 p
482 /[$]LINENO/=
483 ' <$as_myself |
484 sed '
485 s/[$]LINENO.*/&-/
486 t lineno
487 b
488 :lineno
489 N
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; }
497
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
508 }
509
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;;
519 *)
520 ECHO_N='-n';;
521 esac
522
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
529 fi
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'
543 fi
544 else
545 as_ln_s='cp -pR'
546 fi
547 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
548 rmdir conf$$.dir 2>/dev/null
549
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
555 fi
556
557 as_test_x='test -x'
558 as_executable_p=as_fn_executable_p
559
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'"
562
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'"
565
566 SHELL=${CONFIG_SHELL-/bin/sh}
567
568
569 test -n "$DJDIR" || exec 7<&0 </dev/null
570 exec 6>&1
571
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`
576
577 #
578 # Initializations.
579 #
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=
588
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=''
596
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"
633
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 SANITIZER_COMMON_TARGET_DEPENDENT_OBJECTS
643 TSAN_TARGET_DEPENDENT_OBJECTS
644 LIBBACKTRACE_SUPPORTED_FALSE
645 LIBBACKTRACE_SUPPORTED_TRUE
646 RPC_DEFS
647 BACKTRACE_SUPPORTS_THREADS
648 BACKTRACE_USES_MALLOC
649 ALLOC_FILE
650 VIEW_FILE
651 BACKTRACE_SUPPORTED
652 FORMAT_FILE
653 SANITIZER_SUPPORTED_FALSE
654 SANITIZER_SUPPORTED_TRUE
655 USING_MAC_INTERPOSE_FALSE
656 USING_MAC_INTERPOSE_TRUE
657 link_liblsan
658 link_libubsan
659 link_libtsan
660 link_libasan
661 LSAN_SUPPORTED_FALSE
662 LSAN_SUPPORTED_TRUE
663 TSAN_SUPPORTED_FALSE
664 TSAN_SUPPORTED_TRUE
665 enable_static
666 enable_shared
667 CXXCPP
668 OTOOL64
669 OTOOL
670 LIPO
671 NMEDIT
672 DSYMUTIL
673 AR
674 OBJDUMP
675 LN_S
676 NM
677 ac_ct_DUMPBIN
678 DUMPBIN
679 LD
680 FGREP
681 SED
682 LIBTOOL
683 RANLIB
684 am__fastdepCCAS_FALSE
685 am__fastdepCCAS_TRUE
686 CCASDEPMODE
687 CCASFLAGS
688 CCAS
689 am__fastdepCXX_FALSE
690 am__fastdepCXX_TRUE
691 CXXDEPMODE
692 ac_ct_CXX
693 CXXFLAGS
694 CXX
695 toolexeclibdir
696 toolexecdir
697 MAINT
698 MAINTAINER_MODE_FALSE
699 MAINTAINER_MODE_TRUE
700 AM_BACKSLASH
701 AM_DEFAULT_VERBOSITY
702 AM_DEFAULT_V
703 AM_V
704 am__fastdepCC_FALSE
705 am__fastdepCC_TRUE
706 CCDEPMODE
707 am__nodep
708 AMDEPBACKSLASH
709 AMDEP_FALSE
710 AMDEP_TRUE
711 am__quote
712 am__include
713 DEPDIR
714 am__untar
715 am__tar
716 AMTAR
717 am__leading_dot
718 SET_MAKE
719 AWK
720 mkdir_p
721 MKDIR_P
722 INSTALL_STRIP_PROGRAM
723 STRIP
724 install_sh
725 MAKEINFO
726 AUTOHEADER
727 AUTOMAKE
728 AUTOCONF
729 ACLOCAL
730 VERSION
731 PACKAGE
732 CYGPATH_W
733 am__isrc
734 INSTALL_DATA
735 INSTALL_SCRIPT
736 INSTALL_PROGRAM
737 LIBSTDCXX_RAW_CXX_LDFLAGS
738 LIBSTDCXX_RAW_CXX_CXXFLAGS
739 target_noncanonical
740 target_os
741 target_vendor
742 target_cpu
743 target
744 host_os
745 host_vendor
746 host_cpu
747 host
748 build_os
749 build_vendor
750 build_cpu
751 build
752 EGREP
753 GREP
754 CPP
755 OBJEXT
756 EXEEXT
757 ac_ct_CC
758 CPPFLAGS
759 LDFLAGS
760 CFLAGS
761 CC
762 multi_basedir
763 target_alias
764 host_alias
765 build_alias
766 LIBS
767 ECHO_T
768 ECHO_N
769 ECHO_C
770 DEFS
771 mandir
772 localedir
773 libdir
774 psdir
775 pdfdir
776 dvidir
777 htmldir
778 infodir
779 docdir
780 oldincludedir
781 includedir
782 localstatedir
783 sharedstatedir
784 sysconfdir
785 datadir
786 datarootdir
787 libexecdir
788 sbindir
789 bindir
790 program_transform_name
791 prefix
792 exec_prefix
793 PACKAGE_URL
794 PACKAGE_BUGREPORT
795 PACKAGE_STRING
796 PACKAGE_VERSION
797 PACKAGE_TARNAME
798 PACKAGE_NAME
799 PATH_SEPARATOR
800 SHELL'
801 ac_subst_files=''
802 ac_user_opts='
803 enable_option_checking
804 enable_multilib
805 enable_version_specific_runtime_libs
806 enable_dependency_tracking
807 enable_silent_rules
808 enable_maintainer_mode
809 enable_shared
810 enable_static
811 with_pic
812 enable_fast_install
813 with_gnu_ld
814 enable_libtool_lock
815 with_gcc_major_version_only
816 enable_cet
817 '
818 ac_precious_vars='build_alias
819 host_alias
820 target_alias
821 CC
822 CFLAGS
823 LDFLAGS
824 LIBS
825 CPPFLAGS
826 CPP
827 CXX
828 CXXFLAGS
829 CCC
830 CCAS
831 CCASFLAGS
832 CXXCPP'
833
834
835 # Initialize some variables set by options.
836 ac_init_help=
837 ac_init_version=false
838 ac_unrecognized_opts=
839 ac_unrecognized_sep=
840 # The variables have the same names as the options, with
841 # dashes changed to underlines.
842 cache_file=/dev/null
843 exec_prefix=NONE
844 no_create=
845 no_recursion=
846 prefix=NONE
847 program_prefix=NONE
848 program_suffix=NONE
849 program_transform_name=s,x,x,
850 silent=
851 site=
852 srcdir=
853 verbose=
854 x_includes=NONE
855 x_libraries=NONE
856
857 # Installation directory options.
858 # These are left unexpanded so users can "make install exec_prefix=/foo"
859 # and all the variables that are supposed to be based on exec_prefix
860 # by default will actually change.
861 # Use braces instead of parens because sh, perl, etc. also accept them.
862 # (The list follows the same order as the GNU Coding Standards.)
863 bindir='${exec_prefix}/bin'
864 sbindir='${exec_prefix}/sbin'
865 libexecdir='${exec_prefix}/libexec'
866 datarootdir='${prefix}/share'
867 datadir='${datarootdir}'
868 sysconfdir='${prefix}/etc'
869 sharedstatedir='${prefix}/com'
870 localstatedir='${prefix}/var'
871 includedir='${prefix}/include'
872 oldincludedir='/usr/include'
873 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
874 infodir='${datarootdir}/info'
875 htmldir='${docdir}'
876 dvidir='${docdir}'
877 pdfdir='${docdir}'
878 psdir='${docdir}'
879 libdir='${exec_prefix}/lib'
880 localedir='${datarootdir}/locale'
881 mandir='${datarootdir}/man'
882
883 ac_prev=
884 ac_dashdash=
885 for ac_option
886 do
887 # If the previous option needs an argument, assign it.
888 if test -n "$ac_prev"; then
889 eval $ac_prev=\$ac_option
890 ac_prev=
891 continue
892 fi
893
894 case $ac_option in
895 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
896 *=) ac_optarg= ;;
897 *) ac_optarg=yes ;;
898 esac
899
900 # Accept the important Cygnus configure options, so we can diagnose typos.
901
902 case $ac_dashdash$ac_option in
903 --)
904 ac_dashdash=yes ;;
905
906 -bindir | --bindir | --bindi | --bind | --bin | --bi)
907 ac_prev=bindir ;;
908 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
909 bindir=$ac_optarg ;;
910
911 -build | --build | --buil | --bui | --bu)
912 ac_prev=build_alias ;;
913 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
914 build_alias=$ac_optarg ;;
915
916 -cache-file | --cache-file | --cache-fil | --cache-fi \
917 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
918 ac_prev=cache_file ;;
919 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
920 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
921 cache_file=$ac_optarg ;;
922
923 --config-cache | -C)
924 cache_file=config.cache ;;
925
926 -datadir | --datadir | --datadi | --datad)
927 ac_prev=datadir ;;
928 -datadir=* | --datadir=* | --datadi=* | --datad=*)
929 datadir=$ac_optarg ;;
930
931 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
932 | --dataroo | --dataro | --datar)
933 ac_prev=datarootdir ;;
934 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
935 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
936 datarootdir=$ac_optarg ;;
937
938 -disable-* | --disable-*)
939 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
940 # Reject names that are not valid shell variable names.
941 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
942 as_fn_error $? "invalid feature name: $ac_useropt"
943 ac_useropt_orig=$ac_useropt
944 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
945 case $ac_user_opts in
946 *"
947 "enable_$ac_useropt"
948 "*) ;;
949 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
950 ac_unrecognized_sep=', ';;
951 esac
952 eval enable_$ac_useropt=no ;;
953
954 -docdir | --docdir | --docdi | --doc | --do)
955 ac_prev=docdir ;;
956 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
957 docdir=$ac_optarg ;;
958
959 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
960 ac_prev=dvidir ;;
961 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
962 dvidir=$ac_optarg ;;
963
964 -enable-* | --enable-*)
965 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
966 # Reject names that are not valid shell variable names.
967 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
968 as_fn_error $? "invalid feature name: $ac_useropt"
969 ac_useropt_orig=$ac_useropt
970 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
971 case $ac_user_opts in
972 *"
973 "enable_$ac_useropt"
974 "*) ;;
975 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
976 ac_unrecognized_sep=', ';;
977 esac
978 eval enable_$ac_useropt=\$ac_optarg ;;
979
980 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
981 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
982 | --exec | --exe | --ex)
983 ac_prev=exec_prefix ;;
984 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
985 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
986 | --exec=* | --exe=* | --ex=*)
987 exec_prefix=$ac_optarg ;;
988
989 -gas | --gas | --ga | --g)
990 # Obsolete; use --with-gas.
991 with_gas=yes ;;
992
993 -help | --help | --hel | --he | -h)
994 ac_init_help=long ;;
995 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
996 ac_init_help=recursive ;;
997 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
998 ac_init_help=short ;;
999
1000 -host | --host | --hos | --ho)
1001 ac_prev=host_alias ;;
1002 -host=* | --host=* | --hos=* | --ho=*)
1003 host_alias=$ac_optarg ;;
1004
1005 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1006 ac_prev=htmldir ;;
1007 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1008 | --ht=*)
1009 htmldir=$ac_optarg ;;
1010
1011 -includedir | --includedir | --includedi | --included | --include \
1012 | --includ | --inclu | --incl | --inc)
1013 ac_prev=includedir ;;
1014 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1015 | --includ=* | --inclu=* | --incl=* | --inc=*)
1016 includedir=$ac_optarg ;;
1017
1018 -infodir | --infodir | --infodi | --infod | --info | --inf)
1019 ac_prev=infodir ;;
1020 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1021 infodir=$ac_optarg ;;
1022
1023 -libdir | --libdir | --libdi | --libd)
1024 ac_prev=libdir ;;
1025 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1026 libdir=$ac_optarg ;;
1027
1028 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1029 | --libexe | --libex | --libe)
1030 ac_prev=libexecdir ;;
1031 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1032 | --libexe=* | --libex=* | --libe=*)
1033 libexecdir=$ac_optarg ;;
1034
1035 -localedir | --localedir | --localedi | --localed | --locale)
1036 ac_prev=localedir ;;
1037 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1038 localedir=$ac_optarg ;;
1039
1040 -localstatedir | --localstatedir | --localstatedi | --localstated \
1041 | --localstate | --localstat | --localsta | --localst | --locals)
1042 ac_prev=localstatedir ;;
1043 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1044 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1045 localstatedir=$ac_optarg ;;
1046
1047 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1048 ac_prev=mandir ;;
1049 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1050 mandir=$ac_optarg ;;
1051
1052 -nfp | --nfp | --nf)
1053 # Obsolete; use --without-fp.
1054 with_fp=no ;;
1055
1056 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1057 | --no-cr | --no-c | -n)
1058 no_create=yes ;;
1059
1060 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1061 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1062 no_recursion=yes ;;
1063
1064 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1065 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1066 | --oldin | --oldi | --old | --ol | --o)
1067 ac_prev=oldincludedir ;;
1068 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1069 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1070 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1071 oldincludedir=$ac_optarg ;;
1072
1073 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1074 ac_prev=prefix ;;
1075 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1076 prefix=$ac_optarg ;;
1077
1078 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1079 | --program-pre | --program-pr | --program-p)
1080 ac_prev=program_prefix ;;
1081 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1082 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1083 program_prefix=$ac_optarg ;;
1084
1085 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1086 | --program-suf | --program-su | --program-s)
1087 ac_prev=program_suffix ;;
1088 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1089 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1090 program_suffix=$ac_optarg ;;
1091
1092 -program-transform-name | --program-transform-name \
1093 | --program-transform-nam | --program-transform-na \
1094 | --program-transform-n | --program-transform- \
1095 | --program-transform | --program-transfor \
1096 | --program-transfo | --program-transf \
1097 | --program-trans | --program-tran \
1098 | --progr-tra | --program-tr | --program-t)
1099 ac_prev=program_transform_name ;;
1100 -program-transform-name=* | --program-transform-name=* \
1101 | --program-transform-nam=* | --program-transform-na=* \
1102 | --program-transform-n=* | --program-transform-=* \
1103 | --program-transform=* | --program-transfor=* \
1104 | --program-transfo=* | --program-transf=* \
1105 | --program-trans=* | --program-tran=* \
1106 | --progr-tra=* | --program-tr=* | --program-t=*)
1107 program_transform_name=$ac_optarg ;;
1108
1109 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1110 ac_prev=pdfdir ;;
1111 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1112 pdfdir=$ac_optarg ;;
1113
1114 -psdir | --psdir | --psdi | --psd | --ps)
1115 ac_prev=psdir ;;
1116 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1117 psdir=$ac_optarg ;;
1118
1119 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1120 | -silent | --silent | --silen | --sile | --sil)
1121 silent=yes ;;
1122
1123 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1124 ac_prev=sbindir ;;
1125 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1126 | --sbi=* | --sb=*)
1127 sbindir=$ac_optarg ;;
1128
1129 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1130 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1131 | --sharedst | --shareds | --shared | --share | --shar \
1132 | --sha | --sh)
1133 ac_prev=sharedstatedir ;;
1134 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1135 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1136 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1137 | --sha=* | --sh=*)
1138 sharedstatedir=$ac_optarg ;;
1139
1140 -site | --site | --sit)
1141 ac_prev=site ;;
1142 -site=* | --site=* | --sit=*)
1143 site=$ac_optarg ;;
1144
1145 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1146 ac_prev=srcdir ;;
1147 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1148 srcdir=$ac_optarg ;;
1149
1150 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1151 | --syscon | --sysco | --sysc | --sys | --sy)
1152 ac_prev=sysconfdir ;;
1153 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1154 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1155 sysconfdir=$ac_optarg ;;
1156
1157 -target | --target | --targe | --targ | --tar | --ta | --t)
1158 ac_prev=target_alias ;;
1159 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1160 target_alias=$ac_optarg ;;
1161
1162 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1163 verbose=yes ;;
1164
1165 -version | --version | --versio | --versi | --vers | -V)
1166 ac_init_version=: ;;
1167
1168 -with-* | --with-*)
1169 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1170 # Reject names that are not valid shell variable names.
1171 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1172 as_fn_error $? "invalid package name: $ac_useropt"
1173 ac_useropt_orig=$ac_useropt
1174 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1175 case $ac_user_opts in
1176 *"
1177 "with_$ac_useropt"
1178 "*) ;;
1179 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1180 ac_unrecognized_sep=', ';;
1181 esac
1182 eval with_$ac_useropt=\$ac_optarg ;;
1183
1184 -without-* | --without-*)
1185 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1186 # Reject names that are not valid shell variable names.
1187 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1188 as_fn_error $? "invalid package name: $ac_useropt"
1189 ac_useropt_orig=$ac_useropt
1190 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1191 case $ac_user_opts in
1192 *"
1193 "with_$ac_useropt"
1194 "*) ;;
1195 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1196 ac_unrecognized_sep=', ';;
1197 esac
1198 eval with_$ac_useropt=no ;;
1199
1200 --x)
1201 # Obsolete; use --with-x.
1202 with_x=yes ;;
1203
1204 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1205 | --x-incl | --x-inc | --x-in | --x-i)
1206 ac_prev=x_includes ;;
1207 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1208 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1209 x_includes=$ac_optarg ;;
1210
1211 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1212 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1213 ac_prev=x_libraries ;;
1214 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1215 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1216 x_libraries=$ac_optarg ;;
1217
1218 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1219 Try \`$0 --help' for more information"
1220 ;;
1221
1222 *=*)
1223 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1224 # Reject names that are not valid shell variable names.
1225 case $ac_envvar in #(
1226 '' | [0-9]* | *[!_$as_cr_alnum]* )
1227 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1228 esac
1229 eval $ac_envvar=\$ac_optarg
1230 export $ac_envvar ;;
1231
1232 *)
1233 # FIXME: should be removed in autoconf 3.0.
1234 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1235 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1236 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1237 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1238 ;;
1239
1240 esac
1241 done
1242
1243 if test -n "$ac_prev"; then
1244 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1245 as_fn_error $? "missing argument to $ac_option"
1246 fi
1247
1248 if test -n "$ac_unrecognized_opts"; then
1249 case $enable_option_checking in
1250 no) ;;
1251 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1252 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1253 esac
1254 fi
1255
1256 # Check all directory arguments for consistency.
1257 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1258 datadir sysconfdir sharedstatedir localstatedir includedir \
1259 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1260 libdir localedir mandir
1261 do
1262 eval ac_val=\$$ac_var
1263 # Remove trailing slashes.
1264 case $ac_val in
1265 */ )
1266 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1267 eval $ac_var=\$ac_val;;
1268 esac
1269 # Be sure to have absolute directory names.
1270 case $ac_val in
1271 [\\/$]* | ?:[\\/]* ) continue;;
1272 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1273 esac
1274 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1275 done
1276
1277 # There might be people who depend on the old broken behavior: `$host'
1278 # used to hold the argument of --host etc.
1279 # FIXME: To remove some day.
1280 build=$build_alias
1281 host=$host_alias
1282 target=$target_alias
1283
1284 # FIXME: To remove some day.
1285 if test "x$host_alias" != x; then
1286 if test "x$build_alias" = x; then
1287 cross_compiling=maybe
1288 elif test "x$build_alias" != "x$host_alias"; then
1289 cross_compiling=yes
1290 fi
1291 fi
1292
1293 ac_tool_prefix=
1294 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1295
1296 test "$silent" = yes && exec 6>/dev/null
1297
1298
1299 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1300 ac_ls_di=`ls -di .` &&
1301 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1302 as_fn_error $? "working directory cannot be determined"
1303 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1304 as_fn_error $? "pwd does not report name of working directory"
1305
1306
1307 # Find the source files, if location was not specified.
1308 if test -z "$srcdir"; then
1309 ac_srcdir_defaulted=yes
1310 # Try the directory containing this script, then the parent directory.
1311 ac_confdir=`$as_dirname -- "$as_myself" ||
1312 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1313 X"$as_myself" : 'X\(//\)[^/]' \| \
1314 X"$as_myself" : 'X\(//\)$' \| \
1315 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1316 $as_echo X"$as_myself" |
1317 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1318 s//\1/
1319 q
1320 }
1321 /^X\(\/\/\)[^/].*/{
1322 s//\1/
1323 q
1324 }
1325 /^X\(\/\/\)$/{
1326 s//\1/
1327 q
1328 }
1329 /^X\(\/\).*/{
1330 s//\1/
1331 q
1332 }
1333 s/.*/./; q'`
1334 srcdir=$ac_confdir
1335 if test ! -r "$srcdir/$ac_unique_file"; then
1336 srcdir=..
1337 fi
1338 else
1339 ac_srcdir_defaulted=no
1340 fi
1341 if test ! -r "$srcdir/$ac_unique_file"; then
1342 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1343 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1344 fi
1345 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1346 ac_abs_confdir=`(
1347 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1348 pwd)`
1349 # When building in place, set srcdir=.
1350 if test "$ac_abs_confdir" = "$ac_pwd"; then
1351 srcdir=.
1352 fi
1353 # Remove unnecessary trailing slashes from srcdir.
1354 # Double slashes in file names in object file debugging info
1355 # mess up M-x gdb in Emacs.
1356 case $srcdir in
1357 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1358 esac
1359 for ac_var in $ac_precious_vars; do
1360 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1361 eval ac_env_${ac_var}_value=\$${ac_var}
1362 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1363 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1364 done
1365
1366 #
1367 # Report the --help message.
1368 #
1369 if test "$ac_init_help" = "long"; then
1370 # Omit some internal or obsolete options to make the list less imposing.
1371 # This message is too long to be a string in the A/UX 3.1 sh.
1372 cat <<_ACEOF
1373 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1374
1375 Usage: $0 [OPTION]... [VAR=VALUE]...
1376
1377 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1378 VAR=VALUE. See below for descriptions of some of the useful variables.
1379
1380 Defaults for the options are specified in brackets.
1381
1382 Configuration:
1383 -h, --help display this help and exit
1384 --help=short display options specific to this package
1385 --help=recursive display the short help of all the included packages
1386 -V, --version display version information and exit
1387 -q, --quiet, --silent do not print \`checking ...' messages
1388 --cache-file=FILE cache test results in FILE [disabled]
1389 -C, --config-cache alias for \`--cache-file=config.cache'
1390 -n, --no-create do not create output files
1391 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1392
1393 Installation directories:
1394 --prefix=PREFIX install architecture-independent files in PREFIX
1395 [$ac_default_prefix]
1396 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1397 [PREFIX]
1398
1399 By default, \`make install' will install all the files in
1400 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1401 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1402 for instance \`--prefix=\$HOME'.
1403
1404 For better control, use the options below.
1405
1406 Fine tuning of the installation directories:
1407 --bindir=DIR user executables [EPREFIX/bin]
1408 --sbindir=DIR system admin executables [EPREFIX/sbin]
1409 --libexecdir=DIR program executables [EPREFIX/libexec]
1410 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1411 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1412 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1413 --libdir=DIR object code libraries [EPREFIX/lib]
1414 --includedir=DIR C header files [PREFIX/include]
1415 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1416 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1417 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1418 --infodir=DIR info documentation [DATAROOTDIR/info]
1419 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1420 --mandir=DIR man documentation [DATAROOTDIR/man]
1421 --docdir=DIR documentation root [DATAROOTDIR/doc/package-unused]
1422 --htmldir=DIR html documentation [DOCDIR]
1423 --dvidir=DIR dvi documentation [DOCDIR]
1424 --pdfdir=DIR pdf documentation [DOCDIR]
1425 --psdir=DIR ps documentation [DOCDIR]
1426 _ACEOF
1427
1428 cat <<\_ACEOF
1429
1430 Program names:
1431 --program-prefix=PREFIX prepend PREFIX to installed program names
1432 --program-suffix=SUFFIX append SUFFIX to installed program names
1433 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1434
1435 System types:
1436 --build=BUILD configure for building on BUILD [guessed]
1437 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1438 --target=TARGET configure for building compilers for TARGET [HOST]
1439 _ACEOF
1440 fi
1441
1442 if test -n "$ac_init_help"; then
1443 case $ac_init_help in
1444 short | recursive ) echo "Configuration of package-unused version-unused:";;
1445 esac
1446 cat <<\_ACEOF
1447
1448 Optional Features:
1449 --disable-option-checking ignore unrecognized --enable/--with options
1450 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1451 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1452 --enable-multilib build many library versions (default)
1453 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
1454 --enable-dependency-tracking
1455 do not reject slow dependency extractors
1456 --disable-dependency-tracking
1457 speeds up one-time build
1458 --enable-silent-rules less verbose build output (undo: "make V=1")
1459 --disable-silent-rules verbose build output (undo: "make V=0")
1460 --enable-maintainer-mode
1461 enable make rules and dependencies not useful (and
1462 sometimes confusing) to the casual installer
1463 --enable-shared[=PKGS] build shared libraries [default=yes]
1464 --enable-static[=PKGS] build static libraries [default=yes]
1465 --enable-fast-install[=PKGS]
1466 optimize for fast installation [default=yes]
1467 --disable-libtool-lock avoid locking (might break parallel builds)
1468 --enable-cet enable Intel CET in target libraries [default=no]
1469
1470 Optional Packages:
1471 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1472 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1473 --with-pic try to use only PIC/non-PIC objects [default=use
1474 both]
1475 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1476 --with-gcc-major-version-only
1477 use only GCC major number in filesystem paths
1478
1479 Some influential environment variables:
1480 CC C compiler command
1481 CFLAGS C compiler flags
1482 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1483 nonstandard directory <lib dir>
1484 LIBS libraries to pass to the linker, e.g. -l<library>
1485 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1486 you have headers in a nonstandard directory <include dir>
1487 CPP C preprocessor
1488 CXX C++ compiler command
1489 CXXFLAGS C++ compiler flags
1490 CCAS assembler compiler command (defaults to CC)
1491 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1492 CXXCPP C++ preprocessor
1493
1494 Use these variables to override the choices made by `configure' or to help
1495 it to find libraries and programs with nonstandard names/locations.
1496
1497 Report bugs to <libsanitizer>.
1498 _ACEOF
1499 ac_status=$?
1500 fi
1501
1502 if test "$ac_init_help" = "recursive"; then
1503 # If there are subdirs, report their specific --help.
1504 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1505 test -d "$ac_dir" ||
1506 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1507 continue
1508 ac_builddir=.
1509
1510 case "$ac_dir" in
1511 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1512 *)
1513 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1514 # A ".." for each directory in $ac_dir_suffix.
1515 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1516 case $ac_top_builddir_sub in
1517 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1518 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1519 esac ;;
1520 esac
1521 ac_abs_top_builddir=$ac_pwd
1522 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1523 # for backward compatibility:
1524 ac_top_builddir=$ac_top_build_prefix
1525
1526 case $srcdir in
1527 .) # We are building in place.
1528 ac_srcdir=.
1529 ac_top_srcdir=$ac_top_builddir_sub
1530 ac_abs_top_srcdir=$ac_pwd ;;
1531 [\\/]* | ?:[\\/]* ) # Absolute name.
1532 ac_srcdir=$srcdir$ac_dir_suffix;
1533 ac_top_srcdir=$srcdir
1534 ac_abs_top_srcdir=$srcdir ;;
1535 *) # Relative name.
1536 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1537 ac_top_srcdir=$ac_top_build_prefix$srcdir
1538 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1539 esac
1540 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1541
1542 cd "$ac_dir" || { ac_status=$?; continue; }
1543 # Check for guested configure.
1544 if test -f "$ac_srcdir/configure.gnu"; then
1545 echo &&
1546 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1547 elif test -f "$ac_srcdir/configure"; then
1548 echo &&
1549 $SHELL "$ac_srcdir/configure" --help=recursive
1550 else
1551 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1552 fi || ac_status=$?
1553 cd "$ac_pwd" || { ac_status=$?; break; }
1554 done
1555 fi
1556
1557 test -n "$ac_init_help" && exit $ac_status
1558 if $ac_init_version; then
1559 cat <<\_ACEOF
1560 package-unused configure version-unused
1561 generated by GNU Autoconf 2.69
1562
1563 Copyright (C) 2012 Free Software Foundation, Inc.
1564 This configure script is free software; the Free Software Foundation
1565 gives unlimited permission to copy, distribute and modify it.
1566 _ACEOF
1567 exit
1568 fi
1569
1570 ## ------------------------ ##
1571 ## Autoconf initialization. ##
1572 ## ------------------------ ##
1573
1574 # ac_fn_c_try_compile LINENO
1575 # --------------------------
1576 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1577 ac_fn_c_try_compile ()
1578 {
1579 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1580 rm -f conftest.$ac_objext
1581 if { { ac_try="$ac_compile"
1582 case "(($ac_try" in
1583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1584 *) ac_try_echo=$ac_try;;
1585 esac
1586 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1587 $as_echo "$ac_try_echo"; } >&5
1588 (eval "$ac_compile") 2>conftest.err
1589 ac_status=$?
1590 if test -s conftest.err; then
1591 grep -v '^ *+' conftest.err >conftest.er1
1592 cat conftest.er1 >&5
1593 mv -f conftest.er1 conftest.err
1594 fi
1595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1596 test $ac_status = 0; } && {
1597 test -z "$ac_c_werror_flag" ||
1598 test ! -s conftest.err
1599 } && test -s conftest.$ac_objext; then :
1600 ac_retval=0
1601 else
1602 $as_echo "$as_me: failed program was:" >&5
1603 sed 's/^/| /' conftest.$ac_ext >&5
1604
1605 ac_retval=1
1606 fi
1607 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1608 as_fn_set_status $ac_retval
1609
1610 } # ac_fn_c_try_compile
1611
1612 # ac_fn_c_try_cpp LINENO
1613 # ----------------------
1614 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1615 ac_fn_c_try_cpp ()
1616 {
1617 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1618 if { { ac_try="$ac_cpp conftest.$ac_ext"
1619 case "(($ac_try" in
1620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1621 *) ac_try_echo=$ac_try;;
1622 esac
1623 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1624 $as_echo "$ac_try_echo"; } >&5
1625 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1626 ac_status=$?
1627 if test -s conftest.err; then
1628 grep -v '^ *+' conftest.err >conftest.er1
1629 cat conftest.er1 >&5
1630 mv -f conftest.er1 conftest.err
1631 fi
1632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1633 test $ac_status = 0; } > conftest.i && {
1634 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1635 test ! -s conftest.err
1636 }; then :
1637 ac_retval=0
1638 else
1639 $as_echo "$as_me: failed program was:" >&5
1640 sed 's/^/| /' conftest.$ac_ext >&5
1641
1642 ac_retval=1
1643 fi
1644 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1645 as_fn_set_status $ac_retval
1646
1647 } # ac_fn_c_try_cpp
1648
1649 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1650 # -------------------------------------------------------
1651 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1652 # the include files in INCLUDES and setting the cache variable VAR
1653 # accordingly.
1654 ac_fn_c_check_header_mongrel ()
1655 {
1656 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1657 if eval \${$3+:} false; then :
1658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1659 $as_echo_n "checking for $2... " >&6; }
1660 if eval \${$3+:} false; then :
1661 $as_echo_n "(cached) " >&6
1662 fi
1663 eval ac_res=\$$3
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1665 $as_echo "$ac_res" >&6; }
1666 else
1667 # Is the header compilable?
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1669 $as_echo_n "checking $2 usability... " >&6; }
1670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1671 /* end confdefs.h. */
1672 $4
1673 #include <$2>
1674 _ACEOF
1675 if ac_fn_c_try_compile "$LINENO"; then :
1676 ac_header_compiler=yes
1677 else
1678 ac_header_compiler=no
1679 fi
1680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1682 $as_echo "$ac_header_compiler" >&6; }
1683
1684 # Is the header present?
1685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1686 $as_echo_n "checking $2 presence... " >&6; }
1687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1688 /* end confdefs.h. */
1689 #include <$2>
1690 _ACEOF
1691 if ac_fn_c_try_cpp "$LINENO"; then :
1692 ac_header_preproc=yes
1693 else
1694 ac_header_preproc=no
1695 fi
1696 rm -f conftest.err conftest.i conftest.$ac_ext
1697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1698 $as_echo "$ac_header_preproc" >&6; }
1699
1700 # So? What about this header?
1701 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1702 yes:no: )
1703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1704 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1706 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1707 ;;
1708 no:yes:* )
1709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1710 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1712 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1714 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1716 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1718 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1719 ( $as_echo "## --------------------------- ##
1720 ## Report this to libsanitizer ##
1721 ## --------------------------- ##"
1722 ) | sed "s/^/$as_me: WARNING: /" >&2
1723 ;;
1724 esac
1725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1726 $as_echo_n "checking for $2... " >&6; }
1727 if eval \${$3+:} false; then :
1728 $as_echo_n "(cached) " >&6
1729 else
1730 eval "$3=\$ac_header_compiler"
1731 fi
1732 eval ac_res=\$$3
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1734 $as_echo "$ac_res" >&6; }
1735 fi
1736 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1737
1738 } # ac_fn_c_check_header_mongrel
1739
1740 # ac_fn_c_try_run LINENO
1741 # ----------------------
1742 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1743 # that executables *can* be run.
1744 ac_fn_c_try_run ()
1745 {
1746 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1747 if { { ac_try="$ac_link"
1748 case "(($ac_try" in
1749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1750 *) ac_try_echo=$ac_try;;
1751 esac
1752 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1753 $as_echo "$ac_try_echo"; } >&5
1754 (eval "$ac_link") 2>&5
1755 ac_status=$?
1756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1757 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1758 { { case "(($ac_try" in
1759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1760 *) ac_try_echo=$ac_try;;
1761 esac
1762 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1763 $as_echo "$ac_try_echo"; } >&5
1764 (eval "$ac_try") 2>&5
1765 ac_status=$?
1766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1767 test $ac_status = 0; }; }; then :
1768 ac_retval=0
1769 else
1770 $as_echo "$as_me: program exited with status $ac_status" >&5
1771 $as_echo "$as_me: failed program was:" >&5
1772 sed 's/^/| /' conftest.$ac_ext >&5
1773
1774 ac_retval=$ac_status
1775 fi
1776 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1777 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1778 as_fn_set_status $ac_retval
1779
1780 } # ac_fn_c_try_run
1781
1782 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1783 # -------------------------------------------------------
1784 # Tests whether HEADER exists and can be compiled using the include files in
1785 # INCLUDES, setting the cache variable VAR accordingly.
1786 ac_fn_c_check_header_compile ()
1787 {
1788 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1790 $as_echo_n "checking for $2... " >&6; }
1791 if eval \${$3+:} false; then :
1792 $as_echo_n "(cached) " >&6
1793 else
1794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1795 /* end confdefs.h. */
1796 $4
1797 #include <$2>
1798 _ACEOF
1799 if ac_fn_c_try_compile "$LINENO"; then :
1800 eval "$3=yes"
1801 else
1802 eval "$3=no"
1803 fi
1804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1805 fi
1806 eval ac_res=\$$3
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1808 $as_echo "$ac_res" >&6; }
1809 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1810
1811 } # ac_fn_c_check_header_compile
1812
1813 # ac_fn_cxx_try_compile LINENO
1814 # ----------------------------
1815 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1816 ac_fn_cxx_try_compile ()
1817 {
1818 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1819 rm -f conftest.$ac_objext
1820 if { { ac_try="$ac_compile"
1821 case "(($ac_try" in
1822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1823 *) ac_try_echo=$ac_try;;
1824 esac
1825 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1826 $as_echo "$ac_try_echo"; } >&5
1827 (eval "$ac_compile") 2>conftest.err
1828 ac_status=$?
1829 if test -s conftest.err; then
1830 grep -v '^ *+' conftest.err >conftest.er1
1831 cat conftest.er1 >&5
1832 mv -f conftest.er1 conftest.err
1833 fi
1834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1835 test $ac_status = 0; } && {
1836 test -z "$ac_cxx_werror_flag" ||
1837 test ! -s conftest.err
1838 } && test -s conftest.$ac_objext; then :
1839 ac_retval=0
1840 else
1841 $as_echo "$as_me: failed program was:" >&5
1842 sed 's/^/| /' conftest.$ac_ext >&5
1843
1844 ac_retval=1
1845 fi
1846 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1847 as_fn_set_status $ac_retval
1848
1849 } # ac_fn_cxx_try_compile
1850
1851 # ac_fn_c_try_link LINENO
1852 # -----------------------
1853 # Try to link conftest.$ac_ext, and return whether this succeeded.
1854 ac_fn_c_try_link ()
1855 {
1856 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1857 rm -f conftest.$ac_objext conftest$ac_exeext
1858 if { { ac_try="$ac_link"
1859 case "(($ac_try" in
1860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1861 *) ac_try_echo=$ac_try;;
1862 esac
1863 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1864 $as_echo "$ac_try_echo"; } >&5
1865 (eval "$ac_link") 2>conftest.err
1866 ac_status=$?
1867 if test -s conftest.err; then
1868 grep -v '^ *+' conftest.err >conftest.er1
1869 cat conftest.er1 >&5
1870 mv -f conftest.er1 conftest.err
1871 fi
1872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1873 test $ac_status = 0; } && {
1874 test -z "$ac_c_werror_flag" ||
1875 test ! -s conftest.err
1876 } && test -s conftest$ac_exeext && {
1877 test "$cross_compiling" = yes ||
1878 test -x conftest$ac_exeext
1879 }; then :
1880 ac_retval=0
1881 else
1882 $as_echo "$as_me: failed program was:" >&5
1883 sed 's/^/| /' conftest.$ac_ext >&5
1884
1885 ac_retval=1
1886 fi
1887 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1888 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1889 # interfere with the next link command; also delete a directory that is
1890 # left behind by Apple's compiler. We do this before executing the actions.
1891 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1892 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1893 as_fn_set_status $ac_retval
1894
1895 } # ac_fn_c_try_link
1896
1897 # ac_fn_c_check_func LINENO FUNC VAR
1898 # ----------------------------------
1899 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1900 ac_fn_c_check_func ()
1901 {
1902 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1904 $as_echo_n "checking for $2... " >&6; }
1905 if eval \${$3+:} false; then :
1906 $as_echo_n "(cached) " >&6
1907 else
1908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1909 /* end confdefs.h. */
1910 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1911 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1912 #define $2 innocuous_$2
1913
1914 /* System header to define __stub macros and hopefully few prototypes,
1915 which can conflict with char $2 (); below.
1916 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1917 <limits.h> exists even on freestanding compilers. */
1918
1919 #ifdef __STDC__
1920 # include <limits.h>
1921 #else
1922 # include <assert.h>
1923 #endif
1924
1925 #undef $2
1926
1927 /* Override any GCC internal prototype to avoid an error.
1928 Use char because int might match the return type of a GCC
1929 builtin and then its argument prototype would still apply. */
1930 #ifdef __cplusplus
1931 extern "C"
1932 #endif
1933 char $2 ();
1934 /* The GNU C library defines this for functions which it implements
1935 to always fail with ENOSYS. Some functions are actually named
1936 something starting with __ and the normal name is an alias. */
1937 #if defined __stub_$2 || defined __stub___$2
1938 choke me
1939 #endif
1940
1941 int
1942 main ()
1943 {
1944 return $2 ();
1945 ;
1946 return 0;
1947 }
1948 _ACEOF
1949 if ac_fn_c_try_link "$LINENO"; then :
1950 eval "$3=yes"
1951 else
1952 eval "$3=no"
1953 fi
1954 rm -f core conftest.err conftest.$ac_objext \
1955 conftest$ac_exeext conftest.$ac_ext
1956 fi
1957 eval ac_res=\$$3
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1959 $as_echo "$ac_res" >&6; }
1960 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1961
1962 } # ac_fn_c_check_func
1963
1964 # ac_fn_cxx_try_cpp LINENO
1965 # ------------------------
1966 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1967 ac_fn_cxx_try_cpp ()
1968 {
1969 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1970 if { { ac_try="$ac_cpp conftest.$ac_ext"
1971 case "(($ac_try" in
1972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1973 *) ac_try_echo=$ac_try;;
1974 esac
1975 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1976 $as_echo "$ac_try_echo"; } >&5
1977 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1978 ac_status=$?
1979 if test -s conftest.err; then
1980 grep -v '^ *+' conftest.err >conftest.er1
1981 cat conftest.er1 >&5
1982 mv -f conftest.er1 conftest.err
1983 fi
1984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1985 test $ac_status = 0; } > conftest.i && {
1986 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1987 test ! -s conftest.err
1988 }; then :
1989 ac_retval=0
1990 else
1991 $as_echo "$as_me: failed program was:" >&5
1992 sed 's/^/| /' conftest.$ac_ext >&5
1993
1994 ac_retval=1
1995 fi
1996 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1997 as_fn_set_status $ac_retval
1998
1999 } # ac_fn_cxx_try_cpp
2000
2001 # ac_fn_cxx_try_link LINENO
2002 # -------------------------
2003 # Try to link conftest.$ac_ext, and return whether this succeeded.
2004 ac_fn_cxx_try_link ()
2005 {
2006 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2007 rm -f conftest.$ac_objext conftest$ac_exeext
2008 if { { ac_try="$ac_link"
2009 case "(($ac_try" in
2010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2011 *) ac_try_echo=$ac_try;;
2012 esac
2013 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2014 $as_echo "$ac_try_echo"; } >&5
2015 (eval "$ac_link") 2>conftest.err
2016 ac_status=$?
2017 if test -s conftest.err; then
2018 grep -v '^ *+' conftest.err >conftest.er1
2019 cat conftest.er1 >&5
2020 mv -f conftest.er1 conftest.err
2021 fi
2022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2023 test $ac_status = 0; } && {
2024 test -z "$ac_cxx_werror_flag" ||
2025 test ! -s conftest.err
2026 } && test -s conftest$ac_exeext && {
2027 test "$cross_compiling" = yes ||
2028 test -x conftest$ac_exeext
2029 }; then :
2030 ac_retval=0
2031 else
2032 $as_echo "$as_me: failed program was:" >&5
2033 sed 's/^/| /' conftest.$ac_ext >&5
2034
2035 ac_retval=1
2036 fi
2037 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2038 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2039 # interfere with the next link command; also delete a directory that is
2040 # left behind by Apple's compiler. We do this before executing the actions.
2041 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2042 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2043 as_fn_set_status $ac_retval
2044
2045 } # ac_fn_cxx_try_link
2046
2047 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2048 # --------------------------------------------
2049 # Tries to find the compile-time value of EXPR in a program that includes
2050 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2051 # computed
2052 ac_fn_c_compute_int ()
2053 {
2054 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2055 if test "$cross_compiling" = yes; then
2056 # Depending upon the size, compute the lo and hi bounds.
2057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2058 /* end confdefs.h. */
2059 $4
2060 int
2061 main ()
2062 {
2063 static int test_array [1 - 2 * !(($2) >= 0)];
2064 test_array [0] = 0;
2065 return test_array [0];
2066
2067 ;
2068 return 0;
2069 }
2070 _ACEOF
2071 if ac_fn_c_try_compile "$LINENO"; then :
2072 ac_lo=0 ac_mid=0
2073 while :; do
2074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2075 /* end confdefs.h. */
2076 $4
2077 int
2078 main ()
2079 {
2080 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2081 test_array [0] = 0;
2082 return test_array [0];
2083
2084 ;
2085 return 0;
2086 }
2087 _ACEOF
2088 if ac_fn_c_try_compile "$LINENO"; then :
2089 ac_hi=$ac_mid; break
2090 else
2091 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2092 if test $ac_lo -le $ac_mid; then
2093 ac_lo= ac_hi=
2094 break
2095 fi
2096 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2097 fi
2098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2099 done
2100 else
2101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2102 /* end confdefs.h. */
2103 $4
2104 int
2105 main ()
2106 {
2107 static int test_array [1 - 2 * !(($2) < 0)];
2108 test_array [0] = 0;
2109 return test_array [0];
2110
2111 ;
2112 return 0;
2113 }
2114 _ACEOF
2115 if ac_fn_c_try_compile "$LINENO"; then :
2116 ac_hi=-1 ac_mid=-1
2117 while :; do
2118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2119 /* end confdefs.h. */
2120 $4
2121 int
2122 main ()
2123 {
2124 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2125 test_array [0] = 0;
2126 return test_array [0];
2127
2128 ;
2129 return 0;
2130 }
2131 _ACEOF
2132 if ac_fn_c_try_compile "$LINENO"; then :
2133 ac_lo=$ac_mid; break
2134 else
2135 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2136 if test $ac_mid -le $ac_hi; then
2137 ac_lo= ac_hi=
2138 break
2139 fi
2140 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2141 fi
2142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2143 done
2144 else
2145 ac_lo= ac_hi=
2146 fi
2147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2148 fi
2149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2150 # Binary search between lo and hi bounds.
2151 while test "x$ac_lo" != "x$ac_hi"; do
2152 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2154 /* end confdefs.h. */
2155 $4
2156 int
2157 main ()
2158 {
2159 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2160 test_array [0] = 0;
2161 return test_array [0];
2162
2163 ;
2164 return 0;
2165 }
2166 _ACEOF
2167 if ac_fn_c_try_compile "$LINENO"; then :
2168 ac_hi=$ac_mid
2169 else
2170 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2171 fi
2172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2173 done
2174 case $ac_lo in #((
2175 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2176 '') ac_retval=1 ;;
2177 esac
2178 else
2179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2180 /* end confdefs.h. */
2181 $4
2182 static long int longval () { return $2; }
2183 static unsigned long int ulongval () { return $2; }
2184 #include <stdio.h>
2185 #include <stdlib.h>
2186 int
2187 main ()
2188 {
2189
2190 FILE *f = fopen ("conftest.val", "w");
2191 if (! f)
2192 return 1;
2193 if (($2) < 0)
2194 {
2195 long int i = longval ();
2196 if (i != ($2))
2197 return 1;
2198 fprintf (f, "%ld", i);
2199 }
2200 else
2201 {
2202 unsigned long int i = ulongval ();
2203 if (i != ($2))
2204 return 1;
2205 fprintf (f, "%lu", i);
2206 }
2207 /* Do not output a trailing newline, as this causes \r\n confusion
2208 on some platforms. */
2209 return ferror (f) || fclose (f) != 0;
2210
2211 ;
2212 return 0;
2213 }
2214 _ACEOF
2215 if ac_fn_c_try_run "$LINENO"; then :
2216 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2217 else
2218 ac_retval=1
2219 fi
2220 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2221 conftest.$ac_objext conftest.beam conftest.$ac_ext
2222 rm -f conftest.val
2223
2224 fi
2225 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2226 as_fn_set_status $ac_retval
2227
2228 } # ac_fn_c_compute_int
2229
2230 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2231 # -------------------------------------------
2232 # Tests whether TYPE exists after having included INCLUDES, setting cache
2233 # variable VAR accordingly.
2234 ac_fn_c_check_type ()
2235 {
2236 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2238 $as_echo_n "checking for $2... " >&6; }
2239 if eval \${$3+:} false; then :
2240 $as_echo_n "(cached) " >&6
2241 else
2242 eval "$3=no"
2243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2244 /* end confdefs.h. */
2245 $4
2246 int
2247 main ()
2248 {
2249 if (sizeof ($2))
2250 return 0;
2251 ;
2252 return 0;
2253 }
2254 _ACEOF
2255 if ac_fn_c_try_compile "$LINENO"; then :
2256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2257 /* end confdefs.h. */
2258 $4
2259 int
2260 main ()
2261 {
2262 if (sizeof (($2)))
2263 return 0;
2264 ;
2265 return 0;
2266 }
2267 _ACEOF
2268 if ac_fn_c_try_compile "$LINENO"; then :
2269
2270 else
2271 eval "$3=yes"
2272 fi
2273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2274 fi
2275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2276 fi
2277 eval ac_res=\$$3
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2279 $as_echo "$ac_res" >&6; }
2280 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2281
2282 } # ac_fn_c_check_type
2283
2284 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2285 # ---------------------------------------------
2286 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2287 # accordingly.
2288 ac_fn_c_check_decl ()
2289 {
2290 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2291 as_decl_name=`echo $2|sed 's/ *(.*//'`
2292 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2294 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2295 if eval \${$3+:} false; then :
2296 $as_echo_n "(cached) " >&6
2297 else
2298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2299 /* end confdefs.h. */
2300 $4
2301 int
2302 main ()
2303 {
2304 #ifndef $as_decl_name
2305 #ifdef __cplusplus
2306 (void) $as_decl_use;
2307 #else
2308 (void) $as_decl_name;
2309 #endif
2310 #endif
2311
2312 ;
2313 return 0;
2314 }
2315 _ACEOF
2316 if ac_fn_c_try_compile "$LINENO"; then :
2317 eval "$3=yes"
2318 else
2319 eval "$3=no"
2320 fi
2321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2322 fi
2323 eval ac_res=\$$3
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2325 $as_echo "$ac_res" >&6; }
2326 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2327
2328 } # ac_fn_c_check_decl
2329 cat >config.log <<_ACEOF
2330 This file contains any messages produced by compilers while
2331 running configure, to aid debugging if configure makes a mistake.
2332
2333 It was created by package-unused $as_me version-unused, which was
2334 generated by GNU Autoconf 2.69. Invocation command line was
2335
2336 $ $0 $@
2337
2338 _ACEOF
2339 exec 5>>config.log
2340 {
2341 cat <<_ASUNAME
2342 ## --------- ##
2343 ## Platform. ##
2344 ## --------- ##
2345
2346 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2347 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2348 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2349 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2350 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2351
2352 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2353 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2354
2355 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2356 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2357 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2358 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2359 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2360 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2361 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2362
2363 _ASUNAME
2364
2365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2366 for as_dir in $PATH
2367 do
2368 IFS=$as_save_IFS
2369 test -z "$as_dir" && as_dir=.
2370 $as_echo "PATH: $as_dir"
2371 done
2372 IFS=$as_save_IFS
2373
2374 } >&5
2375
2376 cat >&5 <<_ACEOF
2377
2378
2379 ## ----------- ##
2380 ## Core tests. ##
2381 ## ----------- ##
2382
2383 _ACEOF
2384
2385
2386 # Keep a trace of the command line.
2387 # Strip out --no-create and --no-recursion so they do not pile up.
2388 # Strip out --silent because we don't want to record it for future runs.
2389 # Also quote any args containing shell meta-characters.
2390 # Make two passes to allow for proper duplicate-argument suppression.
2391 ac_configure_args=
2392 ac_configure_args0=
2393 ac_configure_args1=
2394 ac_must_keep_next=false
2395 for ac_pass in 1 2
2396 do
2397 for ac_arg
2398 do
2399 case $ac_arg in
2400 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2401 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2402 | -silent | --silent | --silen | --sile | --sil)
2403 continue ;;
2404 *\'*)
2405 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2406 esac
2407 case $ac_pass in
2408 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2409 2)
2410 as_fn_append ac_configure_args1 " '$ac_arg'"
2411 if test $ac_must_keep_next = true; then
2412 ac_must_keep_next=false # Got value, back to normal.
2413 else
2414 case $ac_arg in
2415 *=* | --config-cache | -C | -disable-* | --disable-* \
2416 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2417 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2418 | -with-* | --with-* | -without-* | --without-* | --x)
2419 case "$ac_configure_args0 " in
2420 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2421 esac
2422 ;;
2423 -* ) ac_must_keep_next=true ;;
2424 esac
2425 fi
2426 as_fn_append ac_configure_args " '$ac_arg'"
2427 ;;
2428 esac
2429 done
2430 done
2431 { ac_configure_args0=; unset ac_configure_args0;}
2432 { ac_configure_args1=; unset ac_configure_args1;}
2433
2434 # When interrupted or exit'd, cleanup temporary files, and complete
2435 # config.log. We remove comments because anyway the quotes in there
2436 # would cause problems or look ugly.
2437 # WARNING: Use '\'' to represent an apostrophe within the trap.
2438 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2439 trap 'exit_status=$?
2440 # Save into config.log some information that might help in debugging.
2441 {
2442 echo
2443
2444 $as_echo "## ---------------- ##
2445 ## Cache variables. ##
2446 ## ---------------- ##"
2447 echo
2448 # The following way of writing the cache mishandles newlines in values,
2449 (
2450 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2451 eval ac_val=\$$ac_var
2452 case $ac_val in #(
2453 *${as_nl}*)
2454 case $ac_var in #(
2455 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2456 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2457 esac
2458 case $ac_var in #(
2459 _ | IFS | as_nl) ;; #(
2460 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2461 *) { eval $ac_var=; unset $ac_var;} ;;
2462 esac ;;
2463 esac
2464 done
2465 (set) 2>&1 |
2466 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2467 *${as_nl}ac_space=\ *)
2468 sed -n \
2469 "s/'\''/'\''\\\\'\'''\''/g;
2470 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2471 ;; #(
2472 *)
2473 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2474 ;;
2475 esac |
2476 sort
2477 )
2478 echo
2479
2480 $as_echo "## ----------------- ##
2481 ## Output variables. ##
2482 ## ----------------- ##"
2483 echo
2484 for ac_var in $ac_subst_vars
2485 do
2486 eval ac_val=\$$ac_var
2487 case $ac_val in
2488 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2489 esac
2490 $as_echo "$ac_var='\''$ac_val'\''"
2491 done | sort
2492 echo
2493
2494 if test -n "$ac_subst_files"; then
2495 $as_echo "## ------------------- ##
2496 ## File substitutions. ##
2497 ## ------------------- ##"
2498 echo
2499 for ac_var in $ac_subst_files
2500 do
2501 eval ac_val=\$$ac_var
2502 case $ac_val in
2503 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2504 esac
2505 $as_echo "$ac_var='\''$ac_val'\''"
2506 done | sort
2507 echo
2508 fi
2509
2510 if test -s confdefs.h; then
2511 $as_echo "## ----------- ##
2512 ## confdefs.h. ##
2513 ## ----------- ##"
2514 echo
2515 cat confdefs.h
2516 echo
2517 fi
2518 test "$ac_signal" != 0 &&
2519 $as_echo "$as_me: caught signal $ac_signal"
2520 $as_echo "$as_me: exit $exit_status"
2521 } >&5
2522 rm -f core *.core core.conftest.* &&
2523 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2524 exit $exit_status
2525 ' 0
2526 for ac_signal in 1 2 13 15; do
2527 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2528 done
2529 ac_signal=0
2530
2531 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2532 rm -f -r conftest* confdefs.h
2533
2534 $as_echo "/* confdefs.h */" > confdefs.h
2535
2536 # Predefined preprocessor variables.
2537
2538 cat >>confdefs.h <<_ACEOF
2539 #define PACKAGE_NAME "$PACKAGE_NAME"
2540 _ACEOF
2541
2542 cat >>confdefs.h <<_ACEOF
2543 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2544 _ACEOF
2545
2546 cat >>confdefs.h <<_ACEOF
2547 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2548 _ACEOF
2549
2550 cat >>confdefs.h <<_ACEOF
2551 #define PACKAGE_STRING "$PACKAGE_STRING"
2552 _ACEOF
2553
2554 cat >>confdefs.h <<_ACEOF
2555 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2556 _ACEOF
2557
2558 cat >>confdefs.h <<_ACEOF
2559 #define PACKAGE_URL "$PACKAGE_URL"
2560 _ACEOF
2561
2562
2563 # Let the site file select an alternate cache file if it wants to.
2564 # Prefer an explicitly selected file to automatically selected ones.
2565 ac_site_file1=NONE
2566 ac_site_file2=NONE
2567 if test -n "$CONFIG_SITE"; then
2568 # We do not want a PATH search for config.site.
2569 case $CONFIG_SITE in #((
2570 -*) ac_site_file1=./$CONFIG_SITE;;
2571 */*) ac_site_file1=$CONFIG_SITE;;
2572 *) ac_site_file1=./$CONFIG_SITE;;
2573 esac
2574 elif test "x$prefix" != xNONE; then
2575 ac_site_file1=$prefix/share/config.site
2576 ac_site_file2=$prefix/etc/config.site
2577 else
2578 ac_site_file1=$ac_default_prefix/share/config.site
2579 ac_site_file2=$ac_default_prefix/etc/config.site
2580 fi
2581 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2582 do
2583 test "x$ac_site_file" = xNONE && continue
2584 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2586 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2587 sed 's/^/| /' "$ac_site_file" >&5
2588 . "$ac_site_file" \
2589 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2590 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2591 as_fn_error $? "failed to load site script $ac_site_file
2592 See \`config.log' for more details" "$LINENO" 5; }
2593 fi
2594 done
2595
2596 if test -r "$cache_file"; then
2597 # Some versions of bash will fail to source /dev/null (special files
2598 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2599 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2601 $as_echo "$as_me: loading cache $cache_file" >&6;}
2602 case $cache_file in
2603 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2604 *) . "./$cache_file";;
2605 esac
2606 fi
2607 else
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2609 $as_echo "$as_me: creating cache $cache_file" >&6;}
2610 >$cache_file
2611 fi
2612
2613 # Check that the precious variables saved in the cache have kept the same
2614 # value.
2615 ac_cache_corrupted=false
2616 for ac_var in $ac_precious_vars; do
2617 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2618 eval ac_new_set=\$ac_env_${ac_var}_set
2619 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2620 eval ac_new_val=\$ac_env_${ac_var}_value
2621 case $ac_old_set,$ac_new_set in
2622 set,)
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2624 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2625 ac_cache_corrupted=: ;;
2626 ,set)
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2628 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2629 ac_cache_corrupted=: ;;
2630 ,);;
2631 *)
2632 if test "x$ac_old_val" != "x$ac_new_val"; then
2633 # differences in whitespace do not lead to failure.
2634 ac_old_val_w=`echo x $ac_old_val`
2635 ac_new_val_w=`echo x $ac_new_val`
2636 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2638 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2639 ac_cache_corrupted=:
2640 else
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2642 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2643 eval $ac_var=\$ac_old_val
2644 fi
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2646 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2648 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2649 fi;;
2650 esac
2651 # Pass precious variables to config.status.
2652 if test "$ac_new_set" = set; then
2653 case $ac_new_val in
2654 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2655 *) ac_arg=$ac_var=$ac_new_val ;;
2656 esac
2657 case " $ac_configure_args " in
2658 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2659 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2660 esac
2661 fi
2662 done
2663 if $ac_cache_corrupted; then
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2665 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2667 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2668 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2669 fi
2670 ## -------------------- ##
2671 ## Main body of script. ##
2672 ## -------------------- ##
2673
2674 ac_ext=c
2675 ac_cpp='$CPP $CPPFLAGS'
2676 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2677 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2678 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2679
2680
2681
2682
2683
2684
2685
2686 # Default to --enable-multilib
2687 # Check whether --enable-multilib was given.
2688 if test "${enable_multilib+set}" = set; then :
2689 enableval=$enable_multilib; case "$enableval" in
2690 yes) multilib=yes ;;
2691 no) multilib=no ;;
2692 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
2693 esac
2694 else
2695 multilib=yes
2696 fi
2697
2698
2699 # We may get other options which we leave undocumented:
2700 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2701 # See config-ml.in if you want the gory details.
2702
2703 if test "$srcdir" = "."; then
2704 if test "$with_target_subdir" != "."; then
2705 multi_basedir="$srcdir/$with_multisrctop../.."
2706 else
2707 multi_basedir="$srcdir/$with_multisrctop.."
2708 fi
2709 else
2710 multi_basedir="$srcdir/.."
2711 fi
2712
2713
2714 # Even if the default multilib is not a cross compilation,
2715 # it may be that some of the other multilibs are.
2716 if test $cross_compiling = no && test $multilib = yes \
2717 && test "x${with_multisubdir}" != x ; then
2718 cross_compiling=maybe
2719 fi
2720
2721 ac_config_commands="$ac_config_commands default-1"
2722
2723
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2725 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2726 # Check whether --enable-version-specific-runtime-libs was given.
2727 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2728 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2729 yes) version_specific_libs=yes ;;
2730 no) version_specific_libs=no ;;
2731 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2732 esac
2733 else
2734 version_specific_libs=no
2735 fi
2736
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2738 $as_echo "$version_specific_libs" >&6; }
2739
2740 ac_aux_dir=
2741 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2742 if test -f "$ac_dir/install-sh"; then
2743 ac_aux_dir=$ac_dir
2744 ac_install_sh="$ac_aux_dir/install-sh -c"
2745 break
2746 elif test -f "$ac_dir/install.sh"; then
2747 ac_aux_dir=$ac_dir
2748 ac_install_sh="$ac_aux_dir/install.sh -c"
2749 break
2750 elif test -f "$ac_dir/shtool"; then
2751 ac_aux_dir=$ac_dir
2752 ac_install_sh="$ac_aux_dir/shtool install -c"
2753 break
2754 fi
2755 done
2756 if test -z "$ac_aux_dir"; then
2757 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2758 fi
2759
2760 # These three variables are undocumented and unsupported,
2761 # and are intended to be withdrawn in a future Autoconf release.
2762 # They can cause serious problems if a builder's source tree is in a directory
2763 # whose full name contains unusual characters.
2764 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2765 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2766 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2767
2768
2769 # Expand $ac_aux_dir to an absolute path.
2770 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2771
2772 ac_ext=c
2773 ac_cpp='$CPP $CPPFLAGS'
2774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2777 if test -n "$ac_tool_prefix"; then
2778 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2779 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2781 $as_echo_n "checking for $ac_word... " >&6; }
2782 if ${ac_cv_prog_CC+:} false; then :
2783 $as_echo_n "(cached) " >&6
2784 else
2785 if test -n "$CC"; then
2786 ac_cv_prog_CC="$CC" # Let the user override the test.
2787 else
2788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2789 for as_dir in $PATH
2790 do
2791 IFS=$as_save_IFS
2792 test -z "$as_dir" && as_dir=.
2793 for ac_exec_ext in '' $ac_executable_extensions; do
2794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2795 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2797 break 2
2798 fi
2799 done
2800 done
2801 IFS=$as_save_IFS
2802
2803 fi
2804 fi
2805 CC=$ac_cv_prog_CC
2806 if test -n "$CC"; then
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2808 $as_echo "$CC" >&6; }
2809 else
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2811 $as_echo "no" >&6; }
2812 fi
2813
2814
2815 fi
2816 if test -z "$ac_cv_prog_CC"; then
2817 ac_ct_CC=$CC
2818 # Extract the first word of "gcc", so it can be a program name with args.
2819 set dummy gcc; ac_word=$2
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2821 $as_echo_n "checking for $ac_word... " >&6; }
2822 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2823 $as_echo_n "(cached) " >&6
2824 else
2825 if test -n "$ac_ct_CC"; then
2826 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2827 else
2828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2829 for as_dir in $PATH
2830 do
2831 IFS=$as_save_IFS
2832 test -z "$as_dir" && as_dir=.
2833 for ac_exec_ext in '' $ac_executable_extensions; do
2834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2835 ac_cv_prog_ac_ct_CC="gcc"
2836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2837 break 2
2838 fi
2839 done
2840 done
2841 IFS=$as_save_IFS
2842
2843 fi
2844 fi
2845 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2846 if test -n "$ac_ct_CC"; then
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2848 $as_echo "$ac_ct_CC" >&6; }
2849 else
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2851 $as_echo "no" >&6; }
2852 fi
2853
2854 if test "x$ac_ct_CC" = x; then
2855 CC=""
2856 else
2857 case $cross_compiling:$ac_tool_warned in
2858 yes:)
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2860 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2861 ac_tool_warned=yes ;;
2862 esac
2863 CC=$ac_ct_CC
2864 fi
2865 else
2866 CC="$ac_cv_prog_CC"
2867 fi
2868
2869 if test -z "$CC"; then
2870 if test -n "$ac_tool_prefix"; then
2871 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2872 set dummy ${ac_tool_prefix}cc; ac_word=$2
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2874 $as_echo_n "checking for $ac_word... " >&6; }
2875 if ${ac_cv_prog_CC+:} false; then :
2876 $as_echo_n "(cached) " >&6
2877 else
2878 if test -n "$CC"; then
2879 ac_cv_prog_CC="$CC" # Let the user override the test.
2880 else
2881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2882 for as_dir in $PATH
2883 do
2884 IFS=$as_save_IFS
2885 test -z "$as_dir" && as_dir=.
2886 for ac_exec_ext in '' $ac_executable_extensions; do
2887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2888 ac_cv_prog_CC="${ac_tool_prefix}cc"
2889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2890 break 2
2891 fi
2892 done
2893 done
2894 IFS=$as_save_IFS
2895
2896 fi
2897 fi
2898 CC=$ac_cv_prog_CC
2899 if test -n "$CC"; then
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2901 $as_echo "$CC" >&6; }
2902 else
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2904 $as_echo "no" >&6; }
2905 fi
2906
2907
2908 fi
2909 fi
2910 if test -z "$CC"; then
2911 # Extract the first word of "cc", so it can be a program name with args.
2912 set dummy cc; ac_word=$2
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2914 $as_echo_n "checking for $ac_word... " >&6; }
2915 if ${ac_cv_prog_CC+:} false; then :
2916 $as_echo_n "(cached) " >&6
2917 else
2918 if test -n "$CC"; then
2919 ac_cv_prog_CC="$CC" # Let the user override the test.
2920 else
2921 ac_prog_rejected=no
2922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2923 for as_dir in $PATH
2924 do
2925 IFS=$as_save_IFS
2926 test -z "$as_dir" && as_dir=.
2927 for ac_exec_ext in '' $ac_executable_extensions; do
2928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2929 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2930 ac_prog_rejected=yes
2931 continue
2932 fi
2933 ac_cv_prog_CC="cc"
2934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2935 break 2
2936 fi
2937 done
2938 done
2939 IFS=$as_save_IFS
2940
2941 if test $ac_prog_rejected = yes; then
2942 # We found a bogon in the path, so make sure we never use it.
2943 set dummy $ac_cv_prog_CC
2944 shift
2945 if test $# != 0; then
2946 # We chose a different compiler from the bogus one.
2947 # However, it has the same basename, so the bogon will be chosen
2948 # first if we set CC to just the basename; use the full file name.
2949 shift
2950 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2951 fi
2952 fi
2953 fi
2954 fi
2955 CC=$ac_cv_prog_CC
2956 if test -n "$CC"; then
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2958 $as_echo "$CC" >&6; }
2959 else
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2961 $as_echo "no" >&6; }
2962 fi
2963
2964
2965 fi
2966 if test -z "$CC"; then
2967 if test -n "$ac_tool_prefix"; then
2968 for ac_prog in cl.exe
2969 do
2970 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2971 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2973 $as_echo_n "checking for $ac_word... " >&6; }
2974 if ${ac_cv_prog_CC+:} false; then :
2975 $as_echo_n "(cached) " >&6
2976 else
2977 if test -n "$CC"; then
2978 ac_cv_prog_CC="$CC" # Let the user override the test.
2979 else
2980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2981 for as_dir in $PATH
2982 do
2983 IFS=$as_save_IFS
2984 test -z "$as_dir" && as_dir=.
2985 for ac_exec_ext in '' $ac_executable_extensions; do
2986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2987 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2989 break 2
2990 fi
2991 done
2992 done
2993 IFS=$as_save_IFS
2994
2995 fi
2996 fi
2997 CC=$ac_cv_prog_CC
2998 if test -n "$CC"; then
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3000 $as_echo "$CC" >&6; }
3001 else
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3003 $as_echo "no" >&6; }
3004 fi
3005
3006
3007 test -n "$CC" && break
3008 done
3009 fi
3010 if test -z "$CC"; then
3011 ac_ct_CC=$CC
3012 for ac_prog in cl.exe
3013 do
3014 # Extract the first word of "$ac_prog", so it can be a program name with args.
3015 set dummy $ac_prog; ac_word=$2
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3017 $as_echo_n "checking for $ac_word... " >&6; }
3018 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3019 $as_echo_n "(cached) " >&6
3020 else
3021 if test -n "$ac_ct_CC"; then
3022 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3023 else
3024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3025 for as_dir in $PATH
3026 do
3027 IFS=$as_save_IFS
3028 test -z "$as_dir" && as_dir=.
3029 for ac_exec_ext in '' $ac_executable_extensions; do
3030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3031 ac_cv_prog_ac_ct_CC="$ac_prog"
3032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3033 break 2
3034 fi
3035 done
3036 done
3037 IFS=$as_save_IFS
3038
3039 fi
3040 fi
3041 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3042 if test -n "$ac_ct_CC"; then
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3044 $as_echo "$ac_ct_CC" >&6; }
3045 else
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3047 $as_echo "no" >&6; }
3048 fi
3049
3050
3051 test -n "$ac_ct_CC" && break
3052 done
3053
3054 if test "x$ac_ct_CC" = x; then
3055 CC=""
3056 else
3057 case $cross_compiling:$ac_tool_warned in
3058 yes:)
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3060 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3061 ac_tool_warned=yes ;;
3062 esac
3063 CC=$ac_ct_CC
3064 fi
3065 fi
3066
3067 fi
3068
3069
3070 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3071 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3072 as_fn_error $? "no acceptable C compiler found in \$PATH
3073 See \`config.log' for more details" "$LINENO" 5; }
3074
3075 # Provide some information about the compiler.
3076 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3077 set X $ac_compile
3078 ac_compiler=$2
3079 for ac_option in --version -v -V -qversion; do
3080 { { ac_try="$ac_compiler $ac_option >&5"
3081 case "(($ac_try" in
3082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3083 *) ac_try_echo=$ac_try;;
3084 esac
3085 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3086 $as_echo "$ac_try_echo"; } >&5
3087 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3088 ac_status=$?
3089 if test -s conftest.err; then
3090 sed '10a\
3091 ... rest of stderr output deleted ...
3092 10q' conftest.err >conftest.er1
3093 cat conftest.er1 >&5
3094 fi
3095 rm -f conftest.er1 conftest.err
3096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3097 test $ac_status = 0; }
3098 done
3099
3100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3101 /* end confdefs.h. */
3102
3103 int
3104 main ()
3105 {
3106
3107 ;
3108 return 0;
3109 }
3110 _ACEOF
3111 ac_clean_files_save=$ac_clean_files
3112 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3113 # Try to create an executable without -o first, disregard a.out.
3114 # It will help us diagnose broken compilers, and finding out an intuition
3115 # of exeext.
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3117 $as_echo_n "checking whether the C compiler works... " >&6; }
3118 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3119
3120 # The possible output files:
3121 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3122
3123 ac_rmfiles=
3124 for ac_file in $ac_files
3125 do
3126 case $ac_file in
3127 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3128 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3129 esac
3130 done
3131 rm -f $ac_rmfiles
3132
3133 if { { ac_try="$ac_link_default"
3134 case "(($ac_try" in
3135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136 *) ac_try_echo=$ac_try;;
3137 esac
3138 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3139 $as_echo "$ac_try_echo"; } >&5
3140 (eval "$ac_link_default") 2>&5
3141 ac_status=$?
3142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3143 test $ac_status = 0; }; then :
3144 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3145 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3146 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3147 # so that the user can short-circuit this test for compilers unknown to
3148 # Autoconf.
3149 for ac_file in $ac_files ''
3150 do
3151 test -f "$ac_file" || continue
3152 case $ac_file in
3153 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3154 ;;
3155 [ab].out )
3156 # We found the default executable, but exeext='' is most
3157 # certainly right.
3158 break;;
3159 *.* )
3160 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3161 then :; else
3162 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3163 fi
3164 # We set ac_cv_exeext here because the later test for it is not
3165 # safe: cross compilers may not add the suffix if given an `-o'
3166 # argument, so we may need to know it at that point already.
3167 # Even if this section looks crufty: it has the advantage of
3168 # actually working.
3169 break;;
3170 * )
3171 break;;
3172 esac
3173 done
3174 test "$ac_cv_exeext" = no && ac_cv_exeext=
3175
3176 else
3177 ac_file=''
3178 fi
3179 if test -z "$ac_file"; then :
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3181 $as_echo "no" >&6; }
3182 $as_echo "$as_me: failed program was:" >&5
3183 sed 's/^/| /' conftest.$ac_ext >&5
3184
3185 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3186 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3187 as_fn_error 77 "C compiler cannot create executables
3188 See \`config.log' for more details" "$LINENO" 5; }
3189 else
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3191 $as_echo "yes" >&6; }
3192 fi
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3194 $as_echo_n "checking for C compiler default output file name... " >&6; }
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3196 $as_echo "$ac_file" >&6; }
3197 ac_exeext=$ac_cv_exeext
3198
3199 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3200 ac_clean_files=$ac_clean_files_save
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3202 $as_echo_n "checking for suffix of executables... " >&6; }
3203 if { { ac_try="$ac_link"
3204 case "(($ac_try" in
3205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3206 *) ac_try_echo=$ac_try;;
3207 esac
3208 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3209 $as_echo "$ac_try_echo"; } >&5
3210 (eval "$ac_link") 2>&5
3211 ac_status=$?
3212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3213 test $ac_status = 0; }; then :
3214 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3215 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3216 # work properly (i.e., refer to `conftest.exe'), while it won't with
3217 # `rm'.
3218 for ac_file in conftest.exe conftest conftest.*; do
3219 test -f "$ac_file" || continue
3220 case $ac_file in
3221 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3222 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3223 break;;
3224 * ) break;;
3225 esac
3226 done
3227 else
3228 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3229 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3230 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3231 See \`config.log' for more details" "$LINENO" 5; }
3232 fi
3233 rm -f conftest conftest$ac_cv_exeext
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3235 $as_echo "$ac_cv_exeext" >&6; }
3236
3237 rm -f conftest.$ac_ext
3238 EXEEXT=$ac_cv_exeext
3239 ac_exeext=$EXEEXT
3240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3241 /* end confdefs.h. */
3242 #include <stdio.h>
3243 int
3244 main ()
3245 {
3246 FILE *f = fopen ("conftest.out", "w");
3247 return ferror (f) || fclose (f) != 0;
3248
3249 ;
3250 return 0;
3251 }
3252 _ACEOF
3253 ac_clean_files="$ac_clean_files conftest.out"
3254 # Check that the compiler produces executables we can run. If not, either
3255 # the compiler is broken, or we cross compile.
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3257 $as_echo_n "checking whether we are cross compiling... " >&6; }
3258 if test "$cross_compiling" != yes; then
3259 { { ac_try="$ac_link"
3260 case "(($ac_try" in
3261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3262 *) ac_try_echo=$ac_try;;
3263 esac
3264 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3265 $as_echo "$ac_try_echo"; } >&5
3266 (eval "$ac_link") 2>&5
3267 ac_status=$?
3268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3269 test $ac_status = 0; }
3270 if { ac_try='./conftest$ac_cv_exeext'
3271 { { case "(($ac_try" in
3272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3273 *) ac_try_echo=$ac_try;;
3274 esac
3275 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3276 $as_echo "$ac_try_echo"; } >&5
3277 (eval "$ac_try") 2>&5
3278 ac_status=$?
3279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3280 test $ac_status = 0; }; }; then
3281 cross_compiling=no
3282 else
3283 if test "$cross_compiling" = maybe; then
3284 cross_compiling=yes
3285 else
3286 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3287 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3288 as_fn_error $? "cannot run C compiled programs.
3289 If you meant to cross compile, use \`--host'.
3290 See \`config.log' for more details" "$LINENO" 5; }
3291 fi
3292 fi
3293 fi
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3295 $as_echo "$cross_compiling" >&6; }
3296
3297 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3298 ac_clean_files=$ac_clean_files_save
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3300 $as_echo_n "checking for suffix of object files... " >&6; }
3301 if ${ac_cv_objext+:} false; then :
3302 $as_echo_n "(cached) " >&6
3303 else
3304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3305 /* end confdefs.h. */
3306
3307 int
3308 main ()
3309 {
3310
3311 ;
3312 return 0;
3313 }
3314 _ACEOF
3315 rm -f conftest.o conftest.obj
3316 if { { ac_try="$ac_compile"
3317 case "(($ac_try" in
3318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3319 *) ac_try_echo=$ac_try;;
3320 esac
3321 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3322 $as_echo "$ac_try_echo"; } >&5
3323 (eval "$ac_compile") 2>&5
3324 ac_status=$?
3325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3326 test $ac_status = 0; }; then :
3327 for ac_file in conftest.o conftest.obj conftest.*; do
3328 test -f "$ac_file" || continue;
3329 case $ac_file in
3330 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3331 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3332 break;;
3333 esac
3334 done
3335 else
3336 $as_echo "$as_me: failed program was:" >&5
3337 sed 's/^/| /' conftest.$ac_ext >&5
3338
3339 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3340 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3341 as_fn_error $? "cannot compute suffix of object files: cannot compile
3342 See \`config.log' for more details" "$LINENO" 5; }
3343 fi
3344 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3345 fi
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3347 $as_echo "$ac_cv_objext" >&6; }
3348 OBJEXT=$ac_cv_objext
3349 ac_objext=$OBJEXT
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3351 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3352 if ${ac_cv_c_compiler_gnu+:} false; then :
3353 $as_echo_n "(cached) " >&6
3354 else
3355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3356 /* end confdefs.h. */
3357
3358 int
3359 main ()
3360 {
3361 #ifndef __GNUC__
3362 choke me
3363 #endif
3364
3365 ;
3366 return 0;
3367 }
3368 _ACEOF
3369 if ac_fn_c_try_compile "$LINENO"; then :
3370 ac_compiler_gnu=yes
3371 else
3372 ac_compiler_gnu=no
3373 fi
3374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3375 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3376
3377 fi
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3379 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3380 if test $ac_compiler_gnu = yes; then
3381 GCC=yes
3382 else
3383 GCC=
3384 fi
3385 ac_test_CFLAGS=${CFLAGS+set}
3386 ac_save_CFLAGS=$CFLAGS
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3388 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3389 if ${ac_cv_prog_cc_g+:} false; then :
3390 $as_echo_n "(cached) " >&6
3391 else
3392 ac_save_c_werror_flag=$ac_c_werror_flag
3393 ac_c_werror_flag=yes
3394 ac_cv_prog_cc_g=no
3395 CFLAGS="-g"
3396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3397 /* end confdefs.h. */
3398
3399 int
3400 main ()
3401 {
3402
3403 ;
3404 return 0;
3405 }
3406 _ACEOF
3407 if ac_fn_c_try_compile "$LINENO"; then :
3408 ac_cv_prog_cc_g=yes
3409 else
3410 CFLAGS=""
3411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3412 /* end confdefs.h. */
3413
3414 int
3415 main ()
3416 {
3417
3418 ;
3419 return 0;
3420 }
3421 _ACEOF
3422 if ac_fn_c_try_compile "$LINENO"; then :
3423
3424 else
3425 ac_c_werror_flag=$ac_save_c_werror_flag
3426 CFLAGS="-g"
3427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3428 /* end confdefs.h. */
3429
3430 int
3431 main ()
3432 {
3433
3434 ;
3435 return 0;
3436 }
3437 _ACEOF
3438 if ac_fn_c_try_compile "$LINENO"; then :
3439 ac_cv_prog_cc_g=yes
3440 fi
3441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3442 fi
3443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3444 fi
3445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3446 ac_c_werror_flag=$ac_save_c_werror_flag
3447 fi
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3449 $as_echo "$ac_cv_prog_cc_g" >&6; }
3450 if test "$ac_test_CFLAGS" = set; then
3451 CFLAGS=$ac_save_CFLAGS
3452 elif test $ac_cv_prog_cc_g = yes; then
3453 if test "$GCC" = yes; then
3454 CFLAGS="-g -O2"
3455 else
3456 CFLAGS="-g"
3457 fi
3458 else
3459 if test "$GCC" = yes; then
3460 CFLAGS="-O2"
3461 else
3462 CFLAGS=
3463 fi
3464 fi
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3466 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3467 if ${ac_cv_prog_cc_c89+:} false; then :
3468 $as_echo_n "(cached) " >&6
3469 else
3470 ac_cv_prog_cc_c89=no
3471 ac_save_CC=$CC
3472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3473 /* end confdefs.h. */
3474 #include <stdarg.h>
3475 #include <stdio.h>
3476 struct stat;
3477 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3478 struct buf { int x; };
3479 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3480 static char *e (p, i)
3481 char **p;
3482 int i;
3483 {
3484 return p[i];
3485 }
3486 static char *f (char * (*g) (char **, int), char **p, ...)
3487 {
3488 char *s;
3489 va_list v;
3490 va_start (v,p);
3491 s = g (p, va_arg (v,int));
3492 va_end (v);
3493 return s;
3494 }
3495
3496 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3497 function prototypes and stuff, but not '\xHH' hex character constants.
3498 These don't provoke an error unfortunately, instead are silently treated
3499 as 'x'. The following induces an error, until -std is added to get
3500 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3501 array size at least. It's necessary to write '\x00'==0 to get something
3502 that's true only with -std. */
3503 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3504
3505 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3506 inside strings and character constants. */
3507 #define FOO(x) 'x'
3508 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3509
3510 int test (int i, double x);
3511 struct s1 {int (*f) (int a);};
3512 struct s2 {int (*f) (double a);};
3513 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3514 int argc;
3515 char **argv;
3516 int
3517 main ()
3518 {
3519 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3520 ;
3521 return 0;
3522 }
3523 _ACEOF
3524 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3525 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3526 do
3527 CC="$ac_save_CC $ac_arg"
3528 if ac_fn_c_try_compile "$LINENO"; then :
3529 ac_cv_prog_cc_c89=$ac_arg
3530 fi
3531 rm -f core conftest.err conftest.$ac_objext
3532 test "x$ac_cv_prog_cc_c89" != "xno" && break
3533 done
3534 rm -f conftest.$ac_ext
3535 CC=$ac_save_CC
3536
3537 fi
3538 # AC_CACHE_VAL
3539 case "x$ac_cv_prog_cc_c89" in
3540 x)
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3542 $as_echo "none needed" >&6; } ;;
3543 xno)
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3545 $as_echo "unsupported" >&6; } ;;
3546 *)
3547 CC="$CC $ac_cv_prog_cc_c89"
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3549 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3550 esac
3551 if test "x$ac_cv_prog_cc_c89" != xno; then :
3552
3553 fi
3554
3555 ac_ext=c
3556 ac_cpp='$CPP $CPPFLAGS'
3557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3560
3561 ac_ext=c
3562 ac_cpp='$CPP $CPPFLAGS'
3563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3567 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3568 if ${am_cv_prog_cc_c_o+:} false; then :
3569 $as_echo_n "(cached) " >&6
3570 else
3571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3572 /* end confdefs.h. */
3573
3574 int
3575 main ()
3576 {
3577
3578 ;
3579 return 0;
3580 }
3581 _ACEOF
3582 # Make sure it works both with $CC and with simple cc.
3583 # Following AC_PROG_CC_C_O, we do the test twice because some
3584 # compilers refuse to overwrite an existing .o file with -o,
3585 # though they will create one.
3586 am_cv_prog_cc_c_o=yes
3587 for am_i in 1 2; do
3588 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3589 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3590 ac_status=$?
3591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592 (exit $ac_status); } \
3593 && test -f conftest2.$ac_objext; then
3594 : OK
3595 else
3596 am_cv_prog_cc_c_o=no
3597 break
3598 fi
3599 done
3600 rm -f core conftest*
3601 unset am_i
3602 fi
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3604 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3605 if test "$am_cv_prog_cc_c_o" != yes; then
3606 # Losing compiler, so override with the script.
3607 # FIXME: It is wrong to rewrite CC.
3608 # But if we don't then we get into trouble of one sort or another.
3609 # A longer-term fix would be to have automake use am__CC in this case,
3610 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3611 CC="$am_aux_dir/compile $CC"
3612 fi
3613 ac_ext=c
3614 ac_cpp='$CPP $CPPFLAGS'
3615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3618
3619
3620
3621 ac_ext=c
3622 ac_cpp='$CPP $CPPFLAGS'
3623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3627 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3628 # On Suns, sometimes $CPP names a directory.
3629 if test -n "$CPP" && test -d "$CPP"; then
3630 CPP=
3631 fi
3632 if test -z "$CPP"; then
3633 if ${ac_cv_prog_CPP+:} false; then :
3634 $as_echo_n "(cached) " >&6
3635 else
3636 # Double quotes because CPP needs to be expanded
3637 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3638 do
3639 ac_preproc_ok=false
3640 for ac_c_preproc_warn_flag in '' yes
3641 do
3642 # Use a header file that comes with gcc, so configuring glibc
3643 # with a fresh cross-compiler works.
3644 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3645 # <limits.h> exists even on freestanding compilers.
3646 # On the NeXT, cc -E runs the code through the compiler's parser,
3647 # not just through cpp. "Syntax error" is here to catch this case.
3648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3649 /* end confdefs.h. */
3650 #ifdef __STDC__
3651 # include <limits.h>
3652 #else
3653 # include <assert.h>
3654 #endif
3655 Syntax error
3656 _ACEOF
3657 if ac_fn_c_try_cpp "$LINENO"; then :
3658
3659 else
3660 # Broken: fails on valid input.
3661 continue
3662 fi
3663 rm -f conftest.err conftest.i conftest.$ac_ext
3664
3665 # OK, works on sane cases. Now check whether nonexistent headers
3666 # can be detected and how.
3667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3668 /* end confdefs.h. */
3669 #include <ac_nonexistent.h>
3670 _ACEOF
3671 if ac_fn_c_try_cpp "$LINENO"; then :
3672 # Broken: success on invalid input.
3673 continue
3674 else
3675 # Passes both tests.
3676 ac_preproc_ok=:
3677 break
3678 fi
3679 rm -f conftest.err conftest.i conftest.$ac_ext
3680
3681 done
3682 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3683 rm -f conftest.i conftest.err conftest.$ac_ext
3684 if $ac_preproc_ok; then :
3685 break
3686 fi
3687
3688 done
3689 ac_cv_prog_CPP=$CPP
3690
3691 fi
3692 CPP=$ac_cv_prog_CPP
3693 else
3694 ac_cv_prog_CPP=$CPP
3695 fi
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3697 $as_echo "$CPP" >&6; }
3698 ac_preproc_ok=false
3699 for ac_c_preproc_warn_flag in '' yes
3700 do
3701 # Use a header file that comes with gcc, so configuring glibc
3702 # with a fresh cross-compiler works.
3703 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3704 # <limits.h> exists even on freestanding compilers.
3705 # On the NeXT, cc -E runs the code through the compiler's parser,
3706 # not just through cpp. "Syntax error" is here to catch this case.
3707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3708 /* end confdefs.h. */
3709 #ifdef __STDC__
3710 # include <limits.h>
3711 #else
3712 # include <assert.h>
3713 #endif
3714 Syntax error
3715 _ACEOF
3716 if ac_fn_c_try_cpp "$LINENO"; then :
3717
3718 else
3719 # Broken: fails on valid input.
3720 continue
3721 fi
3722 rm -f conftest.err conftest.i conftest.$ac_ext
3723
3724 # OK, works on sane cases. Now check whether nonexistent headers
3725 # can be detected and how.
3726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3727 /* end confdefs.h. */
3728 #include <ac_nonexistent.h>
3729 _ACEOF
3730 if ac_fn_c_try_cpp "$LINENO"; then :
3731 # Broken: success on invalid input.
3732 continue
3733 else
3734 # Passes both tests.
3735 ac_preproc_ok=:
3736 break
3737 fi
3738 rm -f conftest.err conftest.i conftest.$ac_ext
3739
3740 done
3741 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3742 rm -f conftest.i conftest.err conftest.$ac_ext
3743 if $ac_preproc_ok; then :
3744
3745 else
3746 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3747 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3748 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3749 See \`config.log' for more details" "$LINENO" 5; }
3750 fi
3751
3752 ac_ext=c
3753 ac_cpp='$CPP $CPPFLAGS'
3754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3757
3758
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3760 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3761 if ${ac_cv_path_GREP+:} false; then :
3762 $as_echo_n "(cached) " >&6
3763 else
3764 if test -z "$GREP"; then
3765 ac_path_GREP_found=false
3766 # Loop through the user's path and test for each of PROGNAME-LIST
3767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3768 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3769 do
3770 IFS=$as_save_IFS
3771 test -z "$as_dir" && as_dir=.
3772 for ac_prog in grep ggrep; do
3773 for ac_exec_ext in '' $ac_executable_extensions; do
3774 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3775 as_fn_executable_p "$ac_path_GREP" || continue
3776 # Check for GNU ac_path_GREP and select it if it is found.
3777 # Check for GNU $ac_path_GREP
3778 case `"$ac_path_GREP" --version 2>&1` in
3779 *GNU*)
3780 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3781 *)
3782 ac_count=0
3783 $as_echo_n 0123456789 >"conftest.in"
3784 while :
3785 do
3786 cat "conftest.in" "conftest.in" >"conftest.tmp"
3787 mv "conftest.tmp" "conftest.in"
3788 cp "conftest.in" "conftest.nl"
3789 $as_echo 'GREP' >> "conftest.nl"
3790 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3791 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3792 as_fn_arith $ac_count + 1 && ac_count=$as_val
3793 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3794 # Best one so far, save it but keep looking for a better one
3795 ac_cv_path_GREP="$ac_path_GREP"
3796 ac_path_GREP_max=$ac_count
3797 fi
3798 # 10*(2^10) chars as input seems more than enough
3799 test $ac_count -gt 10 && break
3800 done
3801 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3802 esac
3803
3804 $ac_path_GREP_found && break 3
3805 done
3806 done
3807 done
3808 IFS=$as_save_IFS
3809 if test -z "$ac_cv_path_GREP"; then
3810 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3811 fi
3812 else
3813 ac_cv_path_GREP=$GREP
3814 fi
3815
3816 fi
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3818 $as_echo "$ac_cv_path_GREP" >&6; }
3819 GREP="$ac_cv_path_GREP"
3820
3821
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3823 $as_echo_n "checking for egrep... " >&6; }
3824 if ${ac_cv_path_EGREP+:} false; then :
3825 $as_echo_n "(cached) " >&6
3826 else
3827 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3828 then ac_cv_path_EGREP="$GREP -E"
3829 else
3830 if test -z "$EGREP"; then
3831 ac_path_EGREP_found=false
3832 # Loop through the user's path and test for each of PROGNAME-LIST
3833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3834 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3835 do
3836 IFS=$as_save_IFS
3837 test -z "$as_dir" && as_dir=.
3838 for ac_prog in egrep; do
3839 for ac_exec_ext in '' $ac_executable_extensions; do
3840 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3841 as_fn_executable_p "$ac_path_EGREP" || continue
3842 # Check for GNU ac_path_EGREP and select it if it is found.
3843 # Check for GNU $ac_path_EGREP
3844 case `"$ac_path_EGREP" --version 2>&1` in
3845 *GNU*)
3846 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3847 *)
3848 ac_count=0
3849 $as_echo_n 0123456789 >"conftest.in"
3850 while :
3851 do
3852 cat "conftest.in" "conftest.in" >"conftest.tmp"
3853 mv "conftest.tmp" "conftest.in"
3854 cp "conftest.in" "conftest.nl"
3855 $as_echo 'EGREP' >> "conftest.nl"
3856 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3857 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3858 as_fn_arith $ac_count + 1 && ac_count=$as_val
3859 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3860 # Best one so far, save it but keep looking for a better one
3861 ac_cv_path_EGREP="$ac_path_EGREP"
3862 ac_path_EGREP_max=$ac_count
3863 fi
3864 # 10*(2^10) chars as input seems more than enough
3865 test $ac_count -gt 10 && break
3866 done
3867 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3868 esac
3869
3870 $ac_path_EGREP_found && break 3
3871 done
3872 done
3873 done
3874 IFS=$as_save_IFS
3875 if test -z "$ac_cv_path_EGREP"; then
3876 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3877 fi
3878 else
3879 ac_cv_path_EGREP=$EGREP
3880 fi
3881
3882 fi
3883 fi
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3885 $as_echo "$ac_cv_path_EGREP" >&6; }
3886 EGREP="$ac_cv_path_EGREP"
3887
3888
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3890 $as_echo_n "checking for ANSI C header files... " >&6; }
3891 if ${ac_cv_header_stdc+:} false; then :
3892 $as_echo_n "(cached) " >&6
3893 else
3894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3895 /* end confdefs.h. */
3896 #include <stdlib.h>
3897 #include <stdarg.h>
3898 #include <string.h>
3899 #include <float.h>
3900
3901 int
3902 main ()
3903 {
3904
3905 ;
3906 return 0;
3907 }
3908 _ACEOF
3909 if ac_fn_c_try_compile "$LINENO"; then :
3910 ac_cv_header_stdc=yes
3911 else
3912 ac_cv_header_stdc=no
3913 fi
3914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3915
3916 if test $ac_cv_header_stdc = yes; then
3917 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3919 /* end confdefs.h. */
3920 #include <string.h>
3921
3922 _ACEOF
3923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3924 $EGREP "memchr" >/dev/null 2>&1; then :
3925
3926 else
3927 ac_cv_header_stdc=no
3928 fi
3929 rm -f conftest*
3930
3931 fi
3932
3933 if test $ac_cv_header_stdc = yes; then
3934 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3936 /* end confdefs.h. */
3937 #include <stdlib.h>
3938
3939 _ACEOF
3940 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3941 $EGREP "free" >/dev/null 2>&1; then :
3942
3943 else
3944 ac_cv_header_stdc=no
3945 fi
3946 rm -f conftest*
3947
3948 fi
3949
3950 if test $ac_cv_header_stdc = yes; then
3951 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3952 if test "$cross_compiling" = yes; then :
3953 :
3954 else
3955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3956 /* end confdefs.h. */
3957 #include <ctype.h>
3958 #include <stdlib.h>
3959 #if ((' ' & 0x0FF) == 0x020)
3960 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3961 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3962 #else
3963 # define ISLOWER(c) \
3964 (('a' <= (c) && (c) <= 'i') \
3965 || ('j' <= (c) && (c) <= 'r') \
3966 || ('s' <= (c) && (c) <= 'z'))
3967 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3968 #endif
3969
3970 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3971 int
3972 main ()
3973 {
3974 int i;
3975 for (i = 0; i < 256; i++)
3976 if (XOR (islower (i), ISLOWER (i))
3977 || toupper (i) != TOUPPER (i))
3978 return 2;
3979 return 0;
3980 }
3981 _ACEOF
3982 if ac_fn_c_try_run "$LINENO"; then :
3983
3984 else
3985 ac_cv_header_stdc=no
3986 fi
3987 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3988 conftest.$ac_objext conftest.beam conftest.$ac_ext
3989 fi
3990
3991 fi
3992 fi
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3994 $as_echo "$ac_cv_header_stdc" >&6; }
3995 if test $ac_cv_header_stdc = yes; then
3996
3997 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3998
3999 fi
4000
4001 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4002 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4003 inttypes.h stdint.h unistd.h
4004 do :
4005 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4006 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4007 "
4008 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4009 cat >>confdefs.h <<_ACEOF
4010 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4011 _ACEOF
4012
4013 fi
4014
4015 done
4016
4017
4018
4019 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4020 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4021 MINIX=yes
4022 else
4023 MINIX=
4024 fi
4025
4026
4027 if test "$MINIX" = yes; then
4028
4029 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4030
4031
4032 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4033
4034
4035 $as_echo "#define _MINIX 1" >>confdefs.h
4036
4037 fi
4038
4039
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4041 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4042 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4043 $as_echo_n "(cached) " >&6
4044 else
4045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4046 /* end confdefs.h. */
4047
4048 # define __EXTENSIONS__ 1
4049 $ac_includes_default
4050 int
4051 main ()
4052 {
4053
4054 ;
4055 return 0;
4056 }
4057 _ACEOF
4058 if ac_fn_c_try_compile "$LINENO"; then :
4059 ac_cv_safe_to_define___extensions__=yes
4060 else
4061 ac_cv_safe_to_define___extensions__=no
4062 fi
4063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4064 fi
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4066 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4067 test $ac_cv_safe_to_define___extensions__ = yes &&
4068 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4069
4070 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4071
4072 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4073
4074 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4075
4076 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4077
4078
4079
4080 # Do not delete or change the following two lines. For why, see
4081 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
4082 # Make sure we can run config.sub.
4083 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4084 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4085
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4087 $as_echo_n "checking build system type... " >&6; }
4088 if ${ac_cv_build+:} false; then :
4089 $as_echo_n "(cached) " >&6
4090 else
4091 ac_build_alias=$build_alias
4092 test "x$ac_build_alias" = x &&
4093 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4094 test "x$ac_build_alias" = x &&
4095 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4096 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4097 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4098
4099 fi
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4101 $as_echo "$ac_cv_build" >&6; }
4102 case $ac_cv_build in
4103 *-*-*) ;;
4104 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4105 esac
4106 build=$ac_cv_build
4107 ac_save_IFS=$IFS; IFS='-'
4108 set x $ac_cv_build
4109 shift
4110 build_cpu=$1
4111 build_vendor=$2
4112 shift; shift
4113 # Remember, the first character of IFS is used to create $*,
4114 # except with old shells:
4115 build_os=$*
4116 IFS=$ac_save_IFS
4117 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4118
4119
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4121 $as_echo_n "checking host system type... " >&6; }
4122 if ${ac_cv_host+:} false; then :
4123 $as_echo_n "(cached) " >&6
4124 else
4125 if test "x$host_alias" = x; then
4126 ac_cv_host=$ac_cv_build
4127 else
4128 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4129 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4130 fi
4131
4132 fi
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4134 $as_echo "$ac_cv_host" >&6; }
4135 case $ac_cv_host in
4136 *-*-*) ;;
4137 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4138 esac
4139 host=$ac_cv_host
4140 ac_save_IFS=$IFS; IFS='-'
4141 set x $ac_cv_host
4142 shift
4143 host_cpu=$1
4144 host_vendor=$2
4145 shift; shift
4146 # Remember, the first character of IFS is used to create $*,
4147 # except with old shells:
4148 host_os=$*
4149 IFS=$ac_save_IFS
4150 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4151
4152
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4154 $as_echo_n "checking target system type... " >&6; }
4155 if ${ac_cv_target+:} false; then :
4156 $as_echo_n "(cached) " >&6
4157 else
4158 if test "x$target_alias" = x; then
4159 ac_cv_target=$ac_cv_host
4160 else
4161 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4162 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4163 fi
4164
4165 fi
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4167 $as_echo "$ac_cv_target" >&6; }
4168 case $ac_cv_target in
4169 *-*-*) ;;
4170 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
4171 esac
4172 target=$ac_cv_target
4173 ac_save_IFS=$IFS; IFS='-'
4174 set x $ac_cv_target
4175 shift
4176 target_cpu=$1
4177 target_vendor=$2
4178 shift; shift
4179 # Remember, the first character of IFS is used to create $*,
4180 # except with old shells:
4181 target_os=$*
4182 IFS=$ac_save_IFS
4183 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4184
4185
4186 # The aliases save the names the user supplied, while $host etc.
4187 # will get canonicalized.
4188 test -n "$target_alias" &&
4189 test "$program_prefix$program_suffix$program_transform_name" = \
4190 NONENONEs,x,x, &&
4191 program_prefix=${target_alias}-
4192
4193 target_alias=${target_alias-$host_alias}
4194
4195 case ${build_alias} in
4196 "") build_noncanonical=${build} ;;
4197 *) build_noncanonical=${build_alias} ;;
4198 esac
4199
4200 case ${host_alias} in
4201 "") host_noncanonical=${build_noncanonical} ;;
4202 *) host_noncanonical=${host_alias} ;;
4203 esac
4204
4205 case ${target_alias} in
4206 "") target_noncanonical=${host_noncanonical} ;;
4207 *) target_noncanonical=${target_alias} ;;
4208 esac
4209
4210
4211
4212
4213
4214 LIBSTDCXX_RAW_CXX_CXXFLAGS="\
4215 -I\$(top_builddir)/../libstdc++-v3/include \
4216 -I\$(top_builddir)/../libstdc++-v3/include/\$(target_noncanonical) \
4217 -I\$(top_srcdir)/../libstdc++-v3/libsupc++"
4218 LIBSTDCXX_RAW_CXX_LDFLAGS="\
4219 \$(top_builddir)/../libstdc++-v3/src/libstdc++.la"
4220
4221
4222
4223
4224 am__api_version='1.15'
4225
4226 # Find a good install program. We prefer a C program (faster),
4227 # so one script is as good as another. But avoid the broken or
4228 # incompatible versions:
4229 # SysV /etc/install, /usr/sbin/install
4230 # SunOS /usr/etc/install
4231 # IRIX /sbin/install
4232 # AIX /bin/install
4233 # AmigaOS /C/install, which installs bootblocks on floppy discs
4234 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4235 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4236 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4237 # OS/2's system install, which has a completely different semantic
4238 # ./install, which can be erroneously created by make from ./install.sh.
4239 # Reject install programs that cannot install multiple files.
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4241 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4242 if test -z "$INSTALL"; then
4243 if ${ac_cv_path_install+:} false; then :
4244 $as_echo_n "(cached) " >&6
4245 else
4246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4247 for as_dir in $PATH
4248 do
4249 IFS=$as_save_IFS
4250 test -z "$as_dir" && as_dir=.
4251 # Account for people who put trailing slashes in PATH elements.
4252 case $as_dir/ in #((
4253 ./ | .// | /[cC]/* | \
4254 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4255 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4256 /usr/ucb/* ) ;;
4257 *)
4258 # OSF1 and SCO ODT 3.0 have their own names for install.
4259 # Don't use installbsd from OSF since it installs stuff as root
4260 # by default.
4261 for ac_prog in ginstall scoinst install; do
4262 for ac_exec_ext in '' $ac_executable_extensions; do
4263 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4264 if test $ac_prog = install &&
4265 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4266 # AIX install. It has an incompatible calling convention.
4267 :
4268 elif test $ac_prog = install &&
4269 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4270 # program-specific install script used by HP pwplus--don't use.
4271 :
4272 else
4273 rm -rf conftest.one conftest.two conftest.dir
4274 echo one > conftest.one
4275 echo two > conftest.two
4276 mkdir conftest.dir
4277 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4278 test -s conftest.one && test -s conftest.two &&
4279 test -s conftest.dir/conftest.one &&
4280 test -s conftest.dir/conftest.two
4281 then
4282 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4283 break 3
4284 fi
4285 fi
4286 fi
4287 done
4288 done
4289 ;;
4290 esac
4291
4292 done
4293 IFS=$as_save_IFS
4294
4295 rm -rf conftest.one conftest.two conftest.dir
4296
4297 fi
4298 if test "${ac_cv_path_install+set}" = set; then
4299 INSTALL=$ac_cv_path_install
4300 else
4301 # As a last resort, use the slow shell script. Don't cache a
4302 # value for INSTALL within a source directory, because that will
4303 # break other packages using the cache if that directory is
4304 # removed, or if the value is a relative name.
4305 INSTALL=$ac_install_sh
4306 fi
4307 fi
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4309 $as_echo "$INSTALL" >&6; }
4310
4311 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4312 # It thinks the first close brace ends the variable substitution.
4313 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4314
4315 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4316
4317 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4318
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4320 $as_echo_n "checking whether build environment is sane... " >&6; }
4321 # Reject unsafe characters in $srcdir or the absolute working directory
4322 # name. Accept space and tab only in the latter.
4323 am_lf='
4324 '
4325 case `pwd` in
4326 *[\\\"\#\$\&\'\`$am_lf]*)
4327 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4328 esac
4329 case $srcdir in
4330 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4331 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4332 esac
4333
4334 # Do 'set' in a subshell so we don't clobber the current shell's
4335 # arguments. Must try -L first in case configure is actually a
4336 # symlink; some systems play weird games with the mod time of symlinks
4337 # (eg FreeBSD returns the mod time of the symlink's containing
4338 # directory).
4339 if (
4340 am_has_slept=no
4341 for am_try in 1 2; do
4342 echo "timestamp, slept: $am_has_slept" > conftest.file
4343 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4344 if test "$*" = "X"; then
4345 # -L didn't work.
4346 set X `ls -t "$srcdir/configure" conftest.file`
4347 fi
4348 if test "$*" != "X $srcdir/configure conftest.file" \
4349 && test "$*" != "X conftest.file $srcdir/configure"; then
4350
4351 # If neither matched, then we have a broken ls. This can happen
4352 # if, for instance, CONFIG_SHELL is bash and it inherits a
4353 # broken ls alias from the environment. This has actually
4354 # happened. Such a system could not be considered "sane".
4355 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4356 alias in your environment" "$LINENO" 5
4357 fi
4358 if test "$2" = conftest.file || test $am_try -eq 2; then
4359 break
4360 fi
4361 # Just in case.
4362 sleep 1
4363 am_has_slept=yes
4364 done
4365 test "$2" = conftest.file
4366 )
4367 then
4368 # Ok.
4369 :
4370 else
4371 as_fn_error $? "newly created file is older than distributed files!
4372 Check your system clock" "$LINENO" 5
4373 fi
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4375 $as_echo "yes" >&6; }
4376 # If we didn't sleep, we still need to ensure time stamps of config.status and
4377 # generated files are strictly newer.
4378 am_sleep_pid=
4379 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4380 ( sleep 1 ) &
4381 am_sleep_pid=$!
4382 fi
4383
4384 rm -f conftest.file
4385
4386 test "$program_prefix" != NONE &&
4387 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4388 # Use a double $ so make ignores it.
4389 test "$program_suffix" != NONE &&
4390 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4391 # Double any \ or $.
4392 # By default was `s,x,x', remove it if useless.
4393 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4394 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4395
4396 if test x"${MISSING+set}" != xset; then
4397 case $am_aux_dir in
4398 *\ * | *\ *)
4399 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4400 *)
4401 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4402 esac
4403 fi
4404 # Use eval to expand $SHELL
4405 if eval "$MISSING --is-lightweight"; then
4406 am_missing_run="$MISSING "
4407 else
4408 am_missing_run=
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4410 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4411 fi
4412
4413 if test x"${install_sh+set}" != xset; then
4414 case $am_aux_dir in
4415 *\ * | *\ *)
4416 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4417 *)
4418 install_sh="\${SHELL} $am_aux_dir/install-sh"
4419 esac
4420 fi
4421
4422 # Installed binaries are usually stripped using 'strip' when the user
4423 # run "make install-strip". However 'strip' might not be the right
4424 # tool to use in cross-compilation environments, therefore Automake
4425 # will honor the 'STRIP' environment variable to overrule this program.
4426 if test "$cross_compiling" != no; then
4427 if test -n "$ac_tool_prefix"; then
4428 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4429 set dummy ${ac_tool_prefix}strip; ac_word=$2
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4431 $as_echo_n "checking for $ac_word... " >&6; }
4432 if ${ac_cv_prog_STRIP+:} false; then :
4433 $as_echo_n "(cached) " >&6
4434 else
4435 if test -n "$STRIP"; then
4436 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4437 else
4438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4439 for as_dir in $PATH
4440 do
4441 IFS=$as_save_IFS
4442 test -z "$as_dir" && as_dir=.
4443 for ac_exec_ext in '' $ac_executable_extensions; do
4444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4445 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4447 break 2
4448 fi
4449 done
4450 done
4451 IFS=$as_save_IFS
4452
4453 fi
4454 fi
4455 STRIP=$ac_cv_prog_STRIP
4456 if test -n "$STRIP"; then
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4458 $as_echo "$STRIP" >&6; }
4459 else
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4461 $as_echo "no" >&6; }
4462 fi
4463
4464
4465 fi
4466 if test -z "$ac_cv_prog_STRIP"; then
4467 ac_ct_STRIP=$STRIP
4468 # Extract the first word of "strip", so it can be a program name with args.
4469 set dummy strip; ac_word=$2
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4471 $as_echo_n "checking for $ac_word... " >&6; }
4472 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4473 $as_echo_n "(cached) " >&6
4474 else
4475 if test -n "$ac_ct_STRIP"; then
4476 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4477 else
4478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4479 for as_dir in $PATH
4480 do
4481 IFS=$as_save_IFS
4482 test -z "$as_dir" && as_dir=.
4483 for ac_exec_ext in '' $ac_executable_extensions; do
4484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4485 ac_cv_prog_ac_ct_STRIP="strip"
4486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4487 break 2
4488 fi
4489 done
4490 done
4491 IFS=$as_save_IFS
4492
4493 fi
4494 fi
4495 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4496 if test -n "$ac_ct_STRIP"; then
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4498 $as_echo "$ac_ct_STRIP" >&6; }
4499 else
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4501 $as_echo "no" >&6; }
4502 fi
4503
4504 if test "x$ac_ct_STRIP" = x; then
4505 STRIP=":"
4506 else
4507 case $cross_compiling:$ac_tool_warned in
4508 yes:)
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4510 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4511 ac_tool_warned=yes ;;
4512 esac
4513 STRIP=$ac_ct_STRIP
4514 fi
4515 else
4516 STRIP="$ac_cv_prog_STRIP"
4517 fi
4518
4519 fi
4520 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4521
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4523 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4524 if test -z "$MKDIR_P"; then
4525 if ${ac_cv_path_mkdir+:} false; then :
4526 $as_echo_n "(cached) " >&6
4527 else
4528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4529 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4530 do
4531 IFS=$as_save_IFS
4532 test -z "$as_dir" && as_dir=.
4533 for ac_prog in mkdir gmkdir; do
4534 for ac_exec_ext in '' $ac_executable_extensions; do
4535 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4536 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4537 'mkdir (GNU coreutils) '* | \
4538 'mkdir (coreutils) '* | \
4539 'mkdir (fileutils) '4.1*)
4540 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4541 break 3;;
4542 esac
4543 done
4544 done
4545 done
4546 IFS=$as_save_IFS
4547
4548 fi
4549
4550 test -d ./--version && rmdir ./--version
4551 if test "${ac_cv_path_mkdir+set}" = set; then
4552 MKDIR_P="$ac_cv_path_mkdir -p"
4553 else
4554 # As a last resort, use the slow shell script. Don't cache a
4555 # value for MKDIR_P within a source directory, because that will
4556 # break other packages using the cache if that directory is
4557 # removed, or if the value is a relative name.
4558 MKDIR_P="$ac_install_sh -d"
4559 fi
4560 fi
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4562 $as_echo "$MKDIR_P" >&6; }
4563
4564 for ac_prog in gawk mawk nawk awk
4565 do
4566 # Extract the first word of "$ac_prog", so it can be a program name with args.
4567 set dummy $ac_prog; ac_word=$2
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4569 $as_echo_n "checking for $ac_word... " >&6; }
4570 if ${ac_cv_prog_AWK+:} false; then :
4571 $as_echo_n "(cached) " >&6
4572 else
4573 if test -n "$AWK"; then
4574 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4575 else
4576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4577 for as_dir in $PATH
4578 do
4579 IFS=$as_save_IFS
4580 test -z "$as_dir" && as_dir=.
4581 for ac_exec_ext in '' $ac_executable_extensions; do
4582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4583 ac_cv_prog_AWK="$ac_prog"
4584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4585 break 2
4586 fi
4587 done
4588 done
4589 IFS=$as_save_IFS
4590
4591 fi
4592 fi
4593 AWK=$ac_cv_prog_AWK
4594 if test -n "$AWK"; then
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4596 $as_echo "$AWK" >&6; }
4597 else
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4599 $as_echo "no" >&6; }
4600 fi
4601
4602
4603 test -n "$AWK" && break
4604 done
4605
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4607 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4608 set x ${MAKE-make}
4609 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4610 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4611 $as_echo_n "(cached) " >&6
4612 else
4613 cat >conftest.make <<\_ACEOF
4614 SHELL = /bin/sh
4615 all:
4616 @echo '@@@%%%=$(MAKE)=@@@%%%'
4617 _ACEOF
4618 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4619 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4620 *@@@%%%=?*=@@@%%%*)
4621 eval ac_cv_prog_make_${ac_make}_set=yes;;
4622 *)
4623 eval ac_cv_prog_make_${ac_make}_set=no;;
4624 esac
4625 rm -f conftest.make
4626 fi
4627 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4629 $as_echo "yes" >&6; }
4630 SET_MAKE=
4631 else
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4633 $as_echo "no" >&6; }
4634 SET_MAKE="MAKE=${MAKE-make}"
4635 fi
4636
4637 rm -rf .tst 2>/dev/null
4638 mkdir .tst 2>/dev/null
4639 if test -d .tst; then
4640 am__leading_dot=.
4641 else
4642 am__leading_dot=_
4643 fi
4644 rmdir .tst 2>/dev/null
4645
4646 DEPDIR="${am__leading_dot}deps"
4647
4648 ac_config_commands="$ac_config_commands depfiles"
4649
4650
4651 am_make=${MAKE-make}
4652 cat > confinc << 'END'
4653 am__doit:
4654 @echo this is the am__doit target
4655 .PHONY: am__doit
4656 END
4657 # If we don't find an include directive, just comment out the code.
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4659 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4660 am__include="#"
4661 am__quote=
4662 _am_result=none
4663 # First try GNU make style include.
4664 echo "include confinc" > confmf
4665 # Ignore all kinds of additional output from 'make'.
4666 case `$am_make -s -f confmf 2> /dev/null` in #(
4667 *the\ am__doit\ target*)
4668 am__include=include
4669 am__quote=
4670 _am_result=GNU
4671 ;;
4672 esac
4673 # Now try BSD make style include.
4674 if test "$am__include" = "#"; then
4675 echo '.include "confinc"' > confmf
4676 case `$am_make -s -f confmf 2> /dev/null` in #(
4677 *the\ am__doit\ target*)
4678 am__include=.include
4679 am__quote="\""
4680 _am_result=BSD
4681 ;;
4682 esac
4683 fi
4684
4685
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4687 $as_echo "$_am_result" >&6; }
4688 rm -f confinc confmf
4689
4690 # Check whether --enable-dependency-tracking was given.
4691 if test "${enable_dependency_tracking+set}" = set; then :
4692 enableval=$enable_dependency_tracking;
4693 fi
4694
4695 if test "x$enable_dependency_tracking" != xno; then
4696 am_depcomp="$ac_aux_dir/depcomp"
4697 AMDEPBACKSLASH='\'
4698 am__nodep='_no'
4699 fi
4700 if test "x$enable_dependency_tracking" != xno; then
4701 AMDEP_TRUE=
4702 AMDEP_FALSE='#'
4703 else
4704 AMDEP_TRUE='#'
4705 AMDEP_FALSE=
4706 fi
4707
4708
4709 # Check whether --enable-silent-rules was given.
4710 if test "${enable_silent_rules+set}" = set; then :
4711 enableval=$enable_silent_rules;
4712 fi
4713
4714 case $enable_silent_rules in # (((
4715 yes) AM_DEFAULT_VERBOSITY=0;;
4716 no) AM_DEFAULT_VERBOSITY=1;;
4717 *) AM_DEFAULT_VERBOSITY=1;;
4718 esac
4719 am_make=${MAKE-make}
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4721 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4722 if ${am_cv_make_support_nested_variables+:} false; then :
4723 $as_echo_n "(cached) " >&6
4724 else
4725 if $as_echo 'TRUE=$(BAR$(V))
4726 BAR0=false
4727 BAR1=true
4728 V=1
4729 am__doit:
4730 @$(TRUE)
4731 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4732 am_cv_make_support_nested_variables=yes
4733 else
4734 am_cv_make_support_nested_variables=no
4735 fi
4736 fi
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4738 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4739 if test $am_cv_make_support_nested_variables = yes; then
4740 AM_V='$(V)'
4741 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4742 else
4743 AM_V=$AM_DEFAULT_VERBOSITY
4744 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4745 fi
4746 AM_BACKSLASH='\'
4747
4748 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4749 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4750 # is not polluted with repeated "-I."
4751 am__isrc=' -I$(srcdir)'
4752 # test to see if srcdir already configured
4753 if test -f $srcdir/config.status; then
4754 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4755 fi
4756 fi
4757
4758 # test whether we have cygpath
4759 if test -z "$CYGPATH_W"; then
4760 if (cygpath --version) >/dev/null 2>/dev/null; then
4761 CYGPATH_W='cygpath -w'
4762 else
4763 CYGPATH_W=echo
4764 fi
4765 fi
4766
4767
4768 # Define the identity of the package.
4769 PACKAGE='package-unused'
4770 VERSION='version-unused'
4771
4772
4773 cat >>confdefs.h <<_ACEOF
4774 #define PACKAGE "$PACKAGE"
4775 _ACEOF
4776
4777
4778 cat >>confdefs.h <<_ACEOF
4779 #define VERSION "$VERSION"
4780 _ACEOF
4781
4782 # Some tools Automake needs.
4783
4784 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4785
4786
4787 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4788
4789
4790 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4791
4792
4793 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4794
4795
4796 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4797
4798 # For better backward compatibility. To be removed once Automake 1.9.x
4799 # dies out for good. For more background, see:
4800 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4801 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4802 mkdir_p='$(MKDIR_P)'
4803
4804 # We need awk for the "check" target (and possibly the TAP driver). The
4805 # system "awk" is bad on some platforms.
4806 # Always define AMTAR for backward compatibility. Yes, it's still used
4807 # in the wild :-( We should find a proper way to deprecate it ...
4808 AMTAR='$${TAR-tar}'
4809
4810
4811 # We'll loop over all known methods to create a tar archive until one works.
4812 _am_tools='gnutar pax cpio none'
4813
4814 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4815
4816
4817
4818
4819
4820 depcc="$CC" am_compiler_list=
4821
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4823 $as_echo_n "checking dependency style of $depcc... " >&6; }
4824 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4825 $as_echo_n "(cached) " >&6
4826 else
4827 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4828 # We make a subdir and do the tests there. Otherwise we can end up
4829 # making bogus files that we don't know about and never remove. For
4830 # instance it was reported that on HP-UX the gcc test will end up
4831 # making a dummy file named 'D' -- because '-MD' means "put the output
4832 # in D".
4833 rm -rf conftest.dir
4834 mkdir conftest.dir
4835 # Copy depcomp to subdir because otherwise we won't find it if we're
4836 # using a relative directory.
4837 cp "$am_depcomp" conftest.dir
4838 cd conftest.dir
4839 # We will build objects and dependencies in a subdirectory because
4840 # it helps to detect inapplicable dependency modes. For instance
4841 # both Tru64's cc and ICC support -MD to output dependencies as a
4842 # side effect of compilation, but ICC will put the dependencies in
4843 # the current directory while Tru64 will put them in the object
4844 # directory.
4845 mkdir sub
4846
4847 am_cv_CC_dependencies_compiler_type=none
4848 if test "$am_compiler_list" = ""; then
4849 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4850 fi
4851 am__universal=false
4852 case " $depcc " in #(
4853 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4854 esac
4855
4856 for depmode in $am_compiler_list; do
4857 # Setup a source with many dependencies, because some compilers
4858 # like to wrap large dependency lists on column 80 (with \), and
4859 # we should not choose a depcomp mode which is confused by this.
4860 #
4861 # We need to recreate these files for each test, as the compiler may
4862 # overwrite some of them when testing with obscure command lines.
4863 # This happens at least with the AIX C compiler.
4864 : > sub/conftest.c
4865 for i in 1 2 3 4 5 6; do
4866 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4867 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4868 # Solaris 10 /bin/sh.
4869 echo '/* dummy */' > sub/conftst$i.h
4870 done
4871 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4872
4873 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4874 # mode. It turns out that the SunPro C++ compiler does not properly
4875 # handle '-M -o', and we need to detect this. Also, some Intel
4876 # versions had trouble with output in subdirs.
4877 am__obj=sub/conftest.${OBJEXT-o}
4878 am__minus_obj="-o $am__obj"
4879 case $depmode in
4880 gcc)
4881 # This depmode causes a compiler race in universal mode.
4882 test "$am__universal" = false || continue
4883 ;;
4884 nosideeffect)
4885 # After this tag, mechanisms are not by side-effect, so they'll
4886 # only be used when explicitly requested.
4887 if test "x$enable_dependency_tracking" = xyes; then
4888 continue
4889 else
4890 break
4891 fi
4892 ;;
4893 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4894 # This compiler won't grok '-c -o', but also, the minuso test has
4895 # not run yet. These depmodes are late enough in the game, and
4896 # so weak that their functioning should not be impacted.
4897 am__obj=conftest.${OBJEXT-o}
4898 am__minus_obj=
4899 ;;
4900 none) break ;;
4901 esac
4902 if depmode=$depmode \
4903 source=sub/conftest.c object=$am__obj \
4904 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4905 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4906 >/dev/null 2>conftest.err &&
4907 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4908 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4909 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4910 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4911 # icc doesn't choke on unknown options, it will just issue warnings
4912 # or remarks (even with -Werror). So we grep stderr for any message
4913 # that says an option was ignored or not supported.
4914 # When given -MP, icc 7.0 and 7.1 complain thusly:
4915 # icc: Command line warning: ignoring option '-M'; no argument required
4916 # The diagnosis changed in icc 8.0:
4917 # icc: Command line remark: option '-MP' not supported
4918 if (grep 'ignoring option' conftest.err ||
4919 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4920 am_cv_CC_dependencies_compiler_type=$depmode
4921 break
4922 fi
4923 fi
4924 done
4925
4926 cd ..
4927 rm -rf conftest.dir
4928 else
4929 am_cv_CC_dependencies_compiler_type=none
4930 fi
4931
4932 fi
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4934 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4935 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4936
4937 if
4938 test "x$enable_dependency_tracking" != xno \
4939 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4940 am__fastdepCC_TRUE=
4941 am__fastdepCC_FALSE='#'
4942 else
4943 am__fastdepCC_TRUE='#'
4944 am__fastdepCC_FALSE=
4945 fi
4946
4947
4948
4949 # POSIX will say in a future version that running "rm -f" with no argument
4950 # is OK; and we want to be able to make that assumption in our Makefile
4951 # recipes. So use an aggressive probe to check that the usage we want is
4952 # actually supported "in the wild" to an acceptable degree.
4953 # See automake bug#10828.
4954 # To make any issue more visible, cause the running configure to be aborted
4955 # by default if the 'rm' program in use doesn't match our expectations; the
4956 # user can still override this though.
4957 if rm -f && rm -fr && rm -rf; then : OK; else
4958 cat >&2 <<'END'
4959 Oops!
4960
4961 Your 'rm' program seems unable to run without file operands specified
4962 on the command line, even when the '-f' option is present. This is contrary
4963 to the behaviour of most rm programs out there, and not conforming with
4964 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4965
4966 Please tell bug-automake@gnu.org about your system, including the value
4967 of your $PATH and any error possibly output before this message. This
4968 can help us improve future automake versions.
4969
4970 END
4971 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4972 echo 'Configuration will proceed anyway, since you have set the' >&2
4973 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4974 echo >&2
4975 else
4976 cat >&2 <<'END'
4977 Aborting the configuration process, to ensure you take notice of the issue.
4978
4979 You can download and install GNU coreutils to get an 'rm' implementation
4980 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4981
4982 If you want to complete the configuration process using your problematic
4983 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4984 to "yes", and re-run configure.
4985
4986 END
4987 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4988 fi
4989 fi
4990
4991
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4993 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4994 # Check whether --enable-maintainer-mode was given.
4995 if test "${enable_maintainer_mode+set}" = set; then :
4996 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4997 else
4998 USE_MAINTAINER_MODE=no
4999 fi
5000
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5002 $as_echo "$USE_MAINTAINER_MODE" >&6; }
5003 if test $USE_MAINTAINER_MODE = yes; then
5004 MAINTAINER_MODE_TRUE=
5005 MAINTAINER_MODE_FALSE='#'
5006 else
5007 MAINTAINER_MODE_TRUE='#'
5008 MAINTAINER_MODE_FALSE=
5009 fi
5010
5011 MAINT=$MAINTAINER_MODE_TRUE
5012
5013
5014
5015 # Calculate toolexeclibdir
5016 # Also toolexecdir, though it's only used in toolexeclibdir
5017 case ${version_specific_libs} in
5018 yes)
5019 # Need the gcc compiler version to know where to install libraries
5020 # and header files if --enable-version-specific-runtime-libs option
5021 # is selected.
5022 toolexecdir='$(libdir)/gcc/$(target_alias)'
5023 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
5024 ;;
5025 no)
5026 if test -n "$with_cross_host" &&
5027 test x"$with_cross_host" != x"no"; then
5028 # Install a library built with a cross compiler in tooldir, not libdir.
5029 toolexecdir='$(exec_prefix)/$(target_alias)'
5030 toolexeclibdir='$(toolexecdir)/lib'
5031 else
5032 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
5033 toolexeclibdir='$(libdir)'
5034 fi
5035 multi_os_directory=`$CC -print-multi-os-directory`
5036 case $multi_os_directory in
5037 .) ;; # Avoid trailing /.
5038 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
5039 esac
5040 ;;
5041 esac
5042
5043
5044
5045 # Checks for programs.
5046 ac_ext=c
5047 ac_cpp='$CPP $CPPFLAGS'
5048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5051 if test -n "$ac_tool_prefix"; then
5052 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5053 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5055 $as_echo_n "checking for $ac_word... " >&6; }
5056 if ${ac_cv_prog_CC+:} false; then :
5057 $as_echo_n "(cached) " >&6
5058 else
5059 if test -n "$CC"; then
5060 ac_cv_prog_CC="$CC" # Let the user override the test.
5061 else
5062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5063 for as_dir in $PATH
5064 do
5065 IFS=$as_save_IFS
5066 test -z "$as_dir" && as_dir=.
5067 for ac_exec_ext in '' $ac_executable_extensions; do
5068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5069 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5071 break 2
5072 fi
5073 done
5074 done
5075 IFS=$as_save_IFS
5076
5077 fi
5078 fi
5079 CC=$ac_cv_prog_CC
5080 if test -n "$CC"; then
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5082 $as_echo "$CC" >&6; }
5083 else
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5085 $as_echo "no" >&6; }
5086 fi
5087
5088
5089 fi
5090 if test -z "$ac_cv_prog_CC"; then
5091 ac_ct_CC=$CC
5092 # Extract the first word of "gcc", so it can be a program name with args.
5093 set dummy gcc; ac_word=$2
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5095 $as_echo_n "checking for $ac_word... " >&6; }
5096 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5097 $as_echo_n "(cached) " >&6
5098 else
5099 if test -n "$ac_ct_CC"; then
5100 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5101 else
5102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5103 for as_dir in $PATH
5104 do
5105 IFS=$as_save_IFS
5106 test -z "$as_dir" && as_dir=.
5107 for ac_exec_ext in '' $ac_executable_extensions; do
5108 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5109 ac_cv_prog_ac_ct_CC="gcc"
5110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5111 break 2
5112 fi
5113 done
5114 done
5115 IFS=$as_save_IFS
5116
5117 fi
5118 fi
5119 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5120 if test -n "$ac_ct_CC"; then
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5122 $as_echo "$ac_ct_CC" >&6; }
5123 else
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5125 $as_echo "no" >&6; }
5126 fi
5127
5128 if test "x$ac_ct_CC" = x; then
5129 CC=""
5130 else
5131 case $cross_compiling:$ac_tool_warned in
5132 yes:)
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5134 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5135 ac_tool_warned=yes ;;
5136 esac
5137 CC=$ac_ct_CC
5138 fi
5139 else
5140 CC="$ac_cv_prog_CC"
5141 fi
5142
5143 if test -z "$CC"; then
5144 if test -n "$ac_tool_prefix"; then
5145 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5146 set dummy ${ac_tool_prefix}cc; ac_word=$2
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5148 $as_echo_n "checking for $ac_word... " >&6; }
5149 if ${ac_cv_prog_CC+:} false; then :
5150 $as_echo_n "(cached) " >&6
5151 else
5152 if test -n "$CC"; then
5153 ac_cv_prog_CC="$CC" # Let the user override the test.
5154 else
5155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5156 for as_dir in $PATH
5157 do
5158 IFS=$as_save_IFS
5159 test -z "$as_dir" && as_dir=.
5160 for ac_exec_ext in '' $ac_executable_extensions; do
5161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5162 ac_cv_prog_CC="${ac_tool_prefix}cc"
5163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5164 break 2
5165 fi
5166 done
5167 done
5168 IFS=$as_save_IFS
5169
5170 fi
5171 fi
5172 CC=$ac_cv_prog_CC
5173 if test -n "$CC"; then
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5175 $as_echo "$CC" >&6; }
5176 else
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5178 $as_echo "no" >&6; }
5179 fi
5180
5181
5182 fi
5183 fi
5184 if test -z "$CC"; then
5185 # Extract the first word of "cc", so it can be a program name with args.
5186 set dummy cc; ac_word=$2
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5188 $as_echo_n "checking for $ac_word... " >&6; }
5189 if ${ac_cv_prog_CC+:} false; then :
5190 $as_echo_n "(cached) " >&6
5191 else
5192 if test -n "$CC"; then
5193 ac_cv_prog_CC="$CC" # Let the user override the test.
5194 else
5195 ac_prog_rejected=no
5196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5197 for as_dir in $PATH
5198 do
5199 IFS=$as_save_IFS
5200 test -z "$as_dir" && as_dir=.
5201 for ac_exec_ext in '' $ac_executable_extensions; do
5202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5203 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5204 ac_prog_rejected=yes
5205 continue
5206 fi
5207 ac_cv_prog_CC="cc"
5208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5209 break 2
5210 fi
5211 done
5212 done
5213 IFS=$as_save_IFS
5214
5215 if test $ac_prog_rejected = yes; then
5216 # We found a bogon in the path, so make sure we never use it.
5217 set dummy $ac_cv_prog_CC
5218 shift
5219 if test $# != 0; then
5220 # We chose a different compiler from the bogus one.
5221 # However, it has the same basename, so the bogon will be chosen
5222 # first if we set CC to just the basename; use the full file name.
5223 shift
5224 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5225 fi
5226 fi
5227 fi
5228 fi
5229 CC=$ac_cv_prog_CC
5230 if test -n "$CC"; then
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5232 $as_echo "$CC" >&6; }
5233 else
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5235 $as_echo "no" >&6; }
5236 fi
5237
5238
5239 fi
5240 if test -z "$CC"; then
5241 if test -n "$ac_tool_prefix"; then
5242 for ac_prog in cl.exe
5243 do
5244 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5245 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5247 $as_echo_n "checking for $ac_word... " >&6; }
5248 if ${ac_cv_prog_CC+:} false; then :
5249 $as_echo_n "(cached) " >&6
5250 else
5251 if test -n "$CC"; then
5252 ac_cv_prog_CC="$CC" # Let the user override the test.
5253 else
5254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5255 for as_dir in $PATH
5256 do
5257 IFS=$as_save_IFS
5258 test -z "$as_dir" && as_dir=.
5259 for ac_exec_ext in '' $ac_executable_extensions; do
5260 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5261 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5263 break 2
5264 fi
5265 done
5266 done
5267 IFS=$as_save_IFS
5268
5269 fi
5270 fi
5271 CC=$ac_cv_prog_CC
5272 if test -n "$CC"; then
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5274 $as_echo "$CC" >&6; }
5275 else
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5277 $as_echo "no" >&6; }
5278 fi
5279
5280
5281 test -n "$CC" && break
5282 done
5283 fi
5284 if test -z "$CC"; then
5285 ac_ct_CC=$CC
5286 for ac_prog in cl.exe
5287 do
5288 # Extract the first word of "$ac_prog", so it can be a program name with args.
5289 set dummy $ac_prog; ac_word=$2
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5291 $as_echo_n "checking for $ac_word... " >&6; }
5292 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5293 $as_echo_n "(cached) " >&6
5294 else
5295 if test -n "$ac_ct_CC"; then
5296 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5297 else
5298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5299 for as_dir in $PATH
5300 do
5301 IFS=$as_save_IFS
5302 test -z "$as_dir" && as_dir=.
5303 for ac_exec_ext in '' $ac_executable_extensions; do
5304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5305 ac_cv_prog_ac_ct_CC="$ac_prog"
5306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5307 break 2
5308 fi
5309 done
5310 done
5311 IFS=$as_save_IFS
5312
5313 fi
5314 fi
5315 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5316 if test -n "$ac_ct_CC"; then
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5318 $as_echo "$ac_ct_CC" >&6; }
5319 else
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5321 $as_echo "no" >&6; }
5322 fi
5323
5324
5325 test -n "$ac_ct_CC" && break
5326 done
5327
5328 if test "x$ac_ct_CC" = x; then
5329 CC=""
5330 else
5331 case $cross_compiling:$ac_tool_warned in
5332 yes:)
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5334 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5335 ac_tool_warned=yes ;;
5336 esac
5337 CC=$ac_ct_CC
5338 fi
5339 fi
5340
5341 fi
5342
5343
5344 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5345 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5346 as_fn_error $? "no acceptable C compiler found in \$PATH
5347 See \`config.log' for more details" "$LINENO" 5; }
5348
5349 # Provide some information about the compiler.
5350 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5351 set X $ac_compile
5352 ac_compiler=$2
5353 for ac_option in --version -v -V -qversion; do
5354 { { ac_try="$ac_compiler $ac_option >&5"
5355 case "(($ac_try" in
5356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5357 *) ac_try_echo=$ac_try;;
5358 esac
5359 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5360 $as_echo "$ac_try_echo"; } >&5
5361 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5362 ac_status=$?
5363 if test -s conftest.err; then
5364 sed '10a\
5365 ... rest of stderr output deleted ...
5366 10q' conftest.err >conftest.er1
5367 cat conftest.er1 >&5
5368 fi
5369 rm -f conftest.er1 conftest.err
5370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5371 test $ac_status = 0; }
5372 done
5373
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5375 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5376 if ${ac_cv_c_compiler_gnu+:} false; then :
5377 $as_echo_n "(cached) " >&6
5378 else
5379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5380 /* end confdefs.h. */
5381
5382 int
5383 main ()
5384 {
5385 #ifndef __GNUC__
5386 choke me
5387 #endif
5388
5389 ;
5390 return 0;
5391 }
5392 _ACEOF
5393 if ac_fn_c_try_compile "$LINENO"; then :
5394 ac_compiler_gnu=yes
5395 else
5396 ac_compiler_gnu=no
5397 fi
5398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5399 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5400
5401 fi
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5403 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5404 if test $ac_compiler_gnu = yes; then
5405 GCC=yes
5406 else
5407 GCC=
5408 fi
5409 ac_test_CFLAGS=${CFLAGS+set}
5410 ac_save_CFLAGS=$CFLAGS
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5412 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5413 if ${ac_cv_prog_cc_g+:} false; then :
5414 $as_echo_n "(cached) " >&6
5415 else
5416 ac_save_c_werror_flag=$ac_c_werror_flag
5417 ac_c_werror_flag=yes
5418 ac_cv_prog_cc_g=no
5419 CFLAGS="-g"
5420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5421 /* end confdefs.h. */
5422
5423 int
5424 main ()
5425 {
5426
5427 ;
5428 return 0;
5429 }
5430 _ACEOF
5431 if ac_fn_c_try_compile "$LINENO"; then :
5432 ac_cv_prog_cc_g=yes
5433 else
5434 CFLAGS=""
5435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5436 /* end confdefs.h. */
5437
5438 int
5439 main ()
5440 {
5441
5442 ;
5443 return 0;
5444 }
5445 _ACEOF
5446 if ac_fn_c_try_compile "$LINENO"; then :
5447
5448 else
5449 ac_c_werror_flag=$ac_save_c_werror_flag
5450 CFLAGS="-g"
5451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5452 /* end confdefs.h. */
5453
5454 int
5455 main ()
5456 {
5457
5458 ;
5459 return 0;
5460 }
5461 _ACEOF
5462 if ac_fn_c_try_compile "$LINENO"; then :
5463 ac_cv_prog_cc_g=yes
5464 fi
5465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5466 fi
5467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5468 fi
5469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5470 ac_c_werror_flag=$ac_save_c_werror_flag
5471 fi
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5473 $as_echo "$ac_cv_prog_cc_g" >&6; }
5474 if test "$ac_test_CFLAGS" = set; then
5475 CFLAGS=$ac_save_CFLAGS
5476 elif test $ac_cv_prog_cc_g = yes; then
5477 if test "$GCC" = yes; then
5478 CFLAGS="-g -O2"
5479 else
5480 CFLAGS="-g"
5481 fi
5482 else
5483 if test "$GCC" = yes; then
5484 CFLAGS="-O2"
5485 else
5486 CFLAGS=
5487 fi
5488 fi
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5490 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5491 if ${ac_cv_prog_cc_c89+:} false; then :
5492 $as_echo_n "(cached) " >&6
5493 else
5494 ac_cv_prog_cc_c89=no
5495 ac_save_CC=$CC
5496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5497 /* end confdefs.h. */
5498 #include <stdarg.h>
5499 #include <stdio.h>
5500 struct stat;
5501 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5502 struct buf { int x; };
5503 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5504 static char *e (p, i)
5505 char **p;
5506 int i;
5507 {
5508 return p[i];
5509 }
5510 static char *f (char * (*g) (char **, int), char **p, ...)
5511 {
5512 char *s;
5513 va_list v;
5514 va_start (v,p);
5515 s = g (p, va_arg (v,int));
5516 va_end (v);
5517 return s;
5518 }
5519
5520 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5521 function prototypes and stuff, but not '\xHH' hex character constants.
5522 These don't provoke an error unfortunately, instead are silently treated
5523 as 'x'. The following induces an error, until -std is added to get
5524 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5525 array size at least. It's necessary to write '\x00'==0 to get something
5526 that's true only with -std. */
5527 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5528
5529 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5530 inside strings and character constants. */
5531 #define FOO(x) 'x'
5532 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5533
5534 int test (int i, double x);
5535 struct s1 {int (*f) (int a);};
5536 struct s2 {int (*f) (double a);};
5537 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5538 int argc;
5539 char **argv;
5540 int
5541 main ()
5542 {
5543 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5544 ;
5545 return 0;
5546 }
5547 _ACEOF
5548 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5549 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5550 do
5551 CC="$ac_save_CC $ac_arg"
5552 if ac_fn_c_try_compile "$LINENO"; then :
5553 ac_cv_prog_cc_c89=$ac_arg
5554 fi
5555 rm -f core conftest.err conftest.$ac_objext
5556 test "x$ac_cv_prog_cc_c89" != "xno" && break
5557 done
5558 rm -f conftest.$ac_ext
5559 CC=$ac_save_CC
5560
5561 fi
5562 # AC_CACHE_VAL
5563 case "x$ac_cv_prog_cc_c89" in
5564 x)
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5566 $as_echo "none needed" >&6; } ;;
5567 xno)
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5569 $as_echo "unsupported" >&6; } ;;
5570 *)
5571 CC="$CC $ac_cv_prog_cc_c89"
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5573 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5574 esac
5575 if test "x$ac_cv_prog_cc_c89" != xno; then :
5576
5577 fi
5578
5579 ac_ext=c
5580 ac_cpp='$CPP $CPPFLAGS'
5581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5584
5585 ac_ext=c
5586 ac_cpp='$CPP $CPPFLAGS'
5587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5591 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5592 if ${am_cv_prog_cc_c_o+:} false; then :
5593 $as_echo_n "(cached) " >&6
5594 else
5595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5596 /* end confdefs.h. */
5597
5598 int
5599 main ()
5600 {
5601
5602 ;
5603 return 0;
5604 }
5605 _ACEOF
5606 # Make sure it works both with $CC and with simple cc.
5607 # Following AC_PROG_CC_C_O, we do the test twice because some
5608 # compilers refuse to overwrite an existing .o file with -o,
5609 # though they will create one.
5610 am_cv_prog_cc_c_o=yes
5611 for am_i in 1 2; do
5612 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5613 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5614 ac_status=$?
5615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5616 (exit $ac_status); } \
5617 && test -f conftest2.$ac_objext; then
5618 : OK
5619 else
5620 am_cv_prog_cc_c_o=no
5621 break
5622 fi
5623 done
5624 rm -f core conftest*
5625 unset am_i
5626 fi
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5628 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5629 if test "$am_cv_prog_cc_c_o" != yes; then
5630 # Losing compiler, so override with the script.
5631 # FIXME: It is wrong to rewrite CC.
5632 # But if we don't then we get into trouble of one sort or another.
5633 # A longer-term fix would be to have automake use am__CC in this case,
5634 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5635 CC="$am_aux_dir/compile $CC"
5636 fi
5637 ac_ext=c
5638 ac_cpp='$CPP $CPPFLAGS'
5639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5642
5643
5644 ac_ext=cpp
5645 ac_cpp='$CXXCPP $CPPFLAGS'
5646 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5647 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5648 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5649 if test -z "$CXX"; then
5650 if test -n "$CCC"; then
5651 CXX=$CCC
5652 else
5653 if test -n "$ac_tool_prefix"; then
5654 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5655 do
5656 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5657 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5659 $as_echo_n "checking for $ac_word... " >&6; }
5660 if ${ac_cv_prog_CXX+:} false; then :
5661 $as_echo_n "(cached) " >&6
5662 else
5663 if test -n "$CXX"; then
5664 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5665 else
5666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5667 for as_dir in $PATH
5668 do
5669 IFS=$as_save_IFS
5670 test -z "$as_dir" && as_dir=.
5671 for ac_exec_ext in '' $ac_executable_extensions; do
5672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5673 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5675 break 2
5676 fi
5677 done
5678 done
5679 IFS=$as_save_IFS
5680
5681 fi
5682 fi
5683 CXX=$ac_cv_prog_CXX
5684 if test -n "$CXX"; then
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5686 $as_echo "$CXX" >&6; }
5687 else
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5689 $as_echo "no" >&6; }
5690 fi
5691
5692
5693 test -n "$CXX" && break
5694 done
5695 fi
5696 if test -z "$CXX"; then
5697 ac_ct_CXX=$CXX
5698 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5699 do
5700 # Extract the first word of "$ac_prog", so it can be a program name with args.
5701 set dummy $ac_prog; ac_word=$2
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5703 $as_echo_n "checking for $ac_word... " >&6; }
5704 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5705 $as_echo_n "(cached) " >&6
5706 else
5707 if test -n "$ac_ct_CXX"; then
5708 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5709 else
5710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5711 for as_dir in $PATH
5712 do
5713 IFS=$as_save_IFS
5714 test -z "$as_dir" && as_dir=.
5715 for ac_exec_ext in '' $ac_executable_extensions; do
5716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5717 ac_cv_prog_ac_ct_CXX="$ac_prog"
5718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5719 break 2
5720 fi
5721 done
5722 done
5723 IFS=$as_save_IFS
5724
5725 fi
5726 fi
5727 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5728 if test -n "$ac_ct_CXX"; then
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5730 $as_echo "$ac_ct_CXX" >&6; }
5731 else
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5733 $as_echo "no" >&6; }
5734 fi
5735
5736
5737 test -n "$ac_ct_CXX" && break
5738 done
5739
5740 if test "x$ac_ct_CXX" = x; then
5741 CXX="g++"
5742 else
5743 case $cross_compiling:$ac_tool_warned in
5744 yes:)
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5746 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5747 ac_tool_warned=yes ;;
5748 esac
5749 CXX=$ac_ct_CXX
5750 fi
5751 fi
5752
5753 fi
5754 fi
5755 # Provide some information about the compiler.
5756 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5757 set X $ac_compile
5758 ac_compiler=$2
5759 for ac_option in --version -v -V -qversion; do
5760 { { ac_try="$ac_compiler $ac_option >&5"
5761 case "(($ac_try" in
5762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5763 *) ac_try_echo=$ac_try;;
5764 esac
5765 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5766 $as_echo "$ac_try_echo"; } >&5
5767 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5768 ac_status=$?
5769 if test -s conftest.err; then
5770 sed '10a\
5771 ... rest of stderr output deleted ...
5772 10q' conftest.err >conftest.er1
5773 cat conftest.er1 >&5
5774 fi
5775 rm -f conftest.er1 conftest.err
5776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5777 test $ac_status = 0; }
5778 done
5779
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5781 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5782 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5783 $as_echo_n "(cached) " >&6
5784 else
5785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5786 /* end confdefs.h. */
5787
5788 int
5789 main ()
5790 {
5791 #ifndef __GNUC__
5792 choke me
5793 #endif
5794
5795 ;
5796 return 0;
5797 }
5798 _ACEOF
5799 if ac_fn_cxx_try_compile "$LINENO"; then :
5800 ac_compiler_gnu=yes
5801 else
5802 ac_compiler_gnu=no
5803 fi
5804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5805 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5806
5807 fi
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5809 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5810 if test $ac_compiler_gnu = yes; then
5811 GXX=yes
5812 else
5813 GXX=
5814 fi
5815 ac_test_CXXFLAGS=${CXXFLAGS+set}
5816 ac_save_CXXFLAGS=$CXXFLAGS
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5818 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5819 if ${ac_cv_prog_cxx_g+:} false; then :
5820 $as_echo_n "(cached) " >&6
5821 else
5822 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5823 ac_cxx_werror_flag=yes
5824 ac_cv_prog_cxx_g=no
5825 CXXFLAGS="-g"
5826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5827 /* end confdefs.h. */
5828
5829 int
5830 main ()
5831 {
5832
5833 ;
5834 return 0;
5835 }
5836 _ACEOF
5837 if ac_fn_cxx_try_compile "$LINENO"; then :
5838 ac_cv_prog_cxx_g=yes
5839 else
5840 CXXFLAGS=""
5841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5842 /* end confdefs.h. */
5843
5844 int
5845 main ()
5846 {
5847
5848 ;
5849 return 0;
5850 }
5851 _ACEOF
5852 if ac_fn_cxx_try_compile "$LINENO"; then :
5853
5854 else
5855 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5856 CXXFLAGS="-g"
5857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5858 /* end confdefs.h. */
5859
5860 int
5861 main ()
5862 {
5863
5864 ;
5865 return 0;
5866 }
5867 _ACEOF
5868 if ac_fn_cxx_try_compile "$LINENO"; then :
5869 ac_cv_prog_cxx_g=yes
5870 fi
5871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5872 fi
5873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5874 fi
5875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5876 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5877 fi
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5879 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5880 if test "$ac_test_CXXFLAGS" = set; then
5881 CXXFLAGS=$ac_save_CXXFLAGS
5882 elif test $ac_cv_prog_cxx_g = yes; then
5883 if test "$GXX" = yes; then
5884 CXXFLAGS="-g -O2"
5885 else
5886 CXXFLAGS="-g"
5887 fi
5888 else
5889 if test "$GXX" = yes; then
5890 CXXFLAGS="-O2"
5891 else
5892 CXXFLAGS=
5893 fi
5894 fi
5895 ac_ext=c
5896 ac_cpp='$CPP $CPPFLAGS'
5897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5900
5901 depcc="$CXX" am_compiler_list=
5902
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5904 $as_echo_n "checking dependency style of $depcc... " >&6; }
5905 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5906 $as_echo_n "(cached) " >&6
5907 else
5908 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5909 # We make a subdir and do the tests there. Otherwise we can end up
5910 # making bogus files that we don't know about and never remove. For
5911 # instance it was reported that on HP-UX the gcc test will end up
5912 # making a dummy file named 'D' -- because '-MD' means "put the output
5913 # in D".
5914 rm -rf conftest.dir
5915 mkdir conftest.dir
5916 # Copy depcomp to subdir because otherwise we won't find it if we're
5917 # using a relative directory.
5918 cp "$am_depcomp" conftest.dir
5919 cd conftest.dir
5920 # We will build objects and dependencies in a subdirectory because
5921 # it helps to detect inapplicable dependency modes. For instance
5922 # both Tru64's cc and ICC support -MD to output dependencies as a
5923 # side effect of compilation, but ICC will put the dependencies in
5924 # the current directory while Tru64 will put them in the object
5925 # directory.
5926 mkdir sub
5927
5928 am_cv_CXX_dependencies_compiler_type=none
5929 if test "$am_compiler_list" = ""; then
5930 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5931 fi
5932 am__universal=false
5933 case " $depcc " in #(
5934 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5935 esac
5936
5937 for depmode in $am_compiler_list; do
5938 # Setup a source with many dependencies, because some compilers
5939 # like to wrap large dependency lists on column 80 (with \), and
5940 # we should not choose a depcomp mode which is confused by this.
5941 #
5942 # We need to recreate these files for each test, as the compiler may
5943 # overwrite some of them when testing with obscure command lines.
5944 # This happens at least with the AIX C compiler.
5945 : > sub/conftest.c
5946 for i in 1 2 3 4 5 6; do
5947 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5948 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5949 # Solaris 10 /bin/sh.
5950 echo '/* dummy */' > sub/conftst$i.h
5951 done
5952 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5953
5954 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5955 # mode. It turns out that the SunPro C++ compiler does not properly
5956 # handle '-M -o', and we need to detect this. Also, some Intel
5957 # versions had trouble with output in subdirs.
5958 am__obj=sub/conftest.${OBJEXT-o}
5959 am__minus_obj="-o $am__obj"
5960 case $depmode in
5961 gcc)
5962 # This depmode causes a compiler race in universal mode.
5963 test "$am__universal" = false || continue
5964 ;;
5965 nosideeffect)
5966 # After this tag, mechanisms are not by side-effect, so they'll
5967 # only be used when explicitly requested.
5968 if test "x$enable_dependency_tracking" = xyes; then
5969 continue
5970 else
5971 break
5972 fi
5973 ;;
5974 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5975 # This compiler won't grok '-c -o', but also, the minuso test has
5976 # not run yet. These depmodes are late enough in the game, and
5977 # so weak that their functioning should not be impacted.
5978 am__obj=conftest.${OBJEXT-o}
5979 am__minus_obj=
5980 ;;
5981 none) break ;;
5982 esac
5983 if depmode=$depmode \
5984 source=sub/conftest.c object=$am__obj \
5985 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5986 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5987 >/dev/null 2>conftest.err &&
5988 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5989 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5990 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5991 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5992 # icc doesn't choke on unknown options, it will just issue warnings
5993 # or remarks (even with -Werror). So we grep stderr for any message
5994 # that says an option was ignored or not supported.
5995 # When given -MP, icc 7.0 and 7.1 complain thusly:
5996 # icc: Command line warning: ignoring option '-M'; no argument required
5997 # The diagnosis changed in icc 8.0:
5998 # icc: Command line remark: option '-MP' not supported
5999 if (grep 'ignoring option' conftest.err ||
6000 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6001 am_cv_CXX_dependencies_compiler_type=$depmode
6002 break
6003 fi
6004 fi
6005 done
6006
6007 cd ..
6008 rm -rf conftest.dir
6009 else
6010 am_cv_CXX_dependencies_compiler_type=none
6011 fi
6012
6013 fi
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6015 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6016 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6017
6018 if
6019 test "x$enable_dependency_tracking" != xno \
6020 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6021 am__fastdepCXX_TRUE=
6022 am__fastdepCXX_FALSE='#'
6023 else
6024 am__fastdepCXX_TRUE='#'
6025 am__fastdepCXX_FALSE=
6026 fi
6027
6028
6029 # By default we simply use the C compiler to build assembly code.
6030
6031 test "${CCAS+set}" = set || CCAS=$CC
6032 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
6033
6034
6035
6036 depcc="$CCAS" am_compiler_list=
6037
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6039 $as_echo_n "checking dependency style of $depcc... " >&6; }
6040 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
6041 $as_echo_n "(cached) " >&6
6042 else
6043 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6044 # We make a subdir and do the tests there. Otherwise we can end up
6045 # making bogus files that we don't know about and never remove. For
6046 # instance it was reported that on HP-UX the gcc test will end up
6047 # making a dummy file named 'D' -- because '-MD' means "put the output
6048 # in D".
6049 rm -rf conftest.dir
6050 mkdir conftest.dir
6051 # Copy depcomp to subdir because otherwise we won't find it if we're
6052 # using a relative directory.
6053 cp "$am_depcomp" conftest.dir
6054 cd conftest.dir
6055 # We will build objects and dependencies in a subdirectory because
6056 # it helps to detect inapplicable dependency modes. For instance
6057 # both Tru64's cc and ICC support -MD to output dependencies as a
6058 # side effect of compilation, but ICC will put the dependencies in
6059 # the current directory while Tru64 will put them in the object
6060 # directory.
6061 mkdir sub
6062
6063 am_cv_CCAS_dependencies_compiler_type=none
6064 if test "$am_compiler_list" = ""; then
6065 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6066 fi
6067 am__universal=false
6068
6069
6070 for depmode in $am_compiler_list; do
6071 # Setup a source with many dependencies, because some compilers
6072 # like to wrap large dependency lists on column 80 (with \), and
6073 # we should not choose a depcomp mode which is confused by this.
6074 #
6075 # We need to recreate these files for each test, as the compiler may
6076 # overwrite some of them when testing with obscure command lines.
6077 # This happens at least with the AIX C compiler.
6078 : > sub/conftest.c
6079 for i in 1 2 3 4 5 6; do
6080 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6081 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6082 # Solaris 10 /bin/sh.
6083 echo '/* dummy */' > sub/conftst$i.h
6084 done
6085 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6086
6087 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6088 # mode. It turns out that the SunPro C++ compiler does not properly
6089 # handle '-M -o', and we need to detect this. Also, some Intel
6090 # versions had trouble with output in subdirs.
6091 am__obj=sub/conftest.${OBJEXT-o}
6092 am__minus_obj="-o $am__obj"
6093 case $depmode in
6094 gcc)
6095 # This depmode causes a compiler race in universal mode.
6096 test "$am__universal" = false || continue
6097 ;;
6098 nosideeffect)
6099 # After this tag, mechanisms are not by side-effect, so they'll
6100 # only be used when explicitly requested.
6101 if test "x$enable_dependency_tracking" = xyes; then
6102 continue
6103 else
6104 break
6105 fi
6106 ;;
6107 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6108 # This compiler won't grok '-c -o', but also, the minuso test has
6109 # not run yet. These depmodes are late enough in the game, and
6110 # so weak that their functioning should not be impacted.
6111 am__obj=conftest.${OBJEXT-o}
6112 am__minus_obj=
6113 ;;
6114 none) break ;;
6115 esac
6116 if depmode=$depmode \
6117 source=sub/conftest.c object=$am__obj \
6118 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6119 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6120 >/dev/null 2>conftest.err &&
6121 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6122 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6123 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6124 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6125 # icc doesn't choke on unknown options, it will just issue warnings
6126 # or remarks (even with -Werror). So we grep stderr for any message
6127 # that says an option was ignored or not supported.
6128 # When given -MP, icc 7.0 and 7.1 complain thusly:
6129 # icc: Command line warning: ignoring option '-M'; no argument required
6130 # The diagnosis changed in icc 8.0:
6131 # icc: Command line remark: option '-MP' not supported
6132 if (grep 'ignoring option' conftest.err ||
6133 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6134 am_cv_CCAS_dependencies_compiler_type=$depmode
6135 break
6136 fi
6137 fi
6138 done
6139
6140 cd ..
6141 rm -rf conftest.dir
6142 else
6143 am_cv_CCAS_dependencies_compiler_type=none
6144 fi
6145
6146 fi
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
6148 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
6149 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
6150
6151 if
6152 test "x$enable_dependency_tracking" != xno \
6153 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
6154 am__fastdepCCAS_TRUE=
6155 am__fastdepCCAS_FALSE='#'
6156 else
6157 am__fastdepCCAS_TRUE='#'
6158 am__fastdepCCAS_FALSE=
6159 fi
6160
6161
6162 if test -n "$ac_tool_prefix"; then
6163 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6164 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6166 $as_echo_n "checking for $ac_word... " >&6; }
6167 if ${ac_cv_prog_RANLIB+:} false; then :
6168 $as_echo_n "(cached) " >&6
6169 else
6170 if test -n "$RANLIB"; then
6171 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6172 else
6173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6174 for as_dir in $PATH
6175 do
6176 IFS=$as_save_IFS
6177 test -z "$as_dir" && as_dir=.
6178 for ac_exec_ext in '' $ac_executable_extensions; do
6179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6180 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6182 break 2
6183 fi
6184 done
6185 done
6186 IFS=$as_save_IFS
6187
6188 fi
6189 fi
6190 RANLIB=$ac_cv_prog_RANLIB
6191 if test -n "$RANLIB"; then
6192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6193 $as_echo "$RANLIB" >&6; }
6194 else
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6196 $as_echo "no" >&6; }
6197 fi
6198
6199
6200 fi
6201 if test -z "$ac_cv_prog_RANLIB"; then
6202 ac_ct_RANLIB=$RANLIB
6203 # Extract the first word of "ranlib", so it can be a program name with args.
6204 set dummy ranlib; ac_word=$2
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6206 $as_echo_n "checking for $ac_word... " >&6; }
6207 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6208 $as_echo_n "(cached) " >&6
6209 else
6210 if test -n "$ac_ct_RANLIB"; then
6211 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6212 else
6213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6214 for as_dir in $PATH
6215 do
6216 IFS=$as_save_IFS
6217 test -z "$as_dir" && as_dir=.
6218 for ac_exec_ext in '' $ac_executable_extensions; do
6219 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6220 ac_cv_prog_ac_ct_RANLIB="ranlib"
6221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6222 break 2
6223 fi
6224 done
6225 done
6226 IFS=$as_save_IFS
6227
6228 fi
6229 fi
6230 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6231 if test -n "$ac_ct_RANLIB"; then
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6233 $as_echo "$ac_ct_RANLIB" >&6; }
6234 else
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6236 $as_echo "no" >&6; }
6237 fi
6238
6239 if test "x$ac_ct_RANLIB" = x; then
6240 RANLIB=":"
6241 else
6242 case $cross_compiling:$ac_tool_warned in
6243 yes:)
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6245 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6246 ac_tool_warned=yes ;;
6247 esac
6248 RANLIB=$ac_ct_RANLIB
6249 fi
6250 else
6251 RANLIB="$ac_cv_prog_RANLIB"
6252 fi
6253
6254
6255 enable_dlopen=yes
6256
6257
6258
6259 case `pwd` in
6260 *\ * | *\ *)
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6262 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6263 esac
6264
6265
6266
6267 macro_version='2.2.7a'
6268 macro_revision='1.3134'
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282 ltmain="$ac_aux_dir/ltmain.sh"
6283
6284 # Backslashify metacharacters that are still active within
6285 # double-quoted strings.
6286 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6287
6288 # Same as above, but do not quote variable references.
6289 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6290
6291 # Sed substitution to delay expansion of an escaped shell variable in a
6292 # double_quote_subst'ed string.
6293 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6294
6295 # Sed substitution to delay expansion of an escaped single quote.
6296 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6297
6298 # Sed substitution to avoid accidental globbing in evaled expressions
6299 no_glob_subst='s/\*/\\\*/g'
6300
6301 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6302 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6303 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6304
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6306 $as_echo_n "checking how to print strings... " >&6; }
6307 # Test print first, because it will be a builtin if present.
6308 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6309 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6310 ECHO='print -r --'
6311 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6312 ECHO='printf %s\n'
6313 else
6314 # Use this function as a fallback that always works.
6315 func_fallback_echo ()
6316 {
6317 eval 'cat <<_LTECHO_EOF
6318 $1
6319 _LTECHO_EOF'
6320 }
6321 ECHO='func_fallback_echo'
6322 fi
6323
6324 # func_echo_all arg...
6325 # Invoke $ECHO with all args, space-separated.
6326 func_echo_all ()
6327 {
6328 $ECHO ""
6329 }
6330
6331 case "$ECHO" in
6332 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6333 $as_echo "printf" >&6; } ;;
6334 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6335 $as_echo "print -r" >&6; } ;;
6336 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6337 $as_echo "cat" >&6; } ;;
6338 esac
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6354 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6355 if ${ac_cv_path_SED+:} false; then :
6356 $as_echo_n "(cached) " >&6
6357 else
6358 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6359 for ac_i in 1 2 3 4 5 6 7; do
6360 ac_script="$ac_script$as_nl$ac_script"
6361 done
6362 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6363 { ac_script=; unset ac_script;}
6364 if test -z "$SED"; then
6365 ac_path_SED_found=false
6366 # Loop through the user's path and test for each of PROGNAME-LIST
6367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6368 for as_dir in $PATH
6369 do
6370 IFS=$as_save_IFS
6371 test -z "$as_dir" && as_dir=.
6372 for ac_prog in sed gsed; do
6373 for ac_exec_ext in '' $ac_executable_extensions; do
6374 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6375 as_fn_executable_p "$ac_path_SED" || continue
6376 # Check for GNU ac_path_SED and select it if it is found.
6377 # Check for GNU $ac_path_SED
6378 case `"$ac_path_SED" --version 2>&1` in
6379 *GNU*)
6380 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6381 *)
6382 ac_count=0
6383 $as_echo_n 0123456789 >"conftest.in"
6384 while :
6385 do
6386 cat "conftest.in" "conftest.in" >"conftest.tmp"
6387 mv "conftest.tmp" "conftest.in"
6388 cp "conftest.in" "conftest.nl"
6389 $as_echo '' >> "conftest.nl"
6390 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6391 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6392 as_fn_arith $ac_count + 1 && ac_count=$as_val
6393 if test $ac_count -gt ${ac_path_SED_max-0}; then
6394 # Best one so far, save it but keep looking for a better one
6395 ac_cv_path_SED="$ac_path_SED"
6396 ac_path_SED_max=$ac_count
6397 fi
6398 # 10*(2^10) chars as input seems more than enough
6399 test $ac_count -gt 10 && break
6400 done
6401 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6402 esac
6403
6404 $ac_path_SED_found && break 3
6405 done
6406 done
6407 done
6408 IFS=$as_save_IFS
6409 if test -z "$ac_cv_path_SED"; then
6410 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6411 fi
6412 else
6413 ac_cv_path_SED=$SED
6414 fi
6415
6416 fi
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6418 $as_echo "$ac_cv_path_SED" >&6; }
6419 SED="$ac_cv_path_SED"
6420 rm -f conftest.sed
6421
6422 test -z "$SED" && SED=sed
6423 Xsed="$SED -e 1s/^X//"
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6436 $as_echo_n "checking for fgrep... " >&6; }
6437 if ${ac_cv_path_FGREP+:} false; then :
6438 $as_echo_n "(cached) " >&6
6439 else
6440 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6441 then ac_cv_path_FGREP="$GREP -F"
6442 else
6443 if test -z "$FGREP"; then
6444 ac_path_FGREP_found=false
6445 # Loop through the user's path and test for each of PROGNAME-LIST
6446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6447 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6448 do
6449 IFS=$as_save_IFS
6450 test -z "$as_dir" && as_dir=.
6451 for ac_prog in fgrep; do
6452 for ac_exec_ext in '' $ac_executable_extensions; do
6453 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6454 as_fn_executable_p "$ac_path_FGREP" || continue
6455 # Check for GNU ac_path_FGREP and select it if it is found.
6456 # Check for GNU $ac_path_FGREP
6457 case `"$ac_path_FGREP" --version 2>&1` in
6458 *GNU*)
6459 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6460 *)
6461 ac_count=0
6462 $as_echo_n 0123456789 >"conftest.in"
6463 while :
6464 do
6465 cat "conftest.in" "conftest.in" >"conftest.tmp"
6466 mv "conftest.tmp" "conftest.in"
6467 cp "conftest.in" "conftest.nl"
6468 $as_echo 'FGREP' >> "conftest.nl"
6469 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6470 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6471 as_fn_arith $ac_count + 1 && ac_count=$as_val
6472 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6473 # Best one so far, save it but keep looking for a better one
6474 ac_cv_path_FGREP="$ac_path_FGREP"
6475 ac_path_FGREP_max=$ac_count
6476 fi
6477 # 10*(2^10) chars as input seems more than enough
6478 test $ac_count -gt 10 && break
6479 done
6480 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6481 esac
6482
6483 $ac_path_FGREP_found && break 3
6484 done
6485 done
6486 done
6487 IFS=$as_save_IFS
6488 if test -z "$ac_cv_path_FGREP"; then
6489 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6490 fi
6491 else
6492 ac_cv_path_FGREP=$FGREP
6493 fi
6494
6495 fi
6496 fi
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6498 $as_echo "$ac_cv_path_FGREP" >&6; }
6499 FGREP="$ac_cv_path_FGREP"
6500
6501
6502 test -z "$GREP" && GREP=grep
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522 # Check whether --with-gnu-ld was given.
6523 if test "${with_gnu_ld+set}" = set; then :
6524 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6525 else
6526 with_gnu_ld=no
6527 fi
6528
6529 ac_prog=ld
6530 if test "$GCC" = yes; then
6531 # Check if gcc -print-prog-name=ld gives a path.
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6533 $as_echo_n "checking for ld used by $CC... " >&6; }
6534 case $host in
6535 *-*-mingw*)
6536 # gcc leaves a trailing carriage return which upsets mingw
6537 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6538 *)
6539 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6540 esac
6541 case $ac_prog in
6542 # Accept absolute paths.
6543 [\\/]* | ?:[\\/]*)
6544 re_direlt='/[^/][^/]*/\.\./'
6545 # Canonicalize the pathname of ld
6546 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6547 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6548 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6549 done
6550 test -z "$LD" && LD="$ac_prog"
6551 ;;
6552 "")
6553 # If it fails, then pretend we aren't using GCC.
6554 ac_prog=ld
6555 ;;
6556 *)
6557 # If it is relative, then search for the first ld in PATH.
6558 with_gnu_ld=unknown
6559 ;;
6560 esac
6561 elif test "$with_gnu_ld" = yes; then
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6563 $as_echo_n "checking for GNU ld... " >&6; }
6564 else
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6566 $as_echo_n "checking for non-GNU ld... " >&6; }
6567 fi
6568 if ${lt_cv_path_LD+:} false; then :
6569 $as_echo_n "(cached) " >&6
6570 else
6571 if test -z "$LD"; then
6572 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6573 for ac_dir in $PATH; do
6574 IFS="$lt_save_ifs"
6575 test -z "$ac_dir" && ac_dir=.
6576 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6577 lt_cv_path_LD="$ac_dir/$ac_prog"
6578 # Check to see if the program is GNU ld. I'd rather use --version,
6579 # but apparently some variants of GNU ld only accept -v.
6580 # Break only if it was the GNU/non-GNU ld that we prefer.
6581 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6582 *GNU* | *'with BFD'*)
6583 test "$with_gnu_ld" != no && break
6584 ;;
6585 *)
6586 test "$with_gnu_ld" != yes && break
6587 ;;
6588 esac
6589 fi
6590 done
6591 IFS="$lt_save_ifs"
6592 else
6593 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6594 fi
6595 fi
6596
6597 LD="$lt_cv_path_LD"
6598 if test -n "$LD"; then
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6600 $as_echo "$LD" >&6; }
6601 else
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6603 $as_echo "no" >&6; }
6604 fi
6605 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6607 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6608 if ${lt_cv_prog_gnu_ld+:} false; then :
6609 $as_echo_n "(cached) " >&6
6610 else
6611 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6612 case `$LD -v 2>&1 </dev/null` in
6613 *GNU* | *'with BFD'*)
6614 lt_cv_prog_gnu_ld=yes
6615 ;;
6616 *)
6617 lt_cv_prog_gnu_ld=no
6618 ;;
6619 esac
6620 fi
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6622 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6623 with_gnu_ld=$lt_cv_prog_gnu_ld
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6634 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6635 if ${lt_cv_path_NM+:} false; then :
6636 $as_echo_n "(cached) " >&6
6637 else
6638 if test -n "$NM"; then
6639 # Let the user override the test.
6640 lt_cv_path_NM="$NM"
6641 else
6642 lt_nm_to_check="${ac_tool_prefix}nm"
6643 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6644 lt_nm_to_check="$lt_nm_to_check nm"
6645 fi
6646 for lt_tmp_nm in $lt_nm_to_check; do
6647 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6648 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6649 IFS="$lt_save_ifs"
6650 test -z "$ac_dir" && ac_dir=.
6651 tmp_nm="$ac_dir/$lt_tmp_nm"
6652 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6653 # Check to see if the nm accepts a BSD-compat flag.
6654 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6655 # nm: unknown option "B" ignored
6656 # Tru64's nm complains that /dev/null is an invalid object file
6657 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6658 */dev/null* | *'Invalid file or object type'*)
6659 lt_cv_path_NM="$tmp_nm -B"
6660 break
6661 ;;
6662 *)
6663 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6664 */dev/null*)
6665 lt_cv_path_NM="$tmp_nm -p"
6666 break
6667 ;;
6668 *)
6669 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6670 continue # so that we can try to find one that supports BSD flags
6671 ;;
6672 esac
6673 ;;
6674 esac
6675 fi
6676 done
6677 IFS="$lt_save_ifs"
6678 done
6679 : ${lt_cv_path_NM=no}
6680 fi
6681 fi
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6683 $as_echo "$lt_cv_path_NM" >&6; }
6684 if test "$lt_cv_path_NM" != "no"; then
6685 NM="$lt_cv_path_NM"
6686 else
6687 # Didn't find any BSD compatible name lister, look for dumpbin.
6688 if test -n "$DUMPBIN"; then :
6689 # Let the user override the test.
6690 else
6691 if test -n "$ac_tool_prefix"; then
6692 for ac_prog in dumpbin "link -dump"
6693 do
6694 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6695 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6697 $as_echo_n "checking for $ac_word... " >&6; }
6698 if ${ac_cv_prog_DUMPBIN+:} false; then :
6699 $as_echo_n "(cached) " >&6
6700 else
6701 if test -n "$DUMPBIN"; then
6702 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6703 else
6704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6705 for as_dir in $PATH
6706 do
6707 IFS=$as_save_IFS
6708 test -z "$as_dir" && as_dir=.
6709 for ac_exec_ext in '' $ac_executable_extensions; do
6710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6711 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6713 break 2
6714 fi
6715 done
6716 done
6717 IFS=$as_save_IFS
6718
6719 fi
6720 fi
6721 DUMPBIN=$ac_cv_prog_DUMPBIN
6722 if test -n "$DUMPBIN"; then
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6724 $as_echo "$DUMPBIN" >&6; }
6725 else
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6727 $as_echo "no" >&6; }
6728 fi
6729
6730
6731 test -n "$DUMPBIN" && break
6732 done
6733 fi
6734 if test -z "$DUMPBIN"; then
6735 ac_ct_DUMPBIN=$DUMPBIN
6736 for ac_prog in dumpbin "link -dump"
6737 do
6738 # Extract the first word of "$ac_prog", so it can be a program name with args.
6739 set dummy $ac_prog; ac_word=$2
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6741 $as_echo_n "checking for $ac_word... " >&6; }
6742 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6743 $as_echo_n "(cached) " >&6
6744 else
6745 if test -n "$ac_ct_DUMPBIN"; then
6746 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6747 else
6748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6749 for as_dir in $PATH
6750 do
6751 IFS=$as_save_IFS
6752 test -z "$as_dir" && as_dir=.
6753 for ac_exec_ext in '' $ac_executable_extensions; do
6754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6755 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6757 break 2
6758 fi
6759 done
6760 done
6761 IFS=$as_save_IFS
6762
6763 fi
6764 fi
6765 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6766 if test -n "$ac_ct_DUMPBIN"; then
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6768 $as_echo "$ac_ct_DUMPBIN" >&6; }
6769 else
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6771 $as_echo "no" >&6; }
6772 fi
6773
6774
6775 test -n "$ac_ct_DUMPBIN" && break
6776 done
6777
6778 if test "x$ac_ct_DUMPBIN" = x; then
6779 DUMPBIN=":"
6780 else
6781 case $cross_compiling:$ac_tool_warned in
6782 yes:)
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6784 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6785 ac_tool_warned=yes ;;
6786 esac
6787 DUMPBIN=$ac_ct_DUMPBIN
6788 fi
6789 fi
6790
6791 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6792 *COFF*)
6793 DUMPBIN="$DUMPBIN -symbols"
6794 ;;
6795 *)
6796 DUMPBIN=:
6797 ;;
6798 esac
6799 fi
6800
6801 if test "$DUMPBIN" != ":"; then
6802 NM="$DUMPBIN"
6803 fi
6804 fi
6805 test -z "$NM" && NM=nm
6806
6807
6808
6809
6810
6811
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6813 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6814 if ${lt_cv_nm_interface+:} false; then :
6815 $as_echo_n "(cached) " >&6
6816 else
6817 lt_cv_nm_interface="BSD nm"
6818 echo "int some_variable = 0;" > conftest.$ac_ext
6819 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6820 (eval "$ac_compile" 2>conftest.err)
6821 cat conftest.err >&5
6822 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6823 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6824 cat conftest.err >&5
6825 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6826 cat conftest.out >&5
6827 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6828 lt_cv_nm_interface="MS dumpbin"
6829 fi
6830 rm -f conftest*
6831 fi
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6833 $as_echo "$lt_cv_nm_interface" >&6; }
6834
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6836 $as_echo_n "checking whether ln -s works... " >&6; }
6837 LN_S=$as_ln_s
6838 if test "$LN_S" = "ln -s"; then
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6840 $as_echo "yes" >&6; }
6841 else
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6843 $as_echo "no, using $LN_S" >&6; }
6844 fi
6845
6846 # find the maximum length of command line arguments
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6848 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6849 if ${lt_cv_sys_max_cmd_len+:} false; then :
6850 $as_echo_n "(cached) " >&6
6851 else
6852 i=0
6853 teststring="ABCD"
6854
6855 case $build_os in
6856 msdosdjgpp*)
6857 # On DJGPP, this test can blow up pretty badly due to problems in libc
6858 # (any single argument exceeding 2000 bytes causes a buffer overrun
6859 # during glob expansion). Even if it were fixed, the result of this
6860 # check would be larger than it should be.
6861 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6862 ;;
6863
6864 gnu*)
6865 # Under GNU Hurd, this test is not required because there is
6866 # no limit to the length of command line arguments.
6867 # Libtool will interpret -1 as no limit whatsoever
6868 lt_cv_sys_max_cmd_len=-1;
6869 ;;
6870
6871 cygwin* | mingw* | cegcc*)
6872 # On Win9x/ME, this test blows up -- it succeeds, but takes
6873 # about 5 minutes as the teststring grows exponentially.
6874 # Worse, since 9x/ME are not pre-emptively multitasking,
6875 # you end up with a "frozen" computer, even though with patience
6876 # the test eventually succeeds (with a max line length of 256k).
6877 # Instead, let's just punt: use the minimum linelength reported by
6878 # all of the supported platforms: 8192 (on NT/2K/XP).
6879 lt_cv_sys_max_cmd_len=8192;
6880 ;;
6881
6882 mint*)
6883 # On MiNT this can take a long time and run out of memory.
6884 lt_cv_sys_max_cmd_len=8192;
6885 ;;
6886
6887 amigaos*)
6888 # On AmigaOS with pdksh, this test takes hours, literally.
6889 # So we just punt and use a minimum line length of 8192.
6890 lt_cv_sys_max_cmd_len=8192;
6891 ;;
6892
6893 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6894 # This has been around since 386BSD, at least. Likely further.
6895 if test -x /sbin/sysctl; then
6896 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6897 elif test -x /usr/sbin/sysctl; then
6898 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6899 else
6900 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6901 fi
6902 # And add a safety zone
6903 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6904 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6905 ;;
6906
6907 interix*)
6908 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6909 lt_cv_sys_max_cmd_len=196608
6910 ;;
6911
6912 osf*)
6913 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6914 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6915 # nice to cause kernel panics so lets avoid the loop below.
6916 # First set a reasonable default.
6917 lt_cv_sys_max_cmd_len=16384
6918 #
6919 if test -x /sbin/sysconfig; then
6920 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6921 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6922 esac
6923 fi
6924 ;;
6925 sco3.2v5*)
6926 lt_cv_sys_max_cmd_len=102400
6927 ;;
6928 sysv5* | sco5v6* | sysv4.2uw2*)
6929 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6930 if test -n "$kargmax"; then
6931 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6932 else
6933 lt_cv_sys_max_cmd_len=32768
6934 fi
6935 ;;
6936 *)
6937 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6938 if test -n "$lt_cv_sys_max_cmd_len"; then
6939 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6940 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6941 else
6942 # Make teststring a little bigger before we do anything with it.
6943 # a 1K string should be a reasonable start.
6944 for i in 1 2 3 4 5 6 7 8 ; do
6945 teststring=$teststring$teststring
6946 done
6947 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6948 # If test is not a shell built-in, we'll probably end up computing a
6949 # maximum length that is only half of the actual maximum length, but
6950 # we can't tell.
6951 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6952 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6953 test $i != 17 # 1/2 MB should be enough
6954 do
6955 i=`expr $i + 1`
6956 teststring=$teststring$teststring
6957 done
6958 # Only check the string length outside the loop.
6959 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6960 teststring=
6961 # Add a significant safety factor because C++ compilers can tack on
6962 # massive amounts of additional arguments before passing them to the
6963 # linker. It appears as though 1/2 is a usable value.
6964 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6965 fi
6966 ;;
6967 esac
6968
6969 fi
6970
6971 if test -n $lt_cv_sys_max_cmd_len ; then
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6973 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6974 else
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6976 $as_echo "none" >&6; }
6977 fi
6978 max_cmd_len=$lt_cv_sys_max_cmd_len
6979
6980
6981
6982
6983
6984
6985 : ${CP="cp -f"}
6986 : ${MV="mv -f"}
6987 : ${RM="rm -f"}
6988
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6990 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6991 # Try some XSI features
6992 xsi_shell=no
6993 ( _lt_dummy="a/b/c"
6994 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6995 = c,a/b,, \
6996 && eval 'test $(( 1 + 1 )) -eq 2 \
6997 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6998 && xsi_shell=yes
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7000 $as_echo "$xsi_shell" >&6; }
7001
7002
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7004 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7005 lt_shell_append=no
7006 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7007 >/dev/null 2>&1 \
7008 && lt_shell_append=yes
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7010 $as_echo "$lt_shell_append" >&6; }
7011
7012
7013 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7014 lt_unset=unset
7015 else
7016 lt_unset=false
7017 fi
7018
7019
7020
7021
7022
7023 # test EBCDIC or ASCII
7024 case `echo X|tr X '\101'` in
7025 A) # ASCII based system
7026 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7027 lt_SP2NL='tr \040 \012'
7028 lt_NL2SP='tr \015\012 \040\040'
7029 ;;
7030 *) # EBCDIC based system
7031 lt_SP2NL='tr \100 \n'
7032 lt_NL2SP='tr \r\n \100\100'
7033 ;;
7034 esac
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7045 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7046 if ${lt_cv_ld_reload_flag+:} false; then :
7047 $as_echo_n "(cached) " >&6
7048 else
7049 lt_cv_ld_reload_flag='-r'
7050 fi
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7052 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7053 reload_flag=$lt_cv_ld_reload_flag
7054 case $reload_flag in
7055 "" | " "*) ;;
7056 *) reload_flag=" $reload_flag" ;;
7057 esac
7058 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7059 case $host_os in
7060 darwin*)
7061 if test "$GCC" = yes; then
7062 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7063 else
7064 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7065 fi
7066 ;;
7067 esac
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077 if test -n "$ac_tool_prefix"; then
7078 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7079 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7081 $as_echo_n "checking for $ac_word... " >&6; }
7082 if ${ac_cv_prog_OBJDUMP+:} false; then :
7083 $as_echo_n "(cached) " >&6
7084 else
7085 if test -n "$OBJDUMP"; then
7086 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7087 else
7088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7089 for as_dir in $PATH
7090 do
7091 IFS=$as_save_IFS
7092 test -z "$as_dir" && as_dir=.
7093 for ac_exec_ext in '' $ac_executable_extensions; do
7094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7095 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7097 break 2
7098 fi
7099 done
7100 done
7101 IFS=$as_save_IFS
7102
7103 fi
7104 fi
7105 OBJDUMP=$ac_cv_prog_OBJDUMP
7106 if test -n "$OBJDUMP"; then
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7108 $as_echo "$OBJDUMP" >&6; }
7109 else
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7111 $as_echo "no" >&6; }
7112 fi
7113
7114
7115 fi
7116 if test -z "$ac_cv_prog_OBJDUMP"; then
7117 ac_ct_OBJDUMP=$OBJDUMP
7118 # Extract the first word of "objdump", so it can be a program name with args.
7119 set dummy objdump; ac_word=$2
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7121 $as_echo_n "checking for $ac_word... " >&6; }
7122 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7123 $as_echo_n "(cached) " >&6
7124 else
7125 if test -n "$ac_ct_OBJDUMP"; then
7126 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7127 else
7128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7129 for as_dir in $PATH
7130 do
7131 IFS=$as_save_IFS
7132 test -z "$as_dir" && as_dir=.
7133 for ac_exec_ext in '' $ac_executable_extensions; do
7134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7135 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7137 break 2
7138 fi
7139 done
7140 done
7141 IFS=$as_save_IFS
7142
7143 fi
7144 fi
7145 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7146 if test -n "$ac_ct_OBJDUMP"; then
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7148 $as_echo "$ac_ct_OBJDUMP" >&6; }
7149 else
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7151 $as_echo "no" >&6; }
7152 fi
7153
7154 if test "x$ac_ct_OBJDUMP" = x; then
7155 OBJDUMP="false"
7156 else
7157 case $cross_compiling:$ac_tool_warned in
7158 yes:)
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7160 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7161 ac_tool_warned=yes ;;
7162 esac
7163 OBJDUMP=$ac_ct_OBJDUMP
7164 fi
7165 else
7166 OBJDUMP="$ac_cv_prog_OBJDUMP"
7167 fi
7168
7169 test -z "$OBJDUMP" && OBJDUMP=objdump
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7180 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7181 if ${lt_cv_deplibs_check_method+:} false; then :
7182 $as_echo_n "(cached) " >&6
7183 else
7184 lt_cv_file_magic_cmd='$MAGIC_CMD'
7185 lt_cv_file_magic_test_file=
7186 lt_cv_deplibs_check_method='unknown'
7187 # Need to set the preceding variable on all platforms that support
7188 # interlibrary dependencies.
7189 # 'none' -- dependencies not supported.
7190 # `unknown' -- same as none, but documents that we really don't know.
7191 # 'pass_all' -- all dependencies passed with no checks.
7192 # 'test_compile' -- check by making test program.
7193 # 'file_magic [[regex]]' -- check by looking for files in library path
7194 # which responds to the $file_magic_cmd with a given extended regex.
7195 # If you have `file' or equivalent on your system and you're not sure
7196 # whether `pass_all' will *always* work, you probably want this one.
7197
7198 case $host_os in
7199 aix[4-9]*)
7200 lt_cv_deplibs_check_method=pass_all
7201 ;;
7202
7203 beos*)
7204 lt_cv_deplibs_check_method=pass_all
7205 ;;
7206
7207 bsdi[45]*)
7208 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7209 lt_cv_file_magic_cmd='/usr/bin/file -L'
7210 lt_cv_file_magic_test_file=/shlib/libc.so
7211 ;;
7212
7213 cygwin*)
7214 # func_win32_libid is a shell function defined in ltmain.sh
7215 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7216 lt_cv_file_magic_cmd='func_win32_libid'
7217 ;;
7218
7219 mingw* | pw32*)
7220 # Base MSYS/MinGW do not provide the 'file' command needed by
7221 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7222 # unless we find 'file', for example because we are cross-compiling.
7223 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7224 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7225 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7226 lt_cv_file_magic_cmd='func_win32_libid'
7227 else
7228 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7229 lt_cv_file_magic_cmd='$OBJDUMP -f'
7230 fi
7231 ;;
7232
7233 cegcc*)
7234 # use the weaker test based on 'objdump'. See mingw*.
7235 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7236 lt_cv_file_magic_cmd='$OBJDUMP -f'
7237 ;;
7238
7239 darwin* | rhapsody*)
7240 lt_cv_deplibs_check_method=pass_all
7241 ;;
7242
7243 freebsd* | dragonfly*)
7244 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7245 case $host_cpu in
7246 i*86 )
7247 # Not sure whether the presence of OpenBSD here was a mistake.
7248 # Let's accept both of them until this is cleared up.
7249 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7250 lt_cv_file_magic_cmd=/usr/bin/file
7251 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7252 ;;
7253 esac
7254 else
7255 lt_cv_deplibs_check_method=pass_all
7256 fi
7257 ;;
7258
7259 gnu*)
7260 lt_cv_deplibs_check_method=pass_all
7261 ;;
7262
7263 haiku*)
7264 lt_cv_deplibs_check_method=pass_all
7265 ;;
7266
7267 hpux10.20* | hpux11*)
7268 lt_cv_file_magic_cmd=/usr/bin/file
7269 case $host_cpu in
7270 ia64*)
7271 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7272 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7273 ;;
7274 hppa*64*)
7275 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]'
7276 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7277 ;;
7278 *)
7279 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7280 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7281 ;;
7282 esac
7283 ;;
7284
7285 interix[3-9]*)
7286 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7287 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7288 ;;
7289
7290 irix5* | irix6* | nonstopux*)
7291 case $LD in
7292 *-32|*"-32 ") libmagic=32-bit;;
7293 *-n32|*"-n32 ") libmagic=N32;;
7294 *-64|*"-64 ") libmagic=64-bit;;
7295 *) libmagic=never-match;;
7296 esac
7297 lt_cv_deplibs_check_method=pass_all
7298 ;;
7299
7300 # This must be Linux ELF.
7301 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
7302 lt_cv_deplibs_check_method=pass_all
7303 ;;
7304
7305 netbsd*)
7306 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7307 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7308 else
7309 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7310 fi
7311 ;;
7312
7313 newos6*)
7314 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7315 lt_cv_file_magic_cmd=/usr/bin/file
7316 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7317 ;;
7318
7319 *nto* | *qnx*)
7320 lt_cv_deplibs_check_method=pass_all
7321 ;;
7322
7323 openbsd*)
7324 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7325 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7326 else
7327 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7328 fi
7329 ;;
7330
7331 osf3* | osf4* | osf5*)
7332 lt_cv_deplibs_check_method=pass_all
7333 ;;
7334
7335 rdos*)
7336 lt_cv_deplibs_check_method=pass_all
7337 ;;
7338
7339 solaris*)
7340 lt_cv_deplibs_check_method=pass_all
7341 ;;
7342
7343 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7344 lt_cv_deplibs_check_method=pass_all
7345 ;;
7346
7347 sysv4 | sysv4.3*)
7348 case $host_vendor in
7349 motorola)
7350 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]'
7351 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7352 ;;
7353 ncr)
7354 lt_cv_deplibs_check_method=pass_all
7355 ;;
7356 sequent)
7357 lt_cv_file_magic_cmd='/bin/file'
7358 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7359 ;;
7360 sni)
7361 lt_cv_file_magic_cmd='/bin/file'
7362 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7363 lt_cv_file_magic_test_file=/lib/libc.so
7364 ;;
7365 siemens)
7366 lt_cv_deplibs_check_method=pass_all
7367 ;;
7368 pc)
7369 lt_cv_deplibs_check_method=pass_all
7370 ;;
7371 esac
7372 ;;
7373
7374 tpf*)
7375 lt_cv_deplibs_check_method=pass_all
7376 ;;
7377 esac
7378
7379 fi
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7381 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7382 file_magic_cmd=$lt_cv_file_magic_cmd
7383 deplibs_check_method=$lt_cv_deplibs_check_method
7384 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397 if test -n "$ac_tool_prefix"; then
7398 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7399 set dummy ${ac_tool_prefix}ar; ac_word=$2
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7401 $as_echo_n "checking for $ac_word... " >&6; }
7402 if ${ac_cv_prog_AR+:} false; then :
7403 $as_echo_n "(cached) " >&6
7404 else
7405 if test -n "$AR"; then
7406 ac_cv_prog_AR="$AR" # Let the user override the test.
7407 else
7408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7409 for as_dir in $PATH
7410 do
7411 IFS=$as_save_IFS
7412 test -z "$as_dir" && as_dir=.
7413 for ac_exec_ext in '' $ac_executable_extensions; do
7414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7415 ac_cv_prog_AR="${ac_tool_prefix}ar"
7416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7417 break 2
7418 fi
7419 done
7420 done
7421 IFS=$as_save_IFS
7422
7423 fi
7424 fi
7425 AR=$ac_cv_prog_AR
7426 if test -n "$AR"; then
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7428 $as_echo "$AR" >&6; }
7429 else
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7431 $as_echo "no" >&6; }
7432 fi
7433
7434
7435 fi
7436 if test -z "$ac_cv_prog_AR"; then
7437 ac_ct_AR=$AR
7438 # Extract the first word of "ar", so it can be a program name with args.
7439 set dummy ar; ac_word=$2
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7441 $as_echo_n "checking for $ac_word... " >&6; }
7442 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7443 $as_echo_n "(cached) " >&6
7444 else
7445 if test -n "$ac_ct_AR"; then
7446 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7447 else
7448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7449 for as_dir in $PATH
7450 do
7451 IFS=$as_save_IFS
7452 test -z "$as_dir" && as_dir=.
7453 for ac_exec_ext in '' $ac_executable_extensions; do
7454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7455 ac_cv_prog_ac_ct_AR="ar"
7456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7457 break 2
7458 fi
7459 done
7460 done
7461 IFS=$as_save_IFS
7462
7463 fi
7464 fi
7465 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7466 if test -n "$ac_ct_AR"; then
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7468 $as_echo "$ac_ct_AR" >&6; }
7469 else
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7471 $as_echo "no" >&6; }
7472 fi
7473
7474 if test "x$ac_ct_AR" = x; then
7475 AR="false"
7476 else
7477 case $cross_compiling:$ac_tool_warned in
7478 yes:)
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7480 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7481 ac_tool_warned=yes ;;
7482 esac
7483 AR=$ac_ct_AR
7484 fi
7485 else
7486 AR="$ac_cv_prog_AR"
7487 fi
7488
7489 test -z "$AR" && AR=ar
7490 test -z "$AR_FLAGS" && AR_FLAGS=cru
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502 if test -n "$ac_tool_prefix"; then
7503 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7504 set dummy ${ac_tool_prefix}strip; ac_word=$2
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7506 $as_echo_n "checking for $ac_word... " >&6; }
7507 if ${ac_cv_prog_STRIP+:} false; then :
7508 $as_echo_n "(cached) " >&6
7509 else
7510 if test -n "$STRIP"; then
7511 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7512 else
7513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7514 for as_dir in $PATH
7515 do
7516 IFS=$as_save_IFS
7517 test -z "$as_dir" && as_dir=.
7518 for ac_exec_ext in '' $ac_executable_extensions; do
7519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7520 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7522 break 2
7523 fi
7524 done
7525 done
7526 IFS=$as_save_IFS
7527
7528 fi
7529 fi
7530 STRIP=$ac_cv_prog_STRIP
7531 if test -n "$STRIP"; then
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7533 $as_echo "$STRIP" >&6; }
7534 else
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7536 $as_echo "no" >&6; }
7537 fi
7538
7539
7540 fi
7541 if test -z "$ac_cv_prog_STRIP"; then
7542 ac_ct_STRIP=$STRIP
7543 # Extract the first word of "strip", so it can be a program name with args.
7544 set dummy strip; ac_word=$2
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7546 $as_echo_n "checking for $ac_word... " >&6; }
7547 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7548 $as_echo_n "(cached) " >&6
7549 else
7550 if test -n "$ac_ct_STRIP"; then
7551 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7552 else
7553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7554 for as_dir in $PATH
7555 do
7556 IFS=$as_save_IFS
7557 test -z "$as_dir" && as_dir=.
7558 for ac_exec_ext in '' $ac_executable_extensions; do
7559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7560 ac_cv_prog_ac_ct_STRIP="strip"
7561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7562 break 2
7563 fi
7564 done
7565 done
7566 IFS=$as_save_IFS
7567
7568 fi
7569 fi
7570 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7571 if test -n "$ac_ct_STRIP"; then
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7573 $as_echo "$ac_ct_STRIP" >&6; }
7574 else
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7576 $as_echo "no" >&6; }
7577 fi
7578
7579 if test "x$ac_ct_STRIP" = x; then
7580 STRIP=":"
7581 else
7582 case $cross_compiling:$ac_tool_warned in
7583 yes:)
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7585 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7586 ac_tool_warned=yes ;;
7587 esac
7588 STRIP=$ac_ct_STRIP
7589 fi
7590 else
7591 STRIP="$ac_cv_prog_STRIP"
7592 fi
7593
7594 test -z "$STRIP" && STRIP=:
7595
7596
7597
7598
7599
7600
7601 if test -n "$ac_tool_prefix"; then
7602 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7603 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7605 $as_echo_n "checking for $ac_word... " >&6; }
7606 if ${ac_cv_prog_RANLIB+:} false; then :
7607 $as_echo_n "(cached) " >&6
7608 else
7609 if test -n "$RANLIB"; then
7610 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7611 else
7612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7613 for as_dir in $PATH
7614 do
7615 IFS=$as_save_IFS
7616 test -z "$as_dir" && as_dir=.
7617 for ac_exec_ext in '' $ac_executable_extensions; do
7618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7619 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7621 break 2
7622 fi
7623 done
7624 done
7625 IFS=$as_save_IFS
7626
7627 fi
7628 fi
7629 RANLIB=$ac_cv_prog_RANLIB
7630 if test -n "$RANLIB"; then
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7632 $as_echo "$RANLIB" >&6; }
7633 else
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7635 $as_echo "no" >&6; }
7636 fi
7637
7638
7639 fi
7640 if test -z "$ac_cv_prog_RANLIB"; then
7641 ac_ct_RANLIB=$RANLIB
7642 # Extract the first word of "ranlib", so it can be a program name with args.
7643 set dummy ranlib; ac_word=$2
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7645 $as_echo_n "checking for $ac_word... " >&6; }
7646 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7647 $as_echo_n "(cached) " >&6
7648 else
7649 if test -n "$ac_ct_RANLIB"; then
7650 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7651 else
7652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7653 for as_dir in $PATH
7654 do
7655 IFS=$as_save_IFS
7656 test -z "$as_dir" && as_dir=.
7657 for ac_exec_ext in '' $ac_executable_extensions; do
7658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7659 ac_cv_prog_ac_ct_RANLIB="ranlib"
7660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7661 break 2
7662 fi
7663 done
7664 done
7665 IFS=$as_save_IFS
7666
7667 fi
7668 fi
7669 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7670 if test -n "$ac_ct_RANLIB"; then
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7672 $as_echo "$ac_ct_RANLIB" >&6; }
7673 else
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7675 $as_echo "no" >&6; }
7676 fi
7677
7678 if test "x$ac_ct_RANLIB" = x; then
7679 RANLIB=":"
7680 else
7681 case $cross_compiling:$ac_tool_warned in
7682 yes:)
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7684 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7685 ac_tool_warned=yes ;;
7686 esac
7687 RANLIB=$ac_ct_RANLIB
7688 fi
7689 else
7690 RANLIB="$ac_cv_prog_RANLIB"
7691 fi
7692
7693 test -z "$RANLIB" && RANLIB=:
7694
7695
7696
7697
7698
7699
7700 # Determine commands to create old-style static archives.
7701 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7702 old_postinstall_cmds='chmod 644 $oldlib'
7703 old_postuninstall_cmds=
7704
7705 if test -n "$RANLIB"; then
7706 case $host_os in
7707 openbsd*)
7708 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7709 ;;
7710 *)
7711 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7712 ;;
7713 esac
7714 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7715 fi
7716
7717 case $host_os in
7718 darwin*)
7719 lock_old_archive_extraction=yes ;;
7720 *)
7721 lock_old_archive_extraction=no ;;
7722 esac
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762 # If no C compiler was specified, use CC.
7763 LTCC=${LTCC-"$CC"}
7764
7765 # If no C compiler flags were specified, use CFLAGS.
7766 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7767
7768 # Allow CC to be a program name with arguments.
7769 compiler=$CC
7770
7771
7772 # Check for command to grab the raw symbol name followed by C symbol from nm.
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7774 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7775 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7776 $as_echo_n "(cached) " >&6
7777 else
7778
7779 # These are sane defaults that work on at least a few old systems.
7780 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7781
7782 # Character class describing NM global symbol codes.
7783 symcode='[BCDEGRST]'
7784
7785 # Regexp to match symbols that can be accessed directly from C.
7786 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7787
7788 # Define system-specific variables.
7789 case $host_os in
7790 aix*)
7791 symcode='[BCDT]'
7792 ;;
7793 cygwin* | mingw* | pw32* | cegcc*)
7794 symcode='[ABCDGISTW]'
7795 ;;
7796 hpux*)
7797 if test "$host_cpu" = ia64; then
7798 symcode='[ABCDEGRST]'
7799 fi
7800 ;;
7801 irix* | nonstopux*)
7802 symcode='[BCDEGRST]'
7803 ;;
7804 osf*)
7805 symcode='[BCDEGQRST]'
7806 ;;
7807 solaris*)
7808 symcode='[BDRT]'
7809 ;;
7810 sco3.2v5*)
7811 symcode='[DT]'
7812 ;;
7813 sysv4.2uw2*)
7814 symcode='[DT]'
7815 ;;
7816 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7817 symcode='[ABDT]'
7818 ;;
7819 sysv4)
7820 symcode='[DFNSTU]'
7821 ;;
7822 esac
7823
7824 # If we're using GNU nm, then use its standard symbol codes.
7825 case `$NM -V 2>&1` in
7826 *GNU* | *'with BFD'*)
7827 symcode='[ABCDGIRSTW]' ;;
7828 esac
7829
7830 # Transform an extracted symbol line into a proper C declaration.
7831 # Some systems (esp. on ia64) link data and code symbols differently,
7832 # so use this general approach.
7833 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7834
7835 # Transform an extracted symbol line into symbol name and symbol address
7836 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7837 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'"
7838
7839 # Handle CRLF in mingw tool chain
7840 opt_cr=
7841 case $build_os in
7842 mingw*)
7843 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7844 ;;
7845 esac
7846
7847 # Try without a prefix underscore, then with it.
7848 for ac_symprfx in "" "_"; do
7849
7850 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7851 symxfrm="\\1 $ac_symprfx\\2 \\2"
7852
7853 # Write the raw and C identifiers.
7854 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7855 # Fake it for dumpbin and say T for any non-static function
7856 # and D for any global variable.
7857 # Also find C++ and __fastcall symbols from MSVC++,
7858 # which start with @ or ?.
7859 lt_cv_sys_global_symbol_pipe="$AWK '"\
7860 " {last_section=section; section=\$ 3};"\
7861 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7862 " \$ 0!~/External *\|/{next};"\
7863 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7864 " {if(hide[section]) next};"\
7865 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7866 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7867 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7868 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7869 " ' prfx=^$ac_symprfx"
7870 else
7871 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7872 fi
7873
7874 # Check to see that the pipe works correctly.
7875 pipe_works=no
7876
7877 rm -f conftest*
7878 cat > conftest.$ac_ext <<_LT_EOF
7879 #ifdef __cplusplus
7880 extern "C" {
7881 #endif
7882 char nm_test_var;
7883 void nm_test_func(void);
7884 void nm_test_func(void){}
7885 #ifdef __cplusplus
7886 }
7887 #endif
7888 int main(){nm_test_var='a';nm_test_func();return(0);}
7889 _LT_EOF
7890
7891 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7892 (eval $ac_compile) 2>&5
7893 ac_status=$?
7894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7895 test $ac_status = 0; }; then
7896 # Now try to grab the symbols.
7897 nlist=conftest.nm
7898 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7899 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7900 ac_status=$?
7901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7902 test $ac_status = 0; } && test -s "$nlist"; then
7903 # Try sorting and uniquifying the output.
7904 if sort "$nlist" | uniq > "$nlist"T; then
7905 mv -f "$nlist"T "$nlist"
7906 else
7907 rm -f "$nlist"T
7908 fi
7909
7910 # Make sure that we snagged all the symbols we need.
7911 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7912 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7913 cat <<_LT_EOF > conftest.$ac_ext
7914 #ifdef __cplusplus
7915 extern "C" {
7916 #endif
7917
7918 _LT_EOF
7919 # Now generate the symbol file.
7920 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7921
7922 cat <<_LT_EOF >> conftest.$ac_ext
7923
7924 /* The mapping between symbol names and symbols. */
7925 const struct {
7926 const char *name;
7927 void *address;
7928 }
7929 lt__PROGRAM__LTX_preloaded_symbols[] =
7930 {
7931 { "@PROGRAM@", (void *) 0 },
7932 _LT_EOF
7933 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7934 cat <<\_LT_EOF >> conftest.$ac_ext
7935 {0, (void *) 0}
7936 };
7937
7938 /* This works around a problem in FreeBSD linker */
7939 #ifdef FREEBSD_WORKAROUND
7940 static const void *lt_preloaded_setup() {
7941 return lt__PROGRAM__LTX_preloaded_symbols;
7942 }
7943 #endif
7944
7945 #ifdef __cplusplus
7946 }
7947 #endif
7948 _LT_EOF
7949 # Now try linking the two files.
7950 mv conftest.$ac_objext conftstm.$ac_objext
7951 lt_save_LIBS="$LIBS"
7952 lt_save_CFLAGS="$CFLAGS"
7953 LIBS="conftstm.$ac_objext"
7954 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7955 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7956 (eval $ac_link) 2>&5
7957 ac_status=$?
7958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7959 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7960 pipe_works=yes
7961 fi
7962 LIBS="$lt_save_LIBS"
7963 CFLAGS="$lt_save_CFLAGS"
7964 else
7965 echo "cannot find nm_test_func in $nlist" >&5
7966 fi
7967 else
7968 echo "cannot find nm_test_var in $nlist" >&5
7969 fi
7970 else
7971 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7972 fi
7973 else
7974 echo "$progname: failed program was:" >&5
7975 cat conftest.$ac_ext >&5
7976 fi
7977 rm -rf conftest* conftst*
7978
7979 # Do not use the global_symbol_pipe unless it works.
7980 if test "$pipe_works" = yes; then
7981 break
7982 else
7983 lt_cv_sys_global_symbol_pipe=
7984 fi
7985 done
7986
7987 fi
7988
7989 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7990 lt_cv_sys_global_symbol_to_cdecl=
7991 fi
7992 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7994 $as_echo "failed" >&6; }
7995 else
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7997 $as_echo "ok" >&6; }
7998 fi
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021 # Check whether --enable-libtool-lock was given.
8022 if test "${enable_libtool_lock+set}" = set; then :
8023 enableval=$enable_libtool_lock;
8024 fi
8025
8026 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8027
8028 # Some flags need to be propagated to the compiler or linker for good
8029 # libtool support.
8030 case $host in
8031 ia64-*-hpux*)
8032 # Find out which ABI we are using.
8033 echo 'int i;' > conftest.$ac_ext
8034 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8035 (eval $ac_compile) 2>&5
8036 ac_status=$?
8037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8038 test $ac_status = 0; }; then
8039 case `/usr/bin/file conftest.$ac_objext` in
8040 *ELF-32*)
8041 HPUX_IA64_MODE="32"
8042 ;;
8043 *ELF-64*)
8044 HPUX_IA64_MODE="64"
8045 ;;
8046 esac
8047 fi
8048 rm -rf conftest*
8049 ;;
8050 *-*-irix6*)
8051 # Find out which ABI we are using.
8052 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8053 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8054 (eval $ac_compile) 2>&5
8055 ac_status=$?
8056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8057 test $ac_status = 0; }; then
8058 if test "$lt_cv_prog_gnu_ld" = yes; then
8059 case `/usr/bin/file conftest.$ac_objext` in
8060 *32-bit*)
8061 LD="${LD-ld} -melf32bsmip"
8062 ;;
8063 *N32*)
8064 LD="${LD-ld} -melf32bmipn32"
8065 ;;
8066 *64-bit*)
8067 LD="${LD-ld} -melf64bmip"
8068 ;;
8069 esac
8070 else
8071 case `/usr/bin/file conftest.$ac_objext` in
8072 *32-bit*)
8073 LD="${LD-ld} -32"
8074 ;;
8075 *N32*)
8076 LD="${LD-ld} -n32"
8077 ;;
8078 *64-bit*)
8079 LD="${LD-ld} -64"
8080 ;;
8081 esac
8082 fi
8083 fi
8084 rm -rf conftest*
8085 ;;
8086
8087 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8088 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8089 # Find out which ABI we are using.
8090 echo 'int i;' > conftest.$ac_ext
8091 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8092 (eval $ac_compile) 2>&5
8093 ac_status=$?
8094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8095 test $ac_status = 0; }; then
8096 case `/usr/bin/file conftest.o` in
8097 *32-bit*)
8098 case $host in
8099 x86_64-*kfreebsd*-gnu)
8100 LD="${LD-ld} -m elf_i386_fbsd"
8101 ;;
8102 x86_64-*linux*)
8103 case `/usr/bin/file conftest.o` in
8104 *x86-64*)
8105 LD="${LD-ld} -m elf32_x86_64"
8106 ;;
8107 *)
8108 LD="${LD-ld} -m elf_i386"
8109 ;;
8110 esac
8111 ;;
8112 powerpc64le-*linux*)
8113 LD="${LD-ld} -m elf32lppclinux"
8114 ;;
8115 powerpc64-*linux*)
8116 LD="${LD-ld} -m elf32ppclinux"
8117 ;;
8118 s390x-*linux*)
8119 LD="${LD-ld} -m elf_s390"
8120 ;;
8121 sparc64-*linux*)
8122 LD="${LD-ld} -m elf32_sparc"
8123 ;;
8124 esac
8125 ;;
8126 *64-bit*)
8127 case $host in
8128 x86_64-*kfreebsd*-gnu)
8129 LD="${LD-ld} -m elf_x86_64_fbsd"
8130 ;;
8131 x86_64-*linux*)
8132 LD="${LD-ld} -m elf_x86_64"
8133 ;;
8134 powerpcle-*linux*)
8135 LD="${LD-ld} -m elf64lppc"
8136 ;;
8137 powerpc-*linux*)
8138 LD="${LD-ld} -m elf64ppc"
8139 ;;
8140 s390*-*linux*|s390*-*tpf*)
8141 LD="${LD-ld} -m elf64_s390"
8142 ;;
8143 sparc*-*linux*)
8144 LD="${LD-ld} -m elf64_sparc"
8145 ;;
8146 esac
8147 ;;
8148 esac
8149 fi
8150 rm -rf conftest*
8151 ;;
8152
8153 *-*-sco3.2v5*)
8154 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8155 SAVE_CFLAGS="$CFLAGS"
8156 CFLAGS="$CFLAGS -belf"
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8158 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8159 if ${lt_cv_cc_needs_belf+:} false; then :
8160 $as_echo_n "(cached) " >&6
8161 else
8162 ac_ext=c
8163 ac_cpp='$CPP $CPPFLAGS'
8164 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8165 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8166 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8167
8168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8169 /* end confdefs.h. */
8170
8171 int
8172 main ()
8173 {
8174
8175 ;
8176 return 0;
8177 }
8178 _ACEOF
8179 if ac_fn_c_try_link "$LINENO"; then :
8180 lt_cv_cc_needs_belf=yes
8181 else
8182 lt_cv_cc_needs_belf=no
8183 fi
8184 rm -f core conftest.err conftest.$ac_objext \
8185 conftest$ac_exeext conftest.$ac_ext
8186 ac_ext=c
8187 ac_cpp='$CPP $CPPFLAGS'
8188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8191
8192 fi
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8194 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8195 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8196 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8197 CFLAGS="$SAVE_CFLAGS"
8198 fi
8199 ;;
8200 sparc*-*solaris*)
8201 # Find out which ABI we are using.
8202 echo 'int i;' > conftest.$ac_ext
8203 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8204 (eval $ac_compile) 2>&5
8205 ac_status=$?
8206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8207 test $ac_status = 0; }; then
8208 case `/usr/bin/file conftest.o` in
8209 *64-bit*)
8210 case $lt_cv_prog_gnu_ld in
8211 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8212 *)
8213 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8214 LD="${LD-ld} -64"
8215 fi
8216 ;;
8217 esac
8218 ;;
8219 esac
8220 fi
8221 rm -rf conftest*
8222 ;;
8223 esac
8224
8225 need_locks="$enable_libtool_lock"
8226
8227
8228 case $host_os in
8229 rhapsody* | darwin*)
8230 if test -n "$ac_tool_prefix"; then
8231 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8232 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8234 $as_echo_n "checking for $ac_word... " >&6; }
8235 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8236 $as_echo_n "(cached) " >&6
8237 else
8238 if test -n "$DSYMUTIL"; then
8239 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8240 else
8241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8242 for as_dir in $PATH
8243 do
8244 IFS=$as_save_IFS
8245 test -z "$as_dir" && as_dir=.
8246 for ac_exec_ext in '' $ac_executable_extensions; do
8247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8248 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8250 break 2
8251 fi
8252 done
8253 done
8254 IFS=$as_save_IFS
8255
8256 fi
8257 fi
8258 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8259 if test -n "$DSYMUTIL"; then
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8261 $as_echo "$DSYMUTIL" >&6; }
8262 else
8263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8264 $as_echo "no" >&6; }
8265 fi
8266
8267
8268 fi
8269 if test -z "$ac_cv_prog_DSYMUTIL"; then
8270 ac_ct_DSYMUTIL=$DSYMUTIL
8271 # Extract the first word of "dsymutil", so it can be a program name with args.
8272 set dummy dsymutil; ac_word=$2
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8274 $as_echo_n "checking for $ac_word... " >&6; }
8275 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8276 $as_echo_n "(cached) " >&6
8277 else
8278 if test -n "$ac_ct_DSYMUTIL"; then
8279 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8280 else
8281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8282 for as_dir in $PATH
8283 do
8284 IFS=$as_save_IFS
8285 test -z "$as_dir" && as_dir=.
8286 for ac_exec_ext in '' $ac_executable_extensions; do
8287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8288 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8290 break 2
8291 fi
8292 done
8293 done
8294 IFS=$as_save_IFS
8295
8296 fi
8297 fi
8298 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8299 if test -n "$ac_ct_DSYMUTIL"; then
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8301 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8302 else
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8304 $as_echo "no" >&6; }
8305 fi
8306
8307 if test "x$ac_ct_DSYMUTIL" = x; then
8308 DSYMUTIL=":"
8309 else
8310 case $cross_compiling:$ac_tool_warned in
8311 yes:)
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8313 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8314 ac_tool_warned=yes ;;
8315 esac
8316 DSYMUTIL=$ac_ct_DSYMUTIL
8317 fi
8318 else
8319 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8320 fi
8321
8322 if test -n "$ac_tool_prefix"; then
8323 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8324 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8326 $as_echo_n "checking for $ac_word... " >&6; }
8327 if ${ac_cv_prog_NMEDIT+:} false; then :
8328 $as_echo_n "(cached) " >&6
8329 else
8330 if test -n "$NMEDIT"; then
8331 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8332 else
8333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8334 for as_dir in $PATH
8335 do
8336 IFS=$as_save_IFS
8337 test -z "$as_dir" && as_dir=.
8338 for ac_exec_ext in '' $ac_executable_extensions; do
8339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8340 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8342 break 2
8343 fi
8344 done
8345 done
8346 IFS=$as_save_IFS
8347
8348 fi
8349 fi
8350 NMEDIT=$ac_cv_prog_NMEDIT
8351 if test -n "$NMEDIT"; then
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8353 $as_echo "$NMEDIT" >&6; }
8354 else
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8356 $as_echo "no" >&6; }
8357 fi
8358
8359
8360 fi
8361 if test -z "$ac_cv_prog_NMEDIT"; then
8362 ac_ct_NMEDIT=$NMEDIT
8363 # Extract the first word of "nmedit", so it can be a program name with args.
8364 set dummy nmedit; ac_word=$2
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8366 $as_echo_n "checking for $ac_word... " >&6; }
8367 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8368 $as_echo_n "(cached) " >&6
8369 else
8370 if test -n "$ac_ct_NMEDIT"; then
8371 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8372 else
8373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8374 for as_dir in $PATH
8375 do
8376 IFS=$as_save_IFS
8377 test -z "$as_dir" && as_dir=.
8378 for ac_exec_ext in '' $ac_executable_extensions; do
8379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8380 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8382 break 2
8383 fi
8384 done
8385 done
8386 IFS=$as_save_IFS
8387
8388 fi
8389 fi
8390 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8391 if test -n "$ac_ct_NMEDIT"; then
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8393 $as_echo "$ac_ct_NMEDIT" >&6; }
8394 else
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8396 $as_echo "no" >&6; }
8397 fi
8398
8399 if test "x$ac_ct_NMEDIT" = x; then
8400 NMEDIT=":"
8401 else
8402 case $cross_compiling:$ac_tool_warned in
8403 yes:)
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8405 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8406 ac_tool_warned=yes ;;
8407 esac
8408 NMEDIT=$ac_ct_NMEDIT
8409 fi
8410 else
8411 NMEDIT="$ac_cv_prog_NMEDIT"
8412 fi
8413
8414 if test -n "$ac_tool_prefix"; then
8415 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8416 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8418 $as_echo_n "checking for $ac_word... " >&6; }
8419 if ${ac_cv_prog_LIPO+:} false; then :
8420 $as_echo_n "(cached) " >&6
8421 else
8422 if test -n "$LIPO"; then
8423 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8424 else
8425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8426 for as_dir in $PATH
8427 do
8428 IFS=$as_save_IFS
8429 test -z "$as_dir" && as_dir=.
8430 for ac_exec_ext in '' $ac_executable_extensions; do
8431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8432 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8434 break 2
8435 fi
8436 done
8437 done
8438 IFS=$as_save_IFS
8439
8440 fi
8441 fi
8442 LIPO=$ac_cv_prog_LIPO
8443 if test -n "$LIPO"; then
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8445 $as_echo "$LIPO" >&6; }
8446 else
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8448 $as_echo "no" >&6; }
8449 fi
8450
8451
8452 fi
8453 if test -z "$ac_cv_prog_LIPO"; then
8454 ac_ct_LIPO=$LIPO
8455 # Extract the first word of "lipo", so it can be a program name with args.
8456 set dummy lipo; ac_word=$2
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8458 $as_echo_n "checking for $ac_word... " >&6; }
8459 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8460 $as_echo_n "(cached) " >&6
8461 else
8462 if test -n "$ac_ct_LIPO"; then
8463 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8464 else
8465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8466 for as_dir in $PATH
8467 do
8468 IFS=$as_save_IFS
8469 test -z "$as_dir" && as_dir=.
8470 for ac_exec_ext in '' $ac_executable_extensions; do
8471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8472 ac_cv_prog_ac_ct_LIPO="lipo"
8473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8474 break 2
8475 fi
8476 done
8477 done
8478 IFS=$as_save_IFS
8479
8480 fi
8481 fi
8482 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8483 if test -n "$ac_ct_LIPO"; then
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8485 $as_echo "$ac_ct_LIPO" >&6; }
8486 else
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8488 $as_echo "no" >&6; }
8489 fi
8490
8491 if test "x$ac_ct_LIPO" = x; then
8492 LIPO=":"
8493 else
8494 case $cross_compiling:$ac_tool_warned in
8495 yes:)
8496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8497 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8498 ac_tool_warned=yes ;;
8499 esac
8500 LIPO=$ac_ct_LIPO
8501 fi
8502 else
8503 LIPO="$ac_cv_prog_LIPO"
8504 fi
8505
8506 if test -n "$ac_tool_prefix"; then
8507 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8508 set dummy ${ac_tool_prefix}otool; ac_word=$2
8509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8510 $as_echo_n "checking for $ac_word... " >&6; }
8511 if ${ac_cv_prog_OTOOL+:} false; then :
8512 $as_echo_n "(cached) " >&6
8513 else
8514 if test -n "$OTOOL"; then
8515 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8516 else
8517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8518 for as_dir in $PATH
8519 do
8520 IFS=$as_save_IFS
8521 test -z "$as_dir" && as_dir=.
8522 for ac_exec_ext in '' $ac_executable_extensions; do
8523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8524 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8526 break 2
8527 fi
8528 done
8529 done
8530 IFS=$as_save_IFS
8531
8532 fi
8533 fi
8534 OTOOL=$ac_cv_prog_OTOOL
8535 if test -n "$OTOOL"; then
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8537 $as_echo "$OTOOL" >&6; }
8538 else
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8540 $as_echo "no" >&6; }
8541 fi
8542
8543
8544 fi
8545 if test -z "$ac_cv_prog_OTOOL"; then
8546 ac_ct_OTOOL=$OTOOL
8547 # Extract the first word of "otool", so it can be a program name with args.
8548 set dummy otool; ac_word=$2
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8550 $as_echo_n "checking for $ac_word... " >&6; }
8551 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8552 $as_echo_n "(cached) " >&6
8553 else
8554 if test -n "$ac_ct_OTOOL"; then
8555 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8556 else
8557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8558 for as_dir in $PATH
8559 do
8560 IFS=$as_save_IFS
8561 test -z "$as_dir" && as_dir=.
8562 for ac_exec_ext in '' $ac_executable_extensions; do
8563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8564 ac_cv_prog_ac_ct_OTOOL="otool"
8565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8566 break 2
8567 fi
8568 done
8569 done
8570 IFS=$as_save_IFS
8571
8572 fi
8573 fi
8574 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8575 if test -n "$ac_ct_OTOOL"; then
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8577 $as_echo "$ac_ct_OTOOL" >&6; }
8578 else
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8580 $as_echo "no" >&6; }
8581 fi
8582
8583 if test "x$ac_ct_OTOOL" = x; then
8584 OTOOL=":"
8585 else
8586 case $cross_compiling:$ac_tool_warned in
8587 yes:)
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8589 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8590 ac_tool_warned=yes ;;
8591 esac
8592 OTOOL=$ac_ct_OTOOL
8593 fi
8594 else
8595 OTOOL="$ac_cv_prog_OTOOL"
8596 fi
8597
8598 if test -n "$ac_tool_prefix"; then
8599 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8600 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8602 $as_echo_n "checking for $ac_word... " >&6; }
8603 if ${ac_cv_prog_OTOOL64+:} false; then :
8604 $as_echo_n "(cached) " >&6
8605 else
8606 if test -n "$OTOOL64"; then
8607 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8608 else
8609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8610 for as_dir in $PATH
8611 do
8612 IFS=$as_save_IFS
8613 test -z "$as_dir" && as_dir=.
8614 for ac_exec_ext in '' $ac_executable_extensions; do
8615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8616 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8618 break 2
8619 fi
8620 done
8621 done
8622 IFS=$as_save_IFS
8623
8624 fi
8625 fi
8626 OTOOL64=$ac_cv_prog_OTOOL64
8627 if test -n "$OTOOL64"; then
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8629 $as_echo "$OTOOL64" >&6; }
8630 else
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8632 $as_echo "no" >&6; }
8633 fi
8634
8635
8636 fi
8637 if test -z "$ac_cv_prog_OTOOL64"; then
8638 ac_ct_OTOOL64=$OTOOL64
8639 # Extract the first word of "otool64", so it can be a program name with args.
8640 set dummy otool64; ac_word=$2
8641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8642 $as_echo_n "checking for $ac_word... " >&6; }
8643 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8644 $as_echo_n "(cached) " >&6
8645 else
8646 if test -n "$ac_ct_OTOOL64"; then
8647 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8648 else
8649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8650 for as_dir in $PATH
8651 do
8652 IFS=$as_save_IFS
8653 test -z "$as_dir" && as_dir=.
8654 for ac_exec_ext in '' $ac_executable_extensions; do
8655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8656 ac_cv_prog_ac_ct_OTOOL64="otool64"
8657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8658 break 2
8659 fi
8660 done
8661 done
8662 IFS=$as_save_IFS
8663
8664 fi
8665 fi
8666 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8667 if test -n "$ac_ct_OTOOL64"; then
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8669 $as_echo "$ac_ct_OTOOL64" >&6; }
8670 else
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8672 $as_echo "no" >&6; }
8673 fi
8674
8675 if test "x$ac_ct_OTOOL64" = x; then
8676 OTOOL64=":"
8677 else
8678 case $cross_compiling:$ac_tool_warned in
8679 yes:)
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8681 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8682 ac_tool_warned=yes ;;
8683 esac
8684 OTOOL64=$ac_ct_OTOOL64
8685 fi
8686 else
8687 OTOOL64="$ac_cv_prog_OTOOL64"
8688 fi
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8717 $as_echo_n "checking for -single_module linker flag... " >&6; }
8718 if ${lt_cv_apple_cc_single_mod+:} false; then :
8719 $as_echo_n "(cached) " >&6
8720 else
8721 lt_cv_apple_cc_single_mod=no
8722 if test -z "${LT_MULTI_MODULE}"; then
8723 # By default we will add the -single_module flag. You can override
8724 # by either setting the environment variable LT_MULTI_MODULE
8725 # non-empty at configure time, or by adding -multi_module to the
8726 # link flags.
8727 rm -rf libconftest.dylib*
8728 echo "int foo(void){return 1;}" > conftest.c
8729 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8730 -dynamiclib -Wl,-single_module conftest.c" >&5
8731 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8732 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8733 _lt_result=$?
8734 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8735 lt_cv_apple_cc_single_mod=yes
8736 else
8737 cat conftest.err >&5
8738 fi
8739 rm -rf libconftest.dylib*
8740 rm -f conftest.*
8741 fi
8742 fi
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8744 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8746 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8747 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8748 $as_echo_n "(cached) " >&6
8749 else
8750 lt_cv_ld_exported_symbols_list=no
8751 save_LDFLAGS=$LDFLAGS
8752 echo "_main" > conftest.sym
8753 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8755 /* end confdefs.h. */
8756
8757 int
8758 main ()
8759 {
8760
8761 ;
8762 return 0;
8763 }
8764 _ACEOF
8765 if ac_fn_c_try_link "$LINENO"; then :
8766 lt_cv_ld_exported_symbols_list=yes
8767 else
8768 lt_cv_ld_exported_symbols_list=no
8769 fi
8770 rm -f core conftest.err conftest.$ac_objext \
8771 conftest$ac_exeext conftest.$ac_ext
8772 LDFLAGS="$save_LDFLAGS"
8773
8774 fi
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8776 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8778 $as_echo_n "checking for -force_load linker flag... " >&6; }
8779 if ${lt_cv_ld_force_load+:} false; then :
8780 $as_echo_n "(cached) " >&6
8781 else
8782 lt_cv_ld_force_load=no
8783 cat > conftest.c << _LT_EOF
8784 int forced_loaded() { return 2;}
8785 _LT_EOF
8786 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8787 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8788 echo "$AR cru libconftest.a conftest.o" >&5
8789 $AR cru libconftest.a conftest.o 2>&5
8790 cat > conftest.c << _LT_EOF
8791 int main() { return 0;}
8792 _LT_EOF
8793 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8794 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8795 _lt_result=$?
8796 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8797 lt_cv_ld_force_load=yes
8798 else
8799 cat conftest.err >&5
8800 fi
8801 rm -f conftest.err libconftest.a conftest conftest.c
8802 rm -rf conftest.dSYM
8803
8804 fi
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8806 $as_echo "$lt_cv_ld_force_load" >&6; }
8807 case $host_os in
8808 rhapsody* | darwin1.[012])
8809 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8810 darwin1.*)
8811 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8812 darwin*) # darwin 5.x on
8813 # if running on 10.5 or later, the deployment target defaults
8814 # to the OS version, if on x86, and 10.4, the deployment
8815 # target defaults to 10.4. Don't you love it?
8816 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8817 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8818 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8819 10.[012][,.]*)
8820 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8821 10.*)
8822 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8823 esac
8824 ;;
8825 esac
8826 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8827 _lt_dar_single_mod='$single_module'
8828 fi
8829 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8830 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8831 else
8832 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8833 fi
8834 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8835 _lt_dsymutil='~$DSYMUTIL $lib || :'
8836 else
8837 _lt_dsymutil=
8838 fi
8839 ;;
8840 esac
8841
8842 for ac_header in dlfcn.h
8843 do :
8844 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8845 "
8846 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8847 cat >>confdefs.h <<_ACEOF
8848 #define HAVE_DLFCN_H 1
8849 _ACEOF
8850
8851 fi
8852
8853 done
8854
8855
8856
8857
8858
8859
8860 # Set options
8861
8862
8863
8864
8865 enable_win32_dll=no
8866
8867
8868 # Check whether --enable-shared was given.
8869 if test "${enable_shared+set}" = set; then :
8870 enableval=$enable_shared; p=${PACKAGE-default}
8871 case $enableval in
8872 yes) enable_shared=yes ;;
8873 no) enable_shared=no ;;
8874 *)
8875 enable_shared=no
8876 # Look at the argument we got. We use all the common list separators.
8877 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8878 for pkg in $enableval; do
8879 IFS="$lt_save_ifs"
8880 if test "X$pkg" = "X$p"; then
8881 enable_shared=yes
8882 fi
8883 done
8884 IFS="$lt_save_ifs"
8885 ;;
8886 esac
8887 else
8888 enable_shared=yes
8889 fi
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899 # Check whether --enable-static was given.
8900 if test "${enable_static+set}" = set; then :
8901 enableval=$enable_static; p=${PACKAGE-default}
8902 case $enableval in
8903 yes) enable_static=yes ;;
8904 no) enable_static=no ;;
8905 *)
8906 enable_static=no
8907 # Look at the argument we got. We use all the common list separators.
8908 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8909 for pkg in $enableval; do
8910 IFS="$lt_save_ifs"
8911 if test "X$pkg" = "X$p"; then
8912 enable_static=yes
8913 fi
8914 done
8915 IFS="$lt_save_ifs"
8916 ;;
8917 esac
8918 else
8919 enable_static=yes
8920 fi
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931 # Check whether --with-pic was given.
8932 if test "${with_pic+set}" = set; then :
8933 withval=$with_pic; pic_mode="$withval"
8934 else
8935 pic_mode=default
8936 fi
8937
8938
8939 test -z "$pic_mode" && pic_mode=default
8940
8941
8942
8943
8944
8945
8946
8947 # Check whether --enable-fast-install was given.
8948 if test "${enable_fast_install+set}" = set; then :
8949 enableval=$enable_fast_install; p=${PACKAGE-default}
8950 case $enableval in
8951 yes) enable_fast_install=yes ;;
8952 no) enable_fast_install=no ;;
8953 *)
8954 enable_fast_install=no
8955 # Look at the argument we got. We use all the common list separators.
8956 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8957 for pkg in $enableval; do
8958 IFS="$lt_save_ifs"
8959 if test "X$pkg" = "X$p"; then
8960 enable_fast_install=yes
8961 fi
8962 done
8963 IFS="$lt_save_ifs"
8964 ;;
8965 esac
8966 else
8967 enable_fast_install=yes
8968 fi
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980 # This can be used to rebuild libtool when needed
8981 LIBTOOL_DEPS="$ltmain"
8982
8983 # Always use our own libtool.
8984 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011 test -z "$LN_S" && LN_S="ln -s"
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026 if test -n "${ZSH_VERSION+set}" ; then
9027 setopt NO_GLOB_SUBST
9028 fi
9029
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9031 $as_echo_n "checking for objdir... " >&6; }
9032 if ${lt_cv_objdir+:} false; then :
9033 $as_echo_n "(cached) " >&6
9034 else
9035 rm -f .libs 2>/dev/null
9036 mkdir .libs 2>/dev/null
9037 if test -d .libs; then
9038 lt_cv_objdir=.libs
9039 else
9040 # MS-DOS does not allow filenames that begin with a dot.
9041 lt_cv_objdir=_libs
9042 fi
9043 rmdir .libs 2>/dev/null
9044 fi
9045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9046 $as_echo "$lt_cv_objdir" >&6; }
9047 objdir=$lt_cv_objdir
9048
9049
9050
9051
9052
9053 cat >>confdefs.h <<_ACEOF
9054 #define LT_OBJDIR "$lt_cv_objdir/"
9055 _ACEOF
9056
9057
9058
9059
9060 case $host_os in
9061 aix3*)
9062 # AIX sometimes has problems with the GCC collect2 program. For some
9063 # reason, if we set the COLLECT_NAMES environment variable, the problems
9064 # vanish in a puff of smoke.
9065 if test "X${COLLECT_NAMES+set}" != Xset; then
9066 COLLECT_NAMES=
9067 export COLLECT_NAMES
9068 fi
9069 ;;
9070 esac
9071
9072 # Global variables:
9073 ofile=libtool
9074 can_build_shared=yes
9075
9076 # All known linkers require a `.a' archive for static linking (except MSVC,
9077 # which needs '.lib').
9078 libext=a
9079
9080 with_gnu_ld="$lt_cv_prog_gnu_ld"
9081
9082 old_CC="$CC"
9083 old_CFLAGS="$CFLAGS"
9084
9085 # Set sane defaults for various variables
9086 test -z "$CC" && CC=cc
9087 test -z "$LTCC" && LTCC=$CC
9088 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9089 test -z "$LD" && LD=ld
9090 test -z "$ac_objext" && ac_objext=o
9091
9092 for cc_temp in $compiler""; do
9093 case $cc_temp in
9094 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9095 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9096 \-*) ;;
9097 *) break;;
9098 esac
9099 done
9100 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9101
9102
9103 # Only perform the check for file, if the check method requires it
9104 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9105 case $deplibs_check_method in
9106 file_magic*)
9107 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9109 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9110 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9111 $as_echo_n "(cached) " >&6
9112 else
9113 case $MAGIC_CMD in
9114 [\\/*] | ?:[\\/]*)
9115 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9116 ;;
9117 *)
9118 lt_save_MAGIC_CMD="$MAGIC_CMD"
9119 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9120 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9121 for ac_dir in $ac_dummy; do
9122 IFS="$lt_save_ifs"
9123 test -z "$ac_dir" && ac_dir=.
9124 if test -f $ac_dir/${ac_tool_prefix}file; then
9125 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9126 if test -n "$file_magic_test_file"; then
9127 case $deplibs_check_method in
9128 "file_magic "*)
9129 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9130 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9131 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9132 $EGREP "$file_magic_regex" > /dev/null; then
9133 :
9134 else
9135 cat <<_LT_EOF 1>&2
9136
9137 *** Warning: the command libtool uses to detect shared libraries,
9138 *** $file_magic_cmd, produces output that libtool cannot recognize.
9139 *** The result is that libtool may fail to recognize shared libraries
9140 *** as such. This will affect the creation of libtool libraries that
9141 *** depend on shared libraries, but programs linked with such libtool
9142 *** libraries will work regardless of this problem. Nevertheless, you
9143 *** may want to report the problem to your system manager and/or to
9144 *** bug-libtool@gnu.org
9145
9146 _LT_EOF
9147 fi ;;
9148 esac
9149 fi
9150 break
9151 fi
9152 done
9153 IFS="$lt_save_ifs"
9154 MAGIC_CMD="$lt_save_MAGIC_CMD"
9155 ;;
9156 esac
9157 fi
9158
9159 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9160 if test -n "$MAGIC_CMD"; then
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9162 $as_echo "$MAGIC_CMD" >&6; }
9163 else
9164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9165 $as_echo "no" >&6; }
9166 fi
9167
9168
9169
9170
9171
9172 if test -z "$lt_cv_path_MAGIC_CMD"; then
9173 if test -n "$ac_tool_prefix"; then
9174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9175 $as_echo_n "checking for file... " >&6; }
9176 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9177 $as_echo_n "(cached) " >&6
9178 else
9179 case $MAGIC_CMD in
9180 [\\/*] | ?:[\\/]*)
9181 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9182 ;;
9183 *)
9184 lt_save_MAGIC_CMD="$MAGIC_CMD"
9185 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9186 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9187 for ac_dir in $ac_dummy; do
9188 IFS="$lt_save_ifs"
9189 test -z "$ac_dir" && ac_dir=.
9190 if test -f $ac_dir/file; then
9191 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9192 if test -n "$file_magic_test_file"; then
9193 case $deplibs_check_method in
9194 "file_magic "*)
9195 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9196 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9197 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9198 $EGREP "$file_magic_regex" > /dev/null; then
9199 :
9200 else
9201 cat <<_LT_EOF 1>&2
9202
9203 *** Warning: the command libtool uses to detect shared libraries,
9204 *** $file_magic_cmd, produces output that libtool cannot recognize.
9205 *** The result is that libtool may fail to recognize shared libraries
9206 *** as such. This will affect the creation of libtool libraries that
9207 *** depend on shared libraries, but programs linked with such libtool
9208 *** libraries will work regardless of this problem. Nevertheless, you
9209 *** may want to report the problem to your system manager and/or to
9210 *** bug-libtool@gnu.org
9211
9212 _LT_EOF
9213 fi ;;
9214 esac
9215 fi
9216 break
9217 fi
9218 done
9219 IFS="$lt_save_ifs"
9220 MAGIC_CMD="$lt_save_MAGIC_CMD"
9221 ;;
9222 esac
9223 fi
9224
9225 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9226 if test -n "$MAGIC_CMD"; then
9227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9228 $as_echo "$MAGIC_CMD" >&6; }
9229 else
9230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9231 $as_echo "no" >&6; }
9232 fi
9233
9234
9235 else
9236 MAGIC_CMD=:
9237 fi
9238 fi
9239
9240 fi
9241 ;;
9242 esac
9243
9244 # Use C for the default configuration in the libtool script
9245
9246 lt_save_CC="$CC"
9247 ac_ext=c
9248 ac_cpp='$CPP $CPPFLAGS'
9249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9252
9253
9254 # Source file extension for C test sources.
9255 ac_ext=c
9256
9257 # Object file extension for compiled C test sources.
9258 objext=o
9259 objext=$objext
9260
9261 # Code to be used in simple compile tests
9262 lt_simple_compile_test_code="int some_variable = 0;"
9263
9264 # Code to be used in simple link tests
9265 lt_simple_link_test_code='int main(){return(0);}'
9266
9267
9268
9269
9270
9271
9272
9273 # If no C compiler was specified, use CC.
9274 LTCC=${LTCC-"$CC"}
9275
9276 # If no C compiler flags were specified, use CFLAGS.
9277 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9278
9279 # Allow CC to be a program name with arguments.
9280 compiler=$CC
9281
9282 # Save the default compiler, since it gets overwritten when the other
9283 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9284 compiler_DEFAULT=$CC
9285
9286 # save warnings/boilerplate of simple test code
9287 ac_outfile=conftest.$ac_objext
9288 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9289 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9290 _lt_compiler_boilerplate=`cat conftest.err`
9291 $RM conftest*
9292
9293 ac_outfile=conftest.$ac_objext
9294 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9295 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9296 _lt_linker_boilerplate=`cat conftest.err`
9297 $RM -r conftest*
9298
9299
9300 ## CAVEAT EMPTOR:
9301 ## There is no encapsulation within the following macros, do not change
9302 ## the running order or otherwise move them around unless you know exactly
9303 ## what you are doing...
9304 if test -n "$compiler"; then
9305
9306 lt_prog_compiler_no_builtin_flag=
9307
9308 if test "$GCC" = yes; then
9309 case $cc_basename in
9310 nvcc*)
9311 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9312 *)
9313 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9314 esac
9315
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9317 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9318 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9319 $as_echo_n "(cached) " >&6
9320 else
9321 lt_cv_prog_compiler_rtti_exceptions=no
9322 ac_outfile=conftest.$ac_objext
9323 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9324 lt_compiler_flag="-fno-rtti -fno-exceptions"
9325 # Insert the option either (1) after the last *FLAGS variable, or
9326 # (2) before a word containing "conftest.", or (3) at the end.
9327 # Note that $ac_compile itself does not contain backslashes and begins
9328 # with a dollar sign (not a hyphen), so the echo should work correctly.
9329 # The option is referenced via a variable to avoid confusing sed.
9330 lt_compile=`echo "$ac_compile" | $SED \
9331 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9332 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9333 -e 's:$: $lt_compiler_flag:'`
9334 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9335 (eval "$lt_compile" 2>conftest.err)
9336 ac_status=$?
9337 cat conftest.err >&5
9338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9339 if (exit $ac_status) && test -s "$ac_outfile"; then
9340 # The compiler can only warn and ignore the option if not recognized
9341 # So say no if there are warnings other than the usual output.
9342 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9343 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9344 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9345 lt_cv_prog_compiler_rtti_exceptions=yes
9346 fi
9347 fi
9348 $RM conftest*
9349
9350 fi
9351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9352 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9353
9354 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9355 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9356 else
9357 :
9358 fi
9359
9360 fi
9361
9362
9363
9364
9365
9366
9367 lt_prog_compiler_wl=
9368 lt_prog_compiler_pic=
9369 lt_prog_compiler_static=
9370
9371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9372 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9373
9374 if test "$GCC" = yes; then
9375 lt_prog_compiler_wl='-Wl,'
9376 lt_prog_compiler_static='-static'
9377
9378 case $host_os in
9379 aix*)
9380 # All AIX code is PIC.
9381 if test "$host_cpu" = ia64; then
9382 # AIX 5 now supports IA64 processor
9383 lt_prog_compiler_static='-Bstatic'
9384 fi
9385 lt_prog_compiler_pic='-fPIC'
9386 ;;
9387
9388 amigaos*)
9389 case $host_cpu in
9390 powerpc)
9391 # see comment about AmigaOS4 .so support
9392 lt_prog_compiler_pic='-fPIC'
9393 ;;
9394 m68k)
9395 # FIXME: we need at least 68020 code to build shared libraries, but
9396 # adding the `-m68020' flag to GCC prevents building anything better,
9397 # like `-m68040'.
9398 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9399 ;;
9400 esac
9401 ;;
9402
9403 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9404 # PIC is the default for these OSes.
9405 ;;
9406
9407 mingw* | cygwin* | pw32* | os2* | cegcc*)
9408 # This hack is so that the source file can tell whether it is being
9409 # built for inclusion in a dll (and should export symbols for example).
9410 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9411 # (--disable-auto-import) libraries
9412 lt_prog_compiler_pic='-DDLL_EXPORT'
9413 ;;
9414
9415 darwin* | rhapsody*)
9416 # PIC is the default on this platform
9417 # Common symbols not allowed in MH_DYLIB files
9418 lt_prog_compiler_pic='-fno-common'
9419 ;;
9420
9421 haiku*)
9422 # PIC is the default for Haiku.
9423 # The "-static" flag exists, but is broken.
9424 lt_prog_compiler_static=
9425 ;;
9426
9427 hpux*)
9428 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9429 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9430 # sets the default TLS model and affects inlining.
9431 case $host_cpu in
9432 hppa*64*)
9433 # +Z the default
9434 ;;
9435 *)
9436 lt_prog_compiler_pic='-fPIC'
9437 ;;
9438 esac
9439 ;;
9440
9441 interix[3-9]*)
9442 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9443 # Instead, we relocate shared libraries at runtime.
9444 ;;
9445
9446 msdosdjgpp*)
9447 # Just because we use GCC doesn't mean we suddenly get shared libraries
9448 # on systems that don't support them.
9449 lt_prog_compiler_can_build_shared=no
9450 enable_shared=no
9451 ;;
9452
9453 *nto* | *qnx*)
9454 # QNX uses GNU C++, but need to define -shared option too, otherwise
9455 # it will coredump.
9456 lt_prog_compiler_pic='-fPIC -shared'
9457 ;;
9458
9459 sysv4*MP*)
9460 if test -d /usr/nec; then
9461 lt_prog_compiler_pic=-Kconform_pic
9462 fi
9463 ;;
9464
9465 *)
9466 lt_prog_compiler_pic='-fPIC'
9467 ;;
9468 esac
9469
9470 case $cc_basename in
9471 nvcc*) # Cuda Compiler Driver 2.2
9472 lt_prog_compiler_wl='-Xlinker '
9473 lt_prog_compiler_pic='-Xcompiler -fPIC'
9474 ;;
9475 esac
9476 else
9477 # PORTME Check for flag to pass linker flags through the system compiler.
9478 case $host_os in
9479 aix*)
9480 lt_prog_compiler_wl='-Wl,'
9481 if test "$host_cpu" = ia64; then
9482 # AIX 5 now supports IA64 processor
9483 lt_prog_compiler_static='-Bstatic'
9484 else
9485 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9486 fi
9487 ;;
9488
9489 mingw* | cygwin* | pw32* | os2* | cegcc*)
9490 # This hack is so that the source file can tell whether it is being
9491 # built for inclusion in a dll (and should export symbols for example).
9492 lt_prog_compiler_pic='-DDLL_EXPORT'
9493 ;;
9494
9495 hpux9* | hpux10* | hpux11*)
9496 lt_prog_compiler_wl='-Wl,'
9497 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9498 # not for PA HP-UX.
9499 case $host_cpu in
9500 hppa*64*|ia64*)
9501 # +Z the default
9502 ;;
9503 *)
9504 lt_prog_compiler_pic='+Z'
9505 ;;
9506 esac
9507 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9508 lt_prog_compiler_static='${wl}-a ${wl}archive'
9509 ;;
9510
9511 irix5* | irix6* | nonstopux*)
9512 lt_prog_compiler_wl='-Wl,'
9513 # PIC (with -KPIC) is the default.
9514 lt_prog_compiler_static='-non_shared'
9515 ;;
9516
9517 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9518 case $cc_basename in
9519 # old Intel for x86_64 which still supported -KPIC.
9520 ecc*)
9521 lt_prog_compiler_wl='-Wl,'
9522 lt_prog_compiler_pic='-KPIC'
9523 lt_prog_compiler_static='-static'
9524 ;;
9525 # icc used to be incompatible with GCC.
9526 # ICC 10 doesn't accept -KPIC any more.
9527 icc* | ifort*)
9528 lt_prog_compiler_wl='-Wl,'
9529 lt_prog_compiler_pic='-fPIC'
9530 lt_prog_compiler_static='-static'
9531 ;;
9532 # Lahey Fortran 8.1.
9533 lf95*)
9534 lt_prog_compiler_wl='-Wl,'
9535 lt_prog_compiler_pic='--shared'
9536 lt_prog_compiler_static='--static'
9537 ;;
9538 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9539 # Portland Group compilers (*not* the Pentium gcc compiler,
9540 # which looks to be a dead project)
9541 lt_prog_compiler_wl='-Wl,'
9542 lt_prog_compiler_pic='-fpic'
9543 lt_prog_compiler_static='-Bstatic'
9544 ;;
9545 ccc*)
9546 lt_prog_compiler_wl='-Wl,'
9547 # All Alpha code is PIC.
9548 lt_prog_compiler_static='-non_shared'
9549 ;;
9550 xl* | bgxl* | bgf* | mpixl*)
9551 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9552 lt_prog_compiler_wl='-Wl,'
9553 lt_prog_compiler_pic='-qpic'
9554 lt_prog_compiler_static='-qstaticlink'
9555 ;;
9556 *)
9557 case `$CC -V 2>&1 | sed 5q` in
9558 *Sun\ F* | *Sun*Fortran*)
9559 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9560 lt_prog_compiler_pic='-KPIC'
9561 lt_prog_compiler_static='-Bstatic'
9562 lt_prog_compiler_wl=''
9563 ;;
9564 *Sun\ C*)
9565 # Sun C 5.9
9566 lt_prog_compiler_pic='-KPIC'
9567 lt_prog_compiler_static='-Bstatic'
9568 lt_prog_compiler_wl='-Wl,'
9569 ;;
9570 esac
9571 ;;
9572 esac
9573 ;;
9574
9575 newsos6)
9576 lt_prog_compiler_pic='-KPIC'
9577 lt_prog_compiler_static='-Bstatic'
9578 ;;
9579
9580 *nto* | *qnx*)
9581 # QNX uses GNU C++, but need to define -shared option too, otherwise
9582 # it will coredump.
9583 lt_prog_compiler_pic='-fPIC -shared'
9584 ;;
9585
9586 osf3* | osf4* | osf5*)
9587 lt_prog_compiler_wl='-Wl,'
9588 # All OSF/1 code is PIC.
9589 lt_prog_compiler_static='-non_shared'
9590 ;;
9591
9592 rdos*)
9593 lt_prog_compiler_static='-non_shared'
9594 ;;
9595
9596 solaris*)
9597 lt_prog_compiler_pic='-KPIC'
9598 lt_prog_compiler_static='-Bstatic'
9599 case $cc_basename in
9600 f77* | f90* | f95*)
9601 lt_prog_compiler_wl='-Qoption ld ';;
9602 *)
9603 lt_prog_compiler_wl='-Wl,';;
9604 esac
9605 ;;
9606
9607 sunos4*)
9608 lt_prog_compiler_wl='-Qoption ld '
9609 lt_prog_compiler_pic='-PIC'
9610 lt_prog_compiler_static='-Bstatic'
9611 ;;
9612
9613 sysv4 | sysv4.2uw2* | sysv4.3*)
9614 lt_prog_compiler_wl='-Wl,'
9615 lt_prog_compiler_pic='-KPIC'
9616 lt_prog_compiler_static='-Bstatic'
9617 ;;
9618
9619 sysv4*MP*)
9620 if test -d /usr/nec ;then
9621 lt_prog_compiler_pic='-Kconform_pic'
9622 lt_prog_compiler_static='-Bstatic'
9623 fi
9624 ;;
9625
9626 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9627 lt_prog_compiler_wl='-Wl,'
9628 lt_prog_compiler_pic='-KPIC'
9629 lt_prog_compiler_static='-Bstatic'
9630 ;;
9631
9632 unicos*)
9633 lt_prog_compiler_wl='-Wl,'
9634 lt_prog_compiler_can_build_shared=no
9635 ;;
9636
9637 uts4*)
9638 lt_prog_compiler_pic='-pic'
9639 lt_prog_compiler_static='-Bstatic'
9640 ;;
9641
9642 *)
9643 lt_prog_compiler_can_build_shared=no
9644 ;;
9645 esac
9646 fi
9647
9648 case $host_os in
9649 # For platforms which do not support PIC, -DPIC is meaningless:
9650 *djgpp*)
9651 lt_prog_compiler_pic=
9652 ;;
9653 *)
9654 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9655 ;;
9656 esac
9657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9658 $as_echo "$lt_prog_compiler_pic" >&6; }
9659
9660
9661
9662
9663
9664
9665 #
9666 # Check to make sure the PIC flag actually works.
9667 #
9668 if test -n "$lt_prog_compiler_pic"; then
9669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9670 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9671 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9672 $as_echo_n "(cached) " >&6
9673 else
9674 lt_cv_prog_compiler_pic_works=no
9675 ac_outfile=conftest.$ac_objext
9676 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9677 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9678 # Insert the option either (1) after the last *FLAGS variable, or
9679 # (2) before a word containing "conftest.", or (3) at the end.
9680 # Note that $ac_compile itself does not contain backslashes and begins
9681 # with a dollar sign (not a hyphen), so the echo should work correctly.
9682 # The option is referenced via a variable to avoid confusing sed.
9683 lt_compile=`echo "$ac_compile" | $SED \
9684 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9685 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9686 -e 's:$: $lt_compiler_flag:'`
9687 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9688 (eval "$lt_compile" 2>conftest.err)
9689 ac_status=$?
9690 cat conftest.err >&5
9691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9692 if (exit $ac_status) && test -s "$ac_outfile"; then
9693 # The compiler can only warn and ignore the option if not recognized
9694 # So say no if there are warnings other than the usual output.
9695 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9696 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9697 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9698 lt_cv_prog_compiler_pic_works=yes
9699 fi
9700 fi
9701 $RM conftest*
9702
9703 fi
9704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9705 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9706
9707 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9708 case $lt_prog_compiler_pic in
9709 "" | " "*) ;;
9710 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9711 esac
9712 else
9713 lt_prog_compiler_pic=
9714 lt_prog_compiler_can_build_shared=no
9715 fi
9716
9717 fi
9718
9719
9720
9721
9722
9723
9724 #
9725 # Check to make sure the static flag actually works.
9726 #
9727 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9729 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9730 if ${lt_cv_prog_compiler_static_works+:} false; then :
9731 $as_echo_n "(cached) " >&6
9732 else
9733 lt_cv_prog_compiler_static_works=no
9734 save_LDFLAGS="$LDFLAGS"
9735 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9736 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9737 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9738 # The linker can only warn and ignore the option if not recognized
9739 # So say no if there are warnings
9740 if test -s conftest.err; then
9741 # Append any errors to the config.log.
9742 cat conftest.err 1>&5
9743 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9744 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9745 if diff conftest.exp conftest.er2 >/dev/null; then
9746 lt_cv_prog_compiler_static_works=yes
9747 fi
9748 else
9749 lt_cv_prog_compiler_static_works=yes
9750 fi
9751 fi
9752 $RM -r conftest*
9753 LDFLAGS="$save_LDFLAGS"
9754
9755 fi
9756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9757 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9758
9759 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9760 :
9761 else
9762 lt_prog_compiler_static=
9763 fi
9764
9765
9766
9767
9768
9769
9770
9771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9772 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9773 if ${lt_cv_prog_compiler_c_o+:} false; then :
9774 $as_echo_n "(cached) " >&6
9775 else
9776 lt_cv_prog_compiler_c_o=no
9777 $RM -r conftest 2>/dev/null
9778 mkdir conftest
9779 cd conftest
9780 mkdir out
9781 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9782
9783 lt_compiler_flag="-o out/conftest2.$ac_objext"
9784 # Insert the option either (1) after the last *FLAGS variable, or
9785 # (2) before a word containing "conftest.", or (3) at the end.
9786 # Note that $ac_compile itself does not contain backslashes and begins
9787 # with a dollar sign (not a hyphen), so the echo should work correctly.
9788 lt_compile=`echo "$ac_compile" | $SED \
9789 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9790 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9791 -e 's:$: $lt_compiler_flag:'`
9792 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9793 (eval "$lt_compile" 2>out/conftest.err)
9794 ac_status=$?
9795 cat out/conftest.err >&5
9796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9797 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9798 then
9799 # The compiler can only warn and ignore the option if not recognized
9800 # So say no if there are warnings
9801 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9802 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9803 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9804 lt_cv_prog_compiler_c_o=yes
9805 fi
9806 fi
9807 chmod u+w . 2>&5
9808 $RM conftest*
9809 # SGI C++ compiler will create directory out/ii_files/ for
9810 # template instantiation
9811 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9812 $RM out/* && rmdir out
9813 cd ..
9814 $RM -r conftest
9815 $RM conftest*
9816
9817 fi
9818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9819 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9820
9821
9822
9823
9824
9825
9826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9827 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9828 if ${lt_cv_prog_compiler_c_o+:} false; then :
9829 $as_echo_n "(cached) " >&6
9830 else
9831 lt_cv_prog_compiler_c_o=no
9832 $RM -r conftest 2>/dev/null
9833 mkdir conftest
9834 cd conftest
9835 mkdir out
9836 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9837
9838 lt_compiler_flag="-o out/conftest2.$ac_objext"
9839 # Insert the option either (1) after the last *FLAGS variable, or
9840 # (2) before a word containing "conftest.", or (3) at the end.
9841 # Note that $ac_compile itself does not contain backslashes and begins
9842 # with a dollar sign (not a hyphen), so the echo should work correctly.
9843 lt_compile=`echo "$ac_compile" | $SED \
9844 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9845 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9846 -e 's:$: $lt_compiler_flag:'`
9847 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9848 (eval "$lt_compile" 2>out/conftest.err)
9849 ac_status=$?
9850 cat out/conftest.err >&5
9851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9853 then
9854 # The compiler can only warn and ignore the option if not recognized
9855 # So say no if there are warnings
9856 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9857 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9858 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9859 lt_cv_prog_compiler_c_o=yes
9860 fi
9861 fi
9862 chmod u+w . 2>&5
9863 $RM conftest*
9864 # SGI C++ compiler will create directory out/ii_files/ for
9865 # template instantiation
9866 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9867 $RM out/* && rmdir out
9868 cd ..
9869 $RM -r conftest
9870 $RM conftest*
9871
9872 fi
9873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9874 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9875
9876
9877
9878
9879 hard_links="nottested"
9880 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9881 # do not overwrite the value of need_locks provided by the user
9882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9883 $as_echo_n "checking if we can lock with hard links... " >&6; }
9884 hard_links=yes
9885 $RM conftest*
9886 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9887 touch conftest.a
9888 ln conftest.a conftest.b 2>&5 || hard_links=no
9889 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9891 $as_echo "$hard_links" >&6; }
9892 if test "$hard_links" = no; then
9893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9894 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9895 need_locks=warn
9896 fi
9897 else
9898 need_locks=no
9899 fi
9900
9901
9902
9903
9904
9905
9906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9907 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9908
9909 runpath_var=
9910 allow_undefined_flag=
9911 always_export_symbols=no
9912 archive_cmds=
9913 archive_expsym_cmds=
9914 compiler_needs_object=no
9915 enable_shared_with_static_runtimes=no
9916 export_dynamic_flag_spec=
9917 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9918 hardcode_automatic=no
9919 hardcode_direct=no
9920 hardcode_direct_absolute=no
9921 hardcode_libdir_flag_spec=
9922 hardcode_libdir_flag_spec_ld=
9923 hardcode_libdir_separator=
9924 hardcode_minus_L=no
9925 hardcode_shlibpath_var=unsupported
9926 inherit_rpath=no
9927 link_all_deplibs=unknown
9928 module_cmds=
9929 module_expsym_cmds=
9930 old_archive_from_new_cmds=
9931 old_archive_from_expsyms_cmds=
9932 thread_safe_flag_spec=
9933 whole_archive_flag_spec=
9934 # include_expsyms should be a list of space-separated symbols to be *always*
9935 # included in the symbol list
9936 include_expsyms=
9937 # exclude_expsyms can be an extended regexp of symbols to exclude
9938 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9939 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9940 # as well as any symbol that contains `d'.
9941 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9942 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9943 # platforms (ab)use it in PIC code, but their linkers get confused if
9944 # the symbol is explicitly referenced. Since portable code cannot
9945 # rely on this symbol name, it's probably fine to never include it in
9946 # preloaded symbol tables.
9947 # Exclude shared library initialization/finalization symbols.
9948 extract_expsyms_cmds=
9949
9950 case $host_os in
9951 cygwin* | mingw* | pw32* | cegcc*)
9952 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9953 # When not using gcc, we currently assume that we are using
9954 # Microsoft Visual C++.
9955 if test "$GCC" != yes; then
9956 with_gnu_ld=no
9957 fi
9958 ;;
9959 interix*)
9960 # we just hope/assume this is gcc and not c89 (= MSVC++)
9961 with_gnu_ld=yes
9962 ;;
9963 openbsd*)
9964 with_gnu_ld=no
9965 ;;
9966 esac
9967
9968 ld_shlibs=yes
9969
9970 # On some targets, GNU ld is compatible enough with the native linker
9971 # that we're better off using the native interface for both.
9972 lt_use_gnu_ld_interface=no
9973 if test "$with_gnu_ld" = yes; then
9974 case $host_os in
9975 aix*)
9976 # The AIX port of GNU ld has always aspired to compatibility
9977 # with the native linker. However, as the warning in the GNU ld
9978 # block says, versions before 2.19.5* couldn't really create working
9979 # shared libraries, regardless of the interface used.
9980 case `$LD -v 2>&1` in
9981 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9982 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9983 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9984 *)
9985 lt_use_gnu_ld_interface=yes
9986 ;;
9987 esac
9988 ;;
9989 *)
9990 lt_use_gnu_ld_interface=yes
9991 ;;
9992 esac
9993 fi
9994
9995 if test "$lt_use_gnu_ld_interface" = yes; then
9996 # If archive_cmds runs LD, not CC, wlarc should be empty
9997 wlarc='${wl}'
9998
9999 # Set some defaults for GNU ld with shared library support. These
10000 # are reset later if shared libraries are not supported. Putting them
10001 # here allows them to be overridden if necessary.
10002 runpath_var=LD_RUN_PATH
10003 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10004 export_dynamic_flag_spec='${wl}--export-dynamic'
10005 # ancient GNU ld didn't support --whole-archive et. al.
10006 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10007 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10008 else
10009 whole_archive_flag_spec=
10010 fi
10011 supports_anon_versioning=no
10012 case `$LD -v 2>&1` in
10013 *GNU\ gold*) supports_anon_versioning=yes ;;
10014 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10015 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10016 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10017 *\ 2.11.*) ;; # other 2.11 versions
10018 *) supports_anon_versioning=yes ;;
10019 esac
10020
10021 # See if GNU ld supports shared libraries.
10022 case $host_os in
10023 aix[3-9]*)
10024 # On AIX/PPC, the GNU linker is very broken
10025 if test "$host_cpu" != ia64; then
10026 ld_shlibs=no
10027 cat <<_LT_EOF 1>&2
10028
10029 *** Warning: the GNU linker, at least up to release 2.19, is reported
10030 *** to be unable to reliably create shared libraries on AIX.
10031 *** Therefore, libtool is disabling shared libraries support. If you
10032 *** really care for shared libraries, you may want to install binutils
10033 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10034 *** You will then need to restart the configuration process.
10035
10036 _LT_EOF
10037 fi
10038 ;;
10039
10040 amigaos*)
10041 case $host_cpu in
10042 powerpc)
10043 # see comment about AmigaOS4 .so support
10044 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10045 archive_expsym_cmds=''
10046 ;;
10047 m68k)
10048 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)'
10049 hardcode_libdir_flag_spec='-L$libdir'
10050 hardcode_minus_L=yes
10051 ;;
10052 esac
10053 ;;
10054
10055 beos*)
10056 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10057 allow_undefined_flag=unsupported
10058 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10059 # support --undefined. This deserves some investigation. FIXME
10060 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10061 else
10062 ld_shlibs=no
10063 fi
10064 ;;
10065
10066 cygwin* | mingw* | pw32* | cegcc*)
10067 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10068 # as there is no search path for DLLs.
10069 hardcode_libdir_flag_spec='-L$libdir'
10070 export_dynamic_flag_spec='${wl}--export-all-symbols'
10071 allow_undefined_flag=unsupported
10072 always_export_symbols=no
10073 enable_shared_with_static_runtimes=yes
10074 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10075
10076 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10077 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10078 # If the export-symbols file already is a .def file (1st line
10079 # is EXPORTS), use it as is; otherwise, prepend...
10080 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10081 cp $export_symbols $output_objdir/$soname.def;
10082 else
10083 echo EXPORTS > $output_objdir/$soname.def;
10084 cat $export_symbols >> $output_objdir/$soname.def;
10085 fi~
10086 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10087 else
10088 ld_shlibs=no
10089 fi
10090 ;;
10091
10092 haiku*)
10093 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10094 link_all_deplibs=yes
10095 ;;
10096
10097 interix[3-9]*)
10098 hardcode_direct=no
10099 hardcode_shlibpath_var=no
10100 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10101 export_dynamic_flag_spec='${wl}-E'
10102 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10103 # Instead, shared libraries are loaded at an image base (0x10000000 by
10104 # default) and relocated if they conflict, which is a slow very memory
10105 # consuming and fragmenting process. To avoid this, we pick a random,
10106 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10107 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10108 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10109 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'
10110 ;;
10111
10112 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
10113 tmp_diet=no
10114 if test "$host_os" = linux-dietlibc; then
10115 case $cc_basename in
10116 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10117 esac
10118 fi
10119 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10120 && test "$tmp_diet" = no
10121 then
10122 tmp_addflag=' $pic_flag'
10123 tmp_sharedflag='-shared'
10124 case $cc_basename,$host_cpu in
10125 pgcc*) # Portland Group C compiler
10126 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'
10127 tmp_addflag=' $pic_flag'
10128 ;;
10129 pgf77* | pgf90* | pgf95* | pgfortran*)
10130 # Portland Group f77 and f90 compilers
10131 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'
10132 tmp_addflag=' $pic_flag -Mnomain' ;;
10133 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10134 tmp_addflag=' -i_dynamic' ;;
10135 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10136 tmp_addflag=' -i_dynamic -nofor_main' ;;
10137 ifc* | ifort*) # Intel Fortran compiler
10138 tmp_addflag=' -nofor_main' ;;
10139 lf95*) # Lahey Fortran 8.1
10140 whole_archive_flag_spec=
10141 tmp_sharedflag='--shared' ;;
10142 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10143 tmp_sharedflag='-qmkshrobj'
10144 tmp_addflag= ;;
10145 nvcc*) # Cuda Compiler Driver 2.2
10146 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'
10147 compiler_needs_object=yes
10148 ;;
10149 esac
10150 case `$CC -V 2>&1 | sed 5q` in
10151 *Sun\ C*) # Sun C 5.9
10152 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'
10153 compiler_needs_object=yes
10154 tmp_sharedflag='-G' ;;
10155 *Sun\ F*) # Sun Fortran 8.3
10156 tmp_sharedflag='-G' ;;
10157 esac
10158 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10159
10160 if test "x$supports_anon_versioning" = xyes; then
10161 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10162 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10163 echo "local: *; };" >> $output_objdir/$libname.ver~
10164 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10165 fi
10166
10167 case $cc_basename in
10168 xlf* | bgf* | bgxlf* | mpixlf*)
10169 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10170 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10171 hardcode_libdir_flag_spec=
10172 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10173 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10174 if test "x$supports_anon_versioning" = xyes; then
10175 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10176 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10177 echo "local: *; };" >> $output_objdir/$libname.ver~
10178 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10179 fi
10180 ;;
10181 esac
10182 else
10183 ld_shlibs=no
10184 fi
10185 ;;
10186
10187 netbsd*)
10188 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10189 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10190 wlarc=
10191 else
10192 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10193 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10194 fi
10195 ;;
10196
10197 solaris*)
10198 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10199 ld_shlibs=no
10200 cat <<_LT_EOF 1>&2
10201
10202 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10203 *** create shared libraries on Solaris systems. Therefore, libtool
10204 *** is disabling shared libraries support. We urge you to upgrade GNU
10205 *** binutils to release 2.9.1 or newer. Another option is to modify
10206 *** your PATH or compiler configuration so that the native linker is
10207 *** used, and then restart.
10208
10209 _LT_EOF
10210 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10211 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10212 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10213 else
10214 ld_shlibs=no
10215 fi
10216 ;;
10217
10218 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10219 case `$LD -v 2>&1` in
10220 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10221 ld_shlibs=no
10222 cat <<_LT_EOF 1>&2
10223
10224 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10225 *** reliably create shared libraries on SCO systems. Therefore, libtool
10226 *** is disabling shared libraries support. We urge you to upgrade GNU
10227 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10228 *** your PATH or compiler configuration so that the native linker is
10229 *** used, and then restart.
10230
10231 _LT_EOF
10232 ;;
10233 *)
10234 # For security reasons, it is highly recommended that you always
10235 # use absolute paths for naming shared libraries, and exclude the
10236 # DT_RUNPATH tag from executables and libraries. But doing so
10237 # requires that you compile everything twice, which is a pain.
10238 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10239 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10240 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10241 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10242 else
10243 ld_shlibs=no
10244 fi
10245 ;;
10246 esac
10247 ;;
10248
10249 sunos4*)
10250 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10251 wlarc=
10252 hardcode_direct=yes
10253 hardcode_shlibpath_var=no
10254 ;;
10255
10256 *)
10257 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10258 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10259 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10260 else
10261 ld_shlibs=no
10262 fi
10263 ;;
10264 esac
10265
10266 if test "$ld_shlibs" = no; then
10267 runpath_var=
10268 hardcode_libdir_flag_spec=
10269 export_dynamic_flag_spec=
10270 whole_archive_flag_spec=
10271 fi
10272 else
10273 # PORTME fill in a description of your system's linker (not GNU ld)
10274 case $host_os in
10275 aix3*)
10276 allow_undefined_flag=unsupported
10277 always_export_symbols=yes
10278 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'
10279 # Note: this linker hardcodes the directories in LIBPATH if there
10280 # are no directories specified by -L.
10281 hardcode_minus_L=yes
10282 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10283 # Neither direct hardcoding nor static linking is supported with a
10284 # broken collect2.
10285 hardcode_direct=unsupported
10286 fi
10287 ;;
10288
10289 aix[4-9]*)
10290 if test "$host_cpu" = ia64; then
10291 # On IA64, the linker does run time linking by default, so we don't
10292 # have to do anything special.
10293 aix_use_runtimelinking=no
10294 exp_sym_flag='-Bexport'
10295 no_entry_flag=""
10296 else
10297 # If we're using GNU nm, then we don't want the "-C" option.
10298 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10299 # Also, AIX nm treats weak defined symbols like other global
10300 # defined symbols, whereas GNU nm marks them as "W".
10301 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10302 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'
10303 else
10304 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'
10305 fi
10306 aix_use_runtimelinking=no
10307
10308 # Test if we are trying to use run time linking or normal
10309 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10310 # need to do runtime linking.
10311 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10312 for ld_flag in $LDFLAGS; do
10313 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10314 aix_use_runtimelinking=yes
10315 break
10316 fi
10317 done
10318 ;;
10319 esac
10320
10321 exp_sym_flag='-bexport'
10322 no_entry_flag='-bnoentry'
10323 fi
10324
10325 # When large executables or shared objects are built, AIX ld can
10326 # have problems creating the table of contents. If linking a library
10327 # or program results in "error TOC overflow" add -mminimal-toc to
10328 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10329 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10330
10331 archive_cmds=''
10332 hardcode_direct=yes
10333 hardcode_direct_absolute=yes
10334 hardcode_libdir_separator=':'
10335 link_all_deplibs=yes
10336 file_list_spec='${wl}-f,'
10337
10338 if test "$GCC" = yes; then
10339 case $host_os in aix4.[012]|aix4.[012].*)
10340 # We only want to do this on AIX 4.2 and lower, the check
10341 # below for broken collect2 doesn't work under 4.3+
10342 collect2name=`${CC} -print-prog-name=collect2`
10343 if test -f "$collect2name" &&
10344 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10345 then
10346 # We have reworked collect2
10347 :
10348 else
10349 # We have old collect2
10350 hardcode_direct=unsupported
10351 # It fails to find uninstalled libraries when the uninstalled
10352 # path is not listed in the libpath. Setting hardcode_minus_L
10353 # to unsupported forces relinking
10354 hardcode_minus_L=yes
10355 hardcode_libdir_flag_spec='-L$libdir'
10356 hardcode_libdir_separator=
10357 fi
10358 ;;
10359 esac
10360 shared_flag='-shared'
10361 if test "$aix_use_runtimelinking" = yes; then
10362 shared_flag="$shared_flag "'${wl}-G'
10363 fi
10364 else
10365 # not using gcc
10366 if test "$host_cpu" = ia64; then
10367 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10368 # chokes on -Wl,-G. The following line is correct:
10369 shared_flag='-G'
10370 else
10371 if test "$aix_use_runtimelinking" = yes; then
10372 shared_flag='${wl}-G'
10373 else
10374 shared_flag='${wl}-bM:SRE'
10375 fi
10376 fi
10377 fi
10378
10379 export_dynamic_flag_spec='${wl}-bexpall'
10380 # It seems that -bexpall does not export symbols beginning with
10381 # underscore (_), so it is better to generate a list of symbols to export.
10382 always_export_symbols=yes
10383 if test "$aix_use_runtimelinking" = yes; then
10384 # Warning - without using the other runtime loading flags (-brtl),
10385 # -berok will link without error, but may produce a broken library.
10386 allow_undefined_flag='-berok'
10387 # Determine the default libpath from the value encoded in an
10388 # empty executable.
10389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10390 /* end confdefs.h. */
10391
10392 int
10393 main ()
10394 {
10395
10396 ;
10397 return 0;
10398 }
10399 _ACEOF
10400 if ac_fn_c_try_link "$LINENO"; then :
10401
10402 lt_aix_libpath_sed='
10403 /Import File Strings/,/^$/ {
10404 /^0/ {
10405 s/^0 *\(.*\)$/\1/
10406 p
10407 }
10408 }'
10409 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10410 # Check for a 64-bit object if we didn't find anything.
10411 if test -z "$aix_libpath"; then
10412 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10413 fi
10414 fi
10415 rm -f core conftest.err conftest.$ac_objext \
10416 conftest$ac_exeext conftest.$ac_ext
10417 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10418
10419 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10420 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"
10421 else
10422 if test "$host_cpu" = ia64; then
10423 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10424 allow_undefined_flag="-z nodefs"
10425 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"
10426 else
10427 # Determine the default libpath from the value encoded in an
10428 # empty executable.
10429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10430 /* end confdefs.h. */
10431
10432 int
10433 main ()
10434 {
10435
10436 ;
10437 return 0;
10438 }
10439 _ACEOF
10440 if ac_fn_c_try_link "$LINENO"; then :
10441
10442 lt_aix_libpath_sed='
10443 /Import File Strings/,/^$/ {
10444 /^0/ {
10445 s/^0 *\(.*\)$/\1/
10446 p
10447 }
10448 }'
10449 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10450 # Check for a 64-bit object if we didn't find anything.
10451 if test -z "$aix_libpath"; then
10452 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10453 fi
10454 fi
10455 rm -f core conftest.err conftest.$ac_objext \
10456 conftest$ac_exeext conftest.$ac_ext
10457 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10458
10459 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10460 # Warning - without using the other run time loading flags,
10461 # -berok will link without error, but may produce a broken library.
10462 no_undefined_flag=' ${wl}-bernotok'
10463 allow_undefined_flag=' ${wl}-berok'
10464 if test "$with_gnu_ld" = yes; then
10465 # We only use this code for GNU lds that support --whole-archive.
10466 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10467 else
10468 # Exported symbols can be pulled into shared objects from archives
10469 whole_archive_flag_spec='$convenience'
10470 fi
10471 archive_cmds_need_lc=yes
10472 # This is similar to how AIX traditionally builds its shared libraries.
10473 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'
10474 fi
10475 fi
10476 ;;
10477
10478 amigaos*)
10479 case $host_cpu in
10480 powerpc)
10481 # see comment about AmigaOS4 .so support
10482 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10483 archive_expsym_cmds=''
10484 ;;
10485 m68k)
10486 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)'
10487 hardcode_libdir_flag_spec='-L$libdir'
10488 hardcode_minus_L=yes
10489 ;;
10490 esac
10491 ;;
10492
10493 bsdi[45]*)
10494 export_dynamic_flag_spec=-rdynamic
10495 ;;
10496
10497 cygwin* | mingw* | pw32* | cegcc*)
10498 # When not using gcc, we currently assume that we are using
10499 # Microsoft Visual C++.
10500 # hardcode_libdir_flag_spec is actually meaningless, as there is
10501 # no search path for DLLs.
10502 hardcode_libdir_flag_spec=' '
10503 allow_undefined_flag=unsupported
10504 # Tell ltmain to make .lib files, not .a files.
10505 libext=lib
10506 # Tell ltmain to make .dll files, not .so files.
10507 shrext_cmds=".dll"
10508 # FIXME: Setting linknames here is a bad hack.
10509 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10510 # The linker will automatically build a .lib file if we build a DLL.
10511 old_archive_from_new_cmds='true'
10512 # FIXME: Should let the user specify the lib program.
10513 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10514 fix_srcfile_path='`cygpath -w "$srcfile"`'
10515 enable_shared_with_static_runtimes=yes
10516 ;;
10517
10518 darwin* | rhapsody*)
10519
10520
10521 archive_cmds_need_lc=no
10522 hardcode_direct=no
10523 hardcode_automatic=yes
10524 hardcode_shlibpath_var=unsupported
10525 if test "$lt_cv_ld_force_load" = "yes"; then
10526 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\"`'
10527 else
10528 whole_archive_flag_spec=''
10529 fi
10530 link_all_deplibs=yes
10531 allow_undefined_flag="$_lt_dar_allow_undefined"
10532 case $cc_basename in
10533 ifort*) _lt_dar_can_shared=yes ;;
10534 *) _lt_dar_can_shared=$GCC ;;
10535 esac
10536 if test "$_lt_dar_can_shared" = "yes"; then
10537 output_verbose_link_cmd=func_echo_all
10538 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10539 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10540 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
10541 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}"
10542
10543 else
10544 ld_shlibs=no
10545 fi
10546
10547 ;;
10548
10549 dgux*)
10550 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10551 hardcode_libdir_flag_spec='-L$libdir'
10552 hardcode_shlibpath_var=no
10553 ;;
10554
10555 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10556 # support. Future versions do this automatically, but an explicit c++rt0.o
10557 # does not break anything, and helps significantly (at the cost of a little
10558 # extra space).
10559 freebsd2.2*)
10560 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10561 hardcode_libdir_flag_spec='-R$libdir'
10562 hardcode_direct=yes
10563 hardcode_shlibpath_var=no
10564 ;;
10565
10566 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10567 freebsd2.*)
10568 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10569 hardcode_direct=yes
10570 hardcode_minus_L=yes
10571 hardcode_shlibpath_var=no
10572 ;;
10573
10574 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10575 freebsd* | dragonfly*)
10576 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10577 hardcode_libdir_flag_spec='-R$libdir'
10578 hardcode_direct=yes
10579 hardcode_shlibpath_var=no
10580 ;;
10581
10582 hpux9*)
10583 if test "$GCC" = yes; then
10584 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'
10585 else
10586 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'
10587 fi
10588 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10589 hardcode_libdir_separator=:
10590 hardcode_direct=yes
10591
10592 # hardcode_minus_L: Not really in the search PATH,
10593 # but as the default location of the library.
10594 hardcode_minus_L=yes
10595 export_dynamic_flag_spec='${wl}-E'
10596 ;;
10597
10598 hpux10*)
10599 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10600 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10601 else
10602 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10603 fi
10604 if test "$with_gnu_ld" = no; then
10605 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10606 hardcode_libdir_flag_spec_ld='+b $libdir'
10607 hardcode_libdir_separator=:
10608 hardcode_direct=yes
10609 hardcode_direct_absolute=yes
10610 export_dynamic_flag_spec='${wl}-E'
10611 # hardcode_minus_L: Not really in the search PATH,
10612 # but as the default location of the library.
10613 hardcode_minus_L=yes
10614 fi
10615 ;;
10616
10617 hpux11*)
10618 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10619 case $host_cpu in
10620 hppa*64*)
10621 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10622 ;;
10623 ia64*)
10624 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10625 ;;
10626 *)
10627 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10628 ;;
10629 esac
10630 else
10631 case $host_cpu in
10632 hppa*64*)
10633 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10634 ;;
10635 ia64*)
10636 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10637 ;;
10638 *)
10639
10640 # Older versions of the 11.00 compiler do not understand -b yet
10641 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10643 $as_echo_n "checking if $CC understands -b... " >&6; }
10644 if ${lt_cv_prog_compiler__b+:} false; then :
10645 $as_echo_n "(cached) " >&6
10646 else
10647 lt_cv_prog_compiler__b=no
10648 save_LDFLAGS="$LDFLAGS"
10649 LDFLAGS="$LDFLAGS -b"
10650 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10651 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10652 # The linker can only warn and ignore the option if not recognized
10653 # So say no if there are warnings
10654 if test -s conftest.err; then
10655 # Append any errors to the config.log.
10656 cat conftest.err 1>&5
10657 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10658 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10659 if diff conftest.exp conftest.er2 >/dev/null; then
10660 lt_cv_prog_compiler__b=yes
10661 fi
10662 else
10663 lt_cv_prog_compiler__b=yes
10664 fi
10665 fi
10666 $RM -r conftest*
10667 LDFLAGS="$save_LDFLAGS"
10668
10669 fi
10670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10671 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10672
10673 if test x"$lt_cv_prog_compiler__b" = xyes; then
10674 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10675 else
10676 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10677 fi
10678
10679 ;;
10680 esac
10681 fi
10682 if test "$with_gnu_ld" = no; then
10683 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10684 hardcode_libdir_separator=:
10685
10686 case $host_cpu in
10687 hppa*64*|ia64*)
10688 hardcode_direct=no
10689 hardcode_shlibpath_var=no
10690 ;;
10691 *)
10692 hardcode_direct=yes
10693 hardcode_direct_absolute=yes
10694 export_dynamic_flag_spec='${wl}-E'
10695
10696 # hardcode_minus_L: Not really in the search PATH,
10697 # but as the default location of the library.
10698 hardcode_minus_L=yes
10699 ;;
10700 esac
10701 fi
10702 ;;
10703
10704 irix5* | irix6* | nonstopux*)
10705 if test "$GCC" = yes; then
10706 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'
10707 # Try to use the -exported_symbol ld option, if it does not
10708 # work, assume that -exports_file does not work either and
10709 # implicitly export all symbols.
10710 save_LDFLAGS="$LDFLAGS"
10711 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10713 /* end confdefs.h. */
10714 int foo(void) {}
10715 _ACEOF
10716 if ac_fn_c_try_link "$LINENO"; then :
10717 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'
10718
10719 fi
10720 rm -f core conftest.err conftest.$ac_objext \
10721 conftest$ac_exeext conftest.$ac_ext
10722 LDFLAGS="$save_LDFLAGS"
10723 else
10724 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'
10725 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'
10726 fi
10727 archive_cmds_need_lc='no'
10728 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10729 hardcode_libdir_separator=:
10730 inherit_rpath=yes
10731 link_all_deplibs=yes
10732 ;;
10733
10734 netbsd*)
10735 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10736 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10737 else
10738 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10739 fi
10740 hardcode_libdir_flag_spec='-R$libdir'
10741 hardcode_direct=yes
10742 hardcode_shlibpath_var=no
10743 ;;
10744
10745 newsos6)
10746 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10747 hardcode_direct=yes
10748 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10749 hardcode_libdir_separator=:
10750 hardcode_shlibpath_var=no
10751 ;;
10752
10753 *nto* | *qnx*)
10754 ;;
10755
10756 openbsd*)
10757 if test -f /usr/libexec/ld.so; then
10758 hardcode_direct=yes
10759 hardcode_shlibpath_var=no
10760 hardcode_direct_absolute=yes
10761 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10762 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10763 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10764 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10765 export_dynamic_flag_spec='${wl}-E'
10766 else
10767 case $host_os in
10768 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10769 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10770 hardcode_libdir_flag_spec='-R$libdir'
10771 ;;
10772 *)
10773 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10774 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10775 ;;
10776 esac
10777 fi
10778 else
10779 ld_shlibs=no
10780 fi
10781 ;;
10782
10783 os2*)
10784 hardcode_libdir_flag_spec='-L$libdir'
10785 hardcode_minus_L=yes
10786 allow_undefined_flag=unsupported
10787 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'
10788 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10789 ;;
10790
10791 osf3*)
10792 if test "$GCC" = yes; then
10793 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10794 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'
10795 else
10796 allow_undefined_flag=' -expect_unresolved \*'
10797 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'
10798 fi
10799 archive_cmds_need_lc='no'
10800 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10801 hardcode_libdir_separator=:
10802 ;;
10803
10804 osf4* | osf5*) # as osf3* with the addition of -msym flag
10805 if test "$GCC" = yes; then
10806 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10807 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'
10808 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10809 else
10810 allow_undefined_flag=' -expect_unresolved \*'
10811 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'
10812 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~
10813 $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'
10814
10815 # Both c and cxx compiler support -rpath directly
10816 hardcode_libdir_flag_spec='-rpath $libdir'
10817 fi
10818 archive_cmds_need_lc='no'
10819 hardcode_libdir_separator=:
10820 ;;
10821
10822 solaris*)
10823 no_undefined_flag=' -z defs'
10824 if test "$GCC" = yes; then
10825 wlarc='${wl}'
10826 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10827 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10828 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10829 else
10830 case `$CC -V 2>&1` in
10831 *"Compilers 5.0"*)
10832 wlarc=''
10833 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10834 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10835 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10836 ;;
10837 *)
10838 wlarc='${wl}'
10839 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10840 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10841 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10842 ;;
10843 esac
10844 fi
10845 hardcode_libdir_flag_spec='-R$libdir'
10846 hardcode_shlibpath_var=no
10847 case $host_os in
10848 solaris2.[0-5] | solaris2.[0-5].*) ;;
10849 *)
10850 # The compiler driver will combine and reorder linker options,
10851 # but understands `-z linker_flag'. GCC discards it without `$wl',
10852 # but is careful enough not to reorder.
10853 # Supported since Solaris 2.6 (maybe 2.5.1?)
10854 if test "$GCC" = yes; then
10855 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10856 else
10857 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10858 fi
10859 ;;
10860 esac
10861 link_all_deplibs=yes
10862 ;;
10863
10864 sunos4*)
10865 if test "x$host_vendor" = xsequent; then
10866 # Use $CC to link under sequent, because it throws in some extra .o
10867 # files that make .init and .fini sections work.
10868 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10869 else
10870 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10871 fi
10872 hardcode_libdir_flag_spec='-L$libdir'
10873 hardcode_direct=yes
10874 hardcode_minus_L=yes
10875 hardcode_shlibpath_var=no
10876 ;;
10877
10878 sysv4)
10879 case $host_vendor in
10880 sni)
10881 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10882 hardcode_direct=yes # is this really true???
10883 ;;
10884 siemens)
10885 ## LD is ld it makes a PLAMLIB
10886 ## CC just makes a GrossModule.
10887 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10888 reload_cmds='$CC -r -o $output$reload_objs'
10889 hardcode_direct=no
10890 ;;
10891 motorola)
10892 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10893 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10894 ;;
10895 esac
10896 runpath_var='LD_RUN_PATH'
10897 hardcode_shlibpath_var=no
10898 ;;
10899
10900 sysv4.3*)
10901 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10902 hardcode_shlibpath_var=no
10903 export_dynamic_flag_spec='-Bexport'
10904 ;;
10905
10906 sysv4*MP*)
10907 if test -d /usr/nec; then
10908 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10909 hardcode_shlibpath_var=no
10910 runpath_var=LD_RUN_PATH
10911 hardcode_runpath_var=yes
10912 ld_shlibs=yes
10913 fi
10914 ;;
10915
10916 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10917 no_undefined_flag='${wl}-z,text'
10918 archive_cmds_need_lc=no
10919 hardcode_shlibpath_var=no
10920 runpath_var='LD_RUN_PATH'
10921
10922 if test "$GCC" = yes; then
10923 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10924 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10925 else
10926 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10927 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10928 fi
10929 ;;
10930
10931 sysv5* | sco3.2v5* | sco5v6*)
10932 # Note: We can NOT use -z defs as we might desire, because we do not
10933 # link with -lc, and that would cause any symbols used from libc to
10934 # always be unresolved, which means just about no library would
10935 # ever link correctly. If we're not using GNU ld we use -z text
10936 # though, which does catch some bad symbols but isn't as heavy-handed
10937 # as -z defs.
10938 no_undefined_flag='${wl}-z,text'
10939 allow_undefined_flag='${wl}-z,nodefs'
10940 archive_cmds_need_lc=no
10941 hardcode_shlibpath_var=no
10942 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10943 hardcode_libdir_separator=':'
10944 link_all_deplibs=yes
10945 export_dynamic_flag_spec='${wl}-Bexport'
10946 runpath_var='LD_RUN_PATH'
10947
10948 if test "$GCC" = yes; then
10949 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10950 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10951 else
10952 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10953 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10954 fi
10955 ;;
10956
10957 uts4*)
10958 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10959 hardcode_libdir_flag_spec='-L$libdir'
10960 hardcode_shlibpath_var=no
10961 ;;
10962
10963 *)
10964 ld_shlibs=no
10965 ;;
10966 esac
10967
10968 if test x$host_vendor = xsni; then
10969 case $host in
10970 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10971 export_dynamic_flag_spec='${wl}-Blargedynsym'
10972 ;;
10973 esac
10974 fi
10975 fi
10976
10977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10978 $as_echo "$ld_shlibs" >&6; }
10979 test "$ld_shlibs" = no && can_build_shared=no
10980
10981 with_gnu_ld=$with_gnu_ld
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997 #
10998 # Do we need to explicitly link libc?
10999 #
11000 case "x$archive_cmds_need_lc" in
11001 x|xyes)
11002 # Assume -lc should be added
11003 archive_cmds_need_lc=yes
11004
11005 if test "$enable_shared" = yes && test "$GCC" = yes; then
11006 case $archive_cmds in
11007 *'~'*)
11008 # FIXME: we may have to deal with multi-command sequences.
11009 ;;
11010 '$CC '*)
11011 # Test whether the compiler implicitly links with -lc since on some
11012 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11013 # to ld, don't add -lc before -lgcc.
11014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11015 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11016 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11017 $as_echo_n "(cached) " >&6
11018 else
11019 $RM conftest*
11020 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11021
11022 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11023 (eval $ac_compile) 2>&5
11024 ac_status=$?
11025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11026 test $ac_status = 0; } 2>conftest.err; then
11027 soname=conftest
11028 lib=conftest
11029 libobjs=conftest.$ac_objext
11030 deplibs=
11031 wl=$lt_prog_compiler_wl
11032 pic_flag=$lt_prog_compiler_pic
11033 compiler_flags=-v
11034 linker_flags=-v
11035 verstring=
11036 output_objdir=.
11037 libname=conftest
11038 lt_save_allow_undefined_flag=$allow_undefined_flag
11039 allow_undefined_flag=
11040 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11041 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11042 ac_status=$?
11043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11044 test $ac_status = 0; }
11045 then
11046 lt_cv_archive_cmds_need_lc=no
11047 else
11048 lt_cv_archive_cmds_need_lc=yes
11049 fi
11050 allow_undefined_flag=$lt_save_allow_undefined_flag
11051 else
11052 cat conftest.err 1>&5
11053 fi
11054 $RM conftest*
11055
11056 fi
11057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11058 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11059 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11060 ;;
11061 esac
11062 fi
11063 ;;
11064 esac
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11223 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11224
11225 if test "$GCC" = yes; then
11226 case $host_os in
11227 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11228 *) lt_awk_arg="/^libraries:/" ;;
11229 esac
11230 case $host_os in
11231 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11232 *) lt_sed_strip_eq="s,=/,/,g" ;;
11233 esac
11234 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11235 case $lt_search_path_spec in
11236 *\;*)
11237 # if the path contains ";" then we assume it to be the separator
11238 # otherwise default to the standard path separator (i.e. ":") - it is
11239 # assumed that no part of a normal pathname contains ";" but that should
11240 # okay in the real world where ";" in dirpaths is itself problematic.
11241 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11242 ;;
11243 *)
11244 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11245 ;;
11246 esac
11247 # Ok, now we have the path, separated by spaces, we can step through it
11248 # and add multilib dir if necessary.
11249 lt_tmp_lt_search_path_spec=
11250 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11251 for lt_sys_path in $lt_search_path_spec; do
11252 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11253 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11254 else
11255 test -d "$lt_sys_path" && \
11256 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11257 fi
11258 done
11259 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11260 BEGIN {RS=" "; FS="/|\n";} {
11261 lt_foo="";
11262 lt_count=0;
11263 for (lt_i = NF; lt_i > 0; lt_i--) {
11264 if ($lt_i != "" && $lt_i != ".") {
11265 if ($lt_i == "..") {
11266 lt_count++;
11267 } else {
11268 if (lt_count == 0) {
11269 lt_foo="/" $lt_i lt_foo;
11270 } else {
11271 lt_count--;
11272 }
11273 }
11274 }
11275 }
11276 if (lt_foo != "") { lt_freq[lt_foo]++; }
11277 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11278 }'`
11279 # AWK program above erroneously prepends '/' to C:/dos/paths
11280 # for these hosts.
11281 case $host_os in
11282 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11283 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11284 esac
11285 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11286 else
11287 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11288 fi
11289 library_names_spec=
11290 libname_spec='lib$name'
11291 soname_spec=
11292 shrext_cmds=".so"
11293 postinstall_cmds=
11294 postuninstall_cmds=
11295 finish_cmds=
11296 finish_eval=
11297 shlibpath_var=
11298 shlibpath_overrides_runpath=unknown
11299 version_type=none
11300 dynamic_linker="$host_os ld.so"
11301 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11302 need_lib_prefix=unknown
11303 hardcode_into_libs=no
11304
11305 # when you set need_version to no, make sure it does not cause -set_version
11306 # flags to be left without arguments
11307 need_version=unknown
11308
11309 case $host_os in
11310 aix3*)
11311 version_type=linux
11312 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11313 shlibpath_var=LIBPATH
11314
11315 # AIX 3 has no versioning support, so we append a major version to the name.
11316 soname_spec='${libname}${release}${shared_ext}$major'
11317 ;;
11318
11319 aix[4-9]*)
11320 version_type=linux
11321 need_lib_prefix=no
11322 need_version=no
11323 hardcode_into_libs=yes
11324 if test "$host_cpu" = ia64; then
11325 # AIX 5 supports IA64
11326 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11327 shlibpath_var=LD_LIBRARY_PATH
11328 else
11329 # With GCC up to 2.95.x, collect2 would create an import file
11330 # for dependence libraries. The import file would start with
11331 # the line `#! .'. This would cause the generated library to
11332 # depend on `.', always an invalid library. This was fixed in
11333 # development snapshots of GCC prior to 3.0.
11334 case $host_os in
11335 aix4 | aix4.[01] | aix4.[01].*)
11336 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11337 echo ' yes '
11338 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11339 :
11340 else
11341 can_build_shared=no
11342 fi
11343 ;;
11344 esac
11345 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11346 # soname into executable. Probably we can add versioning support to
11347 # collect2, so additional links can be useful in future.
11348 if test "$aix_use_runtimelinking" = yes; then
11349 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11350 # instead of lib<name>.a to let people know that these are not
11351 # typical AIX shared libraries.
11352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11353 else
11354 # We preserve .a as extension for shared libraries through AIX4.2
11355 # and later when we are not doing run time linking.
11356 library_names_spec='${libname}${release}.a $libname.a'
11357 soname_spec='${libname}${release}${shared_ext}$major'
11358 fi
11359 shlibpath_var=LIBPATH
11360 fi
11361 ;;
11362
11363 amigaos*)
11364 case $host_cpu in
11365 powerpc)
11366 # Since July 2007 AmigaOS4 officially supports .so libraries.
11367 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11369 ;;
11370 m68k)
11371 library_names_spec='$libname.ixlibrary $libname.a'
11372 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11373 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'
11374 ;;
11375 esac
11376 ;;
11377
11378 beos*)
11379 library_names_spec='${libname}${shared_ext}'
11380 dynamic_linker="$host_os ld.so"
11381 shlibpath_var=LIBRARY_PATH
11382 ;;
11383
11384 bsdi[45]*)
11385 version_type=linux
11386 need_version=no
11387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11388 soname_spec='${libname}${release}${shared_ext}$major'
11389 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11390 shlibpath_var=LD_LIBRARY_PATH
11391 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11392 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11393 # the default ld.so.conf also contains /usr/contrib/lib and
11394 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11395 # libtool to hard-code these into programs
11396 ;;
11397
11398 cygwin* | mingw* | pw32* | cegcc*)
11399 version_type=windows
11400 shrext_cmds=".dll"
11401 need_version=no
11402 need_lib_prefix=no
11403
11404 case $GCC,$host_os in
11405 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11406 library_names_spec='$libname.dll.a'
11407 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11408 postinstall_cmds='base_file=`basename \${file}`~
11409 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11410 dldir=$destdir/`dirname \$dlpath`~
11411 test -d \$dldir || mkdir -p \$dldir~
11412 $install_prog $dir/$dlname \$dldir/$dlname~
11413 chmod a+x \$dldir/$dlname~
11414 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11415 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11416 fi'
11417 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11418 dlpath=$dir/\$dldll~
11419 $RM \$dlpath'
11420 shlibpath_overrides_runpath=yes
11421
11422 case $host_os in
11423 cygwin*)
11424 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11425 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11426
11427 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11428 ;;
11429 mingw* | cegcc*)
11430 # MinGW DLLs use traditional 'lib' prefix
11431 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11432 ;;
11433 pw32*)
11434 # pw32 DLLs use 'pw' prefix rather than 'lib'
11435 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11436 ;;
11437 esac
11438 ;;
11439
11440 *)
11441 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11442 ;;
11443 esac
11444 dynamic_linker='Win32 ld.exe'
11445 # FIXME: first we should search . and the directory the executable is in
11446 shlibpath_var=PATH
11447 ;;
11448
11449 darwin* | rhapsody*)
11450 dynamic_linker="$host_os dyld"
11451 version_type=darwin
11452 need_lib_prefix=no
11453 need_version=no
11454 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11455 soname_spec='${libname}${release}${major}$shared_ext'
11456 shlibpath_overrides_runpath=yes
11457 shlibpath_var=DYLD_LIBRARY_PATH
11458 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11459
11460 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11461 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11462 ;;
11463
11464 dgux*)
11465 version_type=linux
11466 need_lib_prefix=no
11467 need_version=no
11468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11469 soname_spec='${libname}${release}${shared_ext}$major'
11470 shlibpath_var=LD_LIBRARY_PATH
11471 ;;
11472
11473 freebsd* | dragonfly*)
11474 # DragonFly does not have aout. When/if they implement a new
11475 # versioning mechanism, adjust this.
11476 if test -x /usr/bin/objformat; then
11477 objformat=`/usr/bin/objformat`
11478 else
11479 case $host_os in
11480 freebsd[23].*) objformat=aout ;;
11481 *) objformat=elf ;;
11482 esac
11483 fi
11484 version_type=freebsd-$objformat
11485 case $version_type in
11486 freebsd-elf*)
11487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11488 need_version=no
11489 need_lib_prefix=no
11490 ;;
11491 freebsd-*)
11492 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11493 need_version=yes
11494 ;;
11495 esac
11496 shlibpath_var=LD_LIBRARY_PATH
11497 case $host_os in
11498 freebsd2.*)
11499 shlibpath_overrides_runpath=yes
11500 ;;
11501 freebsd3.[01]* | freebsdelf3.[01]*)
11502 shlibpath_overrides_runpath=yes
11503 hardcode_into_libs=yes
11504 ;;
11505 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11506 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11507 shlibpath_overrides_runpath=no
11508 hardcode_into_libs=yes
11509 ;;
11510 *) # from 4.6 on, and DragonFly
11511 shlibpath_overrides_runpath=yes
11512 hardcode_into_libs=yes
11513 ;;
11514 esac
11515 ;;
11516
11517 gnu*)
11518 version_type=linux
11519 need_lib_prefix=no
11520 need_version=no
11521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11522 soname_spec='${libname}${release}${shared_ext}$major'
11523 shlibpath_var=LD_LIBRARY_PATH
11524 hardcode_into_libs=yes
11525 ;;
11526
11527 haiku*)
11528 version_type=linux
11529 need_lib_prefix=no
11530 need_version=no
11531 dynamic_linker="$host_os runtime_loader"
11532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11533 soname_spec='${libname}${release}${shared_ext}$major'
11534 shlibpath_var=LIBRARY_PATH
11535 shlibpath_overrides_runpath=yes
11536 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11537 hardcode_into_libs=yes
11538 ;;
11539
11540 hpux9* | hpux10* | hpux11*)
11541 # Give a soname corresponding to the major version so that dld.sl refuses to
11542 # link against other versions.
11543 version_type=sunos
11544 need_lib_prefix=no
11545 need_version=no
11546 case $host_cpu in
11547 ia64*)
11548 shrext_cmds='.so'
11549 hardcode_into_libs=yes
11550 dynamic_linker="$host_os dld.so"
11551 shlibpath_var=LD_LIBRARY_PATH
11552 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11554 soname_spec='${libname}${release}${shared_ext}$major'
11555 if test "X$HPUX_IA64_MODE" = X32; then
11556 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11557 else
11558 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11559 fi
11560 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11561 ;;
11562 hppa*64*)
11563 shrext_cmds='.sl'
11564 hardcode_into_libs=yes
11565 dynamic_linker="$host_os dld.sl"
11566 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11567 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11569 soname_spec='${libname}${release}${shared_ext}$major'
11570 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11571 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11572 ;;
11573 *)
11574 shrext_cmds='.sl'
11575 dynamic_linker="$host_os dld.sl"
11576 shlibpath_var=SHLIB_PATH
11577 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11579 soname_spec='${libname}${release}${shared_ext}$major'
11580 ;;
11581 esac
11582 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11583 postinstall_cmds='chmod 555 $lib'
11584 # or fails outright, so override atomically:
11585 install_override_mode=555
11586 ;;
11587
11588 interix[3-9]*)
11589 version_type=linux
11590 need_lib_prefix=no
11591 need_version=no
11592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11593 soname_spec='${libname}${release}${shared_ext}$major'
11594 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11595 shlibpath_var=LD_LIBRARY_PATH
11596 shlibpath_overrides_runpath=no
11597 hardcode_into_libs=yes
11598 ;;
11599
11600 irix5* | irix6* | nonstopux*)
11601 case $host_os in
11602 nonstopux*) version_type=nonstopux ;;
11603 *)
11604 if test "$lt_cv_prog_gnu_ld" = yes; then
11605 version_type=linux
11606 else
11607 version_type=irix
11608 fi ;;
11609 esac
11610 need_lib_prefix=no
11611 need_version=no
11612 soname_spec='${libname}${release}${shared_ext}$major'
11613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11614 case $host_os in
11615 irix5* | nonstopux*)
11616 libsuff= shlibsuff=
11617 ;;
11618 *)
11619 case $LD in # libtool.m4 will add one of these switches to LD
11620 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11621 libsuff= shlibsuff= libmagic=32-bit;;
11622 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11623 libsuff=32 shlibsuff=N32 libmagic=N32;;
11624 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11625 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11626 *) libsuff= shlibsuff= libmagic=never-match;;
11627 esac
11628 ;;
11629 esac
11630 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11631 shlibpath_overrides_runpath=no
11632 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11633 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11634 hardcode_into_libs=yes
11635 ;;
11636
11637 # No shared lib support for Linux oldld, aout, or coff.
11638 linux*oldld* | linux*aout* | linux*coff*)
11639 dynamic_linker=no
11640 ;;
11641
11642 # This must be Linux ELF.
11643
11644 # uclinux* changes (here and below) have been submitted to the libtool
11645 # project, but have not yet been accepted: they are GCC-local changes
11646 # for the time being. (See
11647 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
11648 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
11649 version_type=linux
11650 need_lib_prefix=no
11651 need_version=no
11652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11653 soname_spec='${libname}${release}${shared_ext}$major'
11654 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11655 shlibpath_var=LD_LIBRARY_PATH
11656 shlibpath_overrides_runpath=no
11657
11658 # Some binutils ld are patched to set DT_RUNPATH
11659 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11660 $as_echo_n "(cached) " >&6
11661 else
11662 lt_cv_shlibpath_overrides_runpath=no
11663 save_LDFLAGS=$LDFLAGS
11664 save_libdir=$libdir
11665 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11666 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11668 /* end confdefs.h. */
11669
11670 int
11671 main ()
11672 {
11673
11674 ;
11675 return 0;
11676 }
11677 _ACEOF
11678 if ac_fn_c_try_link "$LINENO"; then :
11679 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11680 lt_cv_shlibpath_overrides_runpath=yes
11681 fi
11682 fi
11683 rm -f core conftest.err conftest.$ac_objext \
11684 conftest$ac_exeext conftest.$ac_ext
11685 LDFLAGS=$save_LDFLAGS
11686 libdir=$save_libdir
11687
11688 fi
11689
11690 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11691
11692 # This implies no fast_install, which is unacceptable.
11693 # Some rework will be needed to allow for fast_install
11694 # before this can be enabled.
11695 hardcode_into_libs=yes
11696
11697 # Append ld.so.conf contents to the search path
11698 if test -f /etc/ld.so.conf; then
11699 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' ' '`
11700 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11701 fi
11702
11703 # We used to test for /lib/ld.so.1 and disable shared libraries on
11704 # powerpc, because MkLinux only supported shared libraries with the
11705 # GNU dynamic linker. Since this was broken with cross compilers,
11706 # most powerpc-linux boxes support dynamic linking these days and
11707 # people can always --disable-shared, the test was removed, and we
11708 # assume the GNU/Linux dynamic linker is in use.
11709 dynamic_linker='GNU/Linux ld.so'
11710 ;;
11711
11712 netbsd*)
11713 version_type=sunos
11714 need_lib_prefix=no
11715 need_version=no
11716 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11718 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11719 dynamic_linker='NetBSD (a.out) ld.so'
11720 else
11721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11722 soname_spec='${libname}${release}${shared_ext}$major'
11723 dynamic_linker='NetBSD ld.elf_so'
11724 fi
11725 shlibpath_var=LD_LIBRARY_PATH
11726 shlibpath_overrides_runpath=yes
11727 hardcode_into_libs=yes
11728 ;;
11729
11730 newsos6)
11731 version_type=linux
11732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11733 shlibpath_var=LD_LIBRARY_PATH
11734 shlibpath_overrides_runpath=yes
11735 ;;
11736
11737 *nto* | *qnx*)
11738 version_type=qnx
11739 need_lib_prefix=no
11740 need_version=no
11741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11742 soname_spec='${libname}${release}${shared_ext}$major'
11743 shlibpath_var=LD_LIBRARY_PATH
11744 shlibpath_overrides_runpath=no
11745 hardcode_into_libs=yes
11746 dynamic_linker='ldqnx.so'
11747 ;;
11748
11749 openbsd*)
11750 version_type=sunos
11751 sys_lib_dlsearch_path_spec="/usr/lib"
11752 need_lib_prefix=no
11753 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11754 case $host_os in
11755 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11756 *) need_version=no ;;
11757 esac
11758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11759 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11760 shlibpath_var=LD_LIBRARY_PATH
11761 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11762 case $host_os in
11763 openbsd2.[89] | openbsd2.[89].*)
11764 shlibpath_overrides_runpath=no
11765 ;;
11766 *)
11767 shlibpath_overrides_runpath=yes
11768 ;;
11769 esac
11770 else
11771 shlibpath_overrides_runpath=yes
11772 fi
11773 ;;
11774
11775 os2*)
11776 libname_spec='$name'
11777 shrext_cmds=".dll"
11778 need_lib_prefix=no
11779 library_names_spec='$libname${shared_ext} $libname.a'
11780 dynamic_linker='OS/2 ld.exe'
11781 shlibpath_var=LIBPATH
11782 ;;
11783
11784 osf3* | osf4* | osf5*)
11785 version_type=osf
11786 need_lib_prefix=no
11787 need_version=no
11788 soname_spec='${libname}${release}${shared_ext}$major'
11789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11790 shlibpath_var=LD_LIBRARY_PATH
11791 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11792 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11793 ;;
11794
11795 rdos*)
11796 dynamic_linker=no
11797 ;;
11798
11799 solaris*)
11800 version_type=linux
11801 need_lib_prefix=no
11802 need_version=no
11803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11804 soname_spec='${libname}${release}${shared_ext}$major'
11805 shlibpath_var=LD_LIBRARY_PATH
11806 shlibpath_overrides_runpath=yes
11807 hardcode_into_libs=yes
11808 # ldd complains unless libraries are executable
11809 postinstall_cmds='chmod +x $lib'
11810 ;;
11811
11812 sunos4*)
11813 version_type=sunos
11814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11815 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11816 shlibpath_var=LD_LIBRARY_PATH
11817 shlibpath_overrides_runpath=yes
11818 if test "$with_gnu_ld" = yes; then
11819 need_lib_prefix=no
11820 fi
11821 need_version=yes
11822 ;;
11823
11824 sysv4 | sysv4.3*)
11825 version_type=linux
11826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11827 soname_spec='${libname}${release}${shared_ext}$major'
11828 shlibpath_var=LD_LIBRARY_PATH
11829 case $host_vendor in
11830 sni)
11831 shlibpath_overrides_runpath=no
11832 need_lib_prefix=no
11833 runpath_var=LD_RUN_PATH
11834 ;;
11835 siemens)
11836 need_lib_prefix=no
11837 ;;
11838 motorola)
11839 need_lib_prefix=no
11840 need_version=no
11841 shlibpath_overrides_runpath=no
11842 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11843 ;;
11844 esac
11845 ;;
11846
11847 sysv4*MP*)
11848 if test -d /usr/nec ;then
11849 version_type=linux
11850 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11851 soname_spec='$libname${shared_ext}.$major'
11852 shlibpath_var=LD_LIBRARY_PATH
11853 fi
11854 ;;
11855
11856 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11857 version_type=freebsd-elf
11858 need_lib_prefix=no
11859 need_version=no
11860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11861 soname_spec='${libname}${release}${shared_ext}$major'
11862 shlibpath_var=LD_LIBRARY_PATH
11863 shlibpath_overrides_runpath=yes
11864 hardcode_into_libs=yes
11865 if test "$with_gnu_ld" = yes; then
11866 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11867 else
11868 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11869 case $host_os in
11870 sco3.2v5*)
11871 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11872 ;;
11873 esac
11874 fi
11875 sys_lib_dlsearch_path_spec='/usr/lib'
11876 ;;
11877
11878 tpf*)
11879 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11880 version_type=linux
11881 need_lib_prefix=no
11882 need_version=no
11883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11884 shlibpath_var=LD_LIBRARY_PATH
11885 shlibpath_overrides_runpath=no
11886 hardcode_into_libs=yes
11887 ;;
11888
11889 uts4*)
11890 version_type=linux
11891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11892 soname_spec='${libname}${release}${shared_ext}$major'
11893 shlibpath_var=LD_LIBRARY_PATH
11894 ;;
11895
11896 *)
11897 dynamic_linker=no
11898 ;;
11899 esac
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11901 $as_echo "$dynamic_linker" >&6; }
11902 test "$dynamic_linker" = no && can_build_shared=no
11903
11904 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11905 if test "$GCC" = yes; then
11906 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11907 fi
11908
11909 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11910 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11911 fi
11912 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11913 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11914 fi
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12008 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12009 hardcode_action=
12010 if test -n "$hardcode_libdir_flag_spec" ||
12011 test -n "$runpath_var" ||
12012 test "X$hardcode_automatic" = "Xyes" ; then
12013
12014 # We can hardcode non-existent directories.
12015 if test "$hardcode_direct" != no &&
12016 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12017 # have to relink, otherwise we might link with an installed library
12018 # when we should be linking with a yet-to-be-installed one
12019 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12020 test "$hardcode_minus_L" != no; then
12021 # Linking always hardcodes the temporary library directory.
12022 hardcode_action=relink
12023 else
12024 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12025 hardcode_action=immediate
12026 fi
12027 else
12028 # We cannot hardcode anything, or else we can only hardcode existing
12029 # directories.
12030 hardcode_action=unsupported
12031 fi
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12033 $as_echo "$hardcode_action" >&6; }
12034
12035 if test "$hardcode_action" = relink ||
12036 test "$inherit_rpath" = yes; then
12037 # Fast installation is not supported
12038 enable_fast_install=no
12039 elif test "$shlibpath_overrides_runpath" = yes ||
12040 test "$enable_shared" = no; then
12041 # Fast installation is not necessary
12042 enable_fast_install=needless
12043 fi
12044
12045
12046
12047
12048
12049
12050 if test "x$enable_dlopen" != xyes; then
12051 enable_dlopen=unknown
12052 enable_dlopen_self=unknown
12053 enable_dlopen_self_static=unknown
12054 else
12055 lt_cv_dlopen=no
12056 lt_cv_dlopen_libs=
12057
12058 case $host_os in
12059 beos*)
12060 lt_cv_dlopen="load_add_on"
12061 lt_cv_dlopen_libs=
12062 lt_cv_dlopen_self=yes
12063 ;;
12064
12065 mingw* | pw32* | cegcc*)
12066 lt_cv_dlopen="LoadLibrary"
12067 lt_cv_dlopen_libs=
12068 ;;
12069
12070 cygwin*)
12071 lt_cv_dlopen="dlopen"
12072 lt_cv_dlopen_libs=
12073 ;;
12074
12075 darwin*)
12076 # if libdl is installed we need to link against it
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12078 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12079 if ${ac_cv_lib_dl_dlopen+:} false; then :
12080 $as_echo_n "(cached) " >&6
12081 else
12082 ac_check_lib_save_LIBS=$LIBS
12083 LIBS="-ldl $LIBS"
12084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12085 /* end confdefs.h. */
12086
12087 /* Override any GCC internal prototype to avoid an error.
12088 Use char because int might match the return type of a GCC
12089 builtin and then its argument prototype would still apply. */
12090 #ifdef __cplusplus
12091 extern "C"
12092 #endif
12093 char dlopen ();
12094 int
12095 main ()
12096 {
12097 return dlopen ();
12098 ;
12099 return 0;
12100 }
12101 _ACEOF
12102 if ac_fn_c_try_link "$LINENO"; then :
12103 ac_cv_lib_dl_dlopen=yes
12104 else
12105 ac_cv_lib_dl_dlopen=no
12106 fi
12107 rm -f core conftest.err conftest.$ac_objext \
12108 conftest$ac_exeext conftest.$ac_ext
12109 LIBS=$ac_check_lib_save_LIBS
12110 fi
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12112 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12113 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12114 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12115 else
12116
12117 lt_cv_dlopen="dyld"
12118 lt_cv_dlopen_libs=
12119 lt_cv_dlopen_self=yes
12120
12121 fi
12122
12123 ;;
12124
12125 *)
12126 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12127 if test "x$ac_cv_func_shl_load" = xyes; then :
12128 lt_cv_dlopen="shl_load"
12129 else
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12131 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12132 if ${ac_cv_lib_dld_shl_load+:} false; then :
12133 $as_echo_n "(cached) " >&6
12134 else
12135 ac_check_lib_save_LIBS=$LIBS
12136 LIBS="-ldld $LIBS"
12137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12138 /* end confdefs.h. */
12139
12140 /* Override any GCC internal prototype to avoid an error.
12141 Use char because int might match the return type of a GCC
12142 builtin and then its argument prototype would still apply. */
12143 #ifdef __cplusplus
12144 extern "C"
12145 #endif
12146 char shl_load ();
12147 int
12148 main ()
12149 {
12150 return shl_load ();
12151 ;
12152 return 0;
12153 }
12154 _ACEOF
12155 if ac_fn_c_try_link "$LINENO"; then :
12156 ac_cv_lib_dld_shl_load=yes
12157 else
12158 ac_cv_lib_dld_shl_load=no
12159 fi
12160 rm -f core conftest.err conftest.$ac_objext \
12161 conftest$ac_exeext conftest.$ac_ext
12162 LIBS=$ac_check_lib_save_LIBS
12163 fi
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12165 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12166 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12167 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12168 else
12169 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12170 if test "x$ac_cv_func_dlopen" = xyes; then :
12171 lt_cv_dlopen="dlopen"
12172 else
12173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12174 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12175 if ${ac_cv_lib_dl_dlopen+:} false; then :
12176 $as_echo_n "(cached) " >&6
12177 else
12178 ac_check_lib_save_LIBS=$LIBS
12179 LIBS="-ldl $LIBS"
12180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12181 /* end confdefs.h. */
12182
12183 /* Override any GCC internal prototype to avoid an error.
12184 Use char because int might match the return type of a GCC
12185 builtin and then its argument prototype would still apply. */
12186 #ifdef __cplusplus
12187 extern "C"
12188 #endif
12189 char dlopen ();
12190 int
12191 main ()
12192 {
12193 return dlopen ();
12194 ;
12195 return 0;
12196 }
12197 _ACEOF
12198 if ac_fn_c_try_link "$LINENO"; then :
12199 ac_cv_lib_dl_dlopen=yes
12200 else
12201 ac_cv_lib_dl_dlopen=no
12202 fi
12203 rm -f core conftest.err conftest.$ac_objext \
12204 conftest$ac_exeext conftest.$ac_ext
12205 LIBS=$ac_check_lib_save_LIBS
12206 fi
12207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12208 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12209 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12210 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12211 else
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12213 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12214 if ${ac_cv_lib_svld_dlopen+:} false; then :
12215 $as_echo_n "(cached) " >&6
12216 else
12217 ac_check_lib_save_LIBS=$LIBS
12218 LIBS="-lsvld $LIBS"
12219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12220 /* end confdefs.h. */
12221
12222 /* Override any GCC internal prototype to avoid an error.
12223 Use char because int might match the return type of a GCC
12224 builtin and then its argument prototype would still apply. */
12225 #ifdef __cplusplus
12226 extern "C"
12227 #endif
12228 char dlopen ();
12229 int
12230 main ()
12231 {
12232 return dlopen ();
12233 ;
12234 return 0;
12235 }
12236 _ACEOF
12237 if ac_fn_c_try_link "$LINENO"; then :
12238 ac_cv_lib_svld_dlopen=yes
12239 else
12240 ac_cv_lib_svld_dlopen=no
12241 fi
12242 rm -f core conftest.err conftest.$ac_objext \
12243 conftest$ac_exeext conftest.$ac_ext
12244 LIBS=$ac_check_lib_save_LIBS
12245 fi
12246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12247 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12248 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12249 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12250 else
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12252 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12253 if ${ac_cv_lib_dld_dld_link+:} false; then :
12254 $as_echo_n "(cached) " >&6
12255 else
12256 ac_check_lib_save_LIBS=$LIBS
12257 LIBS="-ldld $LIBS"
12258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12259 /* end confdefs.h. */
12260
12261 /* Override any GCC internal prototype to avoid an error.
12262 Use char because int might match the return type of a GCC
12263 builtin and then its argument prototype would still apply. */
12264 #ifdef __cplusplus
12265 extern "C"
12266 #endif
12267 char dld_link ();
12268 int
12269 main ()
12270 {
12271 return dld_link ();
12272 ;
12273 return 0;
12274 }
12275 _ACEOF
12276 if ac_fn_c_try_link "$LINENO"; then :
12277 ac_cv_lib_dld_dld_link=yes
12278 else
12279 ac_cv_lib_dld_dld_link=no
12280 fi
12281 rm -f core conftest.err conftest.$ac_objext \
12282 conftest$ac_exeext conftest.$ac_ext
12283 LIBS=$ac_check_lib_save_LIBS
12284 fi
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12286 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12287 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12288 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12289 fi
12290
12291
12292 fi
12293
12294
12295 fi
12296
12297
12298 fi
12299
12300
12301 fi
12302
12303
12304 fi
12305
12306 ;;
12307 esac
12308
12309 if test "x$lt_cv_dlopen" != xno; then
12310 enable_dlopen=yes
12311 else
12312 enable_dlopen=no
12313 fi
12314
12315 case $lt_cv_dlopen in
12316 dlopen)
12317 save_CPPFLAGS="$CPPFLAGS"
12318 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12319
12320 save_LDFLAGS="$LDFLAGS"
12321 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12322
12323 save_LIBS="$LIBS"
12324 LIBS="$lt_cv_dlopen_libs $LIBS"
12325
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12327 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12328 if ${lt_cv_dlopen_self+:} false; then :
12329 $as_echo_n "(cached) " >&6
12330 else
12331 if test "$cross_compiling" = yes; then :
12332 lt_cv_dlopen_self=cross
12333 else
12334 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12335 lt_status=$lt_dlunknown
12336 cat > conftest.$ac_ext <<_LT_EOF
12337 #line 12337 "configure"
12338 #include "confdefs.h"
12339
12340 #if HAVE_DLFCN_H
12341 #include <dlfcn.h>
12342 #endif
12343
12344 #include <stdio.h>
12345
12346 #ifdef RTLD_GLOBAL
12347 # define LT_DLGLOBAL RTLD_GLOBAL
12348 #else
12349 # ifdef DL_GLOBAL
12350 # define LT_DLGLOBAL DL_GLOBAL
12351 # else
12352 # define LT_DLGLOBAL 0
12353 # endif
12354 #endif
12355
12356 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12357 find out it does not work in some platform. */
12358 #ifndef LT_DLLAZY_OR_NOW
12359 # ifdef RTLD_LAZY
12360 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12361 # else
12362 # ifdef DL_LAZY
12363 # define LT_DLLAZY_OR_NOW DL_LAZY
12364 # else
12365 # ifdef RTLD_NOW
12366 # define LT_DLLAZY_OR_NOW RTLD_NOW
12367 # else
12368 # ifdef DL_NOW
12369 # define LT_DLLAZY_OR_NOW DL_NOW
12370 # else
12371 # define LT_DLLAZY_OR_NOW 0
12372 # endif
12373 # endif
12374 # endif
12375 # endif
12376 #endif
12377
12378 /* When -fvisbility=hidden is used, assume the code has been annotated
12379 correspondingly for the symbols needed. */
12380 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12381 void fnord () __attribute__((visibility("default")));
12382 #endif
12383
12384 void fnord () { int i=42; }
12385 int main ()
12386 {
12387 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12388 int status = $lt_dlunknown;
12389
12390 if (self)
12391 {
12392 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12393 else
12394 {
12395 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12396 else puts (dlerror ());
12397 }
12398 /* dlclose (self); */
12399 }
12400 else
12401 puts (dlerror ());
12402
12403 return status;
12404 }
12405 _LT_EOF
12406 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12407 (eval $ac_link) 2>&5
12408 ac_status=$?
12409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12410 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12411 (./conftest; exit; ) >&5 2>/dev/null
12412 lt_status=$?
12413 case x$lt_status in
12414 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12415 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12416 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12417 esac
12418 else :
12419 # compilation failed
12420 lt_cv_dlopen_self=no
12421 fi
12422 fi
12423 rm -fr conftest*
12424
12425
12426 fi
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12428 $as_echo "$lt_cv_dlopen_self" >&6; }
12429
12430 if test "x$lt_cv_dlopen_self" = xyes; then
12431 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12433 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12434 if ${lt_cv_dlopen_self_static+:} false; then :
12435 $as_echo_n "(cached) " >&6
12436 else
12437 if test "$cross_compiling" = yes; then :
12438 lt_cv_dlopen_self_static=cross
12439 else
12440 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12441 lt_status=$lt_dlunknown
12442 cat > conftest.$ac_ext <<_LT_EOF
12443 #line 12443 "configure"
12444 #include "confdefs.h"
12445
12446 #if HAVE_DLFCN_H
12447 #include <dlfcn.h>
12448 #endif
12449
12450 #include <stdio.h>
12451
12452 #ifdef RTLD_GLOBAL
12453 # define LT_DLGLOBAL RTLD_GLOBAL
12454 #else
12455 # ifdef DL_GLOBAL
12456 # define LT_DLGLOBAL DL_GLOBAL
12457 # else
12458 # define LT_DLGLOBAL 0
12459 # endif
12460 #endif
12461
12462 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12463 find out it does not work in some platform. */
12464 #ifndef LT_DLLAZY_OR_NOW
12465 # ifdef RTLD_LAZY
12466 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12467 # else
12468 # ifdef DL_LAZY
12469 # define LT_DLLAZY_OR_NOW DL_LAZY
12470 # else
12471 # ifdef RTLD_NOW
12472 # define LT_DLLAZY_OR_NOW RTLD_NOW
12473 # else
12474 # ifdef DL_NOW
12475 # define LT_DLLAZY_OR_NOW DL_NOW
12476 # else
12477 # define LT_DLLAZY_OR_NOW 0
12478 # endif
12479 # endif
12480 # endif
12481 # endif
12482 #endif
12483
12484 /* When -fvisbility=hidden is used, assume the code has been annotated
12485 correspondingly for the symbols needed. */
12486 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12487 void fnord () __attribute__((visibility("default")));
12488 #endif
12489
12490 void fnord () { int i=42; }
12491 int main ()
12492 {
12493 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12494 int status = $lt_dlunknown;
12495
12496 if (self)
12497 {
12498 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12499 else
12500 {
12501 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12502 else puts (dlerror ());
12503 }
12504 /* dlclose (self); */
12505 }
12506 else
12507 puts (dlerror ());
12508
12509 return status;
12510 }
12511 _LT_EOF
12512 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12513 (eval $ac_link) 2>&5
12514 ac_status=$?
12515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12516 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12517 (./conftest; exit; ) >&5 2>/dev/null
12518 lt_status=$?
12519 case x$lt_status in
12520 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12521 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12522 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12523 esac
12524 else :
12525 # compilation failed
12526 lt_cv_dlopen_self_static=no
12527 fi
12528 fi
12529 rm -fr conftest*
12530
12531
12532 fi
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12534 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12535 fi
12536
12537 CPPFLAGS="$save_CPPFLAGS"
12538 LDFLAGS="$save_LDFLAGS"
12539 LIBS="$save_LIBS"
12540 ;;
12541 esac
12542
12543 case $lt_cv_dlopen_self in
12544 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12545 *) enable_dlopen_self=unknown ;;
12546 esac
12547
12548 case $lt_cv_dlopen_self_static in
12549 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12550 *) enable_dlopen_self_static=unknown ;;
12551 esac
12552 fi
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570 striplib=
12571 old_striplib=
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12573 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12574 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12575 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12576 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12578 $as_echo "yes" >&6; }
12579 else
12580 # FIXME - insert some real tests, host_os isn't really good enough
12581 case $host_os in
12582 darwin*)
12583 if test -n "$STRIP" ; then
12584 striplib="$STRIP -x"
12585 old_striplib="$STRIP -S"
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12587 $as_echo "yes" >&6; }
12588 else
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12590 $as_echo "no" >&6; }
12591 fi
12592 ;;
12593 *)
12594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12595 $as_echo "no" >&6; }
12596 ;;
12597 esac
12598 fi
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611 # Report which library types will actually be built
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12613 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12615 $as_echo "$can_build_shared" >&6; }
12616
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12618 $as_echo_n "checking whether to build shared libraries... " >&6; }
12619 test "$can_build_shared" = "no" && enable_shared=no
12620
12621 # On AIX, shared libraries and static libraries use the same namespace, and
12622 # are all built from PIC.
12623 case $host_os in
12624 aix3*)
12625 test "$enable_shared" = yes && enable_static=no
12626 if test -n "$RANLIB"; then
12627 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12628 postinstall_cmds='$RANLIB $lib'
12629 fi
12630 ;;
12631
12632 aix[4-9]*)
12633 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12634 test "$enable_shared" = yes && enable_static=no
12635 fi
12636 ;;
12637 esac
12638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12639 $as_echo "$enable_shared" >&6; }
12640
12641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12642 $as_echo_n "checking whether to build static libraries... " >&6; }
12643 # Make sure either enable_shared or enable_static is yes.
12644 test "$enable_shared" = yes || enable_static=yes
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12646 $as_echo "$enable_static" >&6; }
12647
12648
12649
12650
12651 fi
12652 ac_ext=c
12653 ac_cpp='$CPP $CPPFLAGS'
12654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12657
12658 CC="$lt_save_CC"
12659
12660 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12661 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12662 (test "X$CXX" != "Xg++"))) ; then
12663 ac_ext=cpp
12664 ac_cpp='$CXXCPP $CPPFLAGS'
12665 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12666 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12667 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12669 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12670 if test -z "$CXXCPP"; then
12671 if ${ac_cv_prog_CXXCPP+:} false; then :
12672 $as_echo_n "(cached) " >&6
12673 else
12674 # Double quotes because CXXCPP needs to be expanded
12675 for CXXCPP in "$CXX -E" "/lib/cpp"
12676 do
12677 ac_preproc_ok=false
12678 for ac_cxx_preproc_warn_flag in '' yes
12679 do
12680 # Use a header file that comes with gcc, so configuring glibc
12681 # with a fresh cross-compiler works.
12682 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12683 # <limits.h> exists even on freestanding compilers.
12684 # On the NeXT, cc -E runs the code through the compiler's parser,
12685 # not just through cpp. "Syntax error" is here to catch this case.
12686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12687 /* end confdefs.h. */
12688 #ifdef __STDC__
12689 # include <limits.h>
12690 #else
12691 # include <assert.h>
12692 #endif
12693 Syntax error
12694 _ACEOF
12695 if ac_fn_cxx_try_cpp "$LINENO"; then :
12696
12697 else
12698 # Broken: fails on valid input.
12699 continue
12700 fi
12701 rm -f conftest.err conftest.i conftest.$ac_ext
12702
12703 # OK, works on sane cases. Now check whether nonexistent headers
12704 # can be detected and how.
12705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12706 /* end confdefs.h. */
12707 #include <ac_nonexistent.h>
12708 _ACEOF
12709 if ac_fn_cxx_try_cpp "$LINENO"; then :
12710 # Broken: success on invalid input.
12711 continue
12712 else
12713 # Passes both tests.
12714 ac_preproc_ok=:
12715 break
12716 fi
12717 rm -f conftest.err conftest.i conftest.$ac_ext
12718
12719 done
12720 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12721 rm -f conftest.i conftest.err conftest.$ac_ext
12722 if $ac_preproc_ok; then :
12723 break
12724 fi
12725
12726 done
12727 ac_cv_prog_CXXCPP=$CXXCPP
12728
12729 fi
12730 CXXCPP=$ac_cv_prog_CXXCPP
12731 else
12732 ac_cv_prog_CXXCPP=$CXXCPP
12733 fi
12734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12735 $as_echo "$CXXCPP" >&6; }
12736 ac_preproc_ok=false
12737 for ac_cxx_preproc_warn_flag in '' yes
12738 do
12739 # Use a header file that comes with gcc, so configuring glibc
12740 # with a fresh cross-compiler works.
12741 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12742 # <limits.h> exists even on freestanding compilers.
12743 # On the NeXT, cc -E runs the code through the compiler's parser,
12744 # not just through cpp. "Syntax error" is here to catch this case.
12745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12746 /* end confdefs.h. */
12747 #ifdef __STDC__
12748 # include <limits.h>
12749 #else
12750 # include <assert.h>
12751 #endif
12752 Syntax error
12753 _ACEOF
12754 if ac_fn_cxx_try_cpp "$LINENO"; then :
12755
12756 else
12757 # Broken: fails on valid input.
12758 continue
12759 fi
12760 rm -f conftest.err conftest.i conftest.$ac_ext
12761
12762 # OK, works on sane cases. Now check whether nonexistent headers
12763 # can be detected and how.
12764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12765 /* end confdefs.h. */
12766 #include <ac_nonexistent.h>
12767 _ACEOF
12768 if ac_fn_cxx_try_cpp "$LINENO"; then :
12769 # Broken: success on invalid input.
12770 continue
12771 else
12772 # Passes both tests.
12773 ac_preproc_ok=:
12774 break
12775 fi
12776 rm -f conftest.err conftest.i conftest.$ac_ext
12777
12778 done
12779 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12780 rm -f conftest.i conftest.err conftest.$ac_ext
12781 if $ac_preproc_ok; then :
12782
12783 else
12784 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12785 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12786 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12787 See \`config.log' for more details" "$LINENO" 5; }
12788 fi
12789
12790 ac_ext=c
12791 ac_cpp='$CPP $CPPFLAGS'
12792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12795
12796 else
12797 _lt_caught_CXX_error=yes
12798 fi
12799
12800 ac_ext=cpp
12801 ac_cpp='$CXXCPP $CPPFLAGS'
12802 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12803 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12804 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12805
12806 archive_cmds_need_lc_CXX=no
12807 allow_undefined_flag_CXX=
12808 always_export_symbols_CXX=no
12809 archive_expsym_cmds_CXX=
12810 compiler_needs_object_CXX=no
12811 export_dynamic_flag_spec_CXX=
12812 hardcode_direct_CXX=no
12813 hardcode_direct_absolute_CXX=no
12814 hardcode_libdir_flag_spec_CXX=
12815 hardcode_libdir_flag_spec_ld_CXX=
12816 hardcode_libdir_separator_CXX=
12817 hardcode_minus_L_CXX=no
12818 hardcode_shlibpath_var_CXX=unsupported
12819 hardcode_automatic_CXX=no
12820 inherit_rpath_CXX=no
12821 module_cmds_CXX=
12822 module_expsym_cmds_CXX=
12823 link_all_deplibs_CXX=unknown
12824 old_archive_cmds_CXX=$old_archive_cmds
12825 reload_flag_CXX=$reload_flag
12826 reload_cmds_CXX=$reload_cmds
12827 no_undefined_flag_CXX=
12828 whole_archive_flag_spec_CXX=
12829 enable_shared_with_static_runtimes_CXX=no
12830
12831 # Source file extension for C++ test sources.
12832 ac_ext=cpp
12833
12834 # Object file extension for compiled C++ test sources.
12835 objext=o
12836 objext_CXX=$objext
12837
12838 # No sense in running all these tests if we already determined that
12839 # the CXX compiler isn't working. Some variables (like enable_shared)
12840 # are currently assumed to apply to all compilers on this platform,
12841 # and will be corrupted by setting them based on a non-working compiler.
12842 if test "$_lt_caught_CXX_error" != yes; then
12843 # Code to be used in simple compile tests
12844 lt_simple_compile_test_code="int some_variable = 0;"
12845
12846 # Code to be used in simple link tests
12847 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12848
12849 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12850
12851
12852
12853
12854
12855
12856 # If no C compiler was specified, use CC.
12857 LTCC=${LTCC-"$CC"}
12858
12859 # If no C compiler flags were specified, use CFLAGS.
12860 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12861
12862 # Allow CC to be a program name with arguments.
12863 compiler=$CC
12864
12865
12866 # save warnings/boilerplate of simple test code
12867 ac_outfile=conftest.$ac_objext
12868 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12869 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12870 _lt_compiler_boilerplate=`cat conftest.err`
12871 $RM conftest*
12872
12873 ac_outfile=conftest.$ac_objext
12874 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12875 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12876 _lt_linker_boilerplate=`cat conftest.err`
12877 $RM -r conftest*
12878
12879
12880 # Allow CC to be a program name with arguments.
12881 lt_save_CC=$CC
12882 lt_save_LD=$LD
12883 lt_save_GCC=$GCC
12884 GCC=$GXX
12885 lt_save_with_gnu_ld=$with_gnu_ld
12886 lt_save_path_LD=$lt_cv_path_LD
12887 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12888 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12889 else
12890 $as_unset lt_cv_prog_gnu_ld
12891 fi
12892 if test -n "${lt_cv_path_LDCXX+set}"; then
12893 lt_cv_path_LD=$lt_cv_path_LDCXX
12894 else
12895 $as_unset lt_cv_path_LD
12896 fi
12897 test -z "${LDCXX+set}" || LD=$LDCXX
12898 CC=${CXX-"c++"}
12899 compiler=$CC
12900 compiler_CXX=$CC
12901 for cc_temp in $compiler""; do
12902 case $cc_temp in
12903 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12904 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12905 \-*) ;;
12906 *) break;;
12907 esac
12908 done
12909 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12910
12911
12912 if test -n "$compiler"; then
12913 # We don't want -fno-exception when compiling C++ code, so set the
12914 # no_builtin_flag separately
12915 if test "$GXX" = yes; then
12916 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12917 else
12918 lt_prog_compiler_no_builtin_flag_CXX=
12919 fi
12920
12921 if test "$GXX" = yes; then
12922 # Set up default GNU C++ configuration
12923
12924
12925
12926 # Check whether --with-gnu-ld was given.
12927 if test "${with_gnu_ld+set}" = set; then :
12928 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12929 else
12930 with_gnu_ld=no
12931 fi
12932
12933 ac_prog=ld
12934 if test "$GCC" = yes; then
12935 # Check if gcc -print-prog-name=ld gives a path.
12936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12937 $as_echo_n "checking for ld used by $CC... " >&6; }
12938 case $host in
12939 *-*-mingw*)
12940 # gcc leaves a trailing carriage return which upsets mingw
12941 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12942 *)
12943 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12944 esac
12945 case $ac_prog in
12946 # Accept absolute paths.
12947 [\\/]* | ?:[\\/]*)
12948 re_direlt='/[^/][^/]*/\.\./'
12949 # Canonicalize the pathname of ld
12950 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12951 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12952 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12953 done
12954 test -z "$LD" && LD="$ac_prog"
12955 ;;
12956 "")
12957 # If it fails, then pretend we aren't using GCC.
12958 ac_prog=ld
12959 ;;
12960 *)
12961 # If it is relative, then search for the first ld in PATH.
12962 with_gnu_ld=unknown
12963 ;;
12964 esac
12965 elif test "$with_gnu_ld" = yes; then
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12967 $as_echo_n "checking for GNU ld... " >&6; }
12968 else
12969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12970 $as_echo_n "checking for non-GNU ld... " >&6; }
12971 fi
12972 if ${lt_cv_path_LD+:} false; then :
12973 $as_echo_n "(cached) " >&6
12974 else
12975 if test -z "$LD"; then
12976 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12977 for ac_dir in $PATH; do
12978 IFS="$lt_save_ifs"
12979 test -z "$ac_dir" && ac_dir=.
12980 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12981 lt_cv_path_LD="$ac_dir/$ac_prog"
12982 # Check to see if the program is GNU ld. I'd rather use --version,
12983 # but apparently some variants of GNU ld only accept -v.
12984 # Break only if it was the GNU/non-GNU ld that we prefer.
12985 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12986 *GNU* | *'with BFD'*)
12987 test "$with_gnu_ld" != no && break
12988 ;;
12989 *)
12990 test "$with_gnu_ld" != yes && break
12991 ;;
12992 esac
12993 fi
12994 done
12995 IFS="$lt_save_ifs"
12996 else
12997 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12998 fi
12999 fi
13000
13001 LD="$lt_cv_path_LD"
13002 if test -n "$LD"; then
13003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13004 $as_echo "$LD" >&6; }
13005 else
13006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13007 $as_echo "no" >&6; }
13008 fi
13009 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13011 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13012 if ${lt_cv_prog_gnu_ld+:} false; then :
13013 $as_echo_n "(cached) " >&6
13014 else
13015 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13016 case `$LD -v 2>&1 </dev/null` in
13017 *GNU* | *'with BFD'*)
13018 lt_cv_prog_gnu_ld=yes
13019 ;;
13020 *)
13021 lt_cv_prog_gnu_ld=no
13022 ;;
13023 esac
13024 fi
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13026 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13027 with_gnu_ld=$lt_cv_prog_gnu_ld
13028
13029
13030
13031
13032
13033
13034
13035 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13036 # archiving commands below assume that GNU ld is being used.
13037 if test "$with_gnu_ld" = yes; then
13038 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13039 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'
13040
13041 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13042 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13043
13044 # If archive_cmds runs LD, not CC, wlarc should be empty
13045 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13046 # investigate it a little bit more. (MM)
13047 wlarc='${wl}'
13048
13049 # ancient GNU ld didn't support --whole-archive et. al.
13050 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13051 $GREP 'no-whole-archive' > /dev/null; then
13052 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13053 else
13054 whole_archive_flag_spec_CXX=
13055 fi
13056 else
13057 with_gnu_ld=no
13058 wlarc=
13059
13060 # A generic and very simple default shared library creation
13061 # command for GNU C++ for the case where it uses the native
13062 # linker, instead of GNU ld. If possible, this setting should
13063 # overridden to take advantage of the native linker features on
13064 # the platform it is being used on.
13065 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13066 fi
13067
13068 # Commands to make compiler produce verbose output that lists
13069 # what "hidden" libraries, object files and flags are used when
13070 # linking a shared library.
13071 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13072
13073 else
13074 GXX=no
13075 with_gnu_ld=no
13076 wlarc=
13077 fi
13078
13079 # PORTME: fill in a description of your system's C++ link characteristics
13080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13081 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13082 ld_shlibs_CXX=yes
13083 case $host_os in
13084 aix3*)
13085 # FIXME: insert proper C++ library support
13086 ld_shlibs_CXX=no
13087 ;;
13088 aix[4-9]*)
13089 if test "$host_cpu" = ia64; then
13090 # On IA64, the linker does run time linking by default, so we don't
13091 # have to do anything special.
13092 aix_use_runtimelinking=no
13093 exp_sym_flag='-Bexport'
13094 no_entry_flag=""
13095 else
13096 aix_use_runtimelinking=no
13097
13098 # Test if we are trying to use run time linking or normal
13099 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13100 # need to do runtime linking.
13101 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13102 for ld_flag in $LDFLAGS; do
13103 case $ld_flag in
13104 *-brtl*)
13105 aix_use_runtimelinking=yes
13106 break
13107 ;;
13108 esac
13109 done
13110 ;;
13111 esac
13112
13113 exp_sym_flag='-bexport'
13114 no_entry_flag='-bnoentry'
13115 fi
13116
13117 # When large executables or shared objects are built, AIX ld can
13118 # have problems creating the table of contents. If linking a library
13119 # or program results in "error TOC overflow" add -mminimal-toc to
13120 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13121 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13122
13123 archive_cmds_CXX=''
13124 hardcode_direct_CXX=yes
13125 hardcode_direct_absolute_CXX=yes
13126 hardcode_libdir_separator_CXX=':'
13127 link_all_deplibs_CXX=yes
13128 file_list_spec_CXX='${wl}-f,'
13129
13130 if test "$GXX" = yes; then
13131 case $host_os in aix4.[012]|aix4.[012].*)
13132 # We only want to do this on AIX 4.2 and lower, the check
13133 # below for broken collect2 doesn't work under 4.3+
13134 collect2name=`${CC} -print-prog-name=collect2`
13135 if test -f "$collect2name" &&
13136 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13137 then
13138 # We have reworked collect2
13139 :
13140 else
13141 # We have old collect2
13142 hardcode_direct_CXX=unsupported
13143 # It fails to find uninstalled libraries when the uninstalled
13144 # path is not listed in the libpath. Setting hardcode_minus_L
13145 # to unsupported forces relinking
13146 hardcode_minus_L_CXX=yes
13147 hardcode_libdir_flag_spec_CXX='-L$libdir'
13148 hardcode_libdir_separator_CXX=
13149 fi
13150 esac
13151 shared_flag='-shared'
13152 if test "$aix_use_runtimelinking" = yes; then
13153 shared_flag="$shared_flag "'${wl}-G'
13154 fi
13155 else
13156 # not using gcc
13157 if test "$host_cpu" = ia64; then
13158 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13159 # chokes on -Wl,-G. The following line is correct:
13160 shared_flag='-G'
13161 else
13162 if test "$aix_use_runtimelinking" = yes; then
13163 shared_flag='${wl}-G'
13164 else
13165 shared_flag='${wl}-bM:SRE'
13166 fi
13167 fi
13168 fi
13169
13170 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13171 # It seems that -bexpall does not export symbols beginning with
13172 # underscore (_), so it is better to generate a list of symbols to
13173 # export.
13174 always_export_symbols_CXX=yes
13175 if test "$aix_use_runtimelinking" = yes; then
13176 # Warning - without using the other runtime loading flags (-brtl),
13177 # -berok will link without error, but may produce a broken library.
13178 allow_undefined_flag_CXX='-berok'
13179 # Determine the default libpath from the value encoded in an empty
13180 # executable.
13181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13182 /* end confdefs.h. */
13183
13184 int
13185 main ()
13186 {
13187
13188 ;
13189 return 0;
13190 }
13191 _ACEOF
13192 if ac_fn_cxx_try_link "$LINENO"; then :
13193
13194 lt_aix_libpath_sed='
13195 /Import File Strings/,/^$/ {
13196 /^0/ {
13197 s/^0 *\(.*\)$/\1/
13198 p
13199 }
13200 }'
13201 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13202 # Check for a 64-bit object if we didn't find anything.
13203 if test -z "$aix_libpath"; then
13204 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13205 fi
13206 fi
13207 rm -f core conftest.err conftest.$ac_objext \
13208 conftest$ac_exeext conftest.$ac_ext
13209 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13210
13211 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13212
13213 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"
13214 else
13215 if test "$host_cpu" = ia64; then
13216 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13217 allow_undefined_flag_CXX="-z nodefs"
13218 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"
13219 else
13220 # Determine the default libpath from the value encoded in an
13221 # empty executable.
13222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13223 /* end confdefs.h. */
13224
13225 int
13226 main ()
13227 {
13228
13229 ;
13230 return 0;
13231 }
13232 _ACEOF
13233 if ac_fn_cxx_try_link "$LINENO"; then :
13234
13235 lt_aix_libpath_sed='
13236 /Import File Strings/,/^$/ {
13237 /^0/ {
13238 s/^0 *\(.*\)$/\1/
13239 p
13240 }
13241 }'
13242 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13243 # Check for a 64-bit object if we didn't find anything.
13244 if test -z "$aix_libpath"; then
13245 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13246 fi
13247 fi
13248 rm -f core conftest.err conftest.$ac_objext \
13249 conftest$ac_exeext conftest.$ac_ext
13250 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13251
13252 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13253 # Warning - without using the other run time loading flags,
13254 # -berok will link without error, but may produce a broken library.
13255 no_undefined_flag_CXX=' ${wl}-bernotok'
13256 allow_undefined_flag_CXX=' ${wl}-berok'
13257 if test "$with_gnu_ld" = yes; then
13258 # We only use this code for GNU lds that support --whole-archive.
13259 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13260 else
13261 # Exported symbols can be pulled into shared objects from archives
13262 whole_archive_flag_spec_CXX='$convenience'
13263 fi
13264 archive_cmds_need_lc_CXX=yes
13265 # This is similar to how AIX traditionally builds its shared
13266 # libraries.
13267 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'
13268 fi
13269 fi
13270 ;;
13271
13272 beos*)
13273 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13274 allow_undefined_flag_CXX=unsupported
13275 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13276 # support --undefined. This deserves some investigation. FIXME
13277 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13278 else
13279 ld_shlibs_CXX=no
13280 fi
13281 ;;
13282
13283 chorus*)
13284 case $cc_basename in
13285 *)
13286 # FIXME: insert proper C++ library support
13287 ld_shlibs_CXX=no
13288 ;;
13289 esac
13290 ;;
13291
13292 cygwin* | mingw* | pw32* | cegcc*)
13293 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13294 # as there is no search path for DLLs.
13295 hardcode_libdir_flag_spec_CXX='-L$libdir'
13296 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13297 allow_undefined_flag_CXX=unsupported
13298 always_export_symbols_CXX=no
13299 enable_shared_with_static_runtimes_CXX=yes
13300
13301 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13302 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'
13303 # If the export-symbols file already is a .def file (1st line
13304 # is EXPORTS), use it as is; otherwise, prepend...
13305 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13306 cp $export_symbols $output_objdir/$soname.def;
13307 else
13308 echo EXPORTS > $output_objdir/$soname.def;
13309 cat $export_symbols >> $output_objdir/$soname.def;
13310 fi~
13311 $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'
13312 else
13313 ld_shlibs_CXX=no
13314 fi
13315 ;;
13316 darwin* | rhapsody*)
13317
13318
13319 archive_cmds_need_lc_CXX=no
13320 hardcode_direct_CXX=no
13321 hardcode_automatic_CXX=yes
13322 hardcode_shlibpath_var_CXX=unsupported
13323 if test "$lt_cv_ld_force_load" = "yes"; then
13324 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\"`'
13325 else
13326 whole_archive_flag_spec_CXX=''
13327 fi
13328 link_all_deplibs_CXX=yes
13329 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13330 case $cc_basename in
13331 ifort*) _lt_dar_can_shared=yes ;;
13332 *) _lt_dar_can_shared=$GCC ;;
13333 esac
13334 if test "$_lt_dar_can_shared" = "yes"; then
13335 output_verbose_link_cmd=func_echo_all
13336 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13337 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13338 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
13339 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}"
13340 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13341 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
13342 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}"
13343 fi
13344
13345 else
13346 ld_shlibs_CXX=no
13347 fi
13348
13349 ;;
13350
13351 dgux*)
13352 case $cc_basename in
13353 ec++*)
13354 # FIXME: insert proper C++ library support
13355 ld_shlibs_CXX=no
13356 ;;
13357 ghcx*)
13358 # Green Hills C++ Compiler
13359 # FIXME: insert proper C++ library support
13360 ld_shlibs_CXX=no
13361 ;;
13362 *)
13363 # FIXME: insert proper C++ library support
13364 ld_shlibs_CXX=no
13365 ;;
13366 esac
13367 ;;
13368
13369 freebsd2.*)
13370 # C++ shared libraries reported to be fairly broken before
13371 # switch to ELF
13372 ld_shlibs_CXX=no
13373 ;;
13374
13375 freebsd-elf*)
13376 archive_cmds_need_lc_CXX=no
13377 ;;
13378
13379 freebsd* | dragonfly*)
13380 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13381 # conventions
13382 ld_shlibs_CXX=yes
13383 ;;
13384
13385 gnu*)
13386 ;;
13387
13388 haiku*)
13389 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13390 link_all_deplibs_CXX=yes
13391 ;;
13392
13393 hpux9*)
13394 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13395 hardcode_libdir_separator_CXX=:
13396 export_dynamic_flag_spec_CXX='${wl}-E'
13397 hardcode_direct_CXX=yes
13398 hardcode_minus_L_CXX=yes # Not in the search PATH,
13399 # but as the default
13400 # location of the library.
13401
13402 case $cc_basename in
13403 CC*)
13404 # FIXME: insert proper C++ library support
13405 ld_shlibs_CXX=no
13406 ;;
13407 aCC*)
13408 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'
13409 # Commands to make compiler produce verbose output that lists
13410 # what "hidden" libraries, object files and flags are used when
13411 # linking a shared library.
13412 #
13413 # There doesn't appear to be a way to prevent this compiler from
13414 # explicitly linking system object files so we need to strip them
13415 # from the output so that they don't get included in the library
13416 # dependencies.
13417 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"'
13418 ;;
13419 *)
13420 if test "$GXX" = yes; then
13421 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'
13422 else
13423 # FIXME: insert proper C++ library support
13424 ld_shlibs_CXX=no
13425 fi
13426 ;;
13427 esac
13428 ;;
13429
13430 hpux10*|hpux11*)
13431 if test $with_gnu_ld = no; then
13432 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13433 hardcode_libdir_separator_CXX=:
13434
13435 case $host_cpu in
13436 hppa*64*|ia64*)
13437 ;;
13438 *)
13439 export_dynamic_flag_spec_CXX='${wl}-E'
13440 ;;
13441 esac
13442 fi
13443 case $host_cpu in
13444 hppa*64*|ia64*)
13445 hardcode_direct_CXX=no
13446 hardcode_shlibpath_var_CXX=no
13447 ;;
13448 *)
13449 hardcode_direct_CXX=yes
13450 hardcode_direct_absolute_CXX=yes
13451 hardcode_minus_L_CXX=yes # Not in the search PATH,
13452 # but as the default
13453 # location of the library.
13454 ;;
13455 esac
13456
13457 case $cc_basename in
13458 CC*)
13459 # FIXME: insert proper C++ library support
13460 ld_shlibs_CXX=no
13461 ;;
13462 aCC*)
13463 case $host_cpu in
13464 hppa*64*)
13465 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13466 ;;
13467 ia64*)
13468 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13469 ;;
13470 *)
13471 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13472 ;;
13473 esac
13474 # Commands to make compiler produce verbose output that lists
13475 # what "hidden" libraries, object files and flags are used when
13476 # linking a shared library.
13477 #
13478 # There doesn't appear to be a way to prevent this compiler from
13479 # explicitly linking system object files so we need to strip them
13480 # from the output so that they don't get included in the library
13481 # dependencies.
13482 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"'
13483 ;;
13484 *)
13485 if test "$GXX" = yes; then
13486 if test $with_gnu_ld = no; then
13487 case $host_cpu in
13488 hppa*64*)
13489 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13490 ;;
13491 ia64*)
13492 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13493 ;;
13494 *)
13495 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'
13496 ;;
13497 esac
13498 fi
13499 else
13500 # FIXME: insert proper C++ library support
13501 ld_shlibs_CXX=no
13502 fi
13503 ;;
13504 esac
13505 ;;
13506
13507 interix[3-9]*)
13508 hardcode_direct_CXX=no
13509 hardcode_shlibpath_var_CXX=no
13510 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13511 export_dynamic_flag_spec_CXX='${wl}-E'
13512 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13513 # Instead, shared libraries are loaded at an image base (0x10000000 by
13514 # default) and relocated if they conflict, which is a slow very memory
13515 # consuming and fragmenting process. To avoid this, we pick a random,
13516 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13517 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13518 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'
13519 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'
13520 ;;
13521 irix5* | irix6*)
13522 case $cc_basename in
13523 CC*)
13524 # SGI C++
13525 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'
13526
13527 # Archives containing C++ object files must be created using
13528 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13529 # necessary to make sure instantiated templates are included
13530 # in the archive.
13531 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13532 ;;
13533 *)
13534 if test "$GXX" = yes; then
13535 if test "$with_gnu_ld" = no; then
13536 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'
13537 else
13538 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'
13539 fi
13540 fi
13541 link_all_deplibs_CXX=yes
13542 ;;
13543 esac
13544 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13545 hardcode_libdir_separator_CXX=:
13546 inherit_rpath_CXX=yes
13547 ;;
13548
13549 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13550 case $cc_basename in
13551 KCC*)
13552 # Kuck and Associates, Inc. (KAI) C++ Compiler
13553
13554 # KCC will only create a shared library if the output file
13555 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13556 # to its proper name (with version) after linking.
13557 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'
13558 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'
13559 # Commands to make compiler produce verbose output that lists
13560 # what "hidden" libraries, object files and flags are used when
13561 # linking a shared library.
13562 #
13563 # There doesn't appear to be a way to prevent this compiler from
13564 # explicitly linking system object files so we need to strip them
13565 # from the output so that they don't get included in the library
13566 # dependencies.
13567 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"'
13568
13569 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13570 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13571
13572 # Archives containing C++ object files must be created using
13573 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13574 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13575 ;;
13576 icpc* | ecpc* )
13577 # Intel C++
13578 with_gnu_ld=yes
13579 # version 8.0 and above of icpc choke on multiply defined symbols
13580 # if we add $predep_objects and $postdep_objects, however 7.1 and
13581 # earlier do not add the objects themselves.
13582 case `$CC -V 2>&1` in
13583 *"Version 7."*)
13584 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13585 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'
13586 ;;
13587 *) # Version 8.0 or newer
13588 tmp_idyn=
13589 case $host_cpu in
13590 ia64*) tmp_idyn=' -i_dynamic';;
13591 esac
13592 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13593 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'
13594 ;;
13595 esac
13596 archive_cmds_need_lc_CXX=no
13597 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13598 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13599 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13600 ;;
13601 pgCC* | pgcpp*)
13602 # Portland Group C++ compiler
13603 case `$CC -V` in
13604 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13605 prelink_cmds_CXX='tpldir=Template.dir~
13606 rm -rf $tpldir~
13607 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13608 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13609 old_archive_cmds_CXX='tpldir=Template.dir~
13610 rm -rf $tpldir~
13611 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13612 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13613 $RANLIB $oldlib'
13614 archive_cmds_CXX='tpldir=Template.dir~
13615 rm -rf $tpldir~
13616 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13617 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13618 archive_expsym_cmds_CXX='tpldir=Template.dir~
13619 rm -rf $tpldir~
13620 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13621 $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'
13622 ;;
13623 *) # Version 6 and above use weak symbols
13624 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13625 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'
13626 ;;
13627 esac
13628
13629 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13630 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13631 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'
13632 ;;
13633 cxx*)
13634 # Compaq C++
13635 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13636 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'
13637
13638 runpath_var=LD_RUN_PATH
13639 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13640 hardcode_libdir_separator_CXX=:
13641
13642 # Commands to make compiler produce verbose output that lists
13643 # what "hidden" libraries, object files and flags are used when
13644 # linking a shared library.
13645 #
13646 # There doesn't appear to be a way to prevent this compiler from
13647 # explicitly linking system object files so we need to strip them
13648 # from the output so that they don't get included in the library
13649 # dependencies.
13650 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'
13651 ;;
13652 xl* | mpixl* | bgxl*)
13653 # IBM XL 8.0 on PPC, with GNU ld
13654 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13655 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13656 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13657 if test "x$supports_anon_versioning" = xyes; then
13658 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13659 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13660 echo "local: *; };" >> $output_objdir/$libname.ver~
13661 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13662 fi
13663 ;;
13664 *)
13665 case `$CC -V 2>&1 | sed 5q` in
13666 *Sun\ C*)
13667 # Sun C++ 5.9
13668 no_undefined_flag_CXX=' -zdefs'
13669 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13670 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'
13671 hardcode_libdir_flag_spec_CXX='-R$libdir'
13672 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'
13673 compiler_needs_object_CXX=yes
13674
13675 # Not sure whether something based on
13676 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13677 # would be better.
13678 output_verbose_link_cmd='func_echo_all'
13679
13680 # Archives containing C++ object files must be created using
13681 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13682 # necessary to make sure instantiated templates are included
13683 # in the archive.
13684 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13685 ;;
13686 esac
13687 ;;
13688 esac
13689 ;;
13690
13691 lynxos*)
13692 # FIXME: insert proper C++ library support
13693 ld_shlibs_CXX=no
13694 ;;
13695
13696 m88k*)
13697 # FIXME: insert proper C++ library support
13698 ld_shlibs_CXX=no
13699 ;;
13700
13701 mvs*)
13702 case $cc_basename in
13703 cxx*)
13704 # FIXME: insert proper C++ library support
13705 ld_shlibs_CXX=no
13706 ;;
13707 *)
13708 # FIXME: insert proper C++ library support
13709 ld_shlibs_CXX=no
13710 ;;
13711 esac
13712 ;;
13713
13714 netbsd*)
13715 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13716 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13717 wlarc=
13718 hardcode_libdir_flag_spec_CXX='-R$libdir'
13719 hardcode_direct_CXX=yes
13720 hardcode_shlibpath_var_CXX=no
13721 fi
13722 # Workaround some broken pre-1.5 toolchains
13723 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13724 ;;
13725
13726 *nto* | *qnx*)
13727 ld_shlibs_CXX=yes
13728 ;;
13729
13730 openbsd2*)
13731 # C++ shared libraries are fairly broken
13732 ld_shlibs_CXX=no
13733 ;;
13734
13735 openbsd*)
13736 if test -f /usr/libexec/ld.so; then
13737 hardcode_direct_CXX=yes
13738 hardcode_shlibpath_var_CXX=no
13739 hardcode_direct_absolute_CXX=yes
13740 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13741 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13742 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13743 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13744 export_dynamic_flag_spec_CXX='${wl}-E'
13745 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13746 fi
13747 output_verbose_link_cmd=func_echo_all
13748 else
13749 ld_shlibs_CXX=no
13750 fi
13751 ;;
13752
13753 osf3* | osf4* | osf5*)
13754 case $cc_basename in
13755 KCC*)
13756 # Kuck and Associates, Inc. (KAI) C++ Compiler
13757
13758 # KCC will only create a shared library if the output file
13759 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13760 # to its proper name (with version) after linking.
13761 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'
13762
13763 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13764 hardcode_libdir_separator_CXX=:
13765
13766 # Archives containing C++ object files must be created using
13767 # the KAI C++ compiler.
13768 case $host in
13769 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13770 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13771 esac
13772 ;;
13773 RCC*)
13774 # Rational C++ 2.4.1
13775 # FIXME: insert proper C++ library support
13776 ld_shlibs_CXX=no
13777 ;;
13778 cxx*)
13779 case $host in
13780 osf3*)
13781 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13782 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'
13783 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13784 ;;
13785 *)
13786 allow_undefined_flag_CXX=' -expect_unresolved \*'
13787 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'
13788 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13789 echo "-hidden">> $lib.exp~
13790 $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~
13791 $RM $lib.exp'
13792 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13793 ;;
13794 esac
13795
13796 hardcode_libdir_separator_CXX=:
13797
13798 # Commands to make compiler produce verbose output that lists
13799 # what "hidden" libraries, object files and flags are used when
13800 # linking a shared library.
13801 #
13802 # There doesn't appear to be a way to prevent this compiler from
13803 # explicitly linking system object files so we need to strip them
13804 # from the output so that they don't get included in the library
13805 # dependencies.
13806 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"'
13807 ;;
13808 *)
13809 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13810 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13811 case $host in
13812 osf3*)
13813 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'
13814 ;;
13815 *)
13816 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'
13817 ;;
13818 esac
13819
13820 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13821 hardcode_libdir_separator_CXX=:
13822
13823 # Commands to make compiler produce verbose output that lists
13824 # what "hidden" libraries, object files and flags are used when
13825 # linking a shared library.
13826 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13827
13828 else
13829 # FIXME: insert proper C++ library support
13830 ld_shlibs_CXX=no
13831 fi
13832 ;;
13833 esac
13834 ;;
13835
13836 psos*)
13837 # FIXME: insert proper C++ library support
13838 ld_shlibs_CXX=no
13839 ;;
13840
13841 sunos4*)
13842 case $cc_basename in
13843 CC*)
13844 # Sun C++ 4.x
13845 # FIXME: insert proper C++ library support
13846 ld_shlibs_CXX=no
13847 ;;
13848 lcc*)
13849 # Lucid
13850 # FIXME: insert proper C++ library support
13851 ld_shlibs_CXX=no
13852 ;;
13853 *)
13854 # FIXME: insert proper C++ library support
13855 ld_shlibs_CXX=no
13856 ;;
13857 esac
13858 ;;
13859
13860 solaris*)
13861 case $cc_basename in
13862 CC*)
13863 # Sun C++ 4.2, 5.x and Centerline C++
13864 archive_cmds_need_lc_CXX=yes
13865 no_undefined_flag_CXX=' -zdefs'
13866 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13867 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13868 $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'
13869
13870 hardcode_libdir_flag_spec_CXX='-R$libdir'
13871 hardcode_shlibpath_var_CXX=no
13872 case $host_os in
13873 solaris2.[0-5] | solaris2.[0-5].*) ;;
13874 *)
13875 # The compiler driver will combine and reorder linker options,
13876 # but understands `-z linker_flag'.
13877 # Supported since Solaris 2.6 (maybe 2.5.1?)
13878 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13879 ;;
13880 esac
13881 link_all_deplibs_CXX=yes
13882
13883 output_verbose_link_cmd='func_echo_all'
13884
13885 # Archives containing C++ object files must be created using
13886 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13887 # necessary to make sure instantiated templates are included
13888 # in the archive.
13889 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13890 ;;
13891 gcx*)
13892 # Green Hills C++ Compiler
13893 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13894
13895 # The C++ compiler must be used to create the archive.
13896 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13897 ;;
13898 *)
13899 # GNU C++ compiler with Solaris linker
13900 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13901 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13902 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13903 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13904 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13905 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13906
13907 # Commands to make compiler produce verbose output that lists
13908 # what "hidden" libraries, object files and flags are used when
13909 # linking a shared library.
13910 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13911 else
13912 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13913 # platform.
13914 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13915 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13916 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13917
13918 # Commands to make compiler produce verbose output that lists
13919 # what "hidden" libraries, object files and flags are used when
13920 # linking a shared library.
13921 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13922 fi
13923
13924 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13925 case $host_os in
13926 solaris2.[0-5] | solaris2.[0-5].*) ;;
13927 *)
13928 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13929 ;;
13930 esac
13931 fi
13932 ;;
13933 esac
13934 ;;
13935
13936 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13937 no_undefined_flag_CXX='${wl}-z,text'
13938 archive_cmds_need_lc_CXX=no
13939 hardcode_shlibpath_var_CXX=no
13940 runpath_var='LD_RUN_PATH'
13941
13942 case $cc_basename in
13943 CC*)
13944 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13945 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13946 ;;
13947 *)
13948 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13949 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13950 ;;
13951 esac
13952 ;;
13953
13954 sysv5* | sco3.2v5* | sco5v6*)
13955 # Note: We can NOT use -z defs as we might desire, because we do not
13956 # link with -lc, and that would cause any symbols used from libc to
13957 # always be unresolved, which means just about no library would
13958 # ever link correctly. If we're not using GNU ld we use -z text
13959 # though, which does catch some bad symbols but isn't as heavy-handed
13960 # as -z defs.
13961 no_undefined_flag_CXX='${wl}-z,text'
13962 allow_undefined_flag_CXX='${wl}-z,nodefs'
13963 archive_cmds_need_lc_CXX=no
13964 hardcode_shlibpath_var_CXX=no
13965 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13966 hardcode_libdir_separator_CXX=':'
13967 link_all_deplibs_CXX=yes
13968 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13969 runpath_var='LD_RUN_PATH'
13970
13971 case $cc_basename in
13972 CC*)
13973 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13974 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13975 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13976 '"$old_archive_cmds_CXX"
13977 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13978 '"$reload_cmds_CXX"
13979 ;;
13980 *)
13981 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13982 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13983 ;;
13984 esac
13985 ;;
13986
13987 tandem*)
13988 case $cc_basename in
13989 NCC*)
13990 # NonStop-UX NCC 3.20
13991 # FIXME: insert proper C++ library support
13992 ld_shlibs_CXX=no
13993 ;;
13994 *)
13995 # FIXME: insert proper C++ library support
13996 ld_shlibs_CXX=no
13997 ;;
13998 esac
13999 ;;
14000
14001 vxworks*)
14002 # FIXME: insert proper C++ library support
14003 ld_shlibs_CXX=no
14004 ;;
14005
14006 *)
14007 # FIXME: insert proper C++ library support
14008 ld_shlibs_CXX=no
14009 ;;
14010 esac
14011
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14013 $as_echo "$ld_shlibs_CXX" >&6; }
14014 test "$ld_shlibs_CXX" = no && can_build_shared=no
14015
14016 GCC_CXX="$GXX"
14017 LD_CXX="$LD"
14018
14019 ## CAVEAT EMPTOR:
14020 ## There is no encapsulation within the following macros, do not change
14021 ## the running order or otherwise move them around unless you know exactly
14022 ## what you are doing...
14023 # Dependencies to place before and after the object being linked:
14024 predep_objects_CXX=
14025 postdep_objects_CXX=
14026 predeps_CXX=
14027 postdeps_CXX=
14028 compiler_lib_search_path_CXX=
14029
14030 cat > conftest.$ac_ext <<_LT_EOF
14031 class Foo
14032 {
14033 public:
14034 Foo (void) { a = 0; }
14035 private:
14036 int a;
14037 };
14038 _LT_EOF
14039
14040 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14041 (eval $ac_compile) 2>&5
14042 ac_status=$?
14043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14044 test $ac_status = 0; }; then
14045 # Parse the compiler output and extract the necessary
14046 # objects, libraries and library flags.
14047
14048 # Sentinel used to keep track of whether or not we are before
14049 # the conftest object file.
14050 pre_test_object_deps_done=no
14051
14052 for p in `eval "$output_verbose_link_cmd"`; do
14053 case $p in
14054
14055 -L* | -R* | -l*)
14056 # Some compilers place space between "-{L,R}" and the path.
14057 # Remove the space.
14058 if test $p = "-L" ||
14059 test $p = "-R"; then
14060 prev=$p
14061 continue
14062 else
14063 prev=
14064 fi
14065
14066 if test "$pre_test_object_deps_done" = no; then
14067 case $p in
14068 -L* | -R*)
14069 # Internal compiler library paths should come after those
14070 # provided the user. The postdeps already come after the
14071 # user supplied libs so there is no need to process them.
14072 if test -z "$compiler_lib_search_path_CXX"; then
14073 compiler_lib_search_path_CXX="${prev}${p}"
14074 else
14075 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14076 fi
14077 ;;
14078 # The "-l" case would never come before the object being
14079 # linked, so don't bother handling this case.
14080 esac
14081 else
14082 if test -z "$postdeps_CXX"; then
14083 postdeps_CXX="${prev}${p}"
14084 else
14085 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14086 fi
14087 fi
14088 ;;
14089
14090 *.$objext)
14091 # This assumes that the test object file only shows up
14092 # once in the compiler output.
14093 if test "$p" = "conftest.$objext"; then
14094 pre_test_object_deps_done=yes
14095 continue
14096 fi
14097
14098 if test "$pre_test_object_deps_done" = no; then
14099 if test -z "$predep_objects_CXX"; then
14100 predep_objects_CXX="$p"
14101 else
14102 predep_objects_CXX="$predep_objects_CXX $p"
14103 fi
14104 else
14105 if test -z "$postdep_objects_CXX"; then
14106 postdep_objects_CXX="$p"
14107 else
14108 postdep_objects_CXX="$postdep_objects_CXX $p"
14109 fi
14110 fi
14111 ;;
14112
14113 *) ;; # Ignore the rest.
14114
14115 esac
14116 done
14117
14118 # Clean up.
14119 rm -f a.out a.exe
14120 else
14121 echo "libtool.m4: error: problem compiling CXX test program"
14122 fi
14123
14124 $RM -f confest.$objext
14125
14126 # PORTME: override above test on systems where it is broken
14127 case $host_os in
14128 interix[3-9]*)
14129 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14130 # hack all around it, let's just trust "g++" to DTRT.
14131 predep_objects_CXX=
14132 postdep_objects_CXX=
14133 postdeps_CXX=
14134 ;;
14135
14136 linux*)
14137 case `$CC -V 2>&1 | sed 5q` in
14138 *Sun\ C*)
14139 # Sun C++ 5.9
14140
14141 # The more standards-conforming stlport4 library is
14142 # incompatible with the Cstd library. Avoid specifying
14143 # it if it's in CXXFLAGS. Ignore libCrun as
14144 # -library=stlport4 depends on it.
14145 case " $CXX $CXXFLAGS " in
14146 *" -library=stlport4 "*)
14147 solaris_use_stlport4=yes
14148 ;;
14149 esac
14150
14151 if test "$solaris_use_stlport4" != yes; then
14152 postdeps_CXX='-library=Cstd -library=Crun'
14153 fi
14154 ;;
14155 esac
14156 ;;
14157
14158 solaris*)
14159 case $cc_basename in
14160 CC*)
14161 # The more standards-conforming stlport4 library is
14162 # incompatible with the Cstd library. Avoid specifying
14163 # it if it's in CXXFLAGS. Ignore libCrun as
14164 # -library=stlport4 depends on it.
14165 case " $CXX $CXXFLAGS " in
14166 *" -library=stlport4 "*)
14167 solaris_use_stlport4=yes
14168 ;;
14169 esac
14170
14171 # Adding this requires a known-good setup of shared libraries for
14172 # Sun compiler versions before 5.6, else PIC objects from an old
14173 # archive will be linked into the output, leading to subtle bugs.
14174 if test "$solaris_use_stlport4" != yes; then
14175 postdeps_CXX='-library=Cstd -library=Crun'
14176 fi
14177 ;;
14178 esac
14179 ;;
14180 esac
14181
14182
14183 case " $postdeps_CXX " in
14184 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14185 esac
14186 compiler_lib_search_dirs_CXX=
14187 if test -n "${compiler_lib_search_path_CXX}"; then
14188 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14189 fi
14190
14191
14192
14193
14194
14195
14196
14197
14198
14199
14200
14201
14202
14203
14204
14205
14206
14207
14208
14209
14210
14211
14212
14213
14214
14215
14216
14217
14218
14219
14220
14221 lt_prog_compiler_wl_CXX=
14222 lt_prog_compiler_pic_CXX=
14223 lt_prog_compiler_static_CXX=
14224
14225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14226 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14227
14228 # C++ specific cases for pic, static, wl, etc.
14229 if test "$GXX" = yes; then
14230 lt_prog_compiler_wl_CXX='-Wl,'
14231 lt_prog_compiler_static_CXX='-static'
14232
14233 case $host_os in
14234 aix*)
14235 # All AIX code is PIC.
14236 if test "$host_cpu" = ia64; then
14237 # AIX 5 now supports IA64 processor
14238 lt_prog_compiler_static_CXX='-Bstatic'
14239 fi
14240 lt_prog_compiler_pic_CXX='-fPIC'
14241 ;;
14242
14243 amigaos*)
14244 case $host_cpu in
14245 powerpc)
14246 # see comment about AmigaOS4 .so support
14247 lt_prog_compiler_pic_CXX='-fPIC'
14248 ;;
14249 m68k)
14250 # FIXME: we need at least 68020 code to build shared libraries, but
14251 # adding the `-m68020' flag to GCC prevents building anything better,
14252 # like `-m68040'.
14253 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14254 ;;
14255 esac
14256 ;;
14257
14258 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14259 # PIC is the default for these OSes.
14260 ;;
14261 mingw* | cygwin* | os2* | pw32* | cegcc*)
14262 # This hack is so that the source file can tell whether it is being
14263 # built for inclusion in a dll (and should export symbols for example).
14264 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14265 # (--disable-auto-import) libraries
14266 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14267 ;;
14268 darwin* | rhapsody*)
14269 # PIC is the default on this platform
14270 # Common symbols not allowed in MH_DYLIB files
14271 lt_prog_compiler_pic_CXX='-fno-common'
14272 ;;
14273 *djgpp*)
14274 # DJGPP does not support shared libraries at all
14275 lt_prog_compiler_pic_CXX=
14276 ;;
14277 haiku*)
14278 # PIC is the default for Haiku.
14279 # The "-static" flag exists, but is broken.
14280 lt_prog_compiler_static_CXX=
14281 ;;
14282 interix[3-9]*)
14283 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14284 # Instead, we relocate shared libraries at runtime.
14285 ;;
14286 sysv4*MP*)
14287 if test -d /usr/nec; then
14288 lt_prog_compiler_pic_CXX=-Kconform_pic
14289 fi
14290 ;;
14291 hpux*)
14292 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14293 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14294 # sets the default TLS model and affects inlining.
14295 case $host_cpu in
14296 hppa*64*)
14297 ;;
14298 *)
14299 lt_prog_compiler_pic_CXX='-fPIC'
14300 ;;
14301 esac
14302 ;;
14303 *qnx* | *nto*)
14304 # QNX uses GNU C++, but need to define -shared option too, otherwise
14305 # it will coredump.
14306 lt_prog_compiler_pic_CXX='-fPIC -shared'
14307 ;;
14308 *)
14309 lt_prog_compiler_pic_CXX='-fPIC'
14310 ;;
14311 esac
14312 else
14313 case $host_os in
14314 aix[4-9]*)
14315 # All AIX code is PIC.
14316 if test "$host_cpu" = ia64; then
14317 # AIX 5 now supports IA64 processor
14318 lt_prog_compiler_static_CXX='-Bstatic'
14319 else
14320 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14321 fi
14322 ;;
14323 chorus*)
14324 case $cc_basename in
14325 cxch68*)
14326 # Green Hills C++ Compiler
14327 # _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"
14328 ;;
14329 esac
14330 ;;
14331 dgux*)
14332 case $cc_basename in
14333 ec++*)
14334 lt_prog_compiler_pic_CXX='-KPIC'
14335 ;;
14336 ghcx*)
14337 # Green Hills C++ Compiler
14338 lt_prog_compiler_pic_CXX='-pic'
14339 ;;
14340 *)
14341 ;;
14342 esac
14343 ;;
14344 freebsd* | dragonfly*)
14345 # FreeBSD uses GNU C++
14346 ;;
14347 hpux9* | hpux10* | hpux11*)
14348 case $cc_basename in
14349 CC*)
14350 lt_prog_compiler_wl_CXX='-Wl,'
14351 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14352 if test "$host_cpu" != ia64; then
14353 lt_prog_compiler_pic_CXX='+Z'
14354 fi
14355 ;;
14356 aCC*)
14357 lt_prog_compiler_wl_CXX='-Wl,'
14358 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14359 case $host_cpu in
14360 hppa*64*|ia64*)
14361 # +Z the default
14362 ;;
14363 *)
14364 lt_prog_compiler_pic_CXX='+Z'
14365 ;;
14366 esac
14367 ;;
14368 *)
14369 ;;
14370 esac
14371 ;;
14372 interix*)
14373 # This is c89, which is MS Visual C++ (no shared libs)
14374 # Anyone wants to do a port?
14375 ;;
14376 irix5* | irix6* | nonstopux*)
14377 case $cc_basename in
14378 CC*)
14379 lt_prog_compiler_wl_CXX='-Wl,'
14380 lt_prog_compiler_static_CXX='-non_shared'
14381 # CC pic flag -KPIC is the default.
14382 ;;
14383 *)
14384 ;;
14385 esac
14386 ;;
14387 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14388 case $cc_basename in
14389 KCC*)
14390 # KAI C++ Compiler
14391 lt_prog_compiler_wl_CXX='--backend -Wl,'
14392 lt_prog_compiler_pic_CXX='-fPIC'
14393 ;;
14394 ecpc* )
14395 # old Intel C++ for x86_64 which still supported -KPIC.
14396 lt_prog_compiler_wl_CXX='-Wl,'
14397 lt_prog_compiler_pic_CXX='-KPIC'
14398 lt_prog_compiler_static_CXX='-static'
14399 ;;
14400 icpc* )
14401 # Intel C++, used to be incompatible with GCC.
14402 # ICC 10 doesn't accept -KPIC any more.
14403 lt_prog_compiler_wl_CXX='-Wl,'
14404 lt_prog_compiler_pic_CXX='-fPIC'
14405 lt_prog_compiler_static_CXX='-static'
14406 ;;
14407 pgCC* | pgcpp*)
14408 # Portland Group C++ compiler
14409 lt_prog_compiler_wl_CXX='-Wl,'
14410 lt_prog_compiler_pic_CXX='-fpic'
14411 lt_prog_compiler_static_CXX='-Bstatic'
14412 ;;
14413 cxx*)
14414 # Compaq C++
14415 # Make sure the PIC flag is empty. It appears that all Alpha
14416 # Linux and Compaq Tru64 Unix objects are PIC.
14417 lt_prog_compiler_pic_CXX=
14418 lt_prog_compiler_static_CXX='-non_shared'
14419 ;;
14420 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14421 # IBM XL 8.0, 9.0 on PPC and BlueGene
14422 lt_prog_compiler_wl_CXX='-Wl,'
14423 lt_prog_compiler_pic_CXX='-qpic'
14424 lt_prog_compiler_static_CXX='-qstaticlink'
14425 ;;
14426 *)
14427 case `$CC -V 2>&1 | sed 5q` in
14428 *Sun\ C*)
14429 # Sun C++ 5.9
14430 lt_prog_compiler_pic_CXX='-KPIC'
14431 lt_prog_compiler_static_CXX='-Bstatic'
14432 lt_prog_compiler_wl_CXX='-Qoption ld '
14433 ;;
14434 esac
14435 ;;
14436 esac
14437 ;;
14438 lynxos*)
14439 ;;
14440 m88k*)
14441 ;;
14442 mvs*)
14443 case $cc_basename in
14444 cxx*)
14445 lt_prog_compiler_pic_CXX='-W c,exportall'
14446 ;;
14447 *)
14448 ;;
14449 esac
14450 ;;
14451 netbsd*)
14452 ;;
14453 *qnx* | *nto*)
14454 # QNX uses GNU C++, but need to define -shared option too, otherwise
14455 # it will coredump.
14456 lt_prog_compiler_pic_CXX='-fPIC -shared'
14457 ;;
14458 osf3* | osf4* | osf5*)
14459 case $cc_basename in
14460 KCC*)
14461 lt_prog_compiler_wl_CXX='--backend -Wl,'
14462 ;;
14463 RCC*)
14464 # Rational C++ 2.4.1
14465 lt_prog_compiler_pic_CXX='-pic'
14466 ;;
14467 cxx*)
14468 # Digital/Compaq C++
14469 lt_prog_compiler_wl_CXX='-Wl,'
14470 # Make sure the PIC flag is empty. It appears that all Alpha
14471 # Linux and Compaq Tru64 Unix objects are PIC.
14472 lt_prog_compiler_pic_CXX=
14473 lt_prog_compiler_static_CXX='-non_shared'
14474 ;;
14475 *)
14476 ;;
14477 esac
14478 ;;
14479 psos*)
14480 ;;
14481 solaris*)
14482 case $cc_basename in
14483 CC*)
14484 # Sun C++ 4.2, 5.x and Centerline C++
14485 lt_prog_compiler_pic_CXX='-KPIC'
14486 lt_prog_compiler_static_CXX='-Bstatic'
14487 lt_prog_compiler_wl_CXX='-Qoption ld '
14488 ;;
14489 gcx*)
14490 # Green Hills C++ Compiler
14491 lt_prog_compiler_pic_CXX='-PIC'
14492 ;;
14493 *)
14494 ;;
14495 esac
14496 ;;
14497 sunos4*)
14498 case $cc_basename in
14499 CC*)
14500 # Sun C++ 4.x
14501 lt_prog_compiler_pic_CXX='-pic'
14502 lt_prog_compiler_static_CXX='-Bstatic'
14503 ;;
14504 lcc*)
14505 # Lucid
14506 lt_prog_compiler_pic_CXX='-pic'
14507 ;;
14508 *)
14509 ;;
14510 esac
14511 ;;
14512 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14513 case $cc_basename in
14514 CC*)
14515 lt_prog_compiler_wl_CXX='-Wl,'
14516 lt_prog_compiler_pic_CXX='-KPIC'
14517 lt_prog_compiler_static_CXX='-Bstatic'
14518 ;;
14519 esac
14520 ;;
14521 tandem*)
14522 case $cc_basename in
14523 NCC*)
14524 # NonStop-UX NCC 3.20
14525 lt_prog_compiler_pic_CXX='-KPIC'
14526 ;;
14527 *)
14528 ;;
14529 esac
14530 ;;
14531 vxworks*)
14532 ;;
14533 *)
14534 lt_prog_compiler_can_build_shared_CXX=no
14535 ;;
14536 esac
14537 fi
14538
14539 case $host_os in
14540 # For platforms which do not support PIC, -DPIC is meaningless:
14541 *djgpp*)
14542 lt_prog_compiler_pic_CXX=
14543 ;;
14544 *)
14545 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14546 ;;
14547 esac
14548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14549 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14550
14551
14552
14553 #
14554 # Check to make sure the PIC flag actually works.
14555 #
14556 if test -n "$lt_prog_compiler_pic_CXX"; then
14557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14558 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14559 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14560 $as_echo_n "(cached) " >&6
14561 else
14562 lt_cv_prog_compiler_pic_works_CXX=no
14563 ac_outfile=conftest.$ac_objext
14564 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14565 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14566 # Insert the option either (1) after the last *FLAGS variable, or
14567 # (2) before a word containing "conftest.", or (3) at the end.
14568 # Note that $ac_compile itself does not contain backslashes and begins
14569 # with a dollar sign (not a hyphen), so the echo should work correctly.
14570 # The option is referenced via a variable to avoid confusing sed.
14571 lt_compile=`echo "$ac_compile" | $SED \
14572 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14573 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14574 -e 's:$: $lt_compiler_flag:'`
14575 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14576 (eval "$lt_compile" 2>conftest.err)
14577 ac_status=$?
14578 cat conftest.err >&5
14579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14580 if (exit $ac_status) && test -s "$ac_outfile"; then
14581 # The compiler can only warn and ignore the option if not recognized
14582 # So say no if there are warnings other than the usual output.
14583 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14584 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14585 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14586 lt_cv_prog_compiler_pic_works_CXX=yes
14587 fi
14588 fi
14589 $RM conftest*
14590
14591 fi
14592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14593 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14594
14595 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14596 case $lt_prog_compiler_pic_CXX in
14597 "" | " "*) ;;
14598 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14599 esac
14600 else
14601 lt_prog_compiler_pic_CXX=
14602 lt_prog_compiler_can_build_shared_CXX=no
14603 fi
14604
14605 fi
14606
14607
14608
14609 #
14610 # Check to make sure the static flag actually works.
14611 #
14612 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14614 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14615 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14616 $as_echo_n "(cached) " >&6
14617 else
14618 lt_cv_prog_compiler_static_works_CXX=no
14619 save_LDFLAGS="$LDFLAGS"
14620 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14621 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14622 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14623 # The linker can only warn and ignore the option if not recognized
14624 # So say no if there are warnings
14625 if test -s conftest.err; then
14626 # Append any errors to the config.log.
14627 cat conftest.err 1>&5
14628 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14629 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14630 if diff conftest.exp conftest.er2 >/dev/null; then
14631 lt_cv_prog_compiler_static_works_CXX=yes
14632 fi
14633 else
14634 lt_cv_prog_compiler_static_works_CXX=yes
14635 fi
14636 fi
14637 $RM -r conftest*
14638 LDFLAGS="$save_LDFLAGS"
14639
14640 fi
14641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14642 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14643
14644 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14645 :
14646 else
14647 lt_prog_compiler_static_CXX=
14648 fi
14649
14650
14651
14652
14653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14654 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14655 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14656 $as_echo_n "(cached) " >&6
14657 else
14658 lt_cv_prog_compiler_c_o_CXX=no
14659 $RM -r conftest 2>/dev/null
14660 mkdir conftest
14661 cd conftest
14662 mkdir out
14663 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14664
14665 lt_compiler_flag="-o out/conftest2.$ac_objext"
14666 # Insert the option either (1) after the last *FLAGS variable, or
14667 # (2) before a word containing "conftest.", or (3) at the end.
14668 # Note that $ac_compile itself does not contain backslashes and begins
14669 # with a dollar sign (not a hyphen), so the echo should work correctly.
14670 lt_compile=`echo "$ac_compile" | $SED \
14671 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14672 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14673 -e 's:$: $lt_compiler_flag:'`
14674 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14675 (eval "$lt_compile" 2>out/conftest.err)
14676 ac_status=$?
14677 cat out/conftest.err >&5
14678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14679 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14680 then
14681 # The compiler can only warn and ignore the option if not recognized
14682 # So say no if there are warnings
14683 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14684 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14685 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14686 lt_cv_prog_compiler_c_o_CXX=yes
14687 fi
14688 fi
14689 chmod u+w . 2>&5
14690 $RM conftest*
14691 # SGI C++ compiler will create directory out/ii_files/ for
14692 # template instantiation
14693 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14694 $RM out/* && rmdir out
14695 cd ..
14696 $RM -r conftest
14697 $RM conftest*
14698
14699 fi
14700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14701 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14702
14703
14704
14705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14706 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14707 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14708 $as_echo_n "(cached) " >&6
14709 else
14710 lt_cv_prog_compiler_c_o_CXX=no
14711 $RM -r conftest 2>/dev/null
14712 mkdir conftest
14713 cd conftest
14714 mkdir out
14715 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14716
14717 lt_compiler_flag="-o out/conftest2.$ac_objext"
14718 # Insert the option either (1) after the last *FLAGS variable, or
14719 # (2) before a word containing "conftest.", or (3) at the end.
14720 # Note that $ac_compile itself does not contain backslashes and begins
14721 # with a dollar sign (not a hyphen), so the echo should work correctly.
14722 lt_compile=`echo "$ac_compile" | $SED \
14723 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14724 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14725 -e 's:$: $lt_compiler_flag:'`
14726 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14727 (eval "$lt_compile" 2>out/conftest.err)
14728 ac_status=$?
14729 cat out/conftest.err >&5
14730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14731 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14732 then
14733 # The compiler can only warn and ignore the option if not recognized
14734 # So say no if there are warnings
14735 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14736 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14737 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14738 lt_cv_prog_compiler_c_o_CXX=yes
14739 fi
14740 fi
14741 chmod u+w . 2>&5
14742 $RM conftest*
14743 # SGI C++ compiler will create directory out/ii_files/ for
14744 # template instantiation
14745 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14746 $RM out/* && rmdir out
14747 cd ..
14748 $RM -r conftest
14749 $RM conftest*
14750
14751 fi
14752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14753 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14754
14755
14756
14757
14758 hard_links="nottested"
14759 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14760 # do not overwrite the value of need_locks provided by the user
14761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14762 $as_echo_n "checking if we can lock with hard links... " >&6; }
14763 hard_links=yes
14764 $RM conftest*
14765 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14766 touch conftest.a
14767 ln conftest.a conftest.b 2>&5 || hard_links=no
14768 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14770 $as_echo "$hard_links" >&6; }
14771 if test "$hard_links" = no; then
14772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14773 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14774 need_locks=warn
14775 fi
14776 else
14777 need_locks=no
14778 fi
14779
14780
14781
14782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14783 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14784
14785 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14786 case $host_os in
14787 aix[4-9]*)
14788 # If we're using GNU nm, then we don't want the "-C" option.
14789 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14790 # Also, AIX nm treats weak defined symbols like other global defined
14791 # symbols, whereas GNU nm marks them as "W".
14792 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14793 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'
14794 else
14795 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'
14796 fi
14797 ;;
14798 pw32*)
14799 export_symbols_cmds_CXX="$ltdll_cmds"
14800 ;;
14801 cygwin* | mingw* | cegcc*)
14802 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'
14803 ;;
14804 *)
14805 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14806 ;;
14807 esac
14808 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14809
14810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14811 $as_echo "$ld_shlibs_CXX" >&6; }
14812 test "$ld_shlibs_CXX" = no && can_build_shared=no
14813
14814 with_gnu_ld_CXX=$with_gnu_ld
14815
14816
14817
14818
14819
14820
14821 #
14822 # Do we need to explicitly link libc?
14823 #
14824 case "x$archive_cmds_need_lc_CXX" in
14825 x|xyes)
14826 # Assume -lc should be added
14827 archive_cmds_need_lc_CXX=yes
14828
14829 if test "$enable_shared" = yes && test "$GCC" = yes; then
14830 case $archive_cmds_CXX in
14831 *'~'*)
14832 # FIXME: we may have to deal with multi-command sequences.
14833 ;;
14834 '$CC '*)
14835 # Test whether the compiler implicitly links with -lc since on some
14836 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14837 # to ld, don't add -lc before -lgcc.
14838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14839 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14840 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14841 $as_echo_n "(cached) " >&6
14842 else
14843 $RM conftest*
14844 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14845
14846 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14847 (eval $ac_compile) 2>&5
14848 ac_status=$?
14849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14850 test $ac_status = 0; } 2>conftest.err; then
14851 soname=conftest
14852 lib=conftest
14853 libobjs=conftest.$ac_objext
14854 deplibs=
14855 wl=$lt_prog_compiler_wl_CXX
14856 pic_flag=$lt_prog_compiler_pic_CXX
14857 compiler_flags=-v
14858 linker_flags=-v
14859 verstring=
14860 output_objdir=.
14861 libname=conftest
14862 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14863 allow_undefined_flag_CXX=
14864 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14865 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14866 ac_status=$?
14867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14868 test $ac_status = 0; }
14869 then
14870 lt_cv_archive_cmds_need_lc_CXX=no
14871 else
14872 lt_cv_archive_cmds_need_lc_CXX=yes
14873 fi
14874 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14875 else
14876 cat conftest.err 1>&5
14877 fi
14878 $RM conftest*
14879
14880 fi
14881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14882 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14883 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14884 ;;
14885 esac
14886 fi
14887 ;;
14888 esac
14889
14890
14891
14892
14893
14894
14895
14896
14897
14898
14899
14900
14901
14902
14903
14904
14905
14906
14907
14908
14909
14910
14911
14912
14913
14914
14915
14916
14917
14918
14919
14920
14921
14922
14923
14924
14925
14926
14927
14928
14929
14930
14931
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942
14943
14944
14945
14946
14947
14948
14949
14950
14951
14952
14953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14954 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14955
14956 library_names_spec=
14957 libname_spec='lib$name'
14958 soname_spec=
14959 shrext_cmds=".so"
14960 postinstall_cmds=
14961 postuninstall_cmds=
14962 finish_cmds=
14963 finish_eval=
14964 shlibpath_var=
14965 shlibpath_overrides_runpath=unknown
14966 version_type=none
14967 dynamic_linker="$host_os ld.so"
14968 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14969 need_lib_prefix=unknown
14970 hardcode_into_libs=no
14971
14972 # when you set need_version to no, make sure it does not cause -set_version
14973 # flags to be left without arguments
14974 need_version=unknown
14975
14976 case $host_os in
14977 aix3*)
14978 version_type=linux
14979 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14980 shlibpath_var=LIBPATH
14981
14982 # AIX 3 has no versioning support, so we append a major version to the name.
14983 soname_spec='${libname}${release}${shared_ext}$major'
14984 ;;
14985
14986 aix[4-9]*)
14987 version_type=linux
14988 need_lib_prefix=no
14989 need_version=no
14990 hardcode_into_libs=yes
14991 if test "$host_cpu" = ia64; then
14992 # AIX 5 supports IA64
14993 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14994 shlibpath_var=LD_LIBRARY_PATH
14995 else
14996 # With GCC up to 2.95.x, collect2 would create an import file
14997 # for dependence libraries. The import file would start with
14998 # the line `#! .'. This would cause the generated library to
14999 # depend on `.', always an invalid library. This was fixed in
15000 # development snapshots of GCC prior to 3.0.
15001 case $host_os in
15002 aix4 | aix4.[01] | aix4.[01].*)
15003 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15004 echo ' yes '
15005 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15006 :
15007 else
15008 can_build_shared=no
15009 fi
15010 ;;
15011 esac
15012 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15013 # soname into executable. Probably we can add versioning support to
15014 # collect2, so additional links can be useful in future.
15015 if test "$aix_use_runtimelinking" = yes; then
15016 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15017 # instead of lib<name>.a to let people know that these are not
15018 # typical AIX shared libraries.
15019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15020 else
15021 # We preserve .a as extension for shared libraries through AIX4.2
15022 # and later when we are not doing run time linking.
15023 library_names_spec='${libname}${release}.a $libname.a'
15024 soname_spec='${libname}${release}${shared_ext}$major'
15025 fi
15026 shlibpath_var=LIBPATH
15027 fi
15028 ;;
15029
15030 amigaos*)
15031 case $host_cpu in
15032 powerpc)
15033 # Since July 2007 AmigaOS4 officially supports .so libraries.
15034 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15036 ;;
15037 m68k)
15038 library_names_spec='$libname.ixlibrary $libname.a'
15039 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15040 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'
15041 ;;
15042 esac
15043 ;;
15044
15045 beos*)
15046 library_names_spec='${libname}${shared_ext}'
15047 dynamic_linker="$host_os ld.so"
15048 shlibpath_var=LIBRARY_PATH
15049 ;;
15050
15051 bsdi[45]*)
15052 version_type=linux
15053 need_version=no
15054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15055 soname_spec='${libname}${release}${shared_ext}$major'
15056 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15057 shlibpath_var=LD_LIBRARY_PATH
15058 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15059 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15060 # the default ld.so.conf also contains /usr/contrib/lib and
15061 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15062 # libtool to hard-code these into programs
15063 ;;
15064
15065 cygwin* | mingw* | pw32* | cegcc*)
15066 version_type=windows
15067 shrext_cmds=".dll"
15068 need_version=no
15069 need_lib_prefix=no
15070
15071 case $GCC,$host_os in
15072 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15073 library_names_spec='$libname.dll.a'
15074 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15075 postinstall_cmds='base_file=`basename \${file}`~
15076 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15077 dldir=$destdir/`dirname \$dlpath`~
15078 test -d \$dldir || mkdir -p \$dldir~
15079 $install_prog $dir/$dlname \$dldir/$dlname~
15080 chmod a+x \$dldir/$dlname~
15081 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15082 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15083 fi'
15084 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15085 dlpath=$dir/\$dldll~
15086 $RM \$dlpath'
15087 shlibpath_overrides_runpath=yes
15088
15089 case $host_os in
15090 cygwin*)
15091 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15092 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15093
15094 ;;
15095 mingw* | cegcc*)
15096 # MinGW DLLs use traditional 'lib' prefix
15097 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15098 ;;
15099 pw32*)
15100 # pw32 DLLs use 'pw' prefix rather than 'lib'
15101 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15102 ;;
15103 esac
15104 ;;
15105
15106 *)
15107 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15108 ;;
15109 esac
15110 dynamic_linker='Win32 ld.exe'
15111 # FIXME: first we should search . and the directory the executable is in
15112 shlibpath_var=PATH
15113 ;;
15114
15115 darwin* | rhapsody*)
15116 dynamic_linker="$host_os dyld"
15117 version_type=darwin
15118 need_lib_prefix=no
15119 need_version=no
15120 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15121 soname_spec='${libname}${release}${major}$shared_ext'
15122 shlibpath_overrides_runpath=yes
15123 shlibpath_var=DYLD_LIBRARY_PATH
15124 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15125
15126 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15127 ;;
15128
15129 dgux*)
15130 version_type=linux
15131 need_lib_prefix=no
15132 need_version=no
15133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15134 soname_spec='${libname}${release}${shared_ext}$major'
15135 shlibpath_var=LD_LIBRARY_PATH
15136 ;;
15137
15138 freebsd* | dragonfly*)
15139 # DragonFly does not have aout. When/if they implement a new
15140 # versioning mechanism, adjust this.
15141 if test -x /usr/bin/objformat; then
15142 objformat=`/usr/bin/objformat`
15143 else
15144 case $host_os in
15145 freebsd[23].*) objformat=aout ;;
15146 *) objformat=elf ;;
15147 esac
15148 fi
15149 version_type=freebsd-$objformat
15150 case $version_type in
15151 freebsd-elf*)
15152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15153 need_version=no
15154 need_lib_prefix=no
15155 ;;
15156 freebsd-*)
15157 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15158 need_version=yes
15159 ;;
15160 esac
15161 shlibpath_var=LD_LIBRARY_PATH
15162 case $host_os in
15163 freebsd2.*)
15164 shlibpath_overrides_runpath=yes
15165 ;;
15166 freebsd3.[01]* | freebsdelf3.[01]*)
15167 shlibpath_overrides_runpath=yes
15168 hardcode_into_libs=yes
15169 ;;
15170 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15171 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15172 shlibpath_overrides_runpath=no
15173 hardcode_into_libs=yes
15174 ;;
15175 *) # from 4.6 on, and DragonFly
15176 shlibpath_overrides_runpath=yes
15177 hardcode_into_libs=yes
15178 ;;
15179 esac
15180 ;;
15181
15182 gnu*)
15183 version_type=linux
15184 need_lib_prefix=no
15185 need_version=no
15186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15187 soname_spec='${libname}${release}${shared_ext}$major'
15188 shlibpath_var=LD_LIBRARY_PATH
15189 hardcode_into_libs=yes
15190 ;;
15191
15192 haiku*)
15193 version_type=linux
15194 need_lib_prefix=no
15195 need_version=no
15196 dynamic_linker="$host_os runtime_loader"
15197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15198 soname_spec='${libname}${release}${shared_ext}$major'
15199 shlibpath_var=LIBRARY_PATH
15200 shlibpath_overrides_runpath=yes
15201 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
15202 hardcode_into_libs=yes
15203 ;;
15204
15205 hpux9* | hpux10* | hpux11*)
15206 # Give a soname corresponding to the major version so that dld.sl refuses to
15207 # link against other versions.
15208 version_type=sunos
15209 need_lib_prefix=no
15210 need_version=no
15211 case $host_cpu in
15212 ia64*)
15213 shrext_cmds='.so'
15214 hardcode_into_libs=yes
15215 dynamic_linker="$host_os dld.so"
15216 shlibpath_var=LD_LIBRARY_PATH
15217 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15219 soname_spec='${libname}${release}${shared_ext}$major'
15220 if test "X$HPUX_IA64_MODE" = X32; then
15221 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15222 else
15223 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15224 fi
15225 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15226 ;;
15227 hppa*64*)
15228 shrext_cmds='.sl'
15229 hardcode_into_libs=yes
15230 dynamic_linker="$host_os dld.sl"
15231 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15232 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15234 soname_spec='${libname}${release}${shared_ext}$major'
15235 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15236 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15237 ;;
15238 *)
15239 shrext_cmds='.sl'
15240 dynamic_linker="$host_os dld.sl"
15241 shlibpath_var=SHLIB_PATH
15242 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15244 soname_spec='${libname}${release}${shared_ext}$major'
15245 ;;
15246 esac
15247 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15248 postinstall_cmds='chmod 555 $lib'
15249 # or fails outright, so override atomically:
15250 install_override_mode=555
15251 ;;
15252
15253 interix[3-9]*)
15254 version_type=linux
15255 need_lib_prefix=no
15256 need_version=no
15257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15258 soname_spec='${libname}${release}${shared_ext}$major'
15259 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15260 shlibpath_var=LD_LIBRARY_PATH
15261 shlibpath_overrides_runpath=no
15262 hardcode_into_libs=yes
15263 ;;
15264
15265 irix5* | irix6* | nonstopux*)
15266 case $host_os in
15267 nonstopux*) version_type=nonstopux ;;
15268 *)
15269 if test "$lt_cv_prog_gnu_ld" = yes; then
15270 version_type=linux
15271 else
15272 version_type=irix
15273 fi ;;
15274 esac
15275 need_lib_prefix=no
15276 need_version=no
15277 soname_spec='${libname}${release}${shared_ext}$major'
15278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15279 case $host_os in
15280 irix5* | nonstopux*)
15281 libsuff= shlibsuff=
15282 ;;
15283 *)
15284 case $LD in # libtool.m4 will add one of these switches to LD
15285 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15286 libsuff= shlibsuff= libmagic=32-bit;;
15287 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15288 libsuff=32 shlibsuff=N32 libmagic=N32;;
15289 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15290 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15291 *) libsuff= shlibsuff= libmagic=never-match;;
15292 esac
15293 ;;
15294 esac
15295 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15296 shlibpath_overrides_runpath=no
15297 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15298 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15299 hardcode_into_libs=yes
15300 ;;
15301
15302 # No shared lib support for Linux oldld, aout, or coff.
15303 linux*oldld* | linux*aout* | linux*coff*)
15304 dynamic_linker=no
15305 ;;
15306
15307 # This must be Linux ELF.
15308
15309 # uclinux* changes (here and below) have been submitted to the libtool
15310 # project, but have not yet been accepted: they are GCC-local changes
15311 # for the time being. (See
15312 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
15313 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
15314 version_type=linux
15315 need_lib_prefix=no
15316 need_version=no
15317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15318 soname_spec='${libname}${release}${shared_ext}$major'
15319 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15320 shlibpath_var=LD_LIBRARY_PATH
15321 shlibpath_overrides_runpath=no
15322
15323 # Some binutils ld are patched to set DT_RUNPATH
15324 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15325 $as_echo_n "(cached) " >&6
15326 else
15327 lt_cv_shlibpath_overrides_runpath=no
15328 save_LDFLAGS=$LDFLAGS
15329 save_libdir=$libdir
15330 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15331 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15333 /* end confdefs.h. */
15334
15335 int
15336 main ()
15337 {
15338
15339 ;
15340 return 0;
15341 }
15342 _ACEOF
15343 if ac_fn_cxx_try_link "$LINENO"; then :
15344 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15345 lt_cv_shlibpath_overrides_runpath=yes
15346 fi
15347 fi
15348 rm -f core conftest.err conftest.$ac_objext \
15349 conftest$ac_exeext conftest.$ac_ext
15350 LDFLAGS=$save_LDFLAGS
15351 libdir=$save_libdir
15352
15353 fi
15354
15355 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15356
15357 # This implies no fast_install, which is unacceptable.
15358 # Some rework will be needed to allow for fast_install
15359 # before this can be enabled.
15360 hardcode_into_libs=yes
15361
15362 # Append ld.so.conf contents to the search path
15363 if test -f /etc/ld.so.conf; then
15364 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' ' '`
15365 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15366 fi
15367
15368 # We used to test for /lib/ld.so.1 and disable shared libraries on
15369 # powerpc, because MkLinux only supported shared libraries with the
15370 # GNU dynamic linker. Since this was broken with cross compilers,
15371 # most powerpc-linux boxes support dynamic linking these days and
15372 # people can always --disable-shared, the test was removed, and we
15373 # assume the GNU/Linux dynamic linker is in use.
15374 dynamic_linker='GNU/Linux ld.so'
15375 ;;
15376
15377 netbsd*)
15378 version_type=sunos
15379 need_lib_prefix=no
15380 need_version=no
15381 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15383 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15384 dynamic_linker='NetBSD (a.out) ld.so'
15385 else
15386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15387 soname_spec='${libname}${release}${shared_ext}$major'
15388 dynamic_linker='NetBSD ld.elf_so'
15389 fi
15390 shlibpath_var=LD_LIBRARY_PATH
15391 shlibpath_overrides_runpath=yes
15392 hardcode_into_libs=yes
15393 ;;
15394
15395 newsos6)
15396 version_type=linux
15397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15398 shlibpath_var=LD_LIBRARY_PATH
15399 shlibpath_overrides_runpath=yes
15400 ;;
15401
15402 *nto* | *qnx*)
15403 version_type=qnx
15404 need_lib_prefix=no
15405 need_version=no
15406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15407 soname_spec='${libname}${release}${shared_ext}$major'
15408 shlibpath_var=LD_LIBRARY_PATH
15409 shlibpath_overrides_runpath=no
15410 hardcode_into_libs=yes
15411 dynamic_linker='ldqnx.so'
15412 ;;
15413
15414 openbsd*)
15415 version_type=sunos
15416 sys_lib_dlsearch_path_spec="/usr/lib"
15417 need_lib_prefix=no
15418 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15419 case $host_os in
15420 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15421 *) need_version=no ;;
15422 esac
15423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15424 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15425 shlibpath_var=LD_LIBRARY_PATH
15426 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15427 case $host_os in
15428 openbsd2.[89] | openbsd2.[89].*)
15429 shlibpath_overrides_runpath=no
15430 ;;
15431 *)
15432 shlibpath_overrides_runpath=yes
15433 ;;
15434 esac
15435 else
15436 shlibpath_overrides_runpath=yes
15437 fi
15438 ;;
15439
15440 os2*)
15441 libname_spec='$name'
15442 shrext_cmds=".dll"
15443 need_lib_prefix=no
15444 library_names_spec='$libname${shared_ext} $libname.a'
15445 dynamic_linker='OS/2 ld.exe'
15446 shlibpath_var=LIBPATH
15447 ;;
15448
15449 osf3* | osf4* | osf5*)
15450 version_type=osf
15451 need_lib_prefix=no
15452 need_version=no
15453 soname_spec='${libname}${release}${shared_ext}$major'
15454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15455 shlibpath_var=LD_LIBRARY_PATH
15456 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15457 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15458 ;;
15459
15460 rdos*)
15461 dynamic_linker=no
15462 ;;
15463
15464 solaris*)
15465 version_type=linux
15466 need_lib_prefix=no
15467 need_version=no
15468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15469 soname_spec='${libname}${release}${shared_ext}$major'
15470 shlibpath_var=LD_LIBRARY_PATH
15471 shlibpath_overrides_runpath=yes
15472 hardcode_into_libs=yes
15473 # ldd complains unless libraries are executable
15474 postinstall_cmds='chmod +x $lib'
15475 ;;
15476
15477 sunos4*)
15478 version_type=sunos
15479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15480 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15481 shlibpath_var=LD_LIBRARY_PATH
15482 shlibpath_overrides_runpath=yes
15483 if test "$with_gnu_ld" = yes; then
15484 need_lib_prefix=no
15485 fi
15486 need_version=yes
15487 ;;
15488
15489 sysv4 | sysv4.3*)
15490 version_type=linux
15491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15492 soname_spec='${libname}${release}${shared_ext}$major'
15493 shlibpath_var=LD_LIBRARY_PATH
15494 case $host_vendor in
15495 sni)
15496 shlibpath_overrides_runpath=no
15497 need_lib_prefix=no
15498 runpath_var=LD_RUN_PATH
15499 ;;
15500 siemens)
15501 need_lib_prefix=no
15502 ;;
15503 motorola)
15504 need_lib_prefix=no
15505 need_version=no
15506 shlibpath_overrides_runpath=no
15507 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15508 ;;
15509 esac
15510 ;;
15511
15512 sysv4*MP*)
15513 if test -d /usr/nec ;then
15514 version_type=linux
15515 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15516 soname_spec='$libname${shared_ext}.$major'
15517 shlibpath_var=LD_LIBRARY_PATH
15518 fi
15519 ;;
15520
15521 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15522 version_type=freebsd-elf
15523 need_lib_prefix=no
15524 need_version=no
15525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15526 soname_spec='${libname}${release}${shared_ext}$major'
15527 shlibpath_var=LD_LIBRARY_PATH
15528 shlibpath_overrides_runpath=yes
15529 hardcode_into_libs=yes
15530 if test "$with_gnu_ld" = yes; then
15531 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15532 else
15533 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15534 case $host_os in
15535 sco3.2v5*)
15536 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15537 ;;
15538 esac
15539 fi
15540 sys_lib_dlsearch_path_spec='/usr/lib'
15541 ;;
15542
15543 tpf*)
15544 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15545 version_type=linux
15546 need_lib_prefix=no
15547 need_version=no
15548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15549 shlibpath_var=LD_LIBRARY_PATH
15550 shlibpath_overrides_runpath=no
15551 hardcode_into_libs=yes
15552 ;;
15553
15554 uts4*)
15555 version_type=linux
15556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15557 soname_spec='${libname}${release}${shared_ext}$major'
15558 shlibpath_var=LD_LIBRARY_PATH
15559 ;;
15560
15561 *)
15562 dynamic_linker=no
15563 ;;
15564 esac
15565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15566 $as_echo "$dynamic_linker" >&6; }
15567 test "$dynamic_linker" = no && can_build_shared=no
15568
15569 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15570 if test "$GCC" = yes; then
15571 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15572 fi
15573
15574 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15575 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15576 fi
15577 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15578 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15579 fi
15580
15581
15582
15583
15584
15585
15586
15587
15588
15589
15590
15591
15592
15593
15594
15595
15596
15597
15598
15599
15600
15601
15602
15603
15604
15605
15606
15607
15608
15609
15610
15611
15612
15613
15614
15615
15616
15617
15618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15619 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15620 hardcode_action_CXX=
15621 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15622 test -n "$runpath_var_CXX" ||
15623 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15624
15625 # We can hardcode non-existent directories.
15626 if test "$hardcode_direct_CXX" != no &&
15627 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15628 # have to relink, otherwise we might link with an installed library
15629 # when we should be linking with a yet-to-be-installed one
15630 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15631 test "$hardcode_minus_L_CXX" != no; then
15632 # Linking always hardcodes the temporary library directory.
15633 hardcode_action_CXX=relink
15634 else
15635 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15636 hardcode_action_CXX=immediate
15637 fi
15638 else
15639 # We cannot hardcode anything, or else we can only hardcode existing
15640 # directories.
15641 hardcode_action_CXX=unsupported
15642 fi
15643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15644 $as_echo "$hardcode_action_CXX" >&6; }
15645
15646 if test "$hardcode_action_CXX" = relink ||
15647 test "$inherit_rpath_CXX" = yes; then
15648 # Fast installation is not supported
15649 enable_fast_install=no
15650 elif test "$shlibpath_overrides_runpath" = yes ||
15651 test "$enable_shared" = no; then
15652 # Fast installation is not necessary
15653 enable_fast_install=needless
15654 fi
15655
15656
15657
15658
15659
15660
15661
15662 fi # test -n "$compiler"
15663
15664 CC=$lt_save_CC
15665 LDCXX=$LD
15666 LD=$lt_save_LD
15667 GCC=$lt_save_GCC
15668 with_gnu_ld=$lt_save_with_gnu_ld
15669 lt_cv_path_LDCXX=$lt_cv_path_LD
15670 lt_cv_path_LD=$lt_save_path_LD
15671 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15672 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15673 fi # test "$_lt_caught_CXX_error" != yes
15674
15675 ac_ext=c
15676 ac_cpp='$CPP $CPPFLAGS'
15677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15680
15681
15682
15683
15684
15685
15686
15687
15688
15689
15690
15691
15692
15693 ac_config_commands="$ac_config_commands libtool"
15694
15695
15696
15697
15698 # Only expand once:
15699
15700
15701
15702 for ac_prog in gawk mawk nawk awk
15703 do
15704 # Extract the first word of "$ac_prog", so it can be a program name with args.
15705 set dummy $ac_prog; ac_word=$2
15706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15707 $as_echo_n "checking for $ac_word... " >&6; }
15708 if ${ac_cv_prog_AWK+:} false; then :
15709 $as_echo_n "(cached) " >&6
15710 else
15711 if test -n "$AWK"; then
15712 ac_cv_prog_AWK="$AWK" # Let the user override the test.
15713 else
15714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15715 for as_dir in $PATH
15716 do
15717 IFS=$as_save_IFS
15718 test -z "$as_dir" && as_dir=.
15719 for ac_exec_ext in '' $ac_executable_extensions; do
15720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15721 ac_cv_prog_AWK="$ac_prog"
15722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15723 break 2
15724 fi
15725 done
15726 done
15727 IFS=$as_save_IFS
15728
15729 fi
15730 fi
15731 AWK=$ac_cv_prog_AWK
15732 if test -n "$AWK"; then
15733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
15734 $as_echo "$AWK" >&6; }
15735 else
15736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15737 $as_echo "no" >&6; }
15738 fi
15739
15740
15741 test -n "$AWK" && break
15742 done
15743
15744 case "$AWK" in
15745 "") as_fn_error $? "can't build without awk" "$LINENO" 5 ;;
15746 esac
15747
15748
15749
15750
15751 # The cast to long int works around a bug in the HP C Compiler
15752 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15753 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15754 # This bug is HP SR number 8606223364.
15755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15756 $as_echo_n "checking size of void *... " >&6; }
15757 if ${ac_cv_sizeof_void_p+:} false; then :
15758 $as_echo_n "(cached) " >&6
15759 else
15760 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15761
15762 else
15763 if test "$ac_cv_type_void_p" = yes; then
15764 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15765 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15766 as_fn_error 77 "cannot compute sizeof (void *)
15767 See \`config.log' for more details" "$LINENO" 5; }
15768 else
15769 ac_cv_sizeof_void_p=0
15770 fi
15771 fi
15772
15773 fi
15774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15775 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15776
15777
15778
15779 cat >>confdefs.h <<_ACEOF
15780 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15781 _ACEOF
15782
15783
15784
15785 if test "${multilib}" = "yes"; then
15786 multilib_arg="--enable-multilib"
15787 else
15788 multilib_arg=
15789 fi
15790
15791 # Get target configury.
15792 unset TSAN_SUPPORTED
15793 unset LSAN_SUPPORTED
15794 . ${srcdir}/configure.tgt
15795 if test "x$TSAN_SUPPORTED" = "xyes"; then
15796 TSAN_SUPPORTED_TRUE=
15797 TSAN_SUPPORTED_FALSE='#'
15798 else
15799 TSAN_SUPPORTED_TRUE='#'
15800 TSAN_SUPPORTED_FALSE=
15801 fi
15802
15803 if test "x$LSAN_SUPPORTED" = "xyes"; then
15804 LSAN_SUPPORTED_TRUE=
15805 LSAN_SUPPORTED_FALSE='#'
15806 else
15807 LSAN_SUPPORTED_TRUE='#'
15808 LSAN_SUPPORTED_FALSE=
15809 fi
15810
15811
15812 # Check for functions needed.
15813 for ac_func in clock_getres clock_gettime clock_settime lstat readlink
15814 do :
15815 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15816 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15817 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15818 cat >>confdefs.h <<_ACEOF
15819 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15820 _ACEOF
15821
15822 fi
15823 done
15824
15825
15826 # Common libraries that we need to link against for all sanitizer libs.
15827 link_sanitizer_common='-lpthread -lm'
15828
15829 # At least for glibc, shm_open is in librt. But don't pull that
15830 # in if it still doesn't give us the function we want. This
15831 # test is copied from libgomp.
15832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shm_open in -lrt" >&5
15833 $as_echo_n "checking for shm_open in -lrt... " >&6; }
15834 if ${ac_cv_lib_rt_shm_open+:} false; then :
15835 $as_echo_n "(cached) " >&6
15836 else
15837 ac_check_lib_save_LIBS=$LIBS
15838 LIBS="-lrt $LIBS"
15839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15840 /* end confdefs.h. */
15841
15842 /* Override any GCC internal prototype to avoid an error.
15843 Use char because int might match the return type of a GCC
15844 builtin and then its argument prototype would still apply. */
15845 #ifdef __cplusplus
15846 extern "C"
15847 #endif
15848 char shm_open ();
15849 int
15850 main ()
15851 {
15852 return shm_open ();
15853 ;
15854 return 0;
15855 }
15856 _ACEOF
15857 if ac_fn_c_try_link "$LINENO"; then :
15858 ac_cv_lib_rt_shm_open=yes
15859 else
15860 ac_cv_lib_rt_shm_open=no
15861 fi
15862 rm -f core conftest.err conftest.$ac_objext \
15863 conftest$ac_exeext conftest.$ac_ext
15864 LIBS=$ac_check_lib_save_LIBS
15865 fi
15866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_shm_open" >&5
15867 $as_echo "$ac_cv_lib_rt_shm_open" >&6; }
15868 if test "x$ac_cv_lib_rt_shm_open" = xyes; then :
15869 link_sanitizer_common="-lrt $link_sanitizer_common"
15870 fi
15871
15872
15873 # Do a configure time check for -ldl
15874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
15875 $as_echo_n "checking for dlsym in -ldl... " >&6; }
15876 if ${ac_cv_lib_dl_dlsym+:} false; then :
15877 $as_echo_n "(cached) " >&6
15878 else
15879 ac_check_lib_save_LIBS=$LIBS
15880 LIBS="-ldl $LIBS"
15881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15882 /* end confdefs.h. */
15883
15884 /* Override any GCC internal prototype to avoid an error.
15885 Use char because int might match the return type of a GCC
15886 builtin and then its argument prototype would still apply. */
15887 #ifdef __cplusplus
15888 extern "C"
15889 #endif
15890 char dlsym ();
15891 int
15892 main ()
15893 {
15894 return dlsym ();
15895 ;
15896 return 0;
15897 }
15898 _ACEOF
15899 if ac_fn_c_try_link "$LINENO"; then :
15900 ac_cv_lib_dl_dlsym=yes
15901 else
15902 ac_cv_lib_dl_dlsym=no
15903 fi
15904 rm -f core conftest.err conftest.$ac_objext \
15905 conftest$ac_exeext conftest.$ac_ext
15906 LIBS=$ac_check_lib_save_LIBS
15907 fi
15908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
15909 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
15910 if test "x$ac_cv_lib_dl_dlsym" = xyes; then :
15911 link_sanitizer_common="-ldl $link_sanitizer_common"
15912 fi
15913
15914
15915 # Set up the set of additional libraries that we need to link against for libasan.
15916 link_libasan=$link_sanitizer_common
15917
15918
15919 # Set up the set of additional libraries that we need to link against for libtsan.
15920 link_libtsan=$link_sanitizer_common
15921
15922
15923 # Set up the set of additional libraries that we need to link against for libubsan.
15924 link_libubsan=$link_sanitizer_common
15925
15926
15927 # Set up the set of additional libraries that we need to link against for liblsan.
15928 link_liblsan=$link_sanitizer_common
15929
15930
15931
15932 # At least for glibc, clock_gettime is in librt. But don't pull that
15933 # in if it still doesn't give us the function we want. This
15934 # test is copied from libgomp.
15935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
15936 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
15937 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
15938 $as_echo_n "(cached) " >&6
15939 else
15940 ac_check_lib_save_LIBS=$LIBS
15941 LIBS="-lrt $LIBS"
15942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15943 /* end confdefs.h. */
15944
15945 /* Override any GCC internal prototype to avoid an error.
15946 Use char because int might match the return type of a GCC
15947 builtin and then its argument prototype would still apply. */
15948 #ifdef __cplusplus
15949 extern "C"
15950 #endif
15951 char clock_gettime ();
15952 int
15953 main ()
15954 {
15955 return clock_gettime ();
15956 ;
15957 return 0;
15958 }
15959 _ACEOF
15960 if ac_fn_c_try_link "$LINENO"; then :
15961 ac_cv_lib_rt_clock_gettime=yes
15962 else
15963 ac_cv_lib_rt_clock_gettime=no
15964 fi
15965 rm -f core conftest.err conftest.$ac_objext \
15966 conftest$ac_exeext conftest.$ac_ext
15967 LIBS=$ac_check_lib_save_LIBS
15968 fi
15969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
15970 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
15971 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
15972 link_libasan="-lrt $link_libasan"
15973 link_libtsan="-lrt $link_libtsan"
15974 # Other sanitizers do not override clock_* API
15975
15976 fi
15977
15978
15979 case "$host" in
15980 *-*-darwin*) MAC_INTERPOSE=true ; enable_static=no ;;
15981 *) MAC_INTERPOSE=false ;;
15982 esac
15983 if $MAC_INTERPOSE; then
15984 USING_MAC_INTERPOSE_TRUE=
15985 USING_MAC_INTERPOSE_FALSE='#'
15986 else
15987 USING_MAC_INTERPOSE_TRUE='#'
15988 USING_MAC_INTERPOSE_FALSE=
15989 fi
15990
15991
15992 backtrace_supported=yes
15993
15994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary platform features" >&5
15995 $as_echo_n "checking for necessary platform features... " >&6; }
15996 case "$target" in
15997 *-*-linux*)
15998 # Some old Linux distributions miss required syscalls.
15999 sanitizer_supported=no
16000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16001 /* end confdefs.h. */
16002 #include <sys/syscall.h>
16003 int
16004 main ()
16005 {
16006
16007 syscall (__NR_gettid);
16008 syscall (__NR_futex);
16009 syscall (__NR_exit_group);
16010
16011 ;
16012 return 0;
16013 }
16014 _ACEOF
16015 if ac_fn_c_try_compile "$LINENO"; then :
16016 sanitizer_supported=yes
16017 fi
16018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16019 ;;
16020 *)
16021 sanitizer_supported=yes
16022 ;;
16023 esac
16024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sanitizer_supported" >&5
16025 $as_echo "$sanitizer_supported" >&6; }
16026 if test "$sanitizer_supported" = yes; then
16027 SANITIZER_SUPPORTED_TRUE=
16028 SANITIZER_SUPPORTED_FALSE='#'
16029 else
16030 SANITIZER_SUPPORTED_TRUE='#'
16031 SANITIZER_SUPPORTED_FALSE=
16032 fi
16033
16034
16035 # Test for __sync support.
16036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __sync extensions" >&5
16037 $as_echo_n "checking __sync extensions... " >&6; }
16038 if ${libsanitizer_cv_sys_sync+:} false; then :
16039 $as_echo_n "(cached) " >&6
16040 else
16041 if test -n "${with_target_subdir}"; then
16042 libsanitizer_cv_sys_sync=yes
16043 else
16044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16045 /* end confdefs.h. */
16046 int i;
16047 int
16048 main ()
16049 {
16050 __sync_bool_compare_and_swap (&i, i, i);
16051 __sync_lock_test_and_set (&i, 1);
16052 __sync_lock_release (&i);
16053 ;
16054 return 0;
16055 }
16056 _ACEOF
16057 if ac_fn_c_try_link "$LINENO"; then :
16058 libsanitizer_cv_sys_sync=yes
16059 else
16060 libsanitizer_cv_sys_sync=no
16061 fi
16062 rm -f core conftest.err conftest.$ac_objext \
16063 conftest$ac_exeext conftest.$ac_ext
16064 fi
16065 fi
16066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libsanitizer_cv_sys_sync" >&5
16067 $as_echo "$libsanitizer_cv_sys_sync" >&6; }
16068 if test "$libsanitizer_cv_sys_sync" = "yes"; then
16069
16070 $as_echo "#define HAVE_SYNC_FUNCTIONS 1" >>confdefs.h
16071
16072 fi
16073
16074 # Test for __atomic support.
16075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __atomic extensions" >&5
16076 $as_echo_n "checking __atomic extensions... " >&6; }
16077 if ${libsanitizer_cv_sys_atomic+:} false; then :
16078 $as_echo_n "(cached) " >&6
16079 else
16080 if test -n "${with_target_subdir}"; then
16081 libsanitizer_cv_sys_atomic=yes
16082 else
16083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16084 /* end confdefs.h. */
16085 int i;
16086 int
16087 main ()
16088 {
16089 __atomic_load_n (&i, __ATOMIC_ACQUIRE);
16090 __atomic_store_n (&i, 1, __ATOMIC_RELEASE);
16091 ;
16092 return 0;
16093 }
16094 _ACEOF
16095 if ac_fn_c_try_link "$LINENO"; then :
16096 libsanitizer_cv_sys_atomic=yes
16097 else
16098 libsanitizer_cv_sys_atomic=no
16099 fi
16100 rm -f core conftest.err conftest.$ac_objext \
16101 conftest$ac_exeext conftest.$ac_ext
16102 fi
16103 fi
16104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libsanitizer_cv_sys_atomic" >&5
16105 $as_echo "$libsanitizer_cv_sys_atomic" >&6; }
16106 if test "$libsanitizer_cv_sys_atomic" = "yes"; then
16107
16108 $as_echo "#define HAVE_ATOMIC_FUNCTIONS 1" >>confdefs.h
16109
16110 fi
16111
16112 # The library needs to be able to read the executable itself. Compile
16113 # a file to determine the executable format. The awk script
16114 # filetype.awk prints out the file type.
16115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking output filetype" >&5
16116 $as_echo_n "checking output filetype... " >&6; }
16117 if ${libsanitizer_cv_sys_filetype+:} false; then :
16118 $as_echo_n "(cached) " >&6
16119 else
16120 filetype=
16121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16122 /* end confdefs.h. */
16123 int i;
16124 int
16125 main ()
16126 {
16127 int j;
16128 ;
16129 return 0;
16130 }
16131 _ACEOF
16132 if ac_fn_c_try_compile "$LINENO"; then :
16133 filetype=`${AWK} -f $srcdir/../libbacktrace/filetype.awk conftest.$ac_objext`
16134 else
16135 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16136 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16137 as_fn_error $? "compiler failed
16138 See \`config.log' for more details" "$LINENO" 5; }
16139 fi
16140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16141 libsanitizer_cv_sys_filetype=$filetype
16142 fi
16143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libsanitizer_cv_sys_filetype" >&5
16144 $as_echo "$libsanitizer_cv_sys_filetype" >&6; }
16145
16146 # Match the file type to decide what files to compile.
16147 FORMAT_FILE=
16148 case "$libsanitizer_cv_sys_filetype" in
16149 elf*) FORMAT_FILE="elf.lo" ;;
16150 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not determine output file type" >&5
16151 $as_echo "$as_me: WARNING: could not determine output file type" >&2;}
16152 FORMAT_FILE="unknown.lo"
16153 backtrace_supported=no
16154 ;;
16155 esac
16156
16157
16158 # ELF defines.
16159 elfsize=
16160 case "$libsanitizer_cv_sys_filetype" in
16161 elf32) elfsize=32 ;;
16162 elf64) elfsize=64 ;;
16163 esac
16164
16165 cat >>confdefs.h <<_ACEOF
16166 #define BACKTRACE_ELF_SIZE $elfsize
16167 _ACEOF
16168
16169
16170 BACKTRACE_SUPPORTED=0
16171 if test "$backtrace_supported" = "yes"; then
16172 BACKTRACE_SUPPORTED=1
16173 fi
16174
16175
16176
16177
16178 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
16179
16180 acx_cv_header_stdint=stddef.h
16181 acx_cv_header_stdint_kind="(already complete)"
16182 for i in stdint.h $inttype_headers; do
16183 unset ac_cv_type_uintptr_t
16184 unset ac_cv_type_uintmax_t
16185 unset ac_cv_type_int_least32_t
16186 unset ac_cv_type_int_fast32_t
16187 unset ac_cv_type_uint64_t
16188 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
16189 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
16190 #include <$i>
16191 "
16192 if test "x$ac_cv_type_uintmax_t" = xyes; then :
16193 acx_cv_header_stdint=$i
16194 else
16195 continue
16196 fi
16197
16198 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
16199 #include <$i>
16200 "
16201 if test "x$ac_cv_type_uintptr_t" = xyes; then :
16202
16203 else
16204 acx_cv_header_stdint_kind="(mostly complete)"
16205 fi
16206
16207 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
16208 #include <$i>
16209 "
16210 if test "x$ac_cv_type_int_least32_t" = xyes; then :
16211
16212 else
16213 acx_cv_header_stdint_kind="(mostly complete)"
16214 fi
16215
16216 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
16217 #include <$i>
16218 "
16219 if test "x$ac_cv_type_int_fast32_t" = xyes; then :
16220
16221 else
16222 acx_cv_header_stdint_kind="(mostly complete)"
16223 fi
16224
16225 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
16226 #include <$i>
16227 "
16228 if test "x$ac_cv_type_uint64_t" = xyes; then :
16229
16230 else
16231 acx_cv_header_stdint_kind="(lacks uint64_t)"
16232 fi
16233
16234 break
16235 done
16236 if test "$acx_cv_header_stdint" = stddef.h; then
16237 acx_cv_header_stdint_kind="(lacks uintmax_t)"
16238 for i in stdint.h $inttype_headers; do
16239 unset ac_cv_type_uintptr_t
16240 unset ac_cv_type_uint32_t
16241 unset ac_cv_type_uint64_t
16242 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
16243 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
16244 #include <$i>
16245 "
16246 if test "x$ac_cv_type_uint32_t" = xyes; then :
16247 acx_cv_header_stdint=$i
16248 else
16249 continue
16250 fi
16251
16252 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
16253 #include <$i>
16254 "
16255 if test "x$ac_cv_type_uint64_t" = xyes; then :
16256
16257 fi
16258
16259 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
16260 #include <$i>
16261 "
16262 if test "x$ac_cv_type_uintptr_t" = xyes; then :
16263
16264 fi
16265
16266 break
16267 done
16268 fi
16269 if test "$acx_cv_header_stdint" = stddef.h; then
16270 acx_cv_header_stdint_kind="(u_intXX_t style)"
16271 for i in sys/types.h $inttype_headers; do
16272 unset ac_cv_type_u_int32_t
16273 unset ac_cv_type_u_int64_t
16274 $as_echo_n "looking for u_intXX_t types in $i, " >&6
16275 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
16276 #include <$i>
16277 "
16278 if test "x$ac_cv_type_u_int32_t" = xyes; then :
16279 acx_cv_header_stdint=$i
16280 else
16281 continue
16282 fi
16283
16284 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
16285 #include <$i>
16286 "
16287 if test "x$ac_cv_type_u_int64_t" = xyes; then :
16288
16289 fi
16290
16291 break
16292 done
16293 fi
16294 if test "$acx_cv_header_stdint" = stddef.h; then
16295 acx_cv_header_stdint_kind="(using manual detection)"
16296 fi
16297
16298 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
16299 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
16300 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
16301 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
16302 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
16303
16304 # ----------------- Summarize what we found so far
16305
16306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
16307 $as_echo_n "checking what to include in gstdint.h... " >&6; }
16308
16309 case `$as_basename -- gstdint.h ||
16310 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
16311 Xgstdint.h : 'X\(//\)$' \| \
16312 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
16313 $as_echo X/gstdint.h |
16314 sed '/^.*\/\([^/][^/]*\)\/*$/{
16315 s//\1/
16316 q
16317 }
16318 /^X\/\(\/\/\)$/{
16319 s//\1/
16320 q
16321 }
16322 /^X\/\(\/\).*/{
16323 s//\1/
16324 q
16325 }
16326 s/.*/./; q'` in
16327 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
16328 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16329 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
16330 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16331 *) ;;
16332 esac
16333
16334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
16335 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
16336
16337 # ----------------- done included file, check C basic types --------
16338
16339 # Lacking an uintptr_t? Test size of void *
16340 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
16341 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
16342 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16343 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16344 # This bug is HP SR number 8606223364.
16345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
16346 $as_echo_n "checking size of void *... " >&6; }
16347 if ${ac_cv_sizeof_void_p+:} false; then :
16348 $as_echo_n "(cached) " >&6
16349 else
16350 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
16351
16352 else
16353 if test "$ac_cv_type_void_p" = yes; then
16354 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16355 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16356 as_fn_error 77 "cannot compute sizeof (void *)
16357 See \`config.log' for more details" "$LINENO" 5; }
16358 else
16359 ac_cv_sizeof_void_p=0
16360 fi
16361 fi
16362
16363 fi
16364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
16365 $as_echo "$ac_cv_sizeof_void_p" >&6; }
16366
16367
16368
16369 cat >>confdefs.h <<_ACEOF
16370 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16371 _ACEOF
16372
16373 ;;
16374 esac
16375
16376 # Lacking an uint64_t? Test size of long
16377 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
16378 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
16379 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16380 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16381 # This bug is HP SR number 8606223364.
16382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
16383 $as_echo_n "checking size of long... " >&6; }
16384 if ${ac_cv_sizeof_long+:} false; then :
16385 $as_echo_n "(cached) " >&6
16386 else
16387 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
16388
16389 else
16390 if test "$ac_cv_type_long" = yes; then
16391 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16392 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16393 as_fn_error 77 "cannot compute sizeof (long)
16394 See \`config.log' for more details" "$LINENO" 5; }
16395 else
16396 ac_cv_sizeof_long=0
16397 fi
16398 fi
16399
16400 fi
16401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16402 $as_echo "$ac_cv_sizeof_long" >&6; }
16403
16404
16405
16406 cat >>confdefs.h <<_ACEOF
16407 #define SIZEOF_LONG $ac_cv_sizeof_long
16408 _ACEOF
16409
16410 ;;
16411 esac
16412
16413 if test $acx_cv_header_stdint = stddef.h; then
16414 # Lacking a good header? Test size of everything and deduce all types.
16415 # The cast to long int works around a bug in the HP C Compiler
16416 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16417 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16418 # This bug is HP SR number 8606223364.
16419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
16420 $as_echo_n "checking size of int... " >&6; }
16421 if ${ac_cv_sizeof_int+:} false; then :
16422 $as_echo_n "(cached) " >&6
16423 else
16424 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
16425
16426 else
16427 if test "$ac_cv_type_int" = yes; then
16428 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16429 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16430 as_fn_error 77 "cannot compute sizeof (int)
16431 See \`config.log' for more details" "$LINENO" 5; }
16432 else
16433 ac_cv_sizeof_int=0
16434 fi
16435 fi
16436
16437 fi
16438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
16439 $as_echo "$ac_cv_sizeof_int" >&6; }
16440
16441
16442
16443 cat >>confdefs.h <<_ACEOF
16444 #define SIZEOF_INT $ac_cv_sizeof_int
16445 _ACEOF
16446
16447
16448 # The cast to long int works around a bug in the HP C Compiler
16449 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16450 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16451 # This bug is HP SR number 8606223364.
16452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
16453 $as_echo_n "checking size of short... " >&6; }
16454 if ${ac_cv_sizeof_short+:} false; then :
16455 $as_echo_n "(cached) " >&6
16456 else
16457 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
16458
16459 else
16460 if test "$ac_cv_type_short" = yes; then
16461 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16462 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16463 as_fn_error 77 "cannot compute sizeof (short)
16464 See \`config.log' for more details" "$LINENO" 5; }
16465 else
16466 ac_cv_sizeof_short=0
16467 fi
16468 fi
16469
16470 fi
16471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
16472 $as_echo "$ac_cv_sizeof_short" >&6; }
16473
16474
16475
16476 cat >>confdefs.h <<_ACEOF
16477 #define SIZEOF_SHORT $ac_cv_sizeof_short
16478 _ACEOF
16479
16480
16481 # The cast to long int works around a bug in the HP C Compiler
16482 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16483 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16484 # This bug is HP SR number 8606223364.
16485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
16486 $as_echo_n "checking size of char... " >&6; }
16487 if ${ac_cv_sizeof_char+:} false; then :
16488 $as_echo_n "(cached) " >&6
16489 else
16490 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
16491
16492 else
16493 if test "$ac_cv_type_char" = yes; then
16494 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16495 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16496 as_fn_error 77 "cannot compute sizeof (char)
16497 See \`config.log' for more details" "$LINENO" 5; }
16498 else
16499 ac_cv_sizeof_char=0
16500 fi
16501 fi
16502
16503 fi
16504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
16505 $as_echo "$ac_cv_sizeof_char" >&6; }
16506
16507
16508
16509 cat >>confdefs.h <<_ACEOF
16510 #define SIZEOF_CHAR $ac_cv_sizeof_char
16511 _ACEOF
16512
16513
16514
16515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
16516 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
16517 case "$ac_cv_sizeof_char" in
16518 1) acx_cv_type_int8_t=char ;;
16519 *) as_fn_error $? "no 8-bit type, please report a bug" "$LINENO" 5
16520 esac
16521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
16522 $as_echo "$acx_cv_type_int8_t" >&6; }
16523
16524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
16525 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
16526 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
16527 2:*) acx_cv_type_int16_t=int ;;
16528 *:2) acx_cv_type_int16_t=short ;;
16529 *) as_fn_error $? "no 16-bit type, please report a bug" "$LINENO" 5
16530 esac
16531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
16532 $as_echo "$acx_cv_type_int16_t" >&6; }
16533
16534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
16535 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
16536 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
16537 4:*) acx_cv_type_int32_t=int ;;
16538 *:4) acx_cv_type_int32_t=long ;;
16539 *) as_fn_error $? "no 32-bit type, please report a bug" "$LINENO" 5
16540 esac
16541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
16542 $as_echo "$acx_cv_type_int32_t" >&6; }
16543 fi
16544
16545 # These tests are here to make the output prettier
16546
16547 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
16548 case "$ac_cv_sizeof_long" in
16549 8) acx_cv_type_int64_t=long ;;
16550 esac
16551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
16552 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
16553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
16554 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
16555 fi
16556
16557 # Now we can use the above types
16558
16559 if test "$ac_cv_type_uintptr_t" != yes; then
16560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
16561 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
16562 case $ac_cv_sizeof_void_p in
16563 2) acx_cv_type_intptr_t=int16_t ;;
16564 4) acx_cv_type_intptr_t=int32_t ;;
16565 8) acx_cv_type_intptr_t=int64_t ;;
16566 *) as_fn_error $? "no equivalent for intptr_t, please report a bug" "$LINENO" 5
16567 esac
16568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
16569 $as_echo "$acx_cv_type_intptr_t" >&6; }
16570 fi
16571
16572 # ----------------- done all checks, emit header -------------
16573 ac_config_commands="$ac_config_commands gstdint.h"
16574
16575
16576
16577
16578 for ac_header in sys/mman.h alloca.h
16579 do :
16580 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16581 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16582 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16583 cat >>confdefs.h <<_ACEOF
16584 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16585 _ACEOF
16586
16587 fi
16588
16589 done
16590
16591 if test "$ac_cv_header_sys_mman_h" = "no"; then
16592 have_mmap=no
16593 else
16594 if test -n "${with_target_subdir}"; then
16595 # When built as a GCC target library, we can't do a link test. We
16596 # simply assume that if we have mman.h, we have mmap.
16597 have_mmap=yes
16598 else
16599 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
16600 if test "x$ac_cv_func_mmap" = xyes; then :
16601 have_mmap=yes
16602 else
16603 have_mmap=no
16604 fi
16605
16606 fi
16607 fi
16608 if test "$have_mmap" = "no"; then
16609 VIEW_FILE=read.lo
16610 ALLOC_FILE=alloc.lo
16611 else
16612 VIEW_FILE=mmapio.lo
16613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16614 /* end confdefs.h. */
16615
16616 #include <sys/mman.h>
16617 #if !defined(MAP_ANONYMOUS) && !defined(MAP_ANON)
16618 #error no MAP_ANONYMOUS
16619 #endif
16620
16621 _ACEOF
16622 if ac_fn_c_try_cpp "$LINENO"; then :
16623 ALLOC_FILE=mmap.lo
16624 else
16625 ALLOC_FILE=alloc.lo
16626 fi
16627 rm -f conftest.err conftest.i conftest.$ac_ext
16628 fi
16629
16630
16631
16632 BACKTRACE_USES_MALLOC=0
16633 if test "$ALLOC_FILE" = "alloc.lo"; then
16634 BACKTRACE_USES_MALLOC=1
16635 fi
16636
16637
16638 # Don't care about thread support
16639 BACKTRACE_SUPPORTS_THREADS=0
16640
16641
16642 # Check for dl_iterate_phdr.
16643 for ac_header in link.h
16644 do :
16645 ac_fn_c_check_header_mongrel "$LINENO" "link.h" "ac_cv_header_link_h" "$ac_includes_default"
16646 if test "x$ac_cv_header_link_h" = xyes; then :
16647 cat >>confdefs.h <<_ACEOF
16648 #define HAVE_LINK_H 1
16649 _ACEOF
16650
16651 fi
16652
16653 done
16654
16655 if test "$ac_cv_header_link_h" = "no"; then
16656 have_dl_iterate_phdr=no
16657 else
16658 # When built as a GCC target library, we can't do a link test.
16659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16660 /* end confdefs.h. */
16661 #include <link.h>
16662
16663 _ACEOF
16664 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16665 $EGREP "dl_iterate_phdr" >/dev/null 2>&1; then :
16666 have_dl_iterate_phdr=yes
16667 else
16668 have_dl_iterate_phdr=no
16669 fi
16670 rm -f conftest*
16671
16672 fi
16673 if test "$have_dl_iterate_phdr" = "yes"; then
16674
16675 $as_echo "#define HAVE_DL_ITERATE_PHDR 1" >>confdefs.h
16676
16677 fi
16678
16679 # Check for the fcntl function.
16680 if test -n "${with_target_subdir}"; then
16681 case "${host}" in
16682 *-*-mingw*) have_fcntl=no ;;
16683 *) have_fcntl=yes ;;
16684 esac
16685 else
16686 ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
16687 if test "x$ac_cv_func_fcntl" = xyes; then :
16688 have_fcntl=yes
16689 else
16690 have_fcntl=no
16691 fi
16692
16693 fi
16694 if test "$have_fcntl" = "yes"; then
16695
16696 $as_echo "#define HAVE_FCNTL 1" >>confdefs.h
16697
16698 fi
16699
16700 ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
16701 if test "x$ac_cv_have_decl_strnlen" = xyes; then :
16702 ac_have_decl=1
16703 else
16704 ac_have_decl=0
16705 fi
16706
16707 cat >>confdefs.h <<_ACEOF
16708 #define HAVE_DECL_STRNLEN $ac_have_decl
16709 _ACEOF
16710
16711
16712 # Check for getexecname function.
16713 if test -n "${with_target_subdir}"; then
16714 case "${host}" in
16715 *-*-solaris2*) have_getexecname=yes ;;
16716 *) have_getexecname=no ;;
16717 esac
16718 else
16719 ac_fn_c_check_func "$LINENO" "getexecname" "ac_cv_func_getexecname"
16720 if test "x$ac_cv_func_getexecname" = xyes; then :
16721 have_getexecname=yes
16722 else
16723 have_getexecname=no
16724 fi
16725
16726 fi
16727 if test "$have_getexecname" = "yes"; then
16728
16729 $as_echo "#define HAVE_GETEXECNAME 1" >>confdefs.h
16730
16731 fi
16732
16733 # Check for rpc/xdr.h
16734 for ac_header in rpc/xdr.h
16735 do :
16736 ac_fn_c_check_header_mongrel "$LINENO" "rpc/xdr.h" "ac_cv_header_rpc_xdr_h" "$ac_includes_default"
16737 if test "x$ac_cv_header_rpc_xdr_h" = xyes; then :
16738 cat >>confdefs.h <<_ACEOF
16739 #define HAVE_RPC_XDR_H 1
16740 _ACEOF
16741
16742 fi
16743
16744 done
16745
16746 if test x"$ac_cv_header_rpc_xdr_h" = xyes; then
16747 rpc_defs="$rpc_defs -DHAVE_RPC_XDR_H=1"
16748 else
16749 rpc_defs="$rpc_defs -DHAVE_RPC_XDR_H=0"
16750 fi
16751
16752 # Check for tirpc/rpc/xdr.h
16753 for ac_header in tirpc/rpc/xdr.h
16754 do :
16755 ac_fn_c_check_header_mongrel "$LINENO" "tirpc/rpc/xdr.h" "ac_cv_header_tirpc_rpc_xdr_h" "$ac_includes_default"
16756 if test "x$ac_cv_header_tirpc_rpc_xdr_h" = xyes; then :
16757 cat >>confdefs.h <<_ACEOF
16758 #define HAVE_TIRPC_RPC_XDR_H 1
16759 _ACEOF
16760
16761 fi
16762
16763 done
16764
16765 if test x"$ac_cv_header_tirpc_rpc_xdr_h" = xyes; then
16766 rpc_defs="$rpc_defs -DHAVE_TIRPC_RPC_XDR_H=1"
16767 else
16768 rpc_defs="$rpc_defs -DHAVE_TIRPC_RPC_XDR_H=0"
16769 fi
16770
16771 RPC_DEFS=$rpc_defs
16772
16773
16774 if test "x${BACKTRACE_SUPPORTED}x${BACKTRACE_USES_MALLOC}" = "x1x0"; then
16775 LIBBACKTRACE_SUPPORTED_TRUE=
16776 LIBBACKTRACE_SUPPORTED_FALSE='#'
16777 else
16778 LIBBACKTRACE_SUPPORTED_TRUE='#'
16779 LIBBACKTRACE_SUPPORTED_FALSE=
16780 fi
16781
16782
16783
16784 ac_config_files="$ac_config_files Makefile libsanitizer.spec libbacktrace/backtrace-supported.h"
16785
16786 ac_config_headers="$ac_config_headers config.h"
16787
16788
16789 ac_config_files="$ac_config_files interception/Makefile sanitizer_common/Makefile libbacktrace/Makefile lsan/Makefile asan/Makefile ubsan/Makefile"
16790
16791
16792 if test "x$TSAN_SUPPORTED" = "xyes"; then
16793 ac_config_files="$ac_config_files tsan/Makefile"
16794
16795 fi
16796
16797
16798
16799
16800 # Determine what GCC version number to use in filesystem paths.
16801
16802 get_gcc_base_ver="cat"
16803
16804 # Check whether --with-gcc-major-version-only was given.
16805 if test "${with_gcc_major_version_only+set}" = set; then :
16806 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
16807 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
16808 fi
16809
16810 fi
16811
16812
16813
16814
16815 # Add CET specific flags if Intel CET is enabled.
16816 # Check whether --enable-cet was given.
16817 if test "${enable_cet+set}" = set; then :
16818 enableval=$enable_cet;
16819 case "$enableval" in
16820 yes|no|auto) ;;
16821 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
16822 esac
16823
16824 else
16825 enable_cet=no
16826 fi
16827
16828
16829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
16830 $as_echo_n "checking for CET support... " >&6; }
16831
16832 case "$host" in
16833 i[34567]86-*-linux* | x86_64-*-linux*)
16834 case "$enable_cet" in
16835 auto)
16836 # Check if target supports multi-byte NOPs
16837 # and if assembler supports CET insn.
16838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16839 /* end confdefs.h. */
16840
16841 int
16842 main ()
16843 {
16844
16845 #if !defined(__SSE2__)
16846 #error target does not support multi-byte NOPs
16847 #else
16848 asm ("setssbsy");
16849 #endif
16850
16851 ;
16852 return 0;
16853 }
16854 _ACEOF
16855 if ac_fn_c_try_compile "$LINENO"; then :
16856 enable_cet=yes
16857 else
16858 enable_cet=no
16859 fi
16860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16861 ;;
16862 yes)
16863 # Check if assembler supports CET.
16864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16865 /* end confdefs.h. */
16866
16867 int
16868 main ()
16869 {
16870 asm ("setssbsy");
16871 ;
16872 return 0;
16873 }
16874 _ACEOF
16875 if ac_fn_c_try_compile "$LINENO"; then :
16876
16877 else
16878 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
16879 fi
16880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16881 ;;
16882 esac
16883 ;;
16884 *)
16885 enable_cet=no
16886 ;;
16887 esac
16888 if test x$enable_cet = xyes; then
16889 CET_FLAGS="-fcf-protection -mshstk"
16890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16891 $as_echo "yes" >&6; }
16892 else
16893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16894 $as_echo "no" >&6; }
16895 fi
16896
16897 EXTRA_CFLAGS="$EXTRA_CFLAGS $CET_FLAGS"
16898 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS $CET_FLAGS"
16899 EXTRA_ASFLAGS=$CET_FLAGS
16900
16901
16902
16903
16904 cat >confcache <<\_ACEOF
16905 # This file is a shell script that caches the results of configure
16906 # tests run on this system so they can be shared between configure
16907 # scripts and configure runs, see configure's option --config-cache.
16908 # It is not useful on other systems. If it contains results you don't
16909 # want to keep, you may remove or edit it.
16910 #
16911 # config.status only pays attention to the cache file if you give it
16912 # the --recheck option to rerun configure.
16913 #
16914 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16915 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16916 # following values.
16917
16918 _ACEOF
16919
16920 # The following way of writing the cache mishandles newlines in values,
16921 # but we know of no workaround that is simple, portable, and efficient.
16922 # So, we kill variables containing newlines.
16923 # Ultrix sh set writes to stderr and can't be redirected directly,
16924 # and sets the high bit in the cache file unless we assign to the vars.
16925 (
16926 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16927 eval ac_val=\$$ac_var
16928 case $ac_val in #(
16929 *${as_nl}*)
16930 case $ac_var in #(
16931 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16932 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16933 esac
16934 case $ac_var in #(
16935 _ | IFS | as_nl) ;; #(
16936 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16937 *) { eval $ac_var=; unset $ac_var;} ;;
16938 esac ;;
16939 esac
16940 done
16941
16942 (set) 2>&1 |
16943 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16944 *${as_nl}ac_space=\ *)
16945 # `set' does not quote correctly, so add quotes: double-quote
16946 # substitution turns \\\\ into \\, and sed turns \\ into \.
16947 sed -n \
16948 "s/'/'\\\\''/g;
16949 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16950 ;; #(
16951 *)
16952 # `set' quotes correctly as required by POSIX, so do not add quotes.
16953 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16954 ;;
16955 esac |
16956 sort
16957 ) |
16958 sed '
16959 /^ac_cv_env_/b end
16960 t clear
16961 :clear
16962 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16963 t end
16964 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16965 :end' >>confcache
16966 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16967 if test -w "$cache_file"; then
16968 if test "x$cache_file" != "x/dev/null"; then
16969 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16970 $as_echo "$as_me: updating cache $cache_file" >&6;}
16971 if test ! -f "$cache_file" || test -h "$cache_file"; then
16972 cat confcache >"$cache_file"
16973 else
16974 case $cache_file in #(
16975 */* | ?:*)
16976 mv -f confcache "$cache_file"$$ &&
16977 mv -f "$cache_file"$$ "$cache_file" ;; #(
16978 *)
16979 mv -f confcache "$cache_file" ;;
16980 esac
16981 fi
16982 fi
16983 else
16984 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16985 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16986 fi
16987 fi
16988 rm -f confcache
16989
16990 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16991 # Let make expand exec_prefix.
16992 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16993
16994 DEFS=-DHAVE_CONFIG_H
16995
16996 ac_libobjs=
16997 ac_ltlibobjs=
16998 U=
16999 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17000 # 1. Remove the extension, and $U if already installed.
17001 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17002 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17003 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17004 # will be set to the directory where LIBOBJS objects are built.
17005 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17006 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17007 done
17008 LIBOBJS=$ac_libobjs
17009
17010 LTLIBOBJS=$ac_ltlibobjs
17011
17012
17013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17014 $as_echo_n "checking that generated files are newer than configure... " >&6; }
17015 if test -n "$am_sleep_pid"; then
17016 # Hide warnings about reused PIDs.
17017 wait $am_sleep_pid 2>/dev/null
17018 fi
17019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17020 $as_echo "done" >&6; }
17021 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17022 as_fn_error $? "conditional \"AMDEP\" was never defined.
17023 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17024 fi
17025 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17026 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17027 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17028 fi
17029 if test -n "$EXEEXT"; then
17030 am__EXEEXT_TRUE=
17031 am__EXEEXT_FALSE='#'
17032 else
17033 am__EXEEXT_TRUE='#'
17034 am__EXEEXT_FALSE=
17035 fi
17036
17037 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17038 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17039 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17040 fi
17041 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17042 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
17043 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17044 fi
17045 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
17046 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
17047 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17048 fi
17049 if test -z "${TSAN_SUPPORTED_TRUE}" && test -z "${TSAN_SUPPORTED_FALSE}"; then
17050 as_fn_error $? "conditional \"TSAN_SUPPORTED\" was never defined.
17051 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17052 fi
17053 if test -z "${LSAN_SUPPORTED_TRUE}" && test -z "${LSAN_SUPPORTED_FALSE}"; then
17054 as_fn_error $? "conditional \"LSAN_SUPPORTED\" was never defined.
17055 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17056 fi
17057 if test -z "${USING_MAC_INTERPOSE_TRUE}" && test -z "${USING_MAC_INTERPOSE_FALSE}"; then
17058 as_fn_error $? "conditional \"USING_MAC_INTERPOSE\" was never defined.
17059 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17060 fi
17061 if test -z "${SANITIZER_SUPPORTED_TRUE}" && test -z "${SANITIZER_SUPPORTED_FALSE}"; then
17062 as_fn_error $? "conditional \"SANITIZER_SUPPORTED\" was never defined.
17063 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17064 fi
17065 if test -z "${LIBBACKTRACE_SUPPORTED_TRUE}" && test -z "${LIBBACKTRACE_SUPPORTED_FALSE}"; then
17066 as_fn_error $? "conditional \"LIBBACKTRACE_SUPPORTED\" was never defined.
17067 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17068 fi
17069
17070 : "${CONFIG_STATUS=./config.status}"
17071 ac_write_fail=0
17072 ac_clean_files_save=$ac_clean_files
17073 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17074 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17075 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17076 as_write_fail=0
17077 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17078 #! $SHELL
17079 # Generated by $as_me.
17080 # Run this file to recreate the current configuration.
17081 # Compiler output produced by configure, useful for debugging
17082 # configure, is in config.log if it exists.
17083
17084 debug=false
17085 ac_cs_recheck=false
17086 ac_cs_silent=false
17087
17088 SHELL=\${CONFIG_SHELL-$SHELL}
17089 export SHELL
17090 _ASEOF
17091 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17092 ## -------------------- ##
17093 ## M4sh Initialization. ##
17094 ## -------------------- ##
17095
17096 # Be more Bourne compatible
17097 DUALCASE=1; export DUALCASE # for MKS sh
17098 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17099 emulate sh
17100 NULLCMD=:
17101 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17102 # is contrary to our usage. Disable this feature.
17103 alias -g '${1+"$@"}'='"$@"'
17104 setopt NO_GLOB_SUBST
17105 else
17106 case `(set -o) 2>/dev/null` in #(
17107 *posix*) :
17108 set -o posix ;; #(
17109 *) :
17110 ;;
17111 esac
17112 fi
17113
17114
17115 as_nl='
17116 '
17117 export as_nl
17118 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17119 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17120 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17121 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17122 # Prefer a ksh shell builtin over an external printf program on Solaris,
17123 # but without wasting forks for bash or zsh.
17124 if test -z "$BASH_VERSION$ZSH_VERSION" \
17125 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17126 as_echo='print -r --'
17127 as_echo_n='print -rn --'
17128 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17129 as_echo='printf %s\n'
17130 as_echo_n='printf %s'
17131 else
17132 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17133 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17134 as_echo_n='/usr/ucb/echo -n'
17135 else
17136 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17137 as_echo_n_body='eval
17138 arg=$1;
17139 case $arg in #(
17140 *"$as_nl"*)
17141 expr "X$arg" : "X\\(.*\\)$as_nl";
17142 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17143 esac;
17144 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17145 '
17146 export as_echo_n_body
17147 as_echo_n='sh -c $as_echo_n_body as_echo'
17148 fi
17149 export as_echo_body
17150 as_echo='sh -c $as_echo_body as_echo'
17151 fi
17152
17153 # The user is always right.
17154 if test "${PATH_SEPARATOR+set}" != set; then
17155 PATH_SEPARATOR=:
17156 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17157 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17158 PATH_SEPARATOR=';'
17159 }
17160 fi
17161
17162
17163 # IFS
17164 # We need space, tab and new line, in precisely that order. Quoting is
17165 # there to prevent editors from complaining about space-tab.
17166 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17167 # splitting by setting IFS to empty value.)
17168 IFS=" "" $as_nl"
17169
17170 # Find who we are. Look in the path if we contain no directory separator.
17171 as_myself=
17172 case $0 in #((
17173 *[\\/]* ) as_myself=$0 ;;
17174 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17175 for as_dir in $PATH
17176 do
17177 IFS=$as_save_IFS
17178 test -z "$as_dir" && as_dir=.
17179 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17180 done
17181 IFS=$as_save_IFS
17182
17183 ;;
17184 esac
17185 # We did not find ourselves, most probably we were run as `sh COMMAND'
17186 # in which case we are not to be found in the path.
17187 if test "x$as_myself" = x; then
17188 as_myself=$0
17189 fi
17190 if test ! -f "$as_myself"; then
17191 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17192 exit 1
17193 fi
17194
17195 # Unset variables that we do not need and which cause bugs (e.g. in
17196 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17197 # suppresses any "Segmentation fault" message there. '((' could
17198 # trigger a bug in pdksh 5.2.14.
17199 for as_var in BASH_ENV ENV MAIL MAILPATH
17200 do eval test x\${$as_var+set} = xset \
17201 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17202 done
17203 PS1='$ '
17204 PS2='> '
17205 PS4='+ '
17206
17207 # NLS nuisances.
17208 LC_ALL=C
17209 export LC_ALL
17210 LANGUAGE=C
17211 export LANGUAGE
17212
17213 # CDPATH.
17214 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17215
17216
17217 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17218 # ----------------------------------------
17219 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17220 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17221 # script with STATUS, using 1 if that was 0.
17222 as_fn_error ()
17223 {
17224 as_status=$1; test $as_status -eq 0 && as_status=1
17225 if test "$4"; then
17226 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17227 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17228 fi
17229 $as_echo "$as_me: error: $2" >&2
17230 as_fn_exit $as_status
17231 } # as_fn_error
17232
17233
17234 # as_fn_set_status STATUS
17235 # -----------------------
17236 # Set $? to STATUS, without forking.
17237 as_fn_set_status ()
17238 {
17239 return $1
17240 } # as_fn_set_status
17241
17242 # as_fn_exit STATUS
17243 # -----------------
17244 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17245 as_fn_exit ()
17246 {
17247 set +e
17248 as_fn_set_status $1
17249 exit $1
17250 } # as_fn_exit
17251
17252 # as_fn_unset VAR
17253 # ---------------
17254 # Portably unset VAR.
17255 as_fn_unset ()
17256 {
17257 { eval $1=; unset $1;}
17258 }
17259 as_unset=as_fn_unset
17260 # as_fn_append VAR VALUE
17261 # ----------------------
17262 # Append the text in VALUE to the end of the definition contained in VAR. Take
17263 # advantage of any shell optimizations that allow amortized linear growth over
17264 # repeated appends, instead of the typical quadratic growth present in naive
17265 # implementations.
17266 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17267 eval 'as_fn_append ()
17268 {
17269 eval $1+=\$2
17270 }'
17271 else
17272 as_fn_append ()
17273 {
17274 eval $1=\$$1\$2
17275 }
17276 fi # as_fn_append
17277
17278 # as_fn_arith ARG...
17279 # ------------------
17280 # Perform arithmetic evaluation on the ARGs, and store the result in the
17281 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17282 # must be portable across $(()) and expr.
17283 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17284 eval 'as_fn_arith ()
17285 {
17286 as_val=$(( $* ))
17287 }'
17288 else
17289 as_fn_arith ()
17290 {
17291 as_val=`expr "$@" || test $? -eq 1`
17292 }
17293 fi # as_fn_arith
17294
17295
17296 if expr a : '\(a\)' >/dev/null 2>&1 &&
17297 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17298 as_expr=expr
17299 else
17300 as_expr=false
17301 fi
17302
17303 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17304 as_basename=basename
17305 else
17306 as_basename=false
17307 fi
17308
17309 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17310 as_dirname=dirname
17311 else
17312 as_dirname=false
17313 fi
17314
17315 as_me=`$as_basename -- "$0" ||
17316 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17317 X"$0" : 'X\(//\)$' \| \
17318 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17319 $as_echo X/"$0" |
17320 sed '/^.*\/\([^/][^/]*\)\/*$/{
17321 s//\1/
17322 q
17323 }
17324 /^X\/\(\/\/\)$/{
17325 s//\1/
17326 q
17327 }
17328 /^X\/\(\/\).*/{
17329 s//\1/
17330 q
17331 }
17332 s/.*/./; q'`
17333
17334 # Avoid depending upon Character Ranges.
17335 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17336 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17337 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17338 as_cr_digits='0123456789'
17339 as_cr_alnum=$as_cr_Letters$as_cr_digits
17340
17341 ECHO_C= ECHO_N= ECHO_T=
17342 case `echo -n x` in #(((((
17343 -n*)
17344 case `echo 'xy\c'` in
17345 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17346 xy) ECHO_C='\c';;
17347 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17348 ECHO_T=' ';;
17349 esac;;
17350 *)
17351 ECHO_N='-n';;
17352 esac
17353
17354 rm -f conf$$ conf$$.exe conf$$.file
17355 if test -d conf$$.dir; then
17356 rm -f conf$$.dir/conf$$.file
17357 else
17358 rm -f conf$$.dir
17359 mkdir conf$$.dir 2>/dev/null
17360 fi
17361 if (echo >conf$$.file) 2>/dev/null; then
17362 if ln -s conf$$.file conf$$ 2>/dev/null; then
17363 as_ln_s='ln -s'
17364 # ... but there are two gotchas:
17365 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17366 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17367 # In both cases, we have to default to `cp -pR'.
17368 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17369 as_ln_s='cp -pR'
17370 elif ln conf$$.file conf$$ 2>/dev/null; then
17371 as_ln_s=ln
17372 else
17373 as_ln_s='cp -pR'
17374 fi
17375 else
17376 as_ln_s='cp -pR'
17377 fi
17378 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17379 rmdir conf$$.dir 2>/dev/null
17380
17381
17382 # as_fn_mkdir_p
17383 # -------------
17384 # Create "$as_dir" as a directory, including parents if necessary.
17385 as_fn_mkdir_p ()
17386 {
17387
17388 case $as_dir in #(
17389 -*) as_dir=./$as_dir;;
17390 esac
17391 test -d "$as_dir" || eval $as_mkdir_p || {
17392 as_dirs=
17393 while :; do
17394 case $as_dir in #(
17395 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17396 *) as_qdir=$as_dir;;
17397 esac
17398 as_dirs="'$as_qdir' $as_dirs"
17399 as_dir=`$as_dirname -- "$as_dir" ||
17400 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17401 X"$as_dir" : 'X\(//\)[^/]' \| \
17402 X"$as_dir" : 'X\(//\)$' \| \
17403 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17404 $as_echo X"$as_dir" |
17405 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17406 s//\1/
17407 q
17408 }
17409 /^X\(\/\/\)[^/].*/{
17410 s//\1/
17411 q
17412 }
17413 /^X\(\/\/\)$/{
17414 s//\1/
17415 q
17416 }
17417 /^X\(\/\).*/{
17418 s//\1/
17419 q
17420 }
17421 s/.*/./; q'`
17422 test -d "$as_dir" && break
17423 done
17424 test -z "$as_dirs" || eval "mkdir $as_dirs"
17425 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17426
17427
17428 } # as_fn_mkdir_p
17429 if mkdir -p . 2>/dev/null; then
17430 as_mkdir_p='mkdir -p "$as_dir"'
17431 else
17432 test -d ./-p && rmdir ./-p
17433 as_mkdir_p=false
17434 fi
17435
17436
17437 # as_fn_executable_p FILE
17438 # -----------------------
17439 # Test if FILE is an executable regular file.
17440 as_fn_executable_p ()
17441 {
17442 test -f "$1" && test -x "$1"
17443 } # as_fn_executable_p
17444 as_test_x='test -x'
17445 as_executable_p=as_fn_executable_p
17446
17447 # Sed expression to map a string onto a valid CPP name.
17448 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17449
17450 # Sed expression to map a string onto a valid variable name.
17451 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17452
17453
17454 exec 6>&1
17455 ## ----------------------------------- ##
17456 ## Main body of $CONFIG_STATUS script. ##
17457 ## ----------------------------------- ##
17458 _ASEOF
17459 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17460
17461 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17462 # Save the log message, to keep $0 and so on meaningful, and to
17463 # report actual input values of CONFIG_FILES etc. instead of their
17464 # values after options handling.
17465 ac_log="
17466 This file was extended by package-unused $as_me version-unused, which was
17467 generated by GNU Autoconf 2.69. Invocation command line was
17468
17469 CONFIG_FILES = $CONFIG_FILES
17470 CONFIG_HEADERS = $CONFIG_HEADERS
17471 CONFIG_LINKS = $CONFIG_LINKS
17472 CONFIG_COMMANDS = $CONFIG_COMMANDS
17473 $ $0 $@
17474
17475 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17476 "
17477
17478 _ACEOF
17479
17480 case $ac_config_files in *"
17481 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17482 esac
17483
17484 case $ac_config_headers in *"
17485 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17486 esac
17487
17488
17489 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17490 # Files that config.status was made for.
17491 config_files="$ac_config_files"
17492 config_headers="$ac_config_headers"
17493 config_commands="$ac_config_commands"
17494
17495 _ACEOF
17496
17497 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17498 ac_cs_usage="\
17499 \`$as_me' instantiates files and other configuration actions
17500 from templates according to the current configuration. Unless the files
17501 and actions are specified as TAGs, all are instantiated by default.
17502
17503 Usage: $0 [OPTION]... [TAG]...
17504
17505 -h, --help print this help, then exit
17506 -V, --version print version number and configuration settings, then exit
17507 --config print configuration, then exit
17508 -q, --quiet, --silent
17509 do not print progress messages
17510 -d, --debug don't remove temporary files
17511 --recheck update $as_me by reconfiguring in the same conditions
17512 --file=FILE[:TEMPLATE]
17513 instantiate the configuration file FILE
17514 --header=FILE[:TEMPLATE]
17515 instantiate the configuration header FILE
17516
17517 Configuration files:
17518 $config_files
17519
17520 Configuration headers:
17521 $config_headers
17522
17523 Configuration commands:
17524 $config_commands
17525
17526 Report bugs to <libsanitizer>."
17527
17528 _ACEOF
17529 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17530 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17531 ac_cs_version="\\
17532 package-unused config.status version-unused
17533 configured by $0, generated by GNU Autoconf 2.69,
17534 with options \\"\$ac_cs_config\\"
17535
17536 Copyright (C) 2012 Free Software Foundation, Inc.
17537 This config.status script is free software; the Free Software Foundation
17538 gives unlimited permission to copy, distribute and modify it."
17539
17540 ac_pwd='$ac_pwd'
17541 srcdir='$srcdir'
17542 INSTALL='$INSTALL'
17543 MKDIR_P='$MKDIR_P'
17544 AWK='$AWK'
17545 test -n "\$AWK" || AWK=awk
17546 _ACEOF
17547
17548 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17549 # The default lists apply if the user does not specify any file.
17550 ac_need_defaults=:
17551 while test $# != 0
17552 do
17553 case $1 in
17554 --*=?*)
17555 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17556 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17557 ac_shift=:
17558 ;;
17559 --*=)
17560 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17561 ac_optarg=
17562 ac_shift=:
17563 ;;
17564 *)
17565 ac_option=$1
17566 ac_optarg=$2
17567 ac_shift=shift
17568 ;;
17569 esac
17570
17571 case $ac_option in
17572 # Handling of the options.
17573 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17574 ac_cs_recheck=: ;;
17575 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17576 $as_echo "$ac_cs_version"; exit ;;
17577 --config | --confi | --conf | --con | --co | --c )
17578 $as_echo "$ac_cs_config"; exit ;;
17579 --debug | --debu | --deb | --de | --d | -d )
17580 debug=: ;;
17581 --file | --fil | --fi | --f )
17582 $ac_shift
17583 case $ac_optarg in
17584 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17585 '') as_fn_error $? "missing file argument" ;;
17586 esac
17587 as_fn_append CONFIG_FILES " '$ac_optarg'"
17588 ac_need_defaults=false;;
17589 --header | --heade | --head | --hea )
17590 $ac_shift
17591 case $ac_optarg in
17592 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17593 esac
17594 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17595 ac_need_defaults=false;;
17596 --he | --h)
17597 # Conflict between --help and --header
17598 as_fn_error $? "ambiguous option: \`$1'
17599 Try \`$0 --help' for more information.";;
17600 --help | --hel | -h )
17601 $as_echo "$ac_cs_usage"; exit ;;
17602 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17603 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17604 ac_cs_silent=: ;;
17605
17606 # This is an error.
17607 -*) as_fn_error $? "unrecognized option: \`$1'
17608 Try \`$0 --help' for more information." ;;
17609
17610 *) as_fn_append ac_config_targets " $1"
17611 ac_need_defaults=false ;;
17612
17613 esac
17614 shift
17615 done
17616
17617 ac_configure_extra_args=
17618
17619 if $ac_cs_silent; then
17620 exec 6>/dev/null
17621 ac_configure_extra_args="$ac_configure_extra_args --silent"
17622 fi
17623
17624 _ACEOF
17625 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17626 if \$ac_cs_recheck; then
17627 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17628 shift
17629 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17630 CONFIG_SHELL='$SHELL'
17631 export CONFIG_SHELL
17632 exec "\$@"
17633 fi
17634
17635 _ACEOF
17636 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17637 exec 5>>config.log
17638 {
17639 echo
17640 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17641 ## Running $as_me. ##
17642 _ASBOX
17643 $as_echo "$ac_log"
17644 } >&5
17645
17646 _ACEOF
17647 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17648 #
17649 # INIT-COMMANDS
17650 #
17651
17652 srcdir="$srcdir"
17653 host="$host"
17654 target="$target"
17655 with_multisubdir="$with_multisubdir"
17656 with_multisrctop="$with_multisrctop"
17657 with_target_subdir="$with_target_subdir"
17658 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17659 multi_basedir="$multi_basedir"
17660 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17661 CC="$CC"
17662 CXX="$CXX"
17663 GFORTRAN="$GFORTRAN"
17664 GDC="$GDC"
17665 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17666
17667
17668 # The HP-UX ksh and POSIX shell print the target directory to stdout
17669 # if CDPATH is set.
17670 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17671
17672 sed_quote_subst='$sed_quote_subst'
17673 double_quote_subst='$double_quote_subst'
17674 delay_variable_subst='$delay_variable_subst'
17675 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17676 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17677 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17678 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17679 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17680 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17681 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17682 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17683 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17684 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17685 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17686 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17687 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17688 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17689 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17690 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17691 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17692 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17693 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17694 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17695 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17696 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17697 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17698 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17699 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17700 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17701 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17702 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17703 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17704 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17705 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17706 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17707 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17708 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17709 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17710 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17711 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17712 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17713 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17714 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17715 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17716 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17717 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17718 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17719 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17720 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17721 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17722 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17723 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"`'
17724 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17725 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17726 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17727 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17728 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17729 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17730 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17731 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17732 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17733 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17734 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17735 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17736 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17737 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17738 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17739 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17740 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17741 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17742 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17743 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17744 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17745 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17746 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17747 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17748 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17749 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17750 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17751 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17752 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17753 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17754 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17755 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17756 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17757 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17758 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17759 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17760 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17761 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17762 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17763 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17764 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17765 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17766 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17767 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17768 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17769 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17770 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17771 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17772 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17773 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17774 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17775 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17776 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17777 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17778 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17779 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17780 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17781 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17782 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17783 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17784 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17785 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17786 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17787 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17788 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17789 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17790 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17791 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17792 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17793 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17794 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17795 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17796 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17797 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17798 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17799 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17800 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17801 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17802 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17803 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17804 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17805 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17806 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17807 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17808 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17809 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17810 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17811 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17812 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17813 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17814 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17815 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17816 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17817 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17818 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17819 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17820 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17821 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17822 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17823 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17824 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17825 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17826 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17827 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
17828 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17829 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17830 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17831 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17832 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17833 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17834 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17835 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17836 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
17837 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17838 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17839 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17840 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17841 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17842 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17843 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17844 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17845 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17846 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17847 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17848 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17849 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17850
17851 LTCC='$LTCC'
17852 LTCFLAGS='$LTCFLAGS'
17853 compiler='$compiler_DEFAULT'
17854
17855 # A function that is used when there is no print builtin or printf.
17856 func_fallback_echo ()
17857 {
17858 eval 'cat <<_LTECHO_EOF
17859 \$1
17860 _LTECHO_EOF'
17861 }
17862
17863 # Quote evaled strings.
17864 for var in SHELL \
17865 ECHO \
17866 SED \
17867 GREP \
17868 EGREP \
17869 FGREP \
17870 LD \
17871 NM \
17872 LN_S \
17873 lt_SP2NL \
17874 lt_NL2SP \
17875 reload_flag \
17876 OBJDUMP \
17877 deplibs_check_method \
17878 file_magic_cmd \
17879 AR \
17880 AR_FLAGS \
17881 STRIP \
17882 RANLIB \
17883 CC \
17884 CFLAGS \
17885 compiler \
17886 lt_cv_sys_global_symbol_pipe \
17887 lt_cv_sys_global_symbol_to_cdecl \
17888 lt_cv_sys_global_symbol_to_c_name_address \
17889 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17890 lt_prog_compiler_no_builtin_flag \
17891 lt_prog_compiler_wl \
17892 lt_prog_compiler_pic \
17893 lt_prog_compiler_static \
17894 lt_cv_prog_compiler_c_o \
17895 need_locks \
17896 DSYMUTIL \
17897 NMEDIT \
17898 LIPO \
17899 OTOOL \
17900 OTOOL64 \
17901 shrext_cmds \
17902 export_dynamic_flag_spec \
17903 whole_archive_flag_spec \
17904 compiler_needs_object \
17905 with_gnu_ld \
17906 allow_undefined_flag \
17907 no_undefined_flag \
17908 hardcode_libdir_flag_spec \
17909 hardcode_libdir_flag_spec_ld \
17910 hardcode_libdir_separator \
17911 fix_srcfile_path \
17912 exclude_expsyms \
17913 include_expsyms \
17914 file_list_spec \
17915 variables_saved_for_relink \
17916 libname_spec \
17917 library_names_spec \
17918 soname_spec \
17919 install_override_mode \
17920 finish_eval \
17921 old_striplib \
17922 striplib \
17923 compiler_lib_search_dirs \
17924 predep_objects \
17925 postdep_objects \
17926 predeps \
17927 postdeps \
17928 compiler_lib_search_path \
17929 LD_CXX \
17930 reload_flag_CXX \
17931 compiler_CXX \
17932 lt_prog_compiler_no_builtin_flag_CXX \
17933 lt_prog_compiler_wl_CXX \
17934 lt_prog_compiler_pic_CXX \
17935 lt_prog_compiler_static_CXX \
17936 lt_cv_prog_compiler_c_o_CXX \
17937 export_dynamic_flag_spec_CXX \
17938 whole_archive_flag_spec_CXX \
17939 compiler_needs_object_CXX \
17940 with_gnu_ld_CXX \
17941 allow_undefined_flag_CXX \
17942 no_undefined_flag_CXX \
17943 hardcode_libdir_flag_spec_CXX \
17944 hardcode_libdir_flag_spec_ld_CXX \
17945 hardcode_libdir_separator_CXX \
17946 fix_srcfile_path_CXX \
17947 exclude_expsyms_CXX \
17948 include_expsyms_CXX \
17949 file_list_spec_CXX \
17950 compiler_lib_search_dirs_CXX \
17951 predep_objects_CXX \
17952 postdep_objects_CXX \
17953 predeps_CXX \
17954 postdeps_CXX \
17955 compiler_lib_search_path_CXX; do
17956 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17957 *[\\\\\\\`\\"\\\$]*)
17958 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17959 ;;
17960 *)
17961 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17962 ;;
17963 esac
17964 done
17965
17966 # Double-quote double-evaled strings.
17967 for var in reload_cmds \
17968 old_postinstall_cmds \
17969 old_postuninstall_cmds \
17970 old_archive_cmds \
17971 extract_expsyms_cmds \
17972 old_archive_from_new_cmds \
17973 old_archive_from_expsyms_cmds \
17974 archive_cmds \
17975 archive_expsym_cmds \
17976 module_cmds \
17977 module_expsym_cmds \
17978 export_symbols_cmds \
17979 prelink_cmds \
17980 postinstall_cmds \
17981 postuninstall_cmds \
17982 finish_cmds \
17983 sys_lib_search_path_spec \
17984 sys_lib_dlsearch_path_spec \
17985 reload_cmds_CXX \
17986 old_archive_cmds_CXX \
17987 old_archive_from_new_cmds_CXX \
17988 old_archive_from_expsyms_cmds_CXX \
17989 archive_cmds_CXX \
17990 archive_expsym_cmds_CXX \
17991 module_cmds_CXX \
17992 module_expsym_cmds_CXX \
17993 export_symbols_cmds_CXX \
17994 prelink_cmds_CXX; do
17995 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17996 *[\\\\\\\`\\"\\\$]*)
17997 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17998 ;;
17999 *)
18000 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18001 ;;
18002 esac
18003 done
18004
18005 ac_aux_dir='$ac_aux_dir'
18006 xsi_shell='$xsi_shell'
18007 lt_shell_append='$lt_shell_append'
18008
18009 # See if we are running on zsh, and set the options which allow our
18010 # commands through without removal of \ escapes INIT.
18011 if test -n "\${ZSH_VERSION+set}" ; then
18012 setopt NO_GLOB_SUBST
18013 fi
18014
18015
18016 PACKAGE='$PACKAGE'
18017 VERSION='$VERSION'
18018 TIMESTAMP='$TIMESTAMP'
18019 RM='$RM'
18020 ofile='$ofile'
18021
18022
18023
18024
18025
18026
18027 GCC="$GCC"
18028 CC="$CC"
18029 acx_cv_header_stdint="$acx_cv_header_stdint"
18030 acx_cv_type_int8_t="$acx_cv_type_int8_t"
18031 acx_cv_type_int16_t="$acx_cv_type_int16_t"
18032 acx_cv_type_int32_t="$acx_cv_type_int32_t"
18033 acx_cv_type_int64_t="$acx_cv_type_int64_t"
18034 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
18035 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
18036 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
18037 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
18038 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
18039 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
18040 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
18041 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
18042 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
18043
18044
18045 _ACEOF
18046
18047 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18048
18049 # Handling of arguments.
18050 for ac_config_target in $ac_config_targets
18051 do
18052 case $ac_config_target in
18053 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
18054 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18055 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18056 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
18057 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18058 "libsanitizer.spec") CONFIG_FILES="$CONFIG_FILES libsanitizer.spec" ;;
18059 "libbacktrace/backtrace-supported.h") CONFIG_FILES="$CONFIG_FILES libbacktrace/backtrace-supported.h" ;;
18060 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18061 "interception/Makefile") CONFIG_FILES="$CONFIG_FILES interception/Makefile" ;;
18062 "sanitizer_common/Makefile") CONFIG_FILES="$CONFIG_FILES sanitizer_common/Makefile" ;;
18063 "libbacktrace/Makefile") CONFIG_FILES="$CONFIG_FILES libbacktrace/Makefile" ;;
18064 "lsan/Makefile") CONFIG_FILES="$CONFIG_FILES lsan/Makefile" ;;
18065 "asan/Makefile") CONFIG_FILES="$CONFIG_FILES asan/Makefile" ;;
18066 "ubsan/Makefile") CONFIG_FILES="$CONFIG_FILES ubsan/Makefile" ;;
18067 "tsan/Makefile") CONFIG_FILES="$CONFIG_FILES tsan/Makefile" ;;
18068
18069 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18070 esac
18071 done
18072
18073
18074 # If the user did not use the arguments to specify the items to instantiate,
18075 # then the envvar interface is used. Set only those that are not.
18076 # We use the long form for the default assignment because of an extremely
18077 # bizarre bug on SunOS 4.1.3.
18078 if $ac_need_defaults; then
18079 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18080 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18081 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18082 fi
18083
18084 # Have a temporary directory for convenience. Make it in the build tree
18085 # simply because there is no reason against having it here, and in addition,
18086 # creating and moving files from /tmp can sometimes cause problems.
18087 # Hook for its removal unless debugging.
18088 # Note that there is a small window in which the directory will not be cleaned:
18089 # after its creation but before its name has been assigned to `$tmp'.
18090 $debug ||
18091 {
18092 tmp= ac_tmp=
18093 trap 'exit_status=$?
18094 : "${ac_tmp:=$tmp}"
18095 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18096 ' 0
18097 trap 'as_fn_exit 1' 1 2 13 15
18098 }
18099 # Create a (secure) tmp directory for tmp files.
18100
18101 {
18102 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18103 test -d "$tmp"
18104 } ||
18105 {
18106 tmp=./conf$$-$RANDOM
18107 (umask 077 && mkdir "$tmp")
18108 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18109 ac_tmp=$tmp
18110
18111 # Set up the scripts for CONFIG_FILES section.
18112 # No need to generate them if there are no CONFIG_FILES.
18113 # This happens for instance with `./config.status config.h'.
18114 if test -n "$CONFIG_FILES"; then
18115
18116
18117 ac_cr=`echo X | tr X '\015'`
18118 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18119 # But we know of no other shell where ac_cr would be empty at this
18120 # point, so we can use a bashism as a fallback.
18121 if test "x$ac_cr" = x; then
18122 eval ac_cr=\$\'\\r\'
18123 fi
18124 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18125 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18126 ac_cs_awk_cr='\\r'
18127 else
18128 ac_cs_awk_cr=$ac_cr
18129 fi
18130
18131 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18132 _ACEOF
18133
18134
18135 {
18136 echo "cat >conf$$subs.awk <<_ACEOF" &&
18137 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18138 echo "_ACEOF"
18139 } >conf$$subs.sh ||
18140 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18141 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18142 ac_delim='%!_!# '
18143 for ac_last_try in false false false false false :; do
18144 . ./conf$$subs.sh ||
18145 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18146
18147 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18148 if test $ac_delim_n = $ac_delim_num; then
18149 break
18150 elif $ac_last_try; then
18151 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18152 else
18153 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18154 fi
18155 done
18156 rm -f conf$$subs.sh
18157
18158 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18159 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18160 _ACEOF
18161 sed -n '
18162 h
18163 s/^/S["/; s/!.*/"]=/
18164 p
18165 g
18166 s/^[^!]*!//
18167 :repl
18168 t repl
18169 s/'"$ac_delim"'$//
18170 t delim
18171 :nl
18172 h
18173 s/\(.\{148\}\)..*/\1/
18174 t more1
18175 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18176 p
18177 n
18178 b repl
18179 :more1
18180 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18181 p
18182 g
18183 s/.\{148\}//
18184 t nl
18185 :delim
18186 h
18187 s/\(.\{148\}\)..*/\1/
18188 t more2
18189 s/["\\]/\\&/g; s/^/"/; s/$/"/
18190 p
18191 b
18192 :more2
18193 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18194 p
18195 g
18196 s/.\{148\}//
18197 t delim
18198 ' <conf$$subs.awk | sed '
18199 /^[^""]/{
18200 N
18201 s/\n//
18202 }
18203 ' >>$CONFIG_STATUS || ac_write_fail=1
18204 rm -f conf$$subs.awk
18205 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18206 _ACAWK
18207 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18208 for (key in S) S_is_set[key] = 1
18209 FS = "\a"
18210
18211 }
18212 {
18213 line = $ 0
18214 nfields = split(line, field, "@")
18215 substed = 0
18216 len = length(field[1])
18217 for (i = 2; i < nfields; i++) {
18218 key = field[i]
18219 keylen = length(key)
18220 if (S_is_set[key]) {
18221 value = S[key]
18222 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18223 len += length(value) + length(field[++i])
18224 substed = 1
18225 } else
18226 len += 1 + keylen
18227 }
18228
18229 print line
18230 }
18231
18232 _ACAWK
18233 _ACEOF
18234 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18235 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18236 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18237 else
18238 cat
18239 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18240 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18241 _ACEOF
18242
18243 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18244 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18245 # trailing colons and then remove the whole line if VPATH becomes empty
18246 # (actually we leave an empty line to preserve line numbers).
18247 if test "x$srcdir" = x.; then
18248 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18249 h
18250 s///
18251 s/^/:/
18252 s/[ ]*$/:/
18253 s/:\$(srcdir):/:/g
18254 s/:\${srcdir}:/:/g
18255 s/:@srcdir@:/:/g
18256 s/^:*//
18257 s/:*$//
18258 x
18259 s/\(=[ ]*\).*/\1/
18260 G
18261 s/\n//
18262 s/^[^=]*=[ ]*$//
18263 }'
18264 fi
18265
18266 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18267 fi # test -n "$CONFIG_FILES"
18268
18269 # Set up the scripts for CONFIG_HEADERS section.
18270 # No need to generate them if there are no CONFIG_HEADERS.
18271 # This happens for instance with `./config.status Makefile'.
18272 if test -n "$CONFIG_HEADERS"; then
18273 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18274 BEGIN {
18275 _ACEOF
18276
18277 # Transform confdefs.h into an awk script `defines.awk', embedded as
18278 # here-document in config.status, that substitutes the proper values into
18279 # config.h.in to produce config.h.
18280
18281 # Create a delimiter string that does not exist in confdefs.h, to ease
18282 # handling of long lines.
18283 ac_delim='%!_!# '
18284 for ac_last_try in false false :; do
18285 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18286 if test -z "$ac_tt"; then
18287 break
18288 elif $ac_last_try; then
18289 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18290 else
18291 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18292 fi
18293 done
18294
18295 # For the awk script, D is an array of macro values keyed by name,
18296 # likewise P contains macro parameters if any. Preserve backslash
18297 # newline sequences.
18298
18299 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18300 sed -n '
18301 s/.\{148\}/&'"$ac_delim"'/g
18302 t rset
18303 :rset
18304 s/^[ ]*#[ ]*define[ ][ ]*/ /
18305 t def
18306 d
18307 :def
18308 s/\\$//
18309 t bsnl
18310 s/["\\]/\\&/g
18311 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18312 D["\1"]=" \3"/p
18313 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18314 d
18315 :bsnl
18316 s/["\\]/\\&/g
18317 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18318 D["\1"]=" \3\\\\\\n"\\/p
18319 t cont
18320 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18321 t cont
18322 d
18323 :cont
18324 n
18325 s/.\{148\}/&'"$ac_delim"'/g
18326 t clear
18327 :clear
18328 s/\\$//
18329 t bsnlc
18330 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18331 d
18332 :bsnlc
18333 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18334 b cont
18335 ' <confdefs.h | sed '
18336 s/'"$ac_delim"'/"\\\
18337 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18338
18339 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18340 for (key in D) D_is_set[key] = 1
18341 FS = "\a"
18342 }
18343 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18344 line = \$ 0
18345 split(line, arg, " ")
18346 if (arg[1] == "#") {
18347 defundef = arg[2]
18348 mac1 = arg[3]
18349 } else {
18350 defundef = substr(arg[1], 2)
18351 mac1 = arg[2]
18352 }
18353 split(mac1, mac2, "(") #)
18354 macro = mac2[1]
18355 prefix = substr(line, 1, index(line, defundef) - 1)
18356 if (D_is_set[macro]) {
18357 # Preserve the white space surrounding the "#".
18358 print prefix "define", macro P[macro] D[macro]
18359 next
18360 } else {
18361 # Replace #undef with comments. This is necessary, for example,
18362 # in the case of _POSIX_SOURCE, which is predefined and required
18363 # on some systems where configure will not decide to define it.
18364 if (defundef == "undef") {
18365 print "/*", prefix defundef, macro, "*/"
18366 next
18367 }
18368 }
18369 }
18370 { print }
18371 _ACAWK
18372 _ACEOF
18373 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18374 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18375 fi # test -n "$CONFIG_HEADERS"
18376
18377
18378 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18379 shift
18380 for ac_tag
18381 do
18382 case $ac_tag in
18383 :[FHLC]) ac_mode=$ac_tag; continue;;
18384 esac
18385 case $ac_mode$ac_tag in
18386 :[FHL]*:*);;
18387 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18388 :[FH]-) ac_tag=-:-;;
18389 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18390 esac
18391 ac_save_IFS=$IFS
18392 IFS=:
18393 set x $ac_tag
18394 IFS=$ac_save_IFS
18395 shift
18396 ac_file=$1
18397 shift
18398
18399 case $ac_mode in
18400 :L) ac_source=$1;;
18401 :[FH])
18402 ac_file_inputs=
18403 for ac_f
18404 do
18405 case $ac_f in
18406 -) ac_f="$ac_tmp/stdin";;
18407 *) # Look for the file first in the build tree, then in the source tree
18408 # (if the path is not absolute). The absolute path cannot be DOS-style,
18409 # because $ac_f cannot contain `:'.
18410 test -f "$ac_f" ||
18411 case $ac_f in
18412 [\\/$]*) false;;
18413 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18414 esac ||
18415 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18416 esac
18417 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18418 as_fn_append ac_file_inputs " '$ac_f'"
18419 done
18420
18421 # Let's still pretend it is `configure' which instantiates (i.e., don't
18422 # use $as_me), people would be surprised to read:
18423 # /* config.h. Generated by config.status. */
18424 configure_input='Generated from '`
18425 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18426 `' by configure.'
18427 if test x"$ac_file" != x-; then
18428 configure_input="$ac_file. $configure_input"
18429 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18430 $as_echo "$as_me: creating $ac_file" >&6;}
18431 fi
18432 # Neutralize special characters interpreted by sed in replacement strings.
18433 case $configure_input in #(
18434 *\&* | *\|* | *\\* )
18435 ac_sed_conf_input=`$as_echo "$configure_input" |
18436 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18437 *) ac_sed_conf_input=$configure_input;;
18438 esac
18439
18440 case $ac_tag in
18441 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18442 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18443 esac
18444 ;;
18445 esac
18446
18447 ac_dir=`$as_dirname -- "$ac_file" ||
18448 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18449 X"$ac_file" : 'X\(//\)[^/]' \| \
18450 X"$ac_file" : 'X\(//\)$' \| \
18451 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18452 $as_echo X"$ac_file" |
18453 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18454 s//\1/
18455 q
18456 }
18457 /^X\(\/\/\)[^/].*/{
18458 s//\1/
18459 q
18460 }
18461 /^X\(\/\/\)$/{
18462 s//\1/
18463 q
18464 }
18465 /^X\(\/\).*/{
18466 s//\1/
18467 q
18468 }
18469 s/.*/./; q'`
18470 as_dir="$ac_dir"; as_fn_mkdir_p
18471 ac_builddir=.
18472
18473 case "$ac_dir" in
18474 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18475 *)
18476 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18477 # A ".." for each directory in $ac_dir_suffix.
18478 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18479 case $ac_top_builddir_sub in
18480 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18481 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18482 esac ;;
18483 esac
18484 ac_abs_top_builddir=$ac_pwd
18485 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18486 # for backward compatibility:
18487 ac_top_builddir=$ac_top_build_prefix
18488
18489 case $srcdir in
18490 .) # We are building in place.
18491 ac_srcdir=.
18492 ac_top_srcdir=$ac_top_builddir_sub
18493 ac_abs_top_srcdir=$ac_pwd ;;
18494 [\\/]* | ?:[\\/]* ) # Absolute name.
18495 ac_srcdir=$srcdir$ac_dir_suffix;
18496 ac_top_srcdir=$srcdir
18497 ac_abs_top_srcdir=$srcdir ;;
18498 *) # Relative name.
18499 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18500 ac_top_srcdir=$ac_top_build_prefix$srcdir
18501 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18502 esac
18503 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18504
18505
18506 case $ac_mode in
18507 :F)
18508 #
18509 # CONFIG_FILE
18510 #
18511
18512 case $INSTALL in
18513 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18514 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18515 esac
18516 ac_MKDIR_P=$MKDIR_P
18517 case $MKDIR_P in
18518 [\\/$]* | ?:[\\/]* ) ;;
18519 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18520 esac
18521 _ACEOF
18522
18523 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18524 # If the template does not know about datarootdir, expand it.
18525 # FIXME: This hack should be removed a few years after 2.60.
18526 ac_datarootdir_hack=; ac_datarootdir_seen=
18527 ac_sed_dataroot='
18528 /datarootdir/ {
18529 p
18530 q
18531 }
18532 /@datadir@/p
18533 /@docdir@/p
18534 /@infodir@/p
18535 /@localedir@/p
18536 /@mandir@/p'
18537 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18538 *datarootdir*) ac_datarootdir_seen=yes;;
18539 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18541 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18542 _ACEOF
18543 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18544 ac_datarootdir_hack='
18545 s&@datadir@&$datadir&g
18546 s&@docdir@&$docdir&g
18547 s&@infodir@&$infodir&g
18548 s&@localedir@&$localedir&g
18549 s&@mandir@&$mandir&g
18550 s&\\\${datarootdir}&$datarootdir&g' ;;
18551 esac
18552 _ACEOF
18553
18554 # Neutralize VPATH when `$srcdir' = `.'.
18555 # Shell code in configure.ac might set extrasub.
18556 # FIXME: do we really want to maintain this feature?
18557 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18558 ac_sed_extra="$ac_vpsub
18559 $extrasub
18560 _ACEOF
18561 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18562 :t
18563 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18564 s|@configure_input@|$ac_sed_conf_input|;t t
18565 s&@top_builddir@&$ac_top_builddir_sub&;t t
18566 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18567 s&@srcdir@&$ac_srcdir&;t t
18568 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18569 s&@top_srcdir@&$ac_top_srcdir&;t t
18570 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18571 s&@builddir@&$ac_builddir&;t t
18572 s&@abs_builddir@&$ac_abs_builddir&;t t
18573 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18574 s&@INSTALL@&$ac_INSTALL&;t t
18575 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18576 $ac_datarootdir_hack
18577 "
18578 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18579 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18580
18581 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18582 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18583 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18584 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18586 which seems to be undefined. Please make sure it is defined" >&5
18587 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18588 which seems to be undefined. Please make sure it is defined" >&2;}
18589
18590 rm -f "$ac_tmp/stdin"
18591 case $ac_file in
18592 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18593 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18594 esac \
18595 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18596 ;;
18597 :H)
18598 #
18599 # CONFIG_HEADER
18600 #
18601 if test x"$ac_file" != x-; then
18602 {
18603 $as_echo "/* $configure_input */" \
18604 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18605 } >"$ac_tmp/config.h" \
18606 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18607 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18608 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18609 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18610 else
18611 rm -f "$ac_file"
18612 mv "$ac_tmp/config.h" "$ac_file" \
18613 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18614 fi
18615 else
18616 $as_echo "/* $configure_input */" \
18617 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18618 || as_fn_error $? "could not create -" "$LINENO" 5
18619 fi
18620 # Compute "$ac_file"'s index in $config_headers.
18621 _am_arg="$ac_file"
18622 _am_stamp_count=1
18623 for _am_header in $config_headers :; do
18624 case $_am_header in
18625 $_am_arg | $_am_arg:* )
18626 break ;;
18627 * )
18628 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18629 esac
18630 done
18631 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18632 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18633 X"$_am_arg" : 'X\(//\)[^/]' \| \
18634 X"$_am_arg" : 'X\(//\)$' \| \
18635 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18636 $as_echo X"$_am_arg" |
18637 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18638 s//\1/
18639 q
18640 }
18641 /^X\(\/\/\)[^/].*/{
18642 s//\1/
18643 q
18644 }
18645 /^X\(\/\/\)$/{
18646 s//\1/
18647 q
18648 }
18649 /^X\(\/\).*/{
18650 s//\1/
18651 q
18652 }
18653 s/.*/./; q'`/stamp-h$_am_stamp_count
18654 ;;
18655
18656 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18657 $as_echo "$as_me: executing $ac_file commands" >&6;}
18658 ;;
18659 esac
18660
18661
18662 case $ac_file$ac_mode in
18663 "default-1":C)
18664 # Only add multilib support code if we just rebuilt the top-level
18665 # Makefile.
18666 case " $CONFIG_FILES " in
18667 *" Makefile "*)
18668 ac_file=Makefile . ${multi_basedir}/config-ml.in
18669 ;;
18670 esac ;;
18671 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18672 # Older Autoconf quotes --file arguments for eval, but not when files
18673 # are listed without --file. Let's play safe and only enable the eval
18674 # if we detect the quoting.
18675 case $CONFIG_FILES in
18676 *\'*) eval set x "$CONFIG_FILES" ;;
18677 *) set x $CONFIG_FILES ;;
18678 esac
18679 shift
18680 for mf
18681 do
18682 # Strip MF so we end up with the name of the file.
18683 mf=`echo "$mf" | sed -e 's/:.*$//'`
18684 # Check whether this is an Automake generated Makefile or not.
18685 # We used to match only the files named 'Makefile.in', but
18686 # some people rename them; so instead we look at the file content.
18687 # Grep'ing the first line is not enough: some people post-process
18688 # each Makefile.in and add a new line on top of each file to say so.
18689 # Grep'ing the whole file is not good either: AIX grep has a line
18690 # limit of 2048, but all sed's we know have understand at least 4000.
18691 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18692 dirpart=`$as_dirname -- "$mf" ||
18693 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18694 X"$mf" : 'X\(//\)[^/]' \| \
18695 X"$mf" : 'X\(//\)$' \| \
18696 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18697 $as_echo X"$mf" |
18698 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18699 s//\1/
18700 q
18701 }
18702 /^X\(\/\/\)[^/].*/{
18703 s//\1/
18704 q
18705 }
18706 /^X\(\/\/\)$/{
18707 s//\1/
18708 q
18709 }
18710 /^X\(\/\).*/{
18711 s//\1/
18712 q
18713 }
18714 s/.*/./; q'`
18715 else
18716 continue
18717 fi
18718 # Extract the definition of DEPDIR, am__include, and am__quote
18719 # from the Makefile without running 'make'.
18720 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18721 test -z "$DEPDIR" && continue
18722 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18723 test -z "$am__include" && continue
18724 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18725 # Find all dependency output files, they are included files with
18726 # $(DEPDIR) in their names. We invoke sed twice because it is the
18727 # simplest approach to changing $(DEPDIR) to its actual value in the
18728 # expansion.
18729 for file in `sed -n "
18730 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18731 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18732 # Make sure the directory exists.
18733 test -f "$dirpart/$file" && continue
18734 fdir=`$as_dirname -- "$file" ||
18735 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18736 X"$file" : 'X\(//\)[^/]' \| \
18737 X"$file" : 'X\(//\)$' \| \
18738 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18739 $as_echo X"$file" |
18740 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18741 s//\1/
18742 q
18743 }
18744 /^X\(\/\/\)[^/].*/{
18745 s//\1/
18746 q
18747 }
18748 /^X\(\/\/\)$/{
18749 s//\1/
18750 q
18751 }
18752 /^X\(\/\).*/{
18753 s//\1/
18754 q
18755 }
18756 s/.*/./; q'`
18757 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18758 # echo "creating $dirpart/$file"
18759 echo '# dummy' > "$dirpart/$file"
18760 done
18761 done
18762 }
18763 ;;
18764 "libtool":C)
18765
18766 # See if we are running on zsh, and set the options which allow our
18767 # commands through without removal of \ escapes.
18768 if test -n "${ZSH_VERSION+set}" ; then
18769 setopt NO_GLOB_SUBST
18770 fi
18771
18772 cfgfile="${ofile}T"
18773 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18774 $RM "$cfgfile"
18775
18776 cat <<_LT_EOF >> "$cfgfile"
18777 #! $SHELL
18778
18779 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18780 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18781 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18782 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18783 #
18784 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18785 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18786 # Written by Gordon Matzigkeit, 1996
18787 #
18788 # This file is part of GNU Libtool.
18789 #
18790 # GNU Libtool is free software; you can redistribute it and/or
18791 # modify it under the terms of the GNU General Public License as
18792 # published by the Free Software Foundation; either version 2 of
18793 # the License, or (at your option) any later version.
18794 #
18795 # As a special exception to the GNU General Public License,
18796 # if you distribute this file as part of a program or library that
18797 # is built using GNU Libtool, you may include this file under the
18798 # same distribution terms that you use for the rest of that program.
18799 #
18800 # GNU Libtool is distributed in the hope that it will be useful,
18801 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18802 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18803 # GNU General Public License for more details.
18804 #
18805 # You should have received a copy of the GNU General Public License
18806 # along with GNU Libtool; see the file COPYING. If not, a copy
18807 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18808 # obtained by writing to the Free Software Foundation, Inc.,
18809 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18810
18811
18812 # The names of the tagged configurations supported by this script.
18813 available_tags="CXX "
18814
18815 # ### BEGIN LIBTOOL CONFIG
18816
18817 # Which release of libtool.m4 was used?
18818 macro_version=$macro_version
18819 macro_revision=$macro_revision
18820
18821 # Whether or not to build shared libraries.
18822 build_libtool_libs=$enable_shared
18823
18824 # Whether or not to build static libraries.
18825 build_old_libs=$enable_static
18826
18827 # What type of objects to build.
18828 pic_mode=$pic_mode
18829
18830 # Whether or not to optimize for fast installation.
18831 fast_install=$enable_fast_install
18832
18833 # Shell to use when invoking shell scripts.
18834 SHELL=$lt_SHELL
18835
18836 # An echo program that protects backslashes.
18837 ECHO=$lt_ECHO
18838
18839 # The host system.
18840 host_alias=$host_alias
18841 host=$host
18842 host_os=$host_os
18843
18844 # The build system.
18845 build_alias=$build_alias
18846 build=$build
18847 build_os=$build_os
18848
18849 # A sed program that does not truncate output.
18850 SED=$lt_SED
18851
18852 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18853 Xsed="\$SED -e 1s/^X//"
18854
18855 # A grep program that handles long lines.
18856 GREP=$lt_GREP
18857
18858 # An ERE matcher.
18859 EGREP=$lt_EGREP
18860
18861 # A literal string matcher.
18862 FGREP=$lt_FGREP
18863
18864 # A BSD- or MS-compatible name lister.
18865 NM=$lt_NM
18866
18867 # Whether we need soft or hard links.
18868 LN_S=$lt_LN_S
18869
18870 # What is the maximum length of a command?
18871 max_cmd_len=$max_cmd_len
18872
18873 # Object file suffix (normally "o").
18874 objext=$ac_objext
18875
18876 # Executable file suffix (normally "").
18877 exeext=$exeext
18878
18879 # whether the shell understands "unset".
18880 lt_unset=$lt_unset
18881
18882 # turn spaces into newlines.
18883 SP2NL=$lt_lt_SP2NL
18884
18885 # turn newlines into spaces.
18886 NL2SP=$lt_lt_NL2SP
18887
18888 # An object symbol dumper.
18889 OBJDUMP=$lt_OBJDUMP
18890
18891 # Method to check whether dependent libraries are shared objects.
18892 deplibs_check_method=$lt_deplibs_check_method
18893
18894 # Command to use when deplibs_check_method == "file_magic".
18895 file_magic_cmd=$lt_file_magic_cmd
18896
18897 # The archiver.
18898 AR=$lt_AR
18899 AR_FLAGS=$lt_AR_FLAGS
18900
18901 # A symbol stripping program.
18902 STRIP=$lt_STRIP
18903
18904 # Commands used to install an old-style archive.
18905 RANLIB=$lt_RANLIB
18906 old_postinstall_cmds=$lt_old_postinstall_cmds
18907 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18908
18909 # Whether to use a lock for old archive extraction.
18910 lock_old_archive_extraction=$lock_old_archive_extraction
18911
18912 # A C compiler.
18913 LTCC=$lt_CC
18914
18915 # LTCC compiler flags.
18916 LTCFLAGS=$lt_CFLAGS
18917
18918 # Take the output of nm and produce a listing of raw symbols and C names.
18919 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18920
18921 # Transform the output of nm in a proper C declaration.
18922 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18923
18924 # Transform the output of nm in a C name address pair.
18925 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18926
18927 # Transform the output of nm in a C name address pair when lib prefix is needed.
18928 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18929
18930 # The name of the directory that contains temporary libtool files.
18931 objdir=$objdir
18932
18933 # Used to examine libraries when file_magic_cmd begins with "file".
18934 MAGIC_CMD=$MAGIC_CMD
18935
18936 # Must we lock files when doing compilation?
18937 need_locks=$lt_need_locks
18938
18939 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18940 DSYMUTIL=$lt_DSYMUTIL
18941
18942 # Tool to change global to local symbols on Mac OS X.
18943 NMEDIT=$lt_NMEDIT
18944
18945 # Tool to manipulate fat objects and archives on Mac OS X.
18946 LIPO=$lt_LIPO
18947
18948 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18949 OTOOL=$lt_OTOOL
18950
18951 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18952 OTOOL64=$lt_OTOOL64
18953
18954 # Old archive suffix (normally "a").
18955 libext=$libext
18956
18957 # Shared library suffix (normally ".so").
18958 shrext_cmds=$lt_shrext_cmds
18959
18960 # The commands to extract the exported symbol list from a shared archive.
18961 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18962
18963 # Variables whose values should be saved in libtool wrapper scripts and
18964 # restored at link time.
18965 variables_saved_for_relink=$lt_variables_saved_for_relink
18966
18967 # Do we need the "lib" prefix for modules?
18968 need_lib_prefix=$need_lib_prefix
18969
18970 # Do we need a version for libraries?
18971 need_version=$need_version
18972
18973 # Library versioning type.
18974 version_type=$version_type
18975
18976 # Shared library runtime path variable.
18977 runpath_var=$runpath_var
18978
18979 # Shared library path variable.
18980 shlibpath_var=$shlibpath_var
18981
18982 # Is shlibpath searched before the hard-coded library search path?
18983 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18984
18985 # Format of library name prefix.
18986 libname_spec=$lt_libname_spec
18987
18988 # List of archive names. First name is the real one, the rest are links.
18989 # The last name is the one that the linker finds with -lNAME
18990 library_names_spec=$lt_library_names_spec
18991
18992 # The coded name of the library, if different from the real name.
18993 soname_spec=$lt_soname_spec
18994
18995 # Permission mode override for installation of shared libraries.
18996 install_override_mode=$lt_install_override_mode
18997
18998 # Command to use after installation of a shared archive.
18999 postinstall_cmds=$lt_postinstall_cmds
19000
19001 # Command to use after uninstallation of a shared archive.
19002 postuninstall_cmds=$lt_postuninstall_cmds
19003
19004 # Commands used to finish a libtool library installation in a directory.
19005 finish_cmds=$lt_finish_cmds
19006
19007 # As "finish_cmds", except a single script fragment to be evaled but
19008 # not shown.
19009 finish_eval=$lt_finish_eval
19010
19011 # Whether we should hardcode library paths into libraries.
19012 hardcode_into_libs=$hardcode_into_libs
19013
19014 # Compile-time system search path for libraries.
19015 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19016
19017 # Run-time system search path for libraries.
19018 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19019
19020 # Whether dlopen is supported.
19021 dlopen_support=$enable_dlopen
19022
19023 # Whether dlopen of programs is supported.
19024 dlopen_self=$enable_dlopen_self
19025
19026 # Whether dlopen of statically linked programs is supported.
19027 dlopen_self_static=$enable_dlopen_self_static
19028
19029 # Commands to strip libraries.
19030 old_striplib=$lt_old_striplib
19031 striplib=$lt_striplib
19032
19033
19034 # The linker used to build libraries.
19035 LD=$lt_LD
19036
19037 # How to create reloadable object files.
19038 reload_flag=$lt_reload_flag
19039 reload_cmds=$lt_reload_cmds
19040
19041 # Commands used to build an old-style archive.
19042 old_archive_cmds=$lt_old_archive_cmds
19043
19044 # A language specific compiler.
19045 CC=$lt_compiler
19046
19047 # Is the compiler the GNU compiler?
19048 with_gcc=$GCC
19049
19050 # Compiler flag to turn off builtin functions.
19051 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19052
19053 # How to pass a linker flag through the compiler.
19054 wl=$lt_lt_prog_compiler_wl
19055
19056 # Additional compiler flags for building library objects.
19057 pic_flag=$lt_lt_prog_compiler_pic
19058
19059 # Compiler flag to prevent dynamic linking.
19060 link_static_flag=$lt_lt_prog_compiler_static
19061
19062 # Does compiler simultaneously support -c and -o options?
19063 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19064
19065 # Whether or not to add -lc for building shared libraries.
19066 build_libtool_need_lc=$archive_cmds_need_lc
19067
19068 # Whether or not to disallow shared libs when runtime libs are static.
19069 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19070
19071 # Compiler flag to allow reflexive dlopens.
19072 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19073
19074 # Compiler flag to generate shared objects directly from archives.
19075 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19076
19077 # Whether the compiler copes with passing no objects directly.
19078 compiler_needs_object=$lt_compiler_needs_object
19079
19080 # Create an old-style archive from a shared archive.
19081 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19082
19083 # Create a temporary old-style archive to link instead of a shared archive.
19084 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19085
19086 # Commands used to build a shared archive.
19087 archive_cmds=$lt_archive_cmds
19088 archive_expsym_cmds=$lt_archive_expsym_cmds
19089
19090 # Commands used to build a loadable module if different from building
19091 # a shared archive.
19092 module_cmds=$lt_module_cmds
19093 module_expsym_cmds=$lt_module_expsym_cmds
19094
19095 # Whether we are building with GNU ld or not.
19096 with_gnu_ld=$lt_with_gnu_ld
19097
19098 # Flag that allows shared libraries with undefined symbols to be built.
19099 allow_undefined_flag=$lt_allow_undefined_flag
19100
19101 # Flag that enforces no undefined symbols.
19102 no_undefined_flag=$lt_no_undefined_flag
19103
19104 # Flag to hardcode \$libdir into a binary during linking.
19105 # This must work even if \$libdir does not exist
19106 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19107
19108 # If ld is used when linking, flag to hardcode \$libdir into a binary
19109 # during linking. This must work even if \$libdir does not exist.
19110 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19111
19112 # Whether we need a single "-rpath" flag with a separated argument.
19113 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19114
19115 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19116 # DIR into the resulting binary.
19117 hardcode_direct=$hardcode_direct
19118
19119 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19120 # DIR into the resulting binary and the resulting library dependency is
19121 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19122 # library is relocated.
19123 hardcode_direct_absolute=$hardcode_direct_absolute
19124
19125 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19126 # into the resulting binary.
19127 hardcode_minus_L=$hardcode_minus_L
19128
19129 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19130 # into the resulting binary.
19131 hardcode_shlibpath_var=$hardcode_shlibpath_var
19132
19133 # Set to "yes" if building a shared library automatically hardcodes DIR
19134 # into the library and all subsequent libraries and executables linked
19135 # against it.
19136 hardcode_automatic=$hardcode_automatic
19137
19138 # Set to yes if linker adds runtime paths of dependent libraries
19139 # to runtime path list.
19140 inherit_rpath=$inherit_rpath
19141
19142 # Whether libtool must link a program against all its dependency libraries.
19143 link_all_deplibs=$link_all_deplibs
19144
19145 # Fix the shell variable \$srcfile for the compiler.
19146 fix_srcfile_path=$lt_fix_srcfile_path
19147
19148 # Set to "yes" if exported symbols are required.
19149 always_export_symbols=$always_export_symbols
19150
19151 # The commands to list exported symbols.
19152 export_symbols_cmds=$lt_export_symbols_cmds
19153
19154 # Symbols that should not be listed in the preloaded symbols.
19155 exclude_expsyms=$lt_exclude_expsyms
19156
19157 # Symbols that must always be exported.
19158 include_expsyms=$lt_include_expsyms
19159
19160 # Commands necessary for linking programs (against libraries) with templates.
19161 prelink_cmds=$lt_prelink_cmds
19162
19163 # Specify filename containing input files.
19164 file_list_spec=$lt_file_list_spec
19165
19166 # How to hardcode a shared library path into an executable.
19167 hardcode_action=$hardcode_action
19168
19169 # The directories searched by this compiler when creating a shared library.
19170 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19171
19172 # Dependencies to place before and after the objects being linked to
19173 # create a shared library.
19174 predep_objects=$lt_predep_objects
19175 postdep_objects=$lt_postdep_objects
19176 predeps=$lt_predeps
19177 postdeps=$lt_postdeps
19178
19179 # The library search path used internally by the compiler when linking
19180 # a shared library.
19181 compiler_lib_search_path=$lt_compiler_lib_search_path
19182
19183 # ### END LIBTOOL CONFIG
19184
19185 _LT_EOF
19186
19187 case $host_os in
19188 aix3*)
19189 cat <<\_LT_EOF >> "$cfgfile"
19190 # AIX sometimes has problems with the GCC collect2 program. For some
19191 # reason, if we set the COLLECT_NAMES environment variable, the problems
19192 # vanish in a puff of smoke.
19193 if test "X${COLLECT_NAMES+set}" != Xset; then
19194 COLLECT_NAMES=
19195 export COLLECT_NAMES
19196 fi
19197 _LT_EOF
19198 ;;
19199 esac
19200
19201
19202 ltmain="$ac_aux_dir/ltmain.sh"
19203
19204
19205 # We use sed instead of cat because bash on DJGPP gets confused if
19206 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19207 # text mode, it properly converts lines to CR/LF. This bash problem
19208 # is reportedly fixed, but why not run on old versions too?
19209 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19210 || (rm -f "$cfgfile"; exit 1)
19211
19212 case $xsi_shell in
19213 yes)
19214 cat << \_LT_EOF >> "$cfgfile"
19215
19216 # func_dirname file append nondir_replacement
19217 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19218 # otherwise set result to NONDIR_REPLACEMENT.
19219 func_dirname ()
19220 {
19221 case ${1} in
19222 */*) func_dirname_result="${1%/*}${2}" ;;
19223 * ) func_dirname_result="${3}" ;;
19224 esac
19225 }
19226
19227 # func_basename file
19228 func_basename ()
19229 {
19230 func_basename_result="${1##*/}"
19231 }
19232
19233 # func_dirname_and_basename file append nondir_replacement
19234 # perform func_basename and func_dirname in a single function
19235 # call:
19236 # dirname: Compute the dirname of FILE. If nonempty,
19237 # add APPEND to the result, otherwise set result
19238 # to NONDIR_REPLACEMENT.
19239 # value returned in "$func_dirname_result"
19240 # basename: Compute filename of FILE.
19241 # value retuned in "$func_basename_result"
19242 # Implementation must be kept synchronized with func_dirname
19243 # and func_basename. For efficiency, we do not delegate to
19244 # those functions but instead duplicate the functionality here.
19245 func_dirname_and_basename ()
19246 {
19247 case ${1} in
19248 */*) func_dirname_result="${1%/*}${2}" ;;
19249 * ) func_dirname_result="${3}" ;;
19250 esac
19251 func_basename_result="${1##*/}"
19252 }
19253
19254 # func_stripname prefix suffix name
19255 # strip PREFIX and SUFFIX off of NAME.
19256 # PREFIX and SUFFIX must not contain globbing or regex special
19257 # characters, hashes, percent signs, but SUFFIX may contain a leading
19258 # dot (in which case that matches only a dot).
19259 func_stripname ()
19260 {
19261 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19262 # positional parameters, so assign one to ordinary parameter first.
19263 func_stripname_result=${3}
19264 func_stripname_result=${func_stripname_result#"${1}"}
19265 func_stripname_result=${func_stripname_result%"${2}"}
19266 }
19267
19268 # func_opt_split
19269 func_opt_split ()
19270 {
19271 func_opt_split_opt=${1%%=*}
19272 func_opt_split_arg=${1#*=}
19273 }
19274
19275 # func_lo2o object
19276 func_lo2o ()
19277 {
19278 case ${1} in
19279 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19280 *) func_lo2o_result=${1} ;;
19281 esac
19282 }
19283
19284 # func_xform libobj-or-source
19285 func_xform ()
19286 {
19287 func_xform_result=${1%.*}.lo
19288 }
19289
19290 # func_arith arithmetic-term...
19291 func_arith ()
19292 {
19293 func_arith_result=$(( $* ))
19294 }
19295
19296 # func_len string
19297 # STRING may not start with a hyphen.
19298 func_len ()
19299 {
19300 func_len_result=${#1}
19301 }
19302
19303 _LT_EOF
19304 ;;
19305 *) # Bourne compatible functions.
19306 cat << \_LT_EOF >> "$cfgfile"
19307
19308 # func_dirname file append nondir_replacement
19309 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19310 # otherwise set result to NONDIR_REPLACEMENT.
19311 func_dirname ()
19312 {
19313 # Extract subdirectory from the argument.
19314 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
19315 if test "X$func_dirname_result" = "X${1}"; then
19316 func_dirname_result="${3}"
19317 else
19318 func_dirname_result="$func_dirname_result${2}"
19319 fi
19320 }
19321
19322 # func_basename file
19323 func_basename ()
19324 {
19325 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
19326 }
19327
19328
19329 # func_stripname prefix suffix name
19330 # strip PREFIX and SUFFIX off of NAME.
19331 # PREFIX and SUFFIX must not contain globbing or regex special
19332 # characters, hashes, percent signs, but SUFFIX may contain a leading
19333 # dot (in which case that matches only a dot).
19334 # func_strip_suffix prefix name
19335 func_stripname ()
19336 {
19337 case ${2} in
19338 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19339 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19340 esac
19341 }
19342
19343 # sed scripts:
19344 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19345 my_sed_long_arg='1s/^-[^=]*=//'
19346
19347 # func_opt_split
19348 func_opt_split ()
19349 {
19350 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19351 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19352 }
19353
19354 # func_lo2o object
19355 func_lo2o ()
19356 {
19357 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
19358 }
19359
19360 # func_xform libobj-or-source
19361 func_xform ()
19362 {
19363 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19364 }
19365
19366 # func_arith arithmetic-term...
19367 func_arith ()
19368 {
19369 func_arith_result=`expr "$@"`
19370 }
19371
19372 # func_len string
19373 # STRING may not start with a hyphen.
19374 func_len ()
19375 {
19376 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19377 }
19378
19379 _LT_EOF
19380 esac
19381
19382 case $lt_shell_append in
19383 yes)
19384 cat << \_LT_EOF >> "$cfgfile"
19385
19386 # func_append var value
19387 # Append VALUE to the end of shell variable VAR.
19388 func_append ()
19389 {
19390 eval "$1+=\$2"
19391 }
19392 _LT_EOF
19393 ;;
19394 *)
19395 cat << \_LT_EOF >> "$cfgfile"
19396
19397 # func_append var value
19398 # Append VALUE to the end of shell variable VAR.
19399 func_append ()
19400 {
19401 eval "$1=\$$1\$2"
19402 }
19403
19404 _LT_EOF
19405 ;;
19406 esac
19407
19408
19409 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19410 || (rm -f "$cfgfile"; exit 1)
19411
19412 mv -f "$cfgfile" "$ofile" ||
19413 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19414 chmod +x "$ofile"
19415
19416
19417 cat <<_LT_EOF >> "$ofile"
19418
19419 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19420
19421 # The linker used to build libraries.
19422 LD=$lt_LD_CXX
19423
19424 # How to create reloadable object files.
19425 reload_flag=$lt_reload_flag_CXX
19426 reload_cmds=$lt_reload_cmds_CXX
19427
19428 # Commands used to build an old-style archive.
19429 old_archive_cmds=$lt_old_archive_cmds_CXX
19430
19431 # A language specific compiler.
19432 CC=$lt_compiler_CXX
19433
19434 # Is the compiler the GNU compiler?
19435 with_gcc=$GCC_CXX
19436
19437 # Compiler flag to turn off builtin functions.
19438 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19439
19440 # How to pass a linker flag through the compiler.
19441 wl=$lt_lt_prog_compiler_wl_CXX
19442
19443 # Additional compiler flags for building library objects.
19444 pic_flag=$lt_lt_prog_compiler_pic_CXX
19445
19446 # Compiler flag to prevent dynamic linking.
19447 link_static_flag=$lt_lt_prog_compiler_static_CXX
19448
19449 # Does compiler simultaneously support -c and -o options?
19450 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19451
19452 # Whether or not to add -lc for building shared libraries.
19453 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19454
19455 # Whether or not to disallow shared libs when runtime libs are static.
19456 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19457
19458 # Compiler flag to allow reflexive dlopens.
19459 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19460
19461 # Compiler flag to generate shared objects directly from archives.
19462 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19463
19464 # Whether the compiler copes with passing no objects directly.
19465 compiler_needs_object=$lt_compiler_needs_object_CXX
19466
19467 # Create an old-style archive from a shared archive.
19468 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19469
19470 # Create a temporary old-style archive to link instead of a shared archive.
19471 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19472
19473 # Commands used to build a shared archive.
19474 archive_cmds=$lt_archive_cmds_CXX
19475 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19476
19477 # Commands used to build a loadable module if different from building
19478 # a shared archive.
19479 module_cmds=$lt_module_cmds_CXX
19480 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19481
19482 # Whether we are building with GNU ld or not.
19483 with_gnu_ld=$lt_with_gnu_ld_CXX
19484
19485 # Flag that allows shared libraries with undefined symbols to be built.
19486 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19487
19488 # Flag that enforces no undefined symbols.
19489 no_undefined_flag=$lt_no_undefined_flag_CXX
19490
19491 # Flag to hardcode \$libdir into a binary during linking.
19492 # This must work even if \$libdir does not exist
19493 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19494
19495 # If ld is used when linking, flag to hardcode \$libdir into a binary
19496 # during linking. This must work even if \$libdir does not exist.
19497 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19498
19499 # Whether we need a single "-rpath" flag with a separated argument.
19500 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19501
19502 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19503 # DIR into the resulting binary.
19504 hardcode_direct=$hardcode_direct_CXX
19505
19506 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19507 # DIR into the resulting binary and the resulting library dependency is
19508 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19509 # library is relocated.
19510 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19511
19512 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19513 # into the resulting binary.
19514 hardcode_minus_L=$hardcode_minus_L_CXX
19515
19516 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19517 # into the resulting binary.
19518 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19519
19520 # Set to "yes" if building a shared library automatically hardcodes DIR
19521 # into the library and all subsequent libraries and executables linked
19522 # against it.
19523 hardcode_automatic=$hardcode_automatic_CXX
19524
19525 # Set to yes if linker adds runtime paths of dependent libraries
19526 # to runtime path list.
19527 inherit_rpath=$inherit_rpath_CXX
19528
19529 # Whether libtool must link a program against all its dependency libraries.
19530 link_all_deplibs=$link_all_deplibs_CXX
19531
19532 # Fix the shell variable \$srcfile for the compiler.
19533 fix_srcfile_path=$lt_fix_srcfile_path_CXX
19534
19535 # Set to "yes" if exported symbols are required.
19536 always_export_symbols=$always_export_symbols_CXX
19537
19538 # The commands to list exported symbols.
19539 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19540
19541 # Symbols that should not be listed in the preloaded symbols.
19542 exclude_expsyms=$lt_exclude_expsyms_CXX
19543
19544 # Symbols that must always be exported.
19545 include_expsyms=$lt_include_expsyms_CXX
19546
19547 # Commands necessary for linking programs (against libraries) with templates.
19548 prelink_cmds=$lt_prelink_cmds_CXX
19549
19550 # Specify filename containing input files.
19551 file_list_spec=$lt_file_list_spec_CXX
19552
19553 # How to hardcode a shared library path into an executable.
19554 hardcode_action=$hardcode_action_CXX
19555
19556 # The directories searched by this compiler when creating a shared library.
19557 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19558
19559 # Dependencies to place before and after the objects being linked to
19560 # create a shared library.
19561 predep_objects=$lt_predep_objects_CXX
19562 postdep_objects=$lt_postdep_objects_CXX
19563 predeps=$lt_predeps_CXX
19564 postdeps=$lt_postdeps_CXX
19565
19566 # The library search path used internally by the compiler when linking
19567 # a shared library.
19568 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19569
19570 # ### END LIBTOOL TAG CONFIG: CXX
19571 _LT_EOF
19572
19573 ;;
19574 "gstdint.h":C)
19575 if test "$GCC" = yes; then
19576 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
19577 else
19578 echo "/* generated for $CC */" > tmp-stdint.h
19579 fi
19580
19581 sed 's/^ *//' >> tmp-stdint.h <<EOF
19582
19583 #ifndef GCC_GENERATED_STDINT_H
19584 #define GCC_GENERATED_STDINT_H 1
19585
19586 #include <sys/types.h>
19587 EOF
19588
19589 if test "$acx_cv_header_stdint" != stdint.h; then
19590 echo "#include <stddef.h>" >> tmp-stdint.h
19591 fi
19592 if test "$acx_cv_header_stdint" != stddef.h; then
19593 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
19594 fi
19595
19596 sed 's/^ *//' >> tmp-stdint.h <<EOF
19597 /* glibc uses these symbols as guards to prevent redefinitions. */
19598 #ifdef __int8_t_defined
19599 #define _INT8_T
19600 #define _INT16_T
19601 #define _INT32_T
19602 #endif
19603 #ifdef __uint32_t_defined
19604 #define _UINT32_T
19605 #endif
19606
19607 EOF
19608
19609 # ----------------- done header, emit basic int types -------------
19610 if test "$acx_cv_header_stdint" = stddef.h; then
19611 sed 's/^ *//' >> tmp-stdint.h <<EOF
19612
19613 #ifndef _UINT8_T
19614 #define _UINT8_T
19615 #ifndef __uint8_t_defined
19616 #define __uint8_t_defined
19617 #ifndef uint8_t
19618 typedef unsigned $acx_cv_type_int8_t uint8_t;
19619 #endif
19620 #endif
19621 #endif
19622
19623 #ifndef _UINT16_T
19624 #define _UINT16_T
19625 #ifndef __uint16_t_defined
19626 #define __uint16_t_defined
19627 #ifndef uint16_t
19628 typedef unsigned $acx_cv_type_int16_t uint16_t;
19629 #endif
19630 #endif
19631 #endif
19632
19633 #ifndef _UINT32_T
19634 #define _UINT32_T
19635 #ifndef __uint32_t_defined
19636 #define __uint32_t_defined
19637 #ifndef uint32_t
19638 typedef unsigned $acx_cv_type_int32_t uint32_t;
19639 #endif
19640 #endif
19641 #endif
19642
19643 #ifndef _INT8_T
19644 #define _INT8_T
19645 #ifndef __int8_t_defined
19646 #define __int8_t_defined
19647 #ifndef int8_t
19648 typedef $acx_cv_type_int8_t int8_t;
19649 #endif
19650 #endif
19651 #endif
19652
19653 #ifndef _INT16_T
19654 #define _INT16_T
19655 #ifndef __int16_t_defined
19656 #define __int16_t_defined
19657 #ifndef int16_t
19658 typedef $acx_cv_type_int16_t int16_t;
19659 #endif
19660 #endif
19661 #endif
19662
19663 #ifndef _INT32_T
19664 #define _INT32_T
19665 #ifndef __int32_t_defined
19666 #define __int32_t_defined
19667 #ifndef int32_t
19668 typedef $acx_cv_type_int32_t int32_t;
19669 #endif
19670 #endif
19671 #endif
19672 EOF
19673 elif test "$ac_cv_type_u_int32_t" = yes; then
19674 sed 's/^ *//' >> tmp-stdint.h <<EOF
19675
19676 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
19677 #ifndef _INT8_T
19678 #define _INT8_T
19679 #endif
19680 #ifndef _INT16_T
19681 #define _INT16_T
19682 #endif
19683 #ifndef _INT32_T
19684 #define _INT32_T
19685 #endif
19686
19687 #ifndef _UINT8_T
19688 #define _UINT8_T
19689 #ifndef __uint8_t_defined
19690 #define __uint8_t_defined
19691 #ifndef uint8_t
19692 typedef u_int8_t uint8_t;
19693 #endif
19694 #endif
19695 #endif
19696
19697 #ifndef _UINT16_T
19698 #define _UINT16_T
19699 #ifndef __uint16_t_defined
19700 #define __uint16_t_defined
19701 #ifndef uint16_t
19702 typedef u_int16_t uint16_t;
19703 #endif
19704 #endif
19705 #endif
19706
19707 #ifndef _UINT32_T
19708 #define _UINT32_T
19709 #ifndef __uint32_t_defined
19710 #define __uint32_t_defined
19711 #ifndef uint32_t
19712 typedef u_int32_t uint32_t;
19713 #endif
19714 #endif
19715 #endif
19716 EOF
19717 else
19718 sed 's/^ *//' >> tmp-stdint.h <<EOF
19719
19720 /* Some systems have guard macros to prevent redefinitions, define them. */
19721 #ifndef _INT8_T
19722 #define _INT8_T
19723 #endif
19724 #ifndef _INT16_T
19725 #define _INT16_T
19726 #endif
19727 #ifndef _INT32_T
19728 #define _INT32_T
19729 #endif
19730 #ifndef _UINT8_T
19731 #define _UINT8_T
19732 #endif
19733 #ifndef _UINT16_T
19734 #define _UINT16_T
19735 #endif
19736 #ifndef _UINT32_T
19737 #define _UINT32_T
19738 #endif
19739 EOF
19740 fi
19741
19742 # ------------- done basic int types, emit int64_t types ------------
19743 if test "$ac_cv_type_uint64_t" = yes; then
19744 sed 's/^ *//' >> tmp-stdint.h <<EOF
19745
19746 /* system headers have good uint64_t and int64_t */
19747 #ifndef _INT64_T
19748 #define _INT64_T
19749 #endif
19750 #ifndef _UINT64_T
19751 #define _UINT64_T
19752 #endif
19753 EOF
19754 elif test "$ac_cv_type_u_int64_t" = yes; then
19755 sed 's/^ *//' >> tmp-stdint.h <<EOF
19756
19757 /* system headers have an u_int64_t (and int64_t) */
19758 #ifndef _INT64_T
19759 #define _INT64_T
19760 #endif
19761 #ifndef _UINT64_T
19762 #define _UINT64_T
19763 #ifndef __uint64_t_defined
19764 #define __uint64_t_defined
19765 #ifndef uint64_t
19766 typedef u_int64_t uint64_t;
19767 #endif
19768 #endif
19769 #endif
19770 EOF
19771 elif test -n "$acx_cv_type_int64_t"; then
19772 sed 's/^ *//' >> tmp-stdint.h <<EOF
19773
19774 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
19775 #ifndef _INT64_T
19776 #define _INT64_T
19777 #ifndef int64_t
19778 typedef $acx_cv_type_int64_t int64_t;
19779 #endif
19780 #endif
19781 #ifndef _UINT64_T
19782 #define _UINT64_T
19783 #ifndef __uint64_t_defined
19784 #define __uint64_t_defined
19785 #ifndef uint64_t
19786 typedef unsigned $acx_cv_type_int64_t uint64_t;
19787 #endif
19788 #endif
19789 #endif
19790 EOF
19791 else
19792 sed 's/^ *//' >> tmp-stdint.h <<EOF
19793
19794 /* some common heuristics for int64_t, using compiler-specific tests */
19795 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
19796 #ifndef _INT64_T
19797 #define _INT64_T
19798 #ifndef __int64_t_defined
19799 #ifndef int64_t
19800 typedef long long int64_t;
19801 #endif
19802 #endif
19803 #endif
19804 #ifndef _UINT64_T
19805 #define _UINT64_T
19806 #ifndef uint64_t
19807 typedef unsigned long long uint64_t;
19808 #endif
19809 #endif
19810
19811 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
19812 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
19813 does not implement __extension__. But that compiler doesn't define
19814 __GNUC_MINOR__. */
19815 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
19816 # define __extension__
19817 # endif
19818
19819 # ifndef _INT64_T
19820 # define _INT64_T
19821 # ifndef int64_t
19822 __extension__ typedef long long int64_t;
19823 # endif
19824 # endif
19825 # ifndef _UINT64_T
19826 # define _UINT64_T
19827 # ifndef uint64_t
19828 __extension__ typedef unsigned long long uint64_t;
19829 # endif
19830 # endif
19831
19832 #elif !defined __STRICT_ANSI__
19833 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
19834
19835 # ifndef _INT64_T
19836 # define _INT64_T
19837 # ifndef int64_t
19838 typedef __int64 int64_t;
19839 # endif
19840 # endif
19841 # ifndef _UINT64_T
19842 # define _UINT64_T
19843 # ifndef uint64_t
19844 typedef unsigned __int64 uint64_t;
19845 # endif
19846 # endif
19847 # endif /* compiler */
19848
19849 #endif /* ANSI version */
19850 EOF
19851 fi
19852
19853 # ------------- done int64_t types, emit intptr types ------------
19854 if test "$ac_cv_type_uintptr_t" != yes; then
19855 sed 's/^ *//' >> tmp-stdint.h <<EOF
19856
19857 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
19858 #ifndef __uintptr_t_defined
19859 #ifndef uintptr_t
19860 typedef u$acx_cv_type_intptr_t uintptr_t;
19861 #endif
19862 #endif
19863 #ifndef __intptr_t_defined
19864 #ifndef intptr_t
19865 typedef $acx_cv_type_intptr_t intptr_t;
19866 #endif
19867 #endif
19868 EOF
19869 fi
19870
19871 # ------------- done intptr types, emit int_least types ------------
19872 if test "$ac_cv_type_int_least32_t" != yes; then
19873 sed 's/^ *//' >> tmp-stdint.h <<EOF
19874
19875 /* Define int_least types */
19876 typedef int8_t int_least8_t;
19877 typedef int16_t int_least16_t;
19878 typedef int32_t int_least32_t;
19879 #ifdef _INT64_T
19880 typedef int64_t int_least64_t;
19881 #endif
19882
19883 typedef uint8_t uint_least8_t;
19884 typedef uint16_t uint_least16_t;
19885 typedef uint32_t uint_least32_t;
19886 #ifdef _UINT64_T
19887 typedef uint64_t uint_least64_t;
19888 #endif
19889 EOF
19890 fi
19891
19892 # ------------- done intptr types, emit int_fast types ------------
19893 if test "$ac_cv_type_int_fast32_t" != yes; then
19894 sed 's/^ *//' >> tmp-stdint.h <<EOF
19895
19896 /* Define int_fast types. short is often slow */
19897 typedef int8_t int_fast8_t;
19898 typedef int int_fast16_t;
19899 typedef int32_t int_fast32_t;
19900 #ifdef _INT64_T
19901 typedef int64_t int_fast64_t;
19902 #endif
19903
19904 typedef uint8_t uint_fast8_t;
19905 typedef unsigned int uint_fast16_t;
19906 typedef uint32_t uint_fast32_t;
19907 #ifdef _UINT64_T
19908 typedef uint64_t uint_fast64_t;
19909 #endif
19910 EOF
19911 fi
19912
19913 if test "$ac_cv_type_uintmax_t" != yes; then
19914 sed 's/^ *//' >> tmp-stdint.h <<EOF
19915
19916 /* Define intmax based on what we found */
19917 #ifndef intmax_t
19918 #ifdef _INT64_T
19919 typedef int64_t intmax_t;
19920 #else
19921 typedef long intmax_t;
19922 #endif
19923 #endif
19924 #ifndef uintmax_t
19925 #ifdef _UINT64_T
19926 typedef uint64_t uintmax_t;
19927 #else
19928 typedef unsigned long uintmax_t;
19929 #endif
19930 #endif
19931 EOF
19932 fi
19933
19934 sed 's/^ *//' >> tmp-stdint.h <<EOF
19935
19936 #endif /* GCC_GENERATED_STDINT_H */
19937 EOF
19938
19939 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
19940 rm -f tmp-stdint.h
19941 else
19942 mv -f tmp-stdint.h gstdint.h
19943 fi
19944
19945 ;;
19946 "interception/Makefile":F) cat > vpsed$$ << \_EOF
19947 s!`test -f '$<' || echo '$(srcdir)/'`!!
19948 _EOF
19949 sed -f vpsed$$ $ac_file > tmp$$
19950 mv tmp$$ $ac_file
19951 rm vpsed$$
19952 echo 'MULTISUBDIR =' >> $ac_file
19953 ml_norecursion=yes
19954 . ${multi_basedir}/config-ml.in
19955 { ml_norecursion=; unset ml_norecursion;}
19956 ;;
19957 "sanitizer_common/Makefile":F) cat > vpsed$$ << \_EOF
19958 s!`test -f '$<' || echo '$(srcdir)/'`!!
19959 _EOF
19960 sed -f vpsed$$ $ac_file > tmp$$
19961 mv tmp$$ $ac_file
19962 rm vpsed$$
19963 echo 'MULTISUBDIR =' >> $ac_file
19964 ml_norecursion=yes
19965 . ${multi_basedir}/config-ml.in
19966 { ml_norecursion=; unset ml_norecursion;}
19967 ;;
19968 "libbacktrace/Makefile":F) cat > vpsed$$ << \_EOF
19969 s!`test -f '$<' || echo '$(srcdir)/'`!!
19970 _EOF
19971 sed -f vpsed$$ $ac_file > tmp$$
19972 mv tmp$$ $ac_file
19973 rm vpsed$$
19974 echo 'MULTISUBDIR =' >> $ac_file
19975 ml_norecursion=yes
19976 . ${multi_basedir}/config-ml.in
19977 { ml_norecursion=; unset ml_norecursion;}
19978 ;;
19979 "lsan/Makefile":F) cat > vpsed$$ << \_EOF
19980 s!`test -f '$<' || echo '$(srcdir)/'`!!
19981 _EOF
19982 sed -f vpsed$$ $ac_file > tmp$$
19983 mv tmp$$ $ac_file
19984 rm vpsed$$
19985 echo 'MULTISUBDIR =' >> $ac_file
19986 ml_norecursion=yes
19987 . ${multi_basedir}/config-ml.in
19988 { ml_norecursion=; unset ml_norecursion;}
19989 ;;
19990 "asan/Makefile":F) cat > vpsed$$ << \_EOF
19991 s!`test -f '$<' || echo '$(srcdir)/'`!!
19992 _EOF
19993 sed -f vpsed$$ $ac_file > tmp$$
19994 mv tmp$$ $ac_file
19995 rm vpsed$$
19996 echo 'MULTISUBDIR =' >> $ac_file
19997 ml_norecursion=yes
19998 . ${multi_basedir}/config-ml.in
19999 { ml_norecursion=; unset ml_norecursion;}
20000 ;;
20001 "ubsan/Makefile":F) cat > vpsed$$ << \_EOF
20002 s!`test -f '$<' || echo '$(srcdir)/'`!!
20003 _EOF
20004 sed -f vpsed$$ $ac_file > tmp$$
20005 mv tmp$$ $ac_file
20006 rm vpsed$$
20007 echo 'MULTISUBDIR =' >> $ac_file
20008 ml_norecursion=yes
20009 . ${multi_basedir}/config-ml.in
20010 { ml_norecursion=; unset ml_norecursion;}
20011 ;;
20012 "tsan/Makefile":F) cat > vpsed$$ << \_EOF
20013 s!`test -f '$<' || echo '$(srcdir)/'`!!
20014 _EOF
20015 sed -f vpsed$$ $ac_file > tmp$$
20016 mv tmp$$ $ac_file
20017 rm vpsed$$
20018 echo 'MULTISUBDIR =' >> $ac_file
20019 ml_norecursion=yes
20020 . ${multi_basedir}/config-ml.in
20021 { ml_norecursion=; unset ml_norecursion;}
20022 ;;
20023
20024 esac
20025 done # for ac_tag
20026
20027
20028 as_fn_exit 0
20029 _ACEOF
20030 ac_clean_files=$ac_clean_files_save
20031
20032 test $ac_write_fail = 0 ||
20033 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20034
20035
20036 # configure is writing to config.log, and then calls config.status.
20037 # config.status does its own redirection, appending to config.log.
20038 # Unfortunately, on DOS this fails, as config.log is still kept open
20039 # by configure, so config.status won't be able to write to it; its
20040 # output is simply discarded. So we exec the FD to /dev/null,
20041 # effectively closing config.log, so it can be properly (re)opened and
20042 # appended to by config.status. When coming back to configure, we
20043 # need to make the FD available again.
20044 if test "$no_create" != yes; then
20045 ac_cs_success=:
20046 ac_config_status_args=
20047 test "$silent" = yes &&
20048 ac_config_status_args="$ac_config_status_args --quiet"
20049 exec 5>/dev/null
20050 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20051 exec 5>>config.log
20052 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20053 # would make configure fail if this is the last instruction.
20054 $ac_cs_success || as_fn_exit 1
20055 fi
20056 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20058 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20059 fi
20060