Debian Codegraph @

gc/configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for gc 8.2.8.
4 #
5 # Report bugs to <https://github.com/ivmai/bdwgc/issues>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 as_nop=:
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22 then :
23 emulate sh
24 NULLCMD=:
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
28 setopt NO_GLOB_SUBST
29 else $as_nop
30 case `(set -o) 2>/dev/null` in #(
31 *posix*) :
32 set -o posix ;; #(
33 *) :
34 ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
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 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed `exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145 then :
146 emulate sh
147 NULLCMD=:
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
151 setopt NO_GLOB_SUBST
152 else \$as_nop
153 case \`(set -o) 2>/dev/null\` in #(
154 *posix*) :
155 set -o posix ;; #(
156 *) :
157 ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else \$as_nop
176 exitcode=1; echo positional parameters were not saved.
177 fi
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
181 test -x / || exit 1"
182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186
187 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
188 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191 PATH=/empty FPATH=/empty; export PATH FPATH
192 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
193 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
194 test \$(( 1 + 1 )) = 2 || exit 1"
195 if (eval "$as_required") 2>/dev/null
196 then :
197 as_have_required=yes
198 else $as_nop
199 as_have_required=no
200 fi
201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202 then :
203
204 else $as_nop
205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206 as_found=false
207 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208 do
209 IFS=$as_save_IFS
210 case $as_dir in #(((
211 '') as_dir=./ ;;
212 */) ;;
213 *) as_dir=$as_dir/ ;;
214 esac
215 as_found=:
216 case $as_dir in #(
217 /*)
218 for as_base in sh bash ksh sh5; do
219 # Try only shells that exist, to save several forks.
220 as_shell=$as_dir$as_base
221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223 then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226 then :
227 break 2
228 fi
229 fi
230 done;;
231 esac
232 as_found=false
233 done
234 IFS=$as_save_IFS
235 if $as_found
236 then :
237
238 else $as_nop
239 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241 then :
242 CONFIG_SHELL=$SHELL as_have_required=yes
243 fi
244 fi
245
246
247 if test "x$CONFIG_SHELL" != x
248 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 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno
271 then :
272 printf "%s\n" "$0: This script requires a shell more modern than all"
273 printf "%s\n" "$0: the shells that I found on your system."
274 if test ${ZSH_VERSION+y} ; then
275 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
277 else
278 printf "%s\n" "$0: Please tell [email protected] and
279 $0: https://github.com/ivmai/bdwgc/issues about your
280 $0: system, including any error possibly output before this
281 $0: message. Then install a modern shell, or manually run
282 $0: the script under such a shell if you do have one."
283 fi
284 exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302 { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306
307 # as_fn_set_status STATUS
308 # -----------------------
309 # Set $? to STATUS, without forking.
310 as_fn_set_status ()
311 {
312 return $1
313 } # as_fn_set_status
314
315 # as_fn_exit STATUS
316 # -----------------
317 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
318 as_fn_exit ()
319 {
320 set +e
321 as_fn_set_status $1
322 exit $1
323 } # as_fn_exit
324 # as_fn_nop
325 # ---------
326 # Do nothing but, unlike ":", preserve the value of $?.
327 as_fn_nop ()
328 {
329 return $?
330 }
331 as_nop=as_fn_nop
332
333 # as_fn_mkdir_p
334 # -------------
335 # Create "$as_dir" as a directory, including parents if necessary.
336 as_fn_mkdir_p ()
337 {
338
339 case $as_dir in #(
340 -*) as_dir=./$as_dir;;
341 esac
342 test -d "$as_dir" || eval $as_mkdir_p || {
343 as_dirs=
344 while :; do
345 case $as_dir in #(
346 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
347 *) as_qdir=$as_dir;;
348 esac
349 as_dirs="'$as_qdir' $as_dirs"
350 as_dir=`$as_dirname -- "$as_dir" ||
351 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
352 X"$as_dir" : 'X\(//\)[^/]' \| \
353 X"$as_dir" : 'X\(//\)$' \| \
354 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
355 printf "%s\n" X"$as_dir" |
356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
357 s//\1/
358 q
359 }
360 /^X\(\/\/\)[^/].*/{
361 s//\1/
362 q
363 }
364 /^X\(\/\/\)$/{
365 s//\1/
366 q
367 }
368 /^X\(\/\).*/{
369 s//\1/
370 q
371 }
372 s/.*/./; q'`
373 test -d "$as_dir" && break
374 done
375 test -z "$as_dirs" || eval "mkdir $as_dirs"
376 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
377
378
379 } # as_fn_mkdir_p
380
381 # as_fn_executable_p FILE
382 # -----------------------
383 # Test if FILE is an executable regular file.
384 as_fn_executable_p ()
385 {
386 test -f "$1" && test -x "$1"
387 } # as_fn_executable_p
388 # as_fn_append VAR VALUE
389 # ----------------------
390 # Append the text in VALUE to the end of the definition contained in VAR. Take
391 # advantage of any shell optimizations that allow amortized linear growth over
392 # repeated appends, instead of the typical quadratic growth present in naive
393 # implementations.
394 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
395 then :
396 eval 'as_fn_append ()
397 {
398 eval $1+=\$2
399 }'
400 else $as_nop
401 as_fn_append ()
402 {
403 eval $1=\$$1\$2
404 }
405 fi # as_fn_append
406
407 # as_fn_arith ARG...
408 # ------------------
409 # Perform arithmetic evaluation on the ARGs, and store the result in the
410 # global $as_val. Take advantage of shells that can avoid forks. The arguments
411 # must be portable across $(()) and expr.
412 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
413 then :
414 eval 'as_fn_arith ()
415 {
416 as_val=$(( $* ))
417 }'
418 else $as_nop
419 as_fn_arith ()
420 {
421 as_val=`expr "$@" || test $? -eq 1`
422 }
423 fi # as_fn_arith
424
425 # as_fn_nop
426 # ---------
427 # Do nothing but, unlike ":", preserve the value of $?.
428 as_fn_nop ()
429 {
430 return $?
431 }
432 as_nop=as_fn_nop
433
434 # as_fn_error STATUS ERROR [LINENO LOG_FD]
435 # ----------------------------------------
436 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
437 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
438 # script with STATUS, using 1 if that was 0.
439 as_fn_error ()
440 {
441 as_status=$1; test $as_status -eq 0 && as_status=1
442 if test "$4"; then
443 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
444 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
445 fi
446 printf "%s\n" "$as_me: error: $2" >&2
447 as_fn_exit $as_status
448 } # as_fn_error
449
450 if expr a : '\(a\)' >/dev/null 2>&1 &&
451 test "X`expr 00001 : '.*\(...\)'`" = X001; then
452 as_expr=expr
453 else
454 as_expr=false
455 fi
456
457 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
458 as_basename=basename
459 else
460 as_basename=false
461 fi
462
463 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
464 as_dirname=dirname
465 else
466 as_dirname=false
467 fi
468
469 as_me=`$as_basename -- "$0" ||
470 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
471 X"$0" : 'X\(//\)$' \| \
472 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
473 printf "%s\n" X/"$0" |
474 sed '/^.*\/\([^/][^/]*\)\/*$/{
475 s//\1/
476 q
477 }
478 /^X\/\(\/\/\)$/{
479 s//\1/
480 q
481 }
482 /^X\/\(\/\).*/{
483 s//\1/
484 q
485 }
486 s/.*/./; q'`
487
488 # Avoid depending upon Character Ranges.
489 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
490 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
491 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
492 as_cr_digits='0123456789'
493 as_cr_alnum=$as_cr_Letters$as_cr_digits
494
495
496 as_lineno_1=$LINENO as_lineno_1a=$LINENO
497 as_lineno_2=$LINENO as_lineno_2a=$LINENO
498 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
499 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
500 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
501 sed -n '
502 p
503 /[$]LINENO/=
504 ' <$as_myself |
505 sed '
506 s/[$]LINENO.*/&-/
507 t lineno
508 b
509 :lineno
510 N
511 :loop
512 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
513 t loop
514 s/-\n.*//
515 ' >$as_me.lineno &&
516 chmod +x "$as_me.lineno" ||
517 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
518
519 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
520 # already done that, so ensure we don't try to do so again and fall
521 # in an infinite loop. This has already happened in practice.
522 _as_can_reexec=no; export _as_can_reexec
523 # Don't try to exec as it changes $[0], causing all sort of problems
524 # (the dirname of $[0] is not the place where we might find the
525 # original and so on. Autoconf is especially sensitive to this).
526 . "./$as_me.lineno"
527 # Exit status is that of the last command.
528 exit
529 }
530
531
532 # Determine whether it's possible to make 'echo' print without a newline.
533 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
534 # for compatibility with existing Makefiles.
535 ECHO_C= ECHO_N= ECHO_T=
536 case `echo -n x` in #(((((
537 -n*)
538 case `echo 'xy\c'` in
539 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
540 xy) ECHO_C='\c';;
541 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
542 ECHO_T=' ';;
543 esac;;
544 *)
545 ECHO_N='-n';;
546 esac
547
548 # For backward compatibility with old third-party macros, we provide
549 # the shell variables $as_echo and $as_echo_n. New code should use
550 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
551 as_echo='printf %s\n'
552 as_echo_n='printf %s'
553
554
555 rm -f conf$$ conf$$.exe conf$$.file
556 if test -d conf$$.dir; then
557 rm -f conf$$.dir/conf$$.file
558 else
559 rm -f conf$$.dir
560 mkdir conf$$.dir 2>/dev/null
561 fi
562 if (echo >conf$$.file) 2>/dev/null; then
563 if ln -s conf$$.file conf$$ 2>/dev/null; then
564 as_ln_s='ln -s'
565 # ... but there are two gotchas:
566 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
567 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
568 # In both cases, we have to default to `cp -pR'.
569 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
570 as_ln_s='cp -pR'
571 elif ln conf$$.file conf$$ 2>/dev/null; then
572 as_ln_s=ln
573 else
574 as_ln_s='cp -pR'
575 fi
576 else
577 as_ln_s='cp -pR'
578 fi
579 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
580 rmdir conf$$.dir 2>/dev/null
581
582 if mkdir -p . 2>/dev/null; then
583 as_mkdir_p='mkdir -p "$as_dir"'
584 else
585 test -d ./-p && rmdir ./-p
586 as_mkdir_p=false
587 fi
588
589 as_test_x='test -x'
590 as_executable_p=as_fn_executable_p
591
592 # Sed expression to map a string onto a valid CPP name.
593 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
594
595 # Sed expression to map a string onto a valid variable name.
596 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
597
598 SHELL=${CONFIG_SHELL-/bin/sh}
599
600
601 test -n "$DJDIR" || exec 7<&0 </dev/null
602 exec 6>&1
603
604 # Name of the host.
605 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
606 # so uname gets run too.
607 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
608
609 #
610 # Initializations.
611 #
612 ac_default_prefix=/usr/local
613 ac_clean_files=
614 ac_config_libobj_dir=.
615 LIBOBJS=
616 cross_compiling=no
617 subdirs=
618 MFLAGS=
619 MAKEFLAGS=
620
621 # Identity of this package.
622 PACKAGE_NAME='gc'
623 PACKAGE_TARNAME='gc'
624 PACKAGE_VERSION='8.2.8'
625 PACKAGE_STRING='gc 8.2.8'
626 PACKAGE_BUGREPORT='https://github.com/ivmai/bdwgc/issues'
627 PACKAGE_URL=''
628
629 ac_unique_file="gcj_mlc.c"
630 # Factoring default headers for most tests.
631 ac_includes_default="\
632 #include <stddef.h>
633 #ifdef HAVE_STDIO_H
634 # include <stdio.h>
635 #endif
636 #ifdef HAVE_STDLIB_H
637 # include <stdlib.h>
638 #endif
639 #ifdef HAVE_STRING_H
640 # include <string.h>
641 #endif
642 #ifdef HAVE_INTTYPES_H
643 # include <inttypes.h>
644 #endif
645 #ifdef HAVE_STDINT_H
646 # include <stdint.h>
647 #endif
648 #ifdef HAVE_STRINGS_H
649 # include <strings.h>
650 #endif
651 #ifdef HAVE_SYS_TYPES_H
652 # include <sys/types.h>
653 #endif
654 #ifdef HAVE_SYS_STAT_H
655 # include <sys/stat.h>
656 #endif
657 #ifdef HAVE_UNISTD_H
658 # include <unistd.h>
659 #endif"
660
661 ac_header_c_list=
662 enable_option_checking=no
663 ac_subst_vars='am__EXEEXT_FALSE
664 am__EXEEXT_TRUE
665 LTLIBOBJS
666 LIBOBJS
667 THREAD_LOCAL_ALLOC_FALSE
668 THREAD_LOCAL_ALLOC_TRUE
669 NEED_ATOMIC_OPS_ASM_FALSE
670 NEED_ATOMIC_OPS_ASM_TRUE
671 USE_INTERNAL_LIBATOMIC_OPS_FALSE
672 USE_INTERNAL_LIBATOMIC_OPS_TRUE
673 subdirs
674 ATOMIC_OPS_CFLAGS
675 ATOMIC_OPS_LIBS
676 ENABLE_SHARED_FALSE
677 ENABLE_SHARED_TRUE
678 ENABLE_DOCS_FALSE
679 ENABLE_DOCS_TRUE
680 SINGLE_GC_OBJ_FALSE
681 SINGLE_GC_OBJ_TRUE
682 WERROR_CFLAGS
683 USE_LIBDIR_FALSE
684 USE_LIBDIR_TRUE
685 CHECKSUMS_FALSE
686 CHECKSUMS_TRUE
687 UNWINDLIBS
688 ENABLE_DISCLAIM_FALSE
689 ENABLE_DISCLAIM_TRUE
690 KEEP_BACK_PTRS_FALSE
691 KEEP_BACK_PTRS_TRUE
692 MAKE_BACK_GRAPH_FALSE
693 MAKE_BACK_GRAPH_TRUE
694 ENABLE_GCJ_SUPPORT_FALSE
695 ENABLE_GCJ_SUPPORT_TRUE
696 addlibs
697 addobjs
698 CXXLIBS
699 AM_CPPFLAGS
700 AM_CFLAGS
701 GC_TBA_LIBRARY_FALSE
702 GC_TBA_LIBRARY_TRUE
703 CPLUSPLUS_FALSE
704 CPLUSPLUS_TRUE
705 target_all
706 EXTRA_TEST_LIBS
707 extra_ldflags_libgc
708 AVOID_CPP_LIB_FALSE
709 AVOID_CPP_LIB_TRUE
710 ASM_WITH_CPP_UNSUPPORTED_FALSE
711 ASM_WITH_CPP_UNSUPPORTED_TRUE
712 PTHREAD_START_STANDALONE_FALSE
713 PTHREAD_START_STANDALONE_TRUE
714 WIN32_THREADS_FALSE
715 WIN32_THREADS_TRUE
716 DARWIN_THREADS_FALSE
717 DARWIN_THREADS_TRUE
718 PTHREADS_FALSE
719 PTHREADS_TRUE
720 THREADS_FALSE
721 THREADS_TRUE
722 THREADDLLIBS
723 CFLAGS_EXTRA
724 GC_CFLAGS
725 EMSCRIPTEN_FALSE
726 EMSCRIPTEN_TRUE
727 CXXCPP
728 LT_SYS_LIBRARY_PATH
729 OTOOL64
730 OTOOL
731 LIPO
732 NMEDIT
733 DSYMUTIL
734 MANIFEST_TOOL
735 RANLIB
736 ac_ct_AR
737 AR
738 DLLTOOL
739 OBJDUMP
740 LN_S
741 NM
742 ac_ct_DUMPBIN
743 DUMPBIN
744 LD
745 FGREP
746 EGREP
747 GREP
748 SED
749 LIBTOOL
750 am__fastdepCCAS_FALSE
751 am__fastdepCCAS_TRUE
752 CCASDEPMODE
753 CCASFLAGS
754 CCAS
755 am__fastdepCXX_FALSE
756 am__fastdepCXX_TRUE
757 CXXDEPMODE
758 ac_ct_CXX
759 CXXFLAGS
760 CXX
761 am__fastdepCC_FALSE
762 am__fastdepCC_TRUE
763 CCDEPMODE
764 am__nodep
765 AMDEPBACKSLASH
766 AMDEP_FALSE
767 AMDEP_TRUE
768 am__include
769 DEPDIR
770 OBJEXT
771 EXEEXT
772 ac_ct_CC
773 CPPFLAGS
774 LDFLAGS
775 CFLAGS
776 CC
777 GC_VERSION
778 MAINT
779 MAINTAINER_MODE_FALSE
780 MAINTAINER_MODE_TRUE
781 AM_BACKSLASH
782 AM_DEFAULT_VERBOSITY
783 AM_DEFAULT_V
784 AM_V
785 CSCOPE
786 ETAGS
787 CTAGS
788 am__untar
789 am__tar
790 AMTAR
791 am__leading_dot
792 SET_MAKE
793 AWK
794 mkdir_p
795 MKDIR_P
796 INSTALL_STRIP_PROGRAM
797 STRIP
798 install_sh
799 MAKEINFO
800 AUTOHEADER
801 AUTOMAKE
802 AUTOCONF
803 ACLOCAL
804 VERSION
805 PACKAGE
806 CYGPATH_W
807 am__isrc
808 INSTALL_DATA
809 INSTALL_SCRIPT
810 INSTALL_PROGRAM
811 target_os
812 target_vendor
813 target_cpu
814 target
815 host_os
816 host_vendor
817 host_cpu
818 host
819 build_os
820 build_vendor
821 build_cpu
822 build
823 target_alias
824 host_alias
825 build_alias
826 LIBS
827 ECHO_T
828 ECHO_N
829 ECHO_C
830 DEFS
831 mandir
832 localedir
833 libdir
834 psdir
835 pdfdir
836 dvidir
837 htmldir
838 infodir
839 docdir
840 oldincludedir
841 includedir
842 runstatedir
843 localstatedir
844 sharedstatedir
845 sysconfdir
846 datadir
847 datarootdir
848 libexecdir
849 sbindir
850 bindir
851 program_transform_name
852 prefix
853 exec_prefix
854 PACKAGE_URL
855 PACKAGE_BUGREPORT
856 PACKAGE_STRING
857 PACKAGE_VERSION
858 PACKAGE_TARNAME
859 PACKAGE_NAME
860 PATH_SEPARATOR
861 SHELL
862 am__quote'
863 ac_subst_files=''
864 ac_user_opts='
865 enable_option_checking
866 enable_silent_rules
867 enable_maintainer_mode
868 enable_dependency_tracking
869 enable_static
870 enable_shared
871 with_pic
872 enable_fast_install
873 with_aix_soname
874 with_gnu_ld
875 with_sysroot
876 enable_libtool_lock
877 enable_emscripten_asyncify
878 enable_threads
879 enable_parallel_mark
880 enable_thread_local_alloc
881 enable_threads_discovery
882 enable_cplusplus
883 with_ecos
884 enable_throw_bad_alloc_library
885 with_target_subdir
886 with_cross_host
887 enable_gcj_support
888 enable_sigrt_signals
889 enable_gc_debug
890 enable_java_finalization
891 enable_atomic_uncollectable
892 enable_redirect_malloc
893 enable_disclaim
894 enable_large_config
895 enable_gc_assertions
896 enable_mmap
897 enable_munmap
898 enable_dynamic_loading
899 enable_register_main_static_data
900 enable_checksums
901 enable_werror
902 enable_single_obj_compilation
903 enable_gcov
904 enable_docs
905 with_libatomic_ops
906 enable_handle_fork
907 '
908 ac_precious_vars='build_alias
909 host_alias
910 target_alias
911 CC
912 CFLAGS
913 LDFLAGS
914 LIBS
915 CPPFLAGS
916 CXX
917 CXXFLAGS
918 CCC
919 CCAS
920 CCASFLAGS
921 LT_SYS_LIBRARY_PATH
922 CXXCPP'
923 ac_subdirs_all='libatomic_ops'
924
925 # Initialize some variables set by options.
926 ac_init_help=
927 ac_init_version=false
928 ac_unrecognized_opts=
929 ac_unrecognized_sep=
930 # The variables have the same names as the options, with
931 # dashes changed to underlines.
932 cache_file=/dev/null
933 exec_prefix=NONE
934 no_create=
935 no_recursion=
936 prefix=NONE
937 program_prefix=NONE
938 program_suffix=NONE
939 program_transform_name=s,x,x,
940 silent=
941 site=
942 srcdir=
943 verbose=
944 x_includes=NONE
945 x_libraries=NONE
946
947 # Installation directory options.
948 # These are left unexpanded so users can "make install exec_prefix=/foo"
949 # and all the variables that are supposed to be based on exec_prefix
950 # by default will actually change.
951 # Use braces instead of parens because sh, perl, etc. also accept them.
952 # (The list follows the same order as the GNU Coding Standards.)
953 bindir='${exec_prefix}/bin'
954 sbindir='${exec_prefix}/sbin'
955 libexecdir='${exec_prefix}/libexec'
956 datarootdir='${prefix}/share'
957 datadir='${datarootdir}'
958 sysconfdir='${prefix}/etc'
959 sharedstatedir='${prefix}/com'
960 localstatedir='${prefix}/var'
961 runstatedir='${localstatedir}/run'
962 includedir='${prefix}/include'
963 oldincludedir='/usr/include'
964 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
965 infodir='${datarootdir}/info'
966 htmldir='${docdir}'
967 dvidir='${docdir}'
968 pdfdir='${docdir}'
969 psdir='${docdir}'
970 libdir='${exec_prefix}/lib'
971 localedir='${datarootdir}/locale'
972 mandir='${datarootdir}/man'
973
974 ac_prev=
975 ac_dashdash=
976 for ac_option
977 do
978 # If the previous option needs an argument, assign it.
979 if test -n "$ac_prev"; then
980 eval $ac_prev=\$ac_option
981 ac_prev=
982 continue
983 fi
984
985 case $ac_option in
986 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
987 *=) ac_optarg= ;;
988 *) ac_optarg=yes ;;
989 esac
990
991 case $ac_dashdash$ac_option in
992 --)
993 ac_dashdash=yes ;;
994
995 -bindir | --bindir | --bindi | --bind | --bin | --bi)
996 ac_prev=bindir ;;
997 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
998 bindir=$ac_optarg ;;
999
1000 -build | --build | --buil | --bui | --bu)
1001 ac_prev=build_alias ;;
1002 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1003 build_alias=$ac_optarg ;;
1004
1005 -cache-file | --cache-file | --cache-fil | --cache-fi \
1006 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1007 ac_prev=cache_file ;;
1008 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1009 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1010 cache_file=$ac_optarg ;;
1011
1012 --config-cache | -C)
1013 cache_file=config.cache ;;
1014
1015 -datadir | --datadir | --datadi | --datad)
1016 ac_prev=datadir ;;
1017 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1018 datadir=$ac_optarg ;;
1019
1020 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1021 | --dataroo | --dataro | --datar)
1022 ac_prev=datarootdir ;;
1023 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1024 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1025 datarootdir=$ac_optarg ;;
1026
1027 -disable-* | --disable-*)
1028 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1029 # Reject names that are not valid shell variable names.
1030 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1031 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1032 ac_useropt_orig=$ac_useropt
1033 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1034 case $ac_user_opts in
1035 *"
1036 "enable_$ac_useropt"
1037 "*) ;;
1038 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1039 ac_unrecognized_sep=', ';;
1040 esac
1041 eval enable_$ac_useropt=no ;;
1042
1043 -docdir | --docdir | --docdi | --doc | --do)
1044 ac_prev=docdir ;;
1045 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1046 docdir=$ac_optarg ;;
1047
1048 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1049 ac_prev=dvidir ;;
1050 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1051 dvidir=$ac_optarg ;;
1052
1053 -enable-* | --enable-*)
1054 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1055 # Reject names that are not valid shell variable names.
1056 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1057 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1058 ac_useropt_orig=$ac_useropt
1059 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1060 case $ac_user_opts in
1061 *"
1062 "enable_$ac_useropt"
1063 "*) ;;
1064 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1065 ac_unrecognized_sep=', ';;
1066 esac
1067 eval enable_$ac_useropt=\$ac_optarg ;;
1068
1069 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1070 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1071 | --exec | --exe | --ex)
1072 ac_prev=exec_prefix ;;
1073 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1074 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1075 | --exec=* | --exe=* | --ex=*)
1076 exec_prefix=$ac_optarg ;;
1077
1078 -gas | --gas | --ga | --g)
1079 # Obsolete; use --with-gas.
1080 with_gas=yes ;;
1081
1082 -help | --help | --hel | --he | -h)
1083 ac_init_help=long ;;
1084 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1085 ac_init_help=recursive ;;
1086 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1087 ac_init_help=short ;;
1088
1089 -host | --host | --hos | --ho)
1090 ac_prev=host_alias ;;
1091 -host=* | --host=* | --hos=* | --ho=*)
1092 host_alias=$ac_optarg ;;
1093
1094 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1095 ac_prev=htmldir ;;
1096 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1097 | --ht=*)
1098 htmldir=$ac_optarg ;;
1099
1100 -includedir | --includedir | --includedi | --included | --include \
1101 | --includ | --inclu | --incl | --inc)
1102 ac_prev=includedir ;;
1103 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1104 | --includ=* | --inclu=* | --incl=* | --inc=*)
1105 includedir=$ac_optarg ;;
1106
1107 -infodir | --infodir | --infodi | --infod | --info | --inf)
1108 ac_prev=infodir ;;
1109 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1110 infodir=$ac_optarg ;;
1111
1112 -libdir | --libdir | --libdi | --libd)
1113 ac_prev=libdir ;;
1114 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1115 libdir=$ac_optarg ;;
1116
1117 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1118 | --libexe | --libex | --libe)
1119 ac_prev=libexecdir ;;
1120 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1121 | --libexe=* | --libex=* | --libe=*)
1122 libexecdir=$ac_optarg ;;
1123
1124 -localedir | --localedir | --localedi | --localed | --locale)
1125 ac_prev=localedir ;;
1126 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1127 localedir=$ac_optarg ;;
1128
1129 -localstatedir | --localstatedir | --localstatedi | --localstated \
1130 | --localstate | --localstat | --localsta | --localst | --locals)
1131 ac_prev=localstatedir ;;
1132 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1133 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1134 localstatedir=$ac_optarg ;;
1135
1136 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1137 ac_prev=mandir ;;
1138 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1139 mandir=$ac_optarg ;;
1140
1141 -nfp | --nfp | --nf)
1142 # Obsolete; use --without-fp.
1143 with_fp=no ;;
1144
1145 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1146 | --no-cr | --no-c | -n)
1147 no_create=yes ;;
1148
1149 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1150 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1151 no_recursion=yes ;;
1152
1153 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1154 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1155 | --oldin | --oldi | --old | --ol | --o)
1156 ac_prev=oldincludedir ;;
1157 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1158 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1159 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1160 oldincludedir=$ac_optarg ;;
1161
1162 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1163 ac_prev=prefix ;;
1164 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1165 prefix=$ac_optarg ;;
1166
1167 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1168 | --program-pre | --program-pr | --program-p)
1169 ac_prev=program_prefix ;;
1170 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1171 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1172 program_prefix=$ac_optarg ;;
1173
1174 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1175 | --program-suf | --program-su | --program-s)
1176 ac_prev=program_suffix ;;
1177 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1178 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1179 program_suffix=$ac_optarg ;;
1180
1181 -program-transform-name | --program-transform-name \
1182 | --program-transform-nam | --program-transform-na \
1183 | --program-transform-n | --program-transform- \
1184 | --program-transform | --program-transfor \
1185 | --program-transfo | --program-transf \
1186 | --program-trans | --program-tran \
1187 | --progr-tra | --program-tr | --program-t)
1188 ac_prev=program_transform_name ;;
1189 -program-transform-name=* | --program-transform-name=* \
1190 | --program-transform-nam=* | --program-transform-na=* \
1191 | --program-transform-n=* | --program-transform-=* \
1192 | --program-transform=* | --program-transfor=* \
1193 | --program-transfo=* | --program-transf=* \
1194 | --program-trans=* | --program-tran=* \
1195 | --progr-tra=* | --program-tr=* | --program-t=*)
1196 program_transform_name=$ac_optarg ;;
1197
1198 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1199 ac_prev=pdfdir ;;
1200 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1201 pdfdir=$ac_optarg ;;
1202
1203 -psdir | --psdir | --psdi | --psd | --ps)
1204 ac_prev=psdir ;;
1205 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1206 psdir=$ac_optarg ;;
1207
1208 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1209 | -silent | --silent | --silen | --sile | --sil)
1210 silent=yes ;;
1211
1212 -runstatedir | --runstatedir | --runstatedi | --runstated \
1213 | --runstate | --runstat | --runsta | --runst | --runs \
1214 | --run | --ru | --r)
1215 ac_prev=runstatedir ;;
1216 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1217 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1218 | --run=* | --ru=* | --r=*)
1219 runstatedir=$ac_optarg ;;
1220
1221 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1222 ac_prev=sbindir ;;
1223 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1224 | --sbi=* | --sb=*)
1225 sbindir=$ac_optarg ;;
1226
1227 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1228 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1229 | --sharedst | --shareds | --shared | --share | --shar \
1230 | --sha | --sh)
1231 ac_prev=sharedstatedir ;;
1232 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1233 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1234 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1235 | --sha=* | --sh=*)
1236 sharedstatedir=$ac_optarg ;;
1237
1238 -site | --site | --sit)
1239 ac_prev=site ;;
1240 -site=* | --site=* | --sit=*)
1241 site=$ac_optarg ;;
1242
1243 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1244 ac_prev=srcdir ;;
1245 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1246 srcdir=$ac_optarg ;;
1247
1248 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1249 | --syscon | --sysco | --sysc | --sys | --sy)
1250 ac_prev=sysconfdir ;;
1251 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1252 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1253 sysconfdir=$ac_optarg ;;
1254
1255 -target | --target | --targe | --targ | --tar | --ta | --t)
1256 ac_prev=target_alias ;;
1257 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1258 target_alias=$ac_optarg ;;
1259
1260 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1261 verbose=yes ;;
1262
1263 -version | --version | --versio | --versi | --vers | -V)
1264 ac_init_version=: ;;
1265
1266 -with-* | --with-*)
1267 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1268 # Reject names that are not valid shell variable names.
1269 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1270 as_fn_error $? "invalid package name: \`$ac_useropt'"
1271 ac_useropt_orig=$ac_useropt
1272 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1273 case $ac_user_opts in
1274 *"
1275 "with_$ac_useropt"
1276 "*) ;;
1277 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1278 ac_unrecognized_sep=', ';;
1279 esac
1280 eval with_$ac_useropt=\$ac_optarg ;;
1281
1282 -without-* | --without-*)
1283 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1284 # Reject names that are not valid shell variable names.
1285 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1286 as_fn_error $? "invalid package name: \`$ac_useropt'"
1287 ac_useropt_orig=$ac_useropt
1288 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1289 case $ac_user_opts in
1290 *"
1291 "with_$ac_useropt"
1292 "*) ;;
1293 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1294 ac_unrecognized_sep=', ';;
1295 esac
1296 eval with_$ac_useropt=no ;;
1297
1298 --x)
1299 # Obsolete; use --with-x.
1300 with_x=yes ;;
1301
1302 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1303 | --x-incl | --x-inc | --x-in | --x-i)
1304 ac_prev=x_includes ;;
1305 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1306 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1307 x_includes=$ac_optarg ;;
1308
1309 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1310 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1311 ac_prev=x_libraries ;;
1312 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1313 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1314 x_libraries=$ac_optarg ;;
1315
1316 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1317 Try \`$0 --help' for more information"
1318 ;;
1319
1320 *=*)
1321 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1322 # Reject names that are not valid shell variable names.
1323 case $ac_envvar in #(
1324 '' | [0-9]* | *[!_$as_cr_alnum]* )
1325 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1326 esac
1327 eval $ac_envvar=\$ac_optarg
1328 export $ac_envvar ;;
1329
1330 *)
1331 # FIXME: should be removed in autoconf 3.0.
1332 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1333 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1334 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1335 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1336 ;;
1337
1338 esac
1339 done
1340
1341 if test -n "$ac_prev"; then
1342 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1343 as_fn_error $? "missing argument to $ac_option"
1344 fi
1345
1346 if test -n "$ac_unrecognized_opts"; then
1347 case $enable_option_checking in
1348 no) ;;
1349 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1350 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1351 esac
1352 fi
1353
1354 # Check all directory arguments for consistency.
1355 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1356 datadir sysconfdir sharedstatedir localstatedir includedir \
1357 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1358 libdir localedir mandir runstatedir
1359 do
1360 eval ac_val=\$$ac_var
1361 # Remove trailing slashes.
1362 case $ac_val in
1363 */ )
1364 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1365 eval $ac_var=\$ac_val;;
1366 esac
1367 # Be sure to have absolute directory names.
1368 case $ac_val in
1369 [\\/$]* | ?:[\\/]* ) continue;;
1370 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1371 esac
1372 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1373 done
1374
1375 # There might be people who depend on the old broken behavior: `$host'
1376 # used to hold the argument of --host etc.
1377 # FIXME: To remove some day.
1378 build=$build_alias
1379 host=$host_alias
1380 target=$target_alias
1381
1382 # FIXME: To remove some day.
1383 if test "x$host_alias" != x; then
1384 if test "x$build_alias" = x; then
1385 cross_compiling=maybe
1386 elif test "x$build_alias" != "x$host_alias"; then
1387 cross_compiling=yes
1388 fi
1389 fi
1390
1391 ac_tool_prefix=
1392 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1393
1394 test "$silent" = yes && exec 6>/dev/null
1395
1396
1397 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1398 ac_ls_di=`ls -di .` &&
1399 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1400 as_fn_error $? "working directory cannot be determined"
1401 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1402 as_fn_error $? "pwd does not report name of working directory"
1403
1404
1405 # Find the source files, if location was not specified.
1406 if test -z "$srcdir"; then
1407 ac_srcdir_defaulted=yes
1408 # Try the directory containing this script, then the parent directory.
1409 ac_confdir=`$as_dirname -- "$as_myself" ||
1410 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1411 X"$as_myself" : 'X\(//\)[^/]' \| \
1412 X"$as_myself" : 'X\(//\)$' \| \
1413 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1414 printf "%s\n" X"$as_myself" |
1415 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1416 s//\1/
1417 q
1418 }
1419 /^X\(\/\/\)[^/].*/{
1420 s//\1/
1421 q
1422 }
1423 /^X\(\/\/\)$/{
1424 s//\1/
1425 q
1426 }
1427 /^X\(\/\).*/{
1428 s//\1/
1429 q
1430 }
1431 s/.*/./; q'`
1432 srcdir=$ac_confdir
1433 if test ! -r "$srcdir/$ac_unique_file"; then
1434 srcdir=..
1435 fi
1436 else
1437 ac_srcdir_defaulted=no
1438 fi
1439 if test ! -r "$srcdir/$ac_unique_file"; then
1440 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1441 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1442 fi
1443 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1444 ac_abs_confdir=`(
1445 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1446 pwd)`
1447 # When building in place, set srcdir=.
1448 if test "$ac_abs_confdir" = "$ac_pwd"; then
1449 srcdir=.
1450 fi
1451 # Remove unnecessary trailing slashes from srcdir.
1452 # Double slashes in file names in object file debugging info
1453 # mess up M-x gdb in Emacs.
1454 case $srcdir in
1455 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1456 esac
1457 for ac_var in $ac_precious_vars; do
1458 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1459 eval ac_env_${ac_var}_value=\$${ac_var}
1460 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1461 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1462 done
1463
1464 #
1465 # Report the --help message.
1466 #
1467 if test "$ac_init_help" = "long"; then
1468 # Omit some internal or obsolete options to make the list less imposing.
1469 # This message is too long to be a string in the A/UX 3.1 sh.
1470 cat <<_ACEOF
1471 \`configure' configures gc 8.2.8 to adapt to many kinds of systems.
1472
1473 Usage: $0 [OPTION]... [VAR=VALUE]...
1474
1475 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1476 VAR=VALUE. See below for descriptions of some of the useful variables.
1477
1478 Defaults for the options are specified in brackets.
1479
1480 Configuration:
1481 -h, --help display this help and exit
1482 --help=short display options specific to this package
1483 --help=recursive display the short help of all the included packages
1484 -V, --version display version information and exit
1485 -q, --quiet, --silent do not print \`checking ...' messages
1486 --cache-file=FILE cache test results in FILE [disabled]
1487 -C, --config-cache alias for \`--cache-file=config.cache'
1488 -n, --no-create do not create output files
1489 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1490
1491 Installation directories:
1492 --prefix=PREFIX install architecture-independent files in PREFIX
1493 [$ac_default_prefix]
1494 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1495 [PREFIX]
1496
1497 By default, \`make install' will install all the files in
1498 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1499 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1500 for instance \`--prefix=\$HOME'.
1501
1502 For better control, use the options below.
1503
1504 Fine tuning of the installation directories:
1505 --bindir=DIR user executables [EPREFIX/bin]
1506 --sbindir=DIR system admin executables [EPREFIX/sbin]
1507 --libexecdir=DIR program executables [EPREFIX/libexec]
1508 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1509 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1510 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1511 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1512 --libdir=DIR object code libraries [EPREFIX/lib]
1513 --includedir=DIR C header files [PREFIX/include]
1514 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1515 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1516 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1517 --infodir=DIR info documentation [DATAROOTDIR/info]
1518 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1519 --mandir=DIR man documentation [DATAROOTDIR/man]
1520 --docdir=DIR documentation root [DATAROOTDIR/doc/gc]
1521 --htmldir=DIR html documentation [DOCDIR]
1522 --dvidir=DIR dvi documentation [DOCDIR]
1523 --pdfdir=DIR pdf documentation [DOCDIR]
1524 --psdir=DIR ps documentation [DOCDIR]
1525 _ACEOF
1526
1527 cat <<\_ACEOF
1528
1529 Program names:
1530 --program-prefix=PREFIX prepend PREFIX to installed program names
1531 --program-suffix=SUFFIX append SUFFIX to installed program names
1532 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1533
1534 System types:
1535 --build=BUILD configure for building on BUILD [guessed]
1536 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1537 --target=TARGET configure for building compilers for TARGET [HOST]
1538 _ACEOF
1539 fi
1540
1541 if test -n "$ac_init_help"; then
1542 case $ac_init_help in
1543 short | recursive ) echo "Configuration of gc 8.2.8:";;
1544 esac
1545 cat <<\_ACEOF
1546
1547 Optional Features:
1548 --disable-option-checking ignore unrecognized --enable/--with options
1549 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1550 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1551 --enable-silent-rules less verbose build output (undo: "make V=1")
1552 --disable-silent-rules verbose build output (undo: "make V=0")
1553 --enable-maintainer-mode
1554 enable make rules and dependencies not useful (and
1555 sometimes confusing) to the casual installer
1556 --enable-dependency-tracking
1557 do not reject slow dependency extractors
1558 --disable-dependency-tracking
1559 speeds up one-time build
1560 --enable-static[=PKGS] build static libraries [default=no]
1561 --enable-shared[=PKGS] build shared libraries [default=yes]
1562 --enable-fast-install[=PKGS]
1563 optimize for fast installation [default=yes]
1564 --disable-libtool-lock avoid locking (might break parallel builds)
1565 --enable-emscripten-asyncify
1566 use Emscripten asyncify feature
1567 --enable-threads=TYPE choose threading package
1568 --disable-parallel-mark do not parallelize marking and free list
1569 construction
1570 --disable-thread-local-alloc
1571 turn off thread-local allocation optimization
1572 --disable-threads-discovery
1573 disable threads discovery in GC
1574 --enable-cplusplus install C++ support
1575 --disable-throw-bad-alloc-library
1576 do not build C++ gctba library
1577 --disable-gcj-support disable support for gcj
1578 --enable-sigrt-signals force GC to use SIGRTMIN-based signals for thread
1579 suspend/resume
1580 --enable-gc-debug include full support for pointer backtracing etc.
1581 --disable-java-finalization
1582 disable support for java finalization
1583 --disable-atomic-uncollectible
1584 disable support for atomic uncollectible allocation
1585 --enable-redirect-malloc
1586 redirect malloc and friends to GC routines
1587 --disable-disclaim disable alternative (more efficient) finalization
1588 interface
1589 --enable-large-config optimize for large (> 100 MB) heap or root set
1590 --enable-gc-assertions collector-internal assertion checking
1591 --enable-mmap use mmap instead of sbrk to expand the heap
1592 --enable-munmap=N return page to the OS if empty for N collections
1593 (default: 6)
1594 --disable-dynamic-loading
1595 build the collector with disabled tracing of dynamic
1596 library data roots
1597 --disable-register-main-static-data
1598 skip the initial guess of data root sets
1599 --enable-checksums report on erroneously cleared dirty bits at
1600 substantial performance cost; use only for debugging
1601 of the incremental collector
1602 --enable-werror pass -Werror to the C compiler
1603 --enable-single-obj-compilation
1604 compile all libgc source files into single .o
1605 (default: yes if static libraries are disabled)
1606 --enable-gcov turn on code coverage analysis
1607 --disable-docs do not build and install documentation
1608 --enable-handle-fork=yes|no|auto|manual
1609 attempt to ensure a usable collector after fork() in
1610 multi-threaded programs (default: auto; manual:
1611 GC_atfork_prepare/parent/child should be called by
1612 the client)
1613
1614 Optional Packages:
1615 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1616 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1617 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1618 both]
1619 --with-aix-soname=aix|svr4|both
1620 shared library versioning (aka "SONAME") variant to
1621 provide on AIX, [default=aix].
1622 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1623 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1624 compiler's sysroot if not specified).
1625 --with-ecos enable runtime eCos target support
1626 --with-target-subdir=SUBDIR
1627 configuring with a cross compiler
1628 --with-cross-host=HOST configuring with a cross compiler
1629 --with-libatomic-ops=yes|no|check|none
1630 use an external libatomic_ops? (default: check;
1631 none: use compiler intrinsics or no thread support)
1632
1633 Some influential environment variables:
1634 CC C compiler command
1635 CFLAGS C compiler flags
1636 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1637 nonstandard directory <lib dir>
1638 LIBS libraries to pass to the linker, e.g. -l<library>
1639 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1640 you have headers in a nonstandard directory <include dir>
1641 CXX C++ compiler command
1642 CXXFLAGS C++ compiler flags
1643 CCAS assembler compiler command (defaults to CC)
1644 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1645 LT_SYS_LIBRARY_PATH
1646 User-defined run-time library search path.
1647 CXXCPP C++ preprocessor
1648
1649 Use these variables to override the choices made by `configure' or to help
1650 it to find libraries and programs with nonstandard names/locations.
1651
1652 Report bugs to <https://github.com/ivmai/bdwgc/issues>.
1653 _ACEOF
1654 ac_status=$?
1655 fi
1656
1657 if test "$ac_init_help" = "recursive"; then
1658 # If there are subdirs, report their specific --help.
1659 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1660 test -d "$ac_dir" ||
1661 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1662 continue
1663 ac_builddir=.
1664
1665 case "$ac_dir" in
1666 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1667 *)
1668 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1669 # A ".." for each directory in $ac_dir_suffix.
1670 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1671 case $ac_top_builddir_sub in
1672 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1673 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1674 esac ;;
1675 esac
1676 ac_abs_top_builddir=$ac_pwd
1677 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1678 # for backward compatibility:
1679 ac_top_builddir=$ac_top_build_prefix
1680
1681 case $srcdir in
1682 .) # We are building in place.
1683 ac_srcdir=.
1684 ac_top_srcdir=$ac_top_builddir_sub
1685 ac_abs_top_srcdir=$ac_pwd ;;
1686 [\\/]* | ?:[\\/]* ) # Absolute name.
1687 ac_srcdir=$srcdir$ac_dir_suffix;
1688 ac_top_srcdir=$srcdir
1689 ac_abs_top_srcdir=$srcdir ;;
1690 *) # Relative name.
1691 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1692 ac_top_srcdir=$ac_top_build_prefix$srcdir
1693 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1694 esac
1695 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1696
1697 cd "$ac_dir" || { ac_status=$?; continue; }
1698 # Check for configure.gnu first; this name is used for a wrapper for
1699 # Metaconfig's "Configure" on case-insensitive file systems.
1700 if test -f "$ac_srcdir/configure.gnu"; then
1701 echo &&
1702 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1703 elif test -f "$ac_srcdir/configure"; then
1704 echo &&
1705 $SHELL "$ac_srcdir/configure" --help=recursive
1706 else
1707 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1708 fi || ac_status=$?
1709 cd "$ac_pwd" || { ac_status=$?; break; }
1710 done
1711 fi
1712
1713 test -n "$ac_init_help" && exit $ac_status
1714 if $ac_init_version; then
1715 cat <<\_ACEOF
1716 gc configure 8.2.8
1717 generated by GNU Autoconf 2.71
1718
1719 Copyright (C) 2021 Free Software Foundation, Inc.
1720 This configure script is free software; the Free Software Foundation
1721 gives unlimited permission to copy, distribute and modify it.
1722 _ACEOF
1723 exit
1724 fi
1725
1726 ## ------------------------ ##
1727 ## Autoconf initialization. ##
1728 ## ------------------------ ##
1729
1730 # ac_fn_c_try_compile LINENO
1731 # --------------------------
1732 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1733 ac_fn_c_try_compile ()
1734 {
1735 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1736 rm -f conftest.$ac_objext conftest.beam
1737 if { { ac_try="$ac_compile"
1738 case "(($ac_try" in
1739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1740 *) ac_try_echo=$ac_try;;
1741 esac
1742 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1743 printf "%s\n" "$ac_try_echo"; } >&5
1744 (eval "$ac_compile") 2>conftest.err
1745 ac_status=$?
1746 if test -s conftest.err; then
1747 grep -v '^ *+' conftest.err >conftest.er1
1748 cat conftest.er1 >&5
1749 mv -f conftest.er1 conftest.err
1750 fi
1751 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1752 test $ac_status = 0; } && {
1753 test -z "$ac_c_werror_flag" ||
1754 test ! -s conftest.err
1755 } && test -s conftest.$ac_objext
1756 then :
1757 ac_retval=0
1758 else $as_nop
1759 printf "%s\n" "$as_me: failed program was:" >&5
1760 sed 's/^/| /' conftest.$ac_ext >&5
1761
1762 ac_retval=1
1763 fi
1764 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1765 as_fn_set_status $ac_retval
1766
1767 } # ac_fn_c_try_compile
1768
1769 # ac_fn_cxx_try_compile LINENO
1770 # ----------------------------
1771 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1772 ac_fn_cxx_try_compile ()
1773 {
1774 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1775 rm -f conftest.$ac_objext conftest.beam
1776 if { { ac_try="$ac_compile"
1777 case "(($ac_try" in
1778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1779 *) ac_try_echo=$ac_try;;
1780 esac
1781 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1782 printf "%s\n" "$ac_try_echo"; } >&5
1783 (eval "$ac_compile") 2>conftest.err
1784 ac_status=$?
1785 if test -s conftest.err; then
1786 grep -v '^ *+' conftest.err >conftest.er1
1787 cat conftest.er1 >&5
1788 mv -f conftest.er1 conftest.err
1789 fi
1790 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1791 test $ac_status = 0; } && {
1792 test -z "$ac_cxx_werror_flag" ||
1793 test ! -s conftest.err
1794 } && test -s conftest.$ac_objext
1795 then :
1796 ac_retval=0
1797 else $as_nop
1798 printf "%s\n" "$as_me: failed program was:" >&5
1799 sed 's/^/| /' conftest.$ac_ext >&5
1800
1801 ac_retval=1
1802 fi
1803 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1804 as_fn_set_status $ac_retval
1805
1806 } # ac_fn_cxx_try_compile
1807
1808 # ac_fn_c_try_link LINENO
1809 # -----------------------
1810 # Try to link conftest.$ac_ext, and return whether this succeeded.
1811 ac_fn_c_try_link ()
1812 {
1813 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1814 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1815 if { { ac_try="$ac_link"
1816 case "(($ac_try" in
1817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1818 *) ac_try_echo=$ac_try;;
1819 esac
1820 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1821 printf "%s\n" "$ac_try_echo"; } >&5
1822 (eval "$ac_link") 2>conftest.err
1823 ac_status=$?
1824 if test -s conftest.err; then
1825 grep -v '^ *+' conftest.err >conftest.er1
1826 cat conftest.er1 >&5
1827 mv -f conftest.er1 conftest.err
1828 fi
1829 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1830 test $ac_status = 0; } && {
1831 test -z "$ac_c_werror_flag" ||
1832 test ! -s conftest.err
1833 } && test -s conftest$ac_exeext && {
1834 test "$cross_compiling" = yes ||
1835 test -x conftest$ac_exeext
1836 }
1837 then :
1838 ac_retval=0
1839 else $as_nop
1840 printf "%s\n" "$as_me: failed program was:" >&5
1841 sed 's/^/| /' conftest.$ac_ext >&5
1842
1843 ac_retval=1
1844 fi
1845 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1846 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1847 # interfere with the next link command; also delete a directory that is
1848 # left behind by Apple's compiler. We do this before executing the actions.
1849 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1850 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1851 as_fn_set_status $ac_retval
1852
1853 } # ac_fn_c_try_link
1854
1855 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1856 # -------------------------------------------------------
1857 # Tests whether HEADER exists and can be compiled using the include files in
1858 # INCLUDES, setting the cache variable VAR accordingly.
1859 ac_fn_c_check_header_compile ()
1860 {
1861 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1863 printf %s "checking for $2... " >&6; }
1864 if eval test \${$3+y}
1865 then :
1866 printf %s "(cached) " >&6
1867 else $as_nop
1868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1869 /* end confdefs.h. */
1870 $4
1871 #include <$2>
1872 _ACEOF
1873 if ac_fn_c_try_compile "$LINENO"
1874 then :
1875 eval "$3=yes"
1876 else $as_nop
1877 eval "$3=no"
1878 fi
1879 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1880 fi
1881 eval ac_res=\$$3
1882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1883 printf "%s\n" "$ac_res" >&6; }
1884 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1885
1886 } # ac_fn_c_check_header_compile
1887
1888 # ac_fn_c_check_func LINENO FUNC VAR
1889 # ----------------------------------
1890 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1891 ac_fn_c_check_func ()
1892 {
1893 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1895 printf %s "checking for $2... " >&6; }
1896 if eval test \${$3+y}
1897 then :
1898 printf %s "(cached) " >&6
1899 else $as_nop
1900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1901 /* end confdefs.h. */
1902 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1903 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1904 #define $2 innocuous_$2
1905
1906 /* System header to define __stub macros and hopefully few prototypes,
1907 which can conflict with char $2 (); below. */
1908
1909 #include <limits.h>
1910 #undef $2
1911
1912 /* Override any GCC internal prototype to avoid an error.
1913 Use char because int might match the return type of a GCC
1914 builtin and then its argument prototype would still apply. */
1915 #ifdef __cplusplus
1916 extern "C"
1917 #endif
1918 char $2 ();
1919 /* The GNU C library defines this for functions which it implements
1920 to always fail with ENOSYS. Some functions are actually named
1921 something starting with __ and the normal name is an alias. */
1922 #if defined __stub_$2 || defined __stub___$2
1923 choke me
1924 #endif
1925
1926 int
1927 main (void)
1928 {
1929 return $2 ();
1930 ;
1931 return 0;
1932 }
1933 _ACEOF
1934 if ac_fn_c_try_link "$LINENO"
1935 then :
1936 eval "$3=yes"
1937 else $as_nop
1938 eval "$3=no"
1939 fi
1940 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1941 conftest$ac_exeext conftest.$ac_ext
1942 fi
1943 eval ac_res=\$$3
1944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1945 printf "%s\n" "$ac_res" >&6; }
1946 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1947
1948 } # ac_fn_c_check_func
1949
1950 # ac_fn_cxx_try_cpp LINENO
1951 # ------------------------
1952 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1953 ac_fn_cxx_try_cpp ()
1954 {
1955 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1956 if { { ac_try="$ac_cpp conftest.$ac_ext"
1957 case "(($ac_try" in
1958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1959 *) ac_try_echo=$ac_try;;
1960 esac
1961 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1962 printf "%s\n" "$ac_try_echo"; } >&5
1963 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1964 ac_status=$?
1965 if test -s conftest.err; then
1966 grep -v '^ *+' conftest.err >conftest.er1
1967 cat conftest.er1 >&5
1968 mv -f conftest.er1 conftest.err
1969 fi
1970 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1971 test $ac_status = 0; } > conftest.i && {
1972 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1973 test ! -s conftest.err
1974 }
1975 then :
1976 ac_retval=0
1977 else $as_nop
1978 printf "%s\n" "$as_me: failed program was:" >&5
1979 sed 's/^/| /' conftest.$ac_ext >&5
1980
1981 ac_retval=1
1982 fi
1983 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1984 as_fn_set_status $ac_retval
1985
1986 } # ac_fn_cxx_try_cpp
1987
1988 # ac_fn_cxx_try_link LINENO
1989 # -------------------------
1990 # Try to link conftest.$ac_ext, and return whether this succeeded.
1991 ac_fn_cxx_try_link ()
1992 {
1993 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1994 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1995 if { { ac_try="$ac_link"
1996 case "(($ac_try" in
1997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1998 *) ac_try_echo=$ac_try;;
1999 esac
2000 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2001 printf "%s\n" "$ac_try_echo"; } >&5
2002 (eval "$ac_link") 2>conftest.err
2003 ac_status=$?
2004 if test -s conftest.err; then
2005 grep -v '^ *+' conftest.err >conftest.er1
2006 cat conftest.er1 >&5
2007 mv -f conftest.er1 conftest.err
2008 fi
2009 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2010 test $ac_status = 0; } && {
2011 test -z "$ac_cxx_werror_flag" ||
2012 test ! -s conftest.err
2013 } && test -s conftest$ac_exeext && {
2014 test "$cross_compiling" = yes ||
2015 test -x conftest$ac_exeext
2016 }
2017 then :
2018 ac_retval=0
2019 else $as_nop
2020 printf "%s\n" "$as_me: failed program was:" >&5
2021 sed 's/^/| /' conftest.$ac_ext >&5
2022
2023 ac_retval=1
2024 fi
2025 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2026 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2027 # interfere with the next link command; also delete a directory that is
2028 # left behind by Apple's compiler. We do this before executing the actions.
2029 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2030 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2031 as_fn_set_status $ac_retval
2032
2033 } # ac_fn_cxx_try_link
2034
2035 # ac_fn_c_try_run LINENO
2036 # ----------------------
2037 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
2038 # executables *can* be run.
2039 ac_fn_c_try_run ()
2040 {
2041 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2042 if { { ac_try="$ac_link"
2043 case "(($ac_try" in
2044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2045 *) ac_try_echo=$ac_try;;
2046 esac
2047 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2048 printf "%s\n" "$ac_try_echo"; } >&5
2049 (eval "$ac_link") 2>&5
2050 ac_status=$?
2051 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2052 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2053 { { case "(($ac_try" in
2054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2055 *) ac_try_echo=$ac_try;;
2056 esac
2057 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2058 printf "%s\n" "$ac_try_echo"; } >&5
2059 (eval "$ac_try") 2>&5
2060 ac_status=$?
2061 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2062 test $ac_status = 0; }; }
2063 then :
2064 ac_retval=0
2065 else $as_nop
2066 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2067 printf "%s\n" "$as_me: failed program was:" >&5
2068 sed 's/^/| /' conftest.$ac_ext >&5
2069
2070 ac_retval=$ac_status
2071 fi
2072 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2073 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2074 as_fn_set_status $ac_retval
2075
2076 } # ac_fn_c_try_run
2077 ac_configure_args_raw=
2078 for ac_arg
2079 do
2080 case $ac_arg in
2081 *\'*)
2082 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2083 esac
2084 as_fn_append ac_configure_args_raw " '$ac_arg'"
2085 done
2086
2087 case $ac_configure_args_raw in
2088 *$as_nl*)
2089 ac_safe_unquote= ;;
2090 *)
2091 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2092 ac_unsafe_a="$ac_unsafe_z#~"
2093 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2094 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2095 esac
2096
2097 cat >config.log <<_ACEOF
2098 This file contains any messages produced by compilers while
2099 running configure, to aid debugging if configure makes a mistake.
2100
2101 It was created by gc $as_me 8.2.8, which was
2102 generated by GNU Autoconf 2.71. Invocation command line was
2103
2104 $ $0$ac_configure_args_raw
2105
2106 _ACEOF
2107 exec 5>>config.log
2108 {
2109 cat <<_ASUNAME
2110 ## --------- ##
2111 ## Platform. ##
2112 ## --------- ##
2113
2114 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2115 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2116 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2117 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2118 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2119
2120 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2121 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2122
2123 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2124 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2125 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2126 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2127 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2128 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2129 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2130
2131 _ASUNAME
2132
2133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2134 for as_dir in $PATH
2135 do
2136 IFS=$as_save_IFS
2137 case $as_dir in #(((
2138 '') as_dir=./ ;;
2139 */) ;;
2140 *) as_dir=$as_dir/ ;;
2141 esac
2142 printf "%s\n" "PATH: $as_dir"
2143 done
2144 IFS=$as_save_IFS
2145
2146 } >&5
2147
2148 cat >&5 <<_ACEOF
2149
2150
2151 ## ----------- ##
2152 ## Core tests. ##
2153 ## ----------- ##
2154
2155 _ACEOF
2156
2157
2158 # Keep a trace of the command line.
2159 # Strip out --no-create and --no-recursion so they do not pile up.
2160 # Strip out --silent because we don't want to record it for future runs.
2161 # Also quote any args containing shell meta-characters.
2162 # Make two passes to allow for proper duplicate-argument suppression.
2163 ac_configure_args=
2164 ac_configure_args0=
2165 ac_configure_args1=
2166 ac_must_keep_next=false
2167 for ac_pass in 1 2
2168 do
2169 for ac_arg
2170 do
2171 case $ac_arg in
2172 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2173 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2174 | -silent | --silent | --silen | --sile | --sil)
2175 continue ;;
2176 *\'*)
2177 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2178 esac
2179 case $ac_pass in
2180 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2181 2)
2182 as_fn_append ac_configure_args1 " '$ac_arg'"
2183 if test $ac_must_keep_next = true; then
2184 ac_must_keep_next=false # Got value, back to normal.
2185 else
2186 case $ac_arg in
2187 *=* | --config-cache | -C | -disable-* | --disable-* \
2188 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2189 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2190 | -with-* | --with-* | -without-* | --without-* | --x)
2191 case "$ac_configure_args0 " in
2192 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2193 esac
2194 ;;
2195 -* ) ac_must_keep_next=true ;;
2196 esac
2197 fi
2198 as_fn_append ac_configure_args " '$ac_arg'"
2199 ;;
2200 esac
2201 done
2202 done
2203 { ac_configure_args0=; unset ac_configure_args0;}
2204 { ac_configure_args1=; unset ac_configure_args1;}
2205
2206 # When interrupted or exit'd, cleanup temporary files, and complete
2207 # config.log. We remove comments because anyway the quotes in there
2208 # would cause problems or look ugly.
2209 # WARNING: Use '\'' to represent an apostrophe within the trap.
2210 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2211 trap 'exit_status=$?
2212 # Sanitize IFS.
2213 IFS=" "" $as_nl"
2214 # Save into config.log some information that might help in debugging.
2215 {
2216 echo
2217
2218 printf "%s\n" "## ---------------- ##
2219 ## Cache variables. ##
2220 ## ---------------- ##"
2221 echo
2222 # The following way of writing the cache mishandles newlines in values,
2223 (
2224 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2225 eval ac_val=\$$ac_var
2226 case $ac_val in #(
2227 *${as_nl}*)
2228 case $ac_var in #(
2229 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2230 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2231 esac
2232 case $ac_var in #(
2233 _ | IFS | as_nl) ;; #(
2234 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2235 *) { eval $ac_var=; unset $ac_var;} ;;
2236 esac ;;
2237 esac
2238 done
2239 (set) 2>&1 |
2240 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2241 *${as_nl}ac_space=\ *)
2242 sed -n \
2243 "s/'\''/'\''\\\\'\'''\''/g;
2244 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2245 ;; #(
2246 *)
2247 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2248 ;;
2249 esac |
2250 sort
2251 )
2252 echo
2253
2254 printf "%s\n" "## ----------------- ##
2255 ## Output variables. ##
2256 ## ----------------- ##"
2257 echo
2258 for ac_var in $ac_subst_vars
2259 do
2260 eval ac_val=\$$ac_var
2261 case $ac_val in
2262 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2263 esac
2264 printf "%s\n" "$ac_var='\''$ac_val'\''"
2265 done | sort
2266 echo
2267
2268 if test -n "$ac_subst_files"; then
2269 printf "%s\n" "## ------------------- ##
2270 ## File substitutions. ##
2271 ## ------------------- ##"
2272 echo
2273 for ac_var in $ac_subst_files
2274 do
2275 eval ac_val=\$$ac_var
2276 case $ac_val in
2277 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2278 esac
2279 printf "%s\n" "$ac_var='\''$ac_val'\''"
2280 done | sort
2281 echo
2282 fi
2283
2284 if test -s confdefs.h; then
2285 printf "%s\n" "## ----------- ##
2286 ## confdefs.h. ##
2287 ## ----------- ##"
2288 echo
2289 cat confdefs.h
2290 echo
2291 fi
2292 test "$ac_signal" != 0 &&
2293 printf "%s\n" "$as_me: caught signal $ac_signal"
2294 printf "%s\n" "$as_me: exit $exit_status"
2295 } >&5
2296 rm -f core *.core core.conftest.* &&
2297 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2298 exit $exit_status
2299 ' 0
2300 for ac_signal in 1 2 13 15; do
2301 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2302 done
2303 ac_signal=0
2304
2305 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2306 rm -f -r conftest* confdefs.h
2307
2308 printf "%s\n" "/* confdefs.h */" > confdefs.h
2309
2310 # Predefined preprocessor variables.
2311
2312 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2313
2314 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2315
2316 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2317
2318 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2319
2320 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2321
2322 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2323
2324
2325 # Let the site file select an alternate cache file if it wants to.
2326 # Prefer an explicitly selected file to automatically selected ones.
2327 if test -n "$CONFIG_SITE"; then
2328 ac_site_files="$CONFIG_SITE"
2329 elif test "x$prefix" != xNONE; then
2330 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2331 else
2332 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2333 fi
2334
2335 for ac_site_file in $ac_site_files
2336 do
2337 case $ac_site_file in #(
2338 */*) :
2339 ;; #(
2340 *) :
2341 ac_site_file=./$ac_site_file ;;
2342 esac
2343 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2345 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2346 sed 's/^/| /' "$ac_site_file" >&5
2347 . "$ac_site_file" \
2348 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2349 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2350 as_fn_error $? "failed to load site script $ac_site_file
2351 See \`config.log' for more details" "$LINENO" 5; }
2352 fi
2353 done
2354
2355 if test -r "$cache_file"; then
2356 # Some versions of bash will fail to source /dev/null (special files
2357 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2358 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2360 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2361 case $cache_file in
2362 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2363 *) . "./$cache_file";;
2364 esac
2365 fi
2366 else
2367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2368 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2369 >$cache_file
2370 fi
2371
2372 # Test code for whether the C compiler supports C89 (global declarations)
2373 ac_c_conftest_c89_globals='
2374 /* Does the compiler advertise C89 conformance?
2375 Do not test the value of __STDC__, because some compilers set it to 0
2376 while being otherwise adequately conformant. */
2377 #if !defined __STDC__
2378 # error "Compiler does not advertise C89 conformance"
2379 #endif
2380
2381 #include <stddef.h>
2382 #include <stdarg.h>
2383 struct stat;
2384 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2385 struct buf { int x; };
2386 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2387 static char *e (p, i)
2388 char **p;
2389 int i;
2390 {
2391 return p[i];
2392 }
2393 static char *f (char * (*g) (char **, int), char **p, ...)
2394 {
2395 char *s;
2396 va_list v;
2397 va_start (v,p);
2398 s = g (p, va_arg (v,int));
2399 va_end (v);
2400 return s;
2401 }
2402
2403 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2404 function prototypes and stuff, but not \xHH hex character constants.
2405 These do not provoke an error unfortunately, instead are silently treated
2406 as an "x". The following induces an error, until -std is added to get
2407 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2408 array size at least. It is necessary to write \x00 == 0 to get something
2409 that is true only with -std. */
2410 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2411
2412 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2413 inside strings and character constants. */
2414 #define FOO(x) '\''x'\''
2415 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2416
2417 int test (int i, double x);
2418 struct s1 {int (*f) (int a);};
2419 struct s2 {int (*f) (double a);};
2420 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2421 int, int);'
2422
2423 # Test code for whether the C compiler supports C89 (body of main).
2424 ac_c_conftest_c89_main='
2425 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2426 '
2427
2428 # Test code for whether the C compiler supports C99 (global declarations)
2429 ac_c_conftest_c99_globals='
2430 // Does the compiler advertise C99 conformance?
2431 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2432 # error "Compiler does not advertise C99 conformance"
2433 #endif
2434
2435 #include <stdbool.h>
2436 extern int puts (const char *);
2437 extern int printf (const char *, ...);
2438 extern int dprintf (int, const char *, ...);
2439 extern void *malloc (size_t);
2440
2441 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2442 // dprintf is used instead of fprintf to avoid needing to declare
2443 // FILE and stderr.
2444 #define debug(...) dprintf (2, __VA_ARGS__)
2445 #define showlist(...) puts (#__VA_ARGS__)
2446 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2447 static void
2448 test_varargs_macros (void)
2449 {
2450 int x = 1234;
2451 int y = 5678;
2452 debug ("Flag");
2453 debug ("X = %d\n", x);
2454 showlist (The first, second, and third items.);
2455 report (x>y, "x is %d but y is %d", x, y);
2456 }
2457
2458 // Check long long types.
2459 #define BIG64 18446744073709551615ull
2460 #define BIG32 4294967295ul
2461 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2462 #if !BIG_OK
2463 #error "your preprocessor is broken"
2464 #endif
2465 #if BIG_OK
2466 #else
2467 #error "your preprocessor is broken"
2468 #endif
2469 static long long int bignum = -9223372036854775807LL;
2470 static unsigned long long int ubignum = BIG64;
2471
2472 struct incomplete_array
2473 {
2474 int datasize;
2475 double data[];
2476 };
2477
2478 struct named_init {
2479 int number;
2480 const wchar_t *name;
2481 double average;
2482 };
2483
2484 typedef const char *ccp;
2485
2486 static inline int
2487 test_restrict (ccp restrict text)
2488 {
2489 // See if C++-style comments work.
2490 // Iterate through items via the restricted pointer.
2491 // Also check for declarations in for loops.
2492 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2493 continue;
2494 return 0;
2495 }
2496
2497 // Check varargs and va_copy.
2498 static bool
2499 test_varargs (const char *format, ...)
2500 {
2501 va_list args;
2502 va_start (args, format);
2503 va_list args_copy;
2504 va_copy (args_copy, args);
2505
2506 const char *str = "";
2507 int number = 0;
2508 float fnumber = 0;
2509
2510 while (*format)
2511 {
2512 switch (*format++)
2513 {
2514 case '\''s'\'': // string
2515 str = va_arg (args_copy, const char *);
2516 break;
2517 case '\''d'\'': // int
2518 number = va_arg (args_copy, int);
2519 break;
2520 case '\''f'\'': // float
2521 fnumber = va_arg (args_copy, double);
2522 break;
2523 default:
2524 break;
2525 }
2526 }
2527 va_end (args_copy);
2528 va_end (args);
2529
2530 return *str && number && fnumber;
2531 }
2532 '
2533
2534 # Test code for whether the C compiler supports C99 (body of main).
2535 ac_c_conftest_c99_main='
2536 // Check bool.
2537 _Bool success = false;
2538 success |= (argc != 0);
2539
2540 // Check restrict.
2541 if (test_restrict ("String literal") == 0)
2542 success = true;
2543 char *restrict newvar = "Another string";
2544
2545 // Check varargs.
2546 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2547 test_varargs_macros ();
2548
2549 // Check flexible array members.
2550 struct incomplete_array *ia =
2551 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2552 ia->datasize = 10;
2553 for (int i = 0; i < ia->datasize; ++i)
2554 ia->data[i] = i * 1.234;
2555
2556 // Check named initializers.
2557 struct named_init ni = {
2558 .number = 34,
2559 .name = L"Test wide string",
2560 .average = 543.34343,
2561 };
2562
2563 ni.number = 58;
2564
2565 int dynamic_array[ni.number];
2566 dynamic_array[0] = argv[0][0];
2567 dynamic_array[ni.number - 1] = 543;
2568
2569 // work around unused variable warnings
2570 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2571 || dynamic_array[ni.number - 1] != 543);
2572 '
2573
2574 # Test code for whether the C compiler supports C11 (global declarations)
2575 ac_c_conftest_c11_globals='
2576 // Does the compiler advertise C11 conformance?
2577 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2578 # error "Compiler does not advertise C11 conformance"
2579 #endif
2580
2581 // Check _Alignas.
2582 char _Alignas (double) aligned_as_double;
2583 char _Alignas (0) no_special_alignment;
2584 extern char aligned_as_int;
2585 char _Alignas (0) _Alignas (int) aligned_as_int;
2586
2587 // Check _Alignof.
2588 enum
2589 {
2590 int_alignment = _Alignof (int),
2591 int_array_alignment = _Alignof (int[100]),
2592 char_alignment = _Alignof (char)
2593 };
2594 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2595
2596 // Check _Noreturn.
2597 int _Noreturn does_not_return (void) { for (;;) continue; }
2598
2599 // Check _Static_assert.
2600 struct test_static_assert
2601 {
2602 int x;
2603 _Static_assert (sizeof (int) <= sizeof (long int),
2604 "_Static_assert does not work in struct");
2605 long int y;
2606 };
2607
2608 // Check UTF-8 literals.
2609 #define u8 syntax error!
2610 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2611
2612 // Check duplicate typedefs.
2613 typedef long *long_ptr;
2614 typedef long int *long_ptr;
2615 typedef long_ptr long_ptr;
2616
2617 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2618 struct anonymous
2619 {
2620 union {
2621 struct { int i; int j; };
2622 struct { int k; long int l; } w;
2623 };
2624 int m;
2625 } v1;
2626 '
2627
2628 # Test code for whether the C compiler supports C11 (body of main).
2629 ac_c_conftest_c11_main='
2630 _Static_assert ((offsetof (struct anonymous, i)
2631 == offsetof (struct anonymous, w.k)),
2632 "Anonymous union alignment botch");
2633 v1.i = 2;
2634 v1.w.k = 5;
2635 ok |= v1.i != 5;
2636 '
2637
2638 # Test code for whether the C compiler supports C11 (complete).
2639 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2640 ${ac_c_conftest_c99_globals}
2641 ${ac_c_conftest_c11_globals}
2642
2643 int
2644 main (int argc, char **argv)
2645 {
2646 int ok = 0;
2647 ${ac_c_conftest_c89_main}
2648 ${ac_c_conftest_c99_main}
2649 ${ac_c_conftest_c11_main}
2650 return ok;
2651 }
2652 "
2653
2654 # Test code for whether the C compiler supports C99 (complete).
2655 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2656 ${ac_c_conftest_c99_globals}
2657
2658 int
2659 main (int argc, char **argv)
2660 {
2661 int ok = 0;
2662 ${ac_c_conftest_c89_main}
2663 ${ac_c_conftest_c99_main}
2664 return ok;
2665 }
2666 "
2667
2668 # Test code for whether the C compiler supports C89 (complete).
2669 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2670
2671 int
2672 main (int argc, char **argv)
2673 {
2674 int ok = 0;
2675 ${ac_c_conftest_c89_main}
2676 return ok;
2677 }
2678 "
2679
2680 # Test code for whether the C++ compiler supports C++98 (global declarations)
2681 ac_cxx_conftest_cxx98_globals='
2682 // Does the compiler advertise C++98 conformance?
2683 #if !defined __cplusplus || __cplusplus < 199711L
2684 # error "Compiler does not advertise C++98 conformance"
2685 #endif
2686
2687 // These inclusions are to reject old compilers that
2688 // lack the unsuffixed header files.
2689 #include <cstdlib>
2690 #include <exception>
2691
2692 // <cassert> and <cstring> are *not* freestanding headers in C++98.
2693 extern void assert (int);
2694 namespace std {
2695 extern int strcmp (const char *, const char *);
2696 }
2697
2698 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
2699 using std::exception;
2700 using std::strcmp;
2701
2702 namespace {
2703
2704 void test_exception_syntax()
2705 {
2706 try {
2707 throw "test";
2708 } catch (const char *s) {
2709 // Extra parentheses suppress a warning when building autoconf itself,
2710 // due to lint rules shared with more typical C programs.
2711 assert (!(strcmp) (s, "test"));
2712 }
2713 }
2714
2715 template <typename T> struct test_template
2716 {
2717 T const val;
2718 explicit test_template(T t) : val(t) {}
2719 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
2720 };
2721
2722 } // anonymous namespace
2723 '
2724
2725 # Test code for whether the C++ compiler supports C++98 (body of main)
2726 ac_cxx_conftest_cxx98_main='
2727 assert (argc);
2728 assert (! argv[0]);
2729 {
2730 test_exception_syntax ();
2731 test_template<double> tt (2.0);
2732 assert (tt.add (4) == 6.0);
2733 assert (true && !false);
2734 }
2735 '
2736
2737 # Test code for whether the C++ compiler supports C++11 (global declarations)
2738 ac_cxx_conftest_cxx11_globals='
2739 // Does the compiler advertise C++ 2011 conformance?
2740 #if !defined __cplusplus || __cplusplus < 201103L
2741 # error "Compiler does not advertise C++11 conformance"
2742 #endif
2743
2744 namespace cxx11test
2745 {
2746 constexpr int get_val() { return 20; }
2747
2748 struct testinit
2749 {
2750 int i;
2751 double d;
2752 };
2753
2754 class delegate
2755 {
2756 public:
2757 delegate(int n) : n(n) {}
2758 delegate(): delegate(2354) {}
2759
2760 virtual int getval() { return this->n; };
2761 protected:
2762 int n;
2763 };
2764
2765 class overridden : public delegate
2766 {
2767 public:
2768 overridden(int n): delegate(n) {}
2769 virtual int getval() override final { return this->n * 2; }
2770 };
2771
2772 class nocopy
2773 {
2774 public:
2775 nocopy(int i): i(i) {}
2776 nocopy() = default;
2777 nocopy(const nocopy&) = delete;
2778 nocopy & operator=(const nocopy&) = delete;
2779 private:
2780 int i;
2781 };
2782
2783 // for testing lambda expressions
2784 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
2785 {
2786 return f(v);
2787 }
2788
2789 // for testing variadic templates and trailing return types
2790 template <typename V> auto sum(V first) -> V
2791 {
2792 return first;
2793 }
2794 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
2795 {
2796 return first + sum(rest...);
2797 }
2798 }
2799 '
2800
2801 # Test code for whether the C++ compiler supports C++11 (body of main)
2802 ac_cxx_conftest_cxx11_main='
2803 {
2804 // Test auto and decltype
2805 auto a1 = 6538;
2806 auto a2 = 48573953.4;
2807 auto a3 = "String literal";
2808
2809 int total = 0;
2810 for (auto i = a3; *i; ++i) { total += *i; }
2811
2812 decltype(a2) a4 = 34895.034;
2813 }
2814 {
2815 // Test constexpr
2816 short sa[cxx11test::get_val()] = { 0 };
2817 }
2818 {
2819 // Test initializer lists
2820 cxx11test::testinit il = { 4323, 435234.23544 };
2821 }
2822 {
2823 // Test range-based for
2824 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
2825 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
2826 for (auto &x : array) { x += 23; }
2827 }
2828 {
2829 // Test lambda expressions
2830 using cxx11test::eval;
2831 assert (eval ([](int x) { return x*2; }, 21) == 42);
2832 double d = 2.0;
2833 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
2834 assert (d == 5.0);
2835 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
2836 assert (d == 5.0);
2837 }
2838 {
2839 // Test use of variadic templates
2840 using cxx11test::sum;
2841 auto a = sum(1);
2842 auto b = sum(1, 2);
2843 auto c = sum(1.0, 2.0, 3.0);
2844 }
2845 {
2846 // Test constructor delegation
2847 cxx11test::delegate d1;
2848 cxx11test::delegate d2();
2849 cxx11test::delegate d3(45);
2850 }
2851 {
2852 // Test override and final
2853 cxx11test::overridden o1(55464);
2854 }
2855 {
2856 // Test nullptr
2857 char *c = nullptr;
2858 }
2859 {
2860 // Test template brackets
2861 test_template<::test_template<int>> v(test_template<int>(12));
2862 }
2863 {
2864 // Unicode literals
2865 char const *utf8 = u8"UTF-8 string \u2500";
2866 char16_t const *utf16 = u"UTF-8 string \u2500";
2867 char32_t const *utf32 = U"UTF-32 string \u2500";
2868 }
2869 '
2870
2871 # Test code for whether the C compiler supports C++11 (complete).
2872 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
2873 ${ac_cxx_conftest_cxx11_globals}
2874
2875 int
2876 main (int argc, char **argv)
2877 {
2878 int ok = 0;
2879 ${ac_cxx_conftest_cxx98_main}
2880 ${ac_cxx_conftest_cxx11_main}
2881 return ok;
2882 }
2883 "
2884
2885 # Test code for whether the C compiler supports C++98 (complete).
2886 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
2887 int
2888 main (int argc, char **argv)
2889 {
2890 int ok = 0;
2891 ${ac_cxx_conftest_cxx98_main}
2892 return ok;
2893 }
2894 "
2895
2896 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2897 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2898 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2899 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2900 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2901 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2902 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2903 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2904 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2905
2906 # Auxiliary files required by this configure script.
2907 ac_aux_files="ltmain.sh compile missing install-sh config.guess config.sub"
2908
2909 # Locations in which to look for auxiliary files.
2910 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2911
2912 # Search for a directory containing all of the required auxiliary files,
2913 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2914 # If we don't find one directory that contains all the files we need,
2915 # we report the set of missing files from the *first* directory in
2916 # $ac_aux_dir_candidates and give up.
2917 ac_missing_aux_files=""
2918 ac_first_candidate=:
2919 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2921 as_found=false
2922 for as_dir in $ac_aux_dir_candidates
2923 do
2924 IFS=$as_save_IFS
2925 case $as_dir in #(((
2926 '') as_dir=./ ;;
2927 */) ;;
2928 *) as_dir=$as_dir/ ;;
2929 esac
2930 as_found=:
2931
2932 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2933 ac_aux_dir_found=yes
2934 ac_install_sh=
2935 for ac_aux in $ac_aux_files
2936 do
2937 # As a special case, if "install-sh" is required, that requirement
2938 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2939 # and $ac_install_sh is set appropriately for whichever one is found.
2940 if test x"$ac_aux" = x"install-sh"
2941 then
2942 if test -f "${as_dir}install-sh"; then
2943 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2944 ac_install_sh="${as_dir}install-sh -c"
2945 elif test -f "${as_dir}install.sh"; then
2946 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2947 ac_install_sh="${as_dir}install.sh -c"
2948 elif test -f "${as_dir}shtool"; then
2949 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2950 ac_install_sh="${as_dir}shtool install -c"
2951 else
2952 ac_aux_dir_found=no
2953 if $ac_first_candidate; then
2954 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2955 else
2956 break
2957 fi
2958 fi
2959 else
2960 if test -f "${as_dir}${ac_aux}"; then
2961 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2962 else
2963 ac_aux_dir_found=no
2964 if $ac_first_candidate; then
2965 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2966 else
2967 break
2968 fi
2969 fi
2970 fi
2971 done
2972 if test "$ac_aux_dir_found" = yes; then
2973 ac_aux_dir="$as_dir"
2974 break
2975 fi
2976 ac_first_candidate=false
2977
2978 as_found=false
2979 done
2980 IFS=$as_save_IFS
2981 if $as_found
2982 then :
2983
2984 else $as_nop
2985 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2986 fi
2987
2988
2989 # These three variables are undocumented and unsupported,
2990 # and are intended to be withdrawn in a future Autoconf release.
2991 # They can cause serious problems if a builder's source tree is in a directory
2992 # whose full name contains unusual characters.
2993 if test -f "${ac_aux_dir}config.guess"; then
2994 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2995 fi
2996 if test -f "${ac_aux_dir}config.sub"; then
2997 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2998 fi
2999 if test -f "$ac_aux_dir/configure"; then
3000 ac_configure="$SHELL ${ac_aux_dir}configure"
3001 fi
3002
3003 # Check that the precious variables saved in the cache have kept the same
3004 # value.
3005 ac_cache_corrupted=false
3006 for ac_var in $ac_precious_vars; do
3007 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3008 eval ac_new_set=\$ac_env_${ac_var}_set
3009 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3010 eval ac_new_val=\$ac_env_${ac_var}_value
3011 case $ac_old_set,$ac_new_set in
3012 set,)
3013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3014 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3015 ac_cache_corrupted=: ;;
3016 ,set)
3017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3018 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3019 ac_cache_corrupted=: ;;
3020 ,);;
3021 *)
3022 if test "x$ac_old_val" != "x$ac_new_val"; then
3023 # differences in whitespace do not lead to failure.
3024 ac_old_val_w=`echo x $ac_old_val`
3025 ac_new_val_w=`echo x $ac_new_val`
3026 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3028 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3029 ac_cache_corrupted=:
3030 else
3031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3032 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3033 eval $ac_var=\$ac_old_val
3034 fi
3035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3036 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
3037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3038 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
3039 fi;;
3040 esac
3041 # Pass precious variables to config.status.
3042 if test "$ac_new_set" = set; then
3043 case $ac_new_val in
3044 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3045 *) ac_arg=$ac_var=$ac_new_val ;;
3046 esac
3047 case " $ac_configure_args " in
3048 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3049 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3050 esac
3051 fi
3052 done
3053 if $ac_cache_corrupted; then
3054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3055 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3057 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3058 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3059 and start over" "$LINENO" 5
3060 fi
3061 ## -------------------- ##
3062 ## Main body of script. ##
3063 ## -------------------- ##
3064
3065 ac_ext=c
3066 ac_cpp='$CPP $CPPFLAGS'
3067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3070
3071
3072
3073
3074
3075
3076
3077
3078 # Make sure we can run config.sub.
3079 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3080 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3081
3082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3083 printf %s "checking build system type... " >&6; }
3084 if test ${ac_cv_build+y}
3085 then :
3086 printf %s "(cached) " >&6
3087 else $as_nop
3088 ac_build_alias=$build_alias
3089 test "x$ac_build_alias" = x &&
3090 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3091 test "x$ac_build_alias" = x &&
3092 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3093 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3094 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3095
3096 fi
3097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3098 printf "%s\n" "$ac_cv_build" >&6; }
3099 case $ac_cv_build in
3100 *-*-*) ;;
3101 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3102 esac
3103 build=$ac_cv_build
3104 ac_save_IFS=$IFS; IFS='-'
3105 set x $ac_cv_build
3106 shift
3107 build_cpu=$1
3108 build_vendor=$2
3109 shift; shift
3110 # Remember, the first character of IFS is used to create $*,
3111 # except with old shells:
3112 build_os=$*
3113 IFS=$ac_save_IFS
3114 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3115
3116
3117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3118 printf %s "checking host system type... " >&6; }
3119 if test ${ac_cv_host+y}
3120 then :
3121 printf %s "(cached) " >&6
3122 else $as_nop
3123 if test "x$host_alias" = x; then
3124 ac_cv_host=$ac_cv_build
3125 else
3126 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3127 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3128 fi
3129
3130 fi
3131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3132 printf "%s\n" "$ac_cv_host" >&6; }
3133 case $ac_cv_host in
3134 *-*-*) ;;
3135 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3136 esac
3137 host=$ac_cv_host
3138 ac_save_IFS=$IFS; IFS='-'
3139 set x $ac_cv_host
3140 shift
3141 host_cpu=$1
3142 host_vendor=$2
3143 shift; shift
3144 # Remember, the first character of IFS is used to create $*,
3145 # except with old shells:
3146 host_os=$*
3147 IFS=$ac_save_IFS
3148 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3149
3150
3151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3152 printf %s "checking target system type... " >&6; }
3153 if test ${ac_cv_target+y}
3154 then :
3155 printf %s "(cached) " >&6
3156 else $as_nop
3157 if test "x$target_alias" = x; then
3158 ac_cv_target=$ac_cv_host
3159 else
3160 ac_cv_target=`$SHELL "${ac_aux_dir}config.sub" $target_alias` ||
3161 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $target_alias failed" "$LINENO" 5
3162 fi
3163
3164 fi
3165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3166 printf "%s\n" "$ac_cv_target" >&6; }
3167 case $ac_cv_target in
3168 *-*-*) ;;
3169 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3170 esac
3171 target=$ac_cv_target
3172 ac_save_IFS=$IFS; IFS='-'
3173 set x $ac_cv_target
3174 shift
3175 target_cpu=$1
3176 target_vendor=$2
3177 shift; shift
3178 # Remember, the first character of IFS is used to create $*,
3179 # except with old shells:
3180 target_os=$*
3181 IFS=$ac_save_IFS
3182 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3183
3184
3185 # The aliases save the names the user supplied, while $host etc.
3186 # will get canonicalized.
3187 test -n "$target_alias" &&
3188 test "$program_prefix$program_suffix$program_transform_name" = \
3189 NONENONEs,x,x, &&
3190 program_prefix=${target_alias}-
3191
3192
3193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking GC version numbers" >&5
3194 printf %s "checking GC version numbers... " >&6; }
3195 GC_VERSION_MAJOR=`echo $PACKAGE_VERSION | sed 's/^\([0-9][0-9]*\)[.].*$/\1/g'`
3196 GC_VERSION_MINOR=`echo $PACKAGE_VERSION | sed 's/^[^.]*[.]\([0-9][0-9]*\).*$/\1/g'`
3197 GC_VERSION_MICRO=`echo $PACKAGE_VERSION | sed 's/^[^.]*[.][^.]*[.]\([0-9][0-9]*\)$/\1/g'`
3198
3199 if test :$GC_VERSION_MAJOR: = :: \
3200 -o :$GC_VERSION_MINOR: = :: \
3201 -o :$GC_VERSION_MICRO: = :: ;
3202 then
3203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: invalid" >&5
3204 printf "%s\n" "invalid" >&6; }
3205 as_fn_error $? "nonconforming PACKAGE_VERSION='$PACKAGE_VERSION'" "$LINENO" 5
3206 fi
3207
3208
3209 printf "%s\n" "#define GC_VERSION_MAJOR $GC_VERSION_MAJOR" >>confdefs.h
3210
3211
3212 printf "%s\n" "#define GC_VERSION_MINOR $GC_VERSION_MINOR" >>confdefs.h
3213
3214
3215 printf "%s\n" "#define GC_VERSION_MICRO $GC_VERSION_MICRO" >>confdefs.h
3216
3217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: major=$GC_VERSION_MAJOR minor=$GC_VERSION_MINOR \
3218 micro=$GC_VERSION_MICRO" >&5
3219 printf "%s\n" "major=$GC_VERSION_MAJOR minor=$GC_VERSION_MINOR \
3220 micro=$GC_VERSION_MICRO" >&6; }
3221
3222 am__api_version='1.16'
3223
3224
3225 # Find a good install program. We prefer a C program (faster),
3226 # so one script is as good as another. But avoid the broken or
3227 # incompatible versions:
3228 # SysV /etc/install, /usr/sbin/install
3229 # SunOS /usr/etc/install
3230 # IRIX /sbin/install
3231 # AIX /bin/install
3232 # AmigaOS /C/install, which installs bootblocks on floppy discs
3233 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3234 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3235 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3236 # OS/2's system install, which has a completely different semantic
3237 # ./install, which can be erroneously created by make from ./install.sh.
3238 # Reject install programs that cannot install multiple files.
3239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3240 printf %s "checking for a BSD-compatible install... " >&6; }
3241 if test -z "$INSTALL"; then
3242 if test ${ac_cv_path_install+y}
3243 then :
3244 printf %s "(cached) " >&6
3245 else $as_nop
3246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3247 for as_dir in $PATH
3248 do
3249 IFS=$as_save_IFS
3250 case $as_dir in #(((
3251 '') as_dir=./ ;;
3252 */) ;;
3253 *) as_dir=$as_dir/ ;;
3254 esac
3255 # Account for fact that we put trailing slashes in our PATH walk.
3256 case $as_dir in #((
3257 ./ | /[cC]/* | \
3258 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3259 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3260 /usr/ucb/* ) ;;
3261 *)
3262 # OSF1 and SCO ODT 3.0 have their own names for install.
3263 # Don't use installbsd from OSF since it installs stuff as root
3264 # by default.
3265 for ac_prog in ginstall scoinst install; do
3266 for ac_exec_ext in '' $ac_executable_extensions; do
3267 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3268 if test $ac_prog = install &&
3269 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3270 # AIX install. It has an incompatible calling convention.
3271 :
3272 elif test $ac_prog = install &&
3273 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3274 # program-specific install script used by HP pwplus--don't use.
3275 :
3276 else
3277 rm -rf conftest.one conftest.two conftest.dir
3278 echo one > conftest.one
3279 echo two > conftest.two
3280 mkdir conftest.dir
3281 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3282 test -s conftest.one && test -s conftest.two &&
3283 test -s conftest.dir/conftest.one &&
3284 test -s conftest.dir/conftest.two
3285 then
3286 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3287 break 3
3288 fi
3289 fi
3290 fi
3291 done
3292 done
3293 ;;
3294 esac
3295
3296 done
3297 IFS=$as_save_IFS
3298
3299 rm -rf conftest.one conftest.two conftest.dir
3300
3301 fi
3302 if test ${ac_cv_path_install+y}; then
3303 INSTALL=$ac_cv_path_install
3304 else
3305 # As a last resort, use the slow shell script. Don't cache a
3306 # value for INSTALL within a source directory, because that will
3307 # break other packages using the cache if that directory is
3308 # removed, or if the value is a relative name.
3309 INSTALL=$ac_install_sh
3310 fi
3311 fi
3312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3313 printf "%s\n" "$INSTALL" >&6; }
3314
3315 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3316 # It thinks the first close brace ends the variable substitution.
3317 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3318
3319 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3320
3321 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3322
3323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3324 printf %s "checking whether build environment is sane... " >&6; }
3325 # Reject unsafe characters in $srcdir or the absolute working directory
3326 # name. Accept space and tab only in the latter.
3327 am_lf='
3328 '
3329 case `pwd` in
3330 *[\\\"\#\$\&\'\`$am_lf]*)
3331 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3332 esac
3333 case $srcdir in
3334 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3335 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3336 esac
3337
3338 # Do 'set' in a subshell so we don't clobber the current shell's
3339 # arguments. Must try -L first in case configure is actually a
3340 # symlink; some systems play weird games with the mod time of symlinks
3341 # (eg FreeBSD returns the mod time of the symlink's containing
3342 # directory).
3343 if (
3344 am_has_slept=no
3345 for am_try in 1 2; do
3346 echo "timestamp, slept: $am_has_slept" > conftest.file
3347 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3348 if test "$*" = "X"; then
3349 # -L didn't work.
3350 set X `ls -t "$srcdir/configure" conftest.file`
3351 fi
3352 if test "$*" != "X $srcdir/configure conftest.file" \
3353 && test "$*" != "X conftest.file $srcdir/configure"; then
3354
3355 # If neither matched, then we have a broken ls. This can happen
3356 # if, for instance, CONFIG_SHELL is bash and it inherits a
3357 # broken ls alias from the environment. This has actually
3358 # happened. Such a system could not be considered "sane".
3359 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3360 alias in your environment" "$LINENO" 5
3361 fi
3362 if test "$2" = conftest.file || test $am_try -eq 2; then
3363 break
3364 fi
3365 # Just in case.
3366 sleep 1
3367 am_has_slept=yes
3368 done
3369 test "$2" = conftest.file
3370 )
3371 then
3372 # Ok.
3373 :
3374 else
3375 as_fn_error $? "newly created file is older than distributed files!
3376 Check your system clock" "$LINENO" 5
3377 fi
3378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3379 printf "%s\n" "yes" >&6; }
3380 # If we didn't sleep, we still need to ensure time stamps of config.status and
3381 # generated files are strictly newer.
3382 am_sleep_pid=
3383 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3384 ( sleep 1 ) &
3385 am_sleep_pid=$!
3386 fi
3387
3388 rm -f conftest.file
3389
3390 test "$program_prefix" != NONE &&
3391 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3392 # Use a double $ so make ignores it.
3393 test "$program_suffix" != NONE &&
3394 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3395 # Double any \ or $.
3396 # By default was `s,x,x', remove it if useless.
3397 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3398 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3399
3400
3401 # Expand $ac_aux_dir to an absolute path.
3402 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3403
3404
3405 if test x"${MISSING+set}" != xset; then
3406 MISSING="\${SHELL} '$am_aux_dir/missing'"
3407 fi
3408 # Use eval to expand $SHELL
3409 if eval "$MISSING --is-lightweight"; then
3410 am_missing_run="$MISSING "
3411 else
3412 am_missing_run=
3413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3414 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3415 fi
3416
3417 if test x"${install_sh+set}" != xset; then
3418 case $am_aux_dir in
3419 *\ * | *\ *)
3420 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3421 *)
3422 install_sh="\${SHELL} $am_aux_dir/install-sh"
3423 esac
3424 fi
3425
3426 # Installed binaries are usually stripped using 'strip' when the user
3427 # run "make install-strip". However 'strip' might not be the right
3428 # tool to use in cross-compilation environments, therefore Automake
3429 # will honor the 'STRIP' environment variable to overrule this program.
3430 if test "$cross_compiling" != no; then
3431 if test -n "$ac_tool_prefix"; then
3432 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3433 set dummy ${ac_tool_prefix}strip; ac_word=$2
3434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3435 printf %s "checking for $ac_word... " >&6; }
3436 if test ${ac_cv_prog_STRIP+y}
3437 then :
3438 printf %s "(cached) " >&6
3439 else $as_nop
3440 if test -n "$STRIP"; then
3441 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3442 else
3443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3444 for as_dir in $PATH
3445 do
3446 IFS=$as_save_IFS
3447 case $as_dir in #(((
3448 '') as_dir=./ ;;
3449 */) ;;
3450 *) as_dir=$as_dir/ ;;
3451 esac
3452 for ac_exec_ext in '' $ac_executable_extensions; do
3453 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3454 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3455 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3456 break 2
3457 fi
3458 done
3459 done
3460 IFS=$as_save_IFS
3461
3462 fi
3463 fi
3464 STRIP=$ac_cv_prog_STRIP
3465 if test -n "$STRIP"; then
3466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3467 printf "%s\n" "$STRIP" >&6; }
3468 else
3469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3470 printf "%s\n" "no" >&6; }
3471 fi
3472
3473
3474 fi
3475 if test -z "$ac_cv_prog_STRIP"; then
3476 ac_ct_STRIP=$STRIP
3477 # Extract the first word of "strip", so it can be a program name with args.
3478 set dummy strip; ac_word=$2
3479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3480 printf %s "checking for $ac_word... " >&6; }
3481 if test ${ac_cv_prog_ac_ct_STRIP+y}
3482 then :
3483 printf %s "(cached) " >&6
3484 else $as_nop
3485 if test -n "$ac_ct_STRIP"; then
3486 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3487 else
3488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3489 for as_dir in $PATH
3490 do
3491 IFS=$as_save_IFS
3492 case $as_dir in #(((
3493 '') as_dir=./ ;;
3494 */) ;;
3495 *) as_dir=$as_dir/ ;;
3496 esac
3497 for ac_exec_ext in '' $ac_executable_extensions; do
3498 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3499 ac_cv_prog_ac_ct_STRIP="strip"
3500 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3501 break 2
3502 fi
3503 done
3504 done
3505 IFS=$as_save_IFS
3506
3507 fi
3508 fi
3509 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3510 if test -n "$ac_ct_STRIP"; then
3511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3512 printf "%s\n" "$ac_ct_STRIP" >&6; }
3513 else
3514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3515 printf "%s\n" "no" >&6; }
3516 fi
3517
3518 if test "x$ac_ct_STRIP" = x; then
3519 STRIP=":"
3520 else
3521 case $cross_compiling:$ac_tool_warned in
3522 yes:)
3523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3524 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3525 ac_tool_warned=yes ;;
3526 esac
3527 STRIP=$ac_ct_STRIP
3528 fi
3529 else
3530 STRIP="$ac_cv_prog_STRIP"
3531 fi
3532
3533 fi
3534 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3535
3536
3537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3538 printf %s "checking for a race-free mkdir -p... " >&6; }
3539 if test -z "$MKDIR_P"; then
3540 if test ${ac_cv_path_mkdir+y}
3541 then :
3542 printf %s "(cached) " >&6
3543 else $as_nop
3544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3545 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3546 do
3547 IFS=$as_save_IFS
3548 case $as_dir in #(((
3549 '') as_dir=./ ;;
3550 */) ;;
3551 *) as_dir=$as_dir/ ;;
3552 esac
3553 for ac_prog in mkdir gmkdir; do
3554 for ac_exec_ext in '' $ac_executable_extensions; do
3555 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3556 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3557 'mkdir ('*'coreutils) '* | \
3558 'BusyBox '* | \
3559 'mkdir (fileutils) '4.1*)
3560 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3561 break 3;;
3562 esac
3563 done
3564 done
3565 done
3566 IFS=$as_save_IFS
3567
3568 fi
3569
3570 test -d ./--version && rmdir ./--version
3571 if test ${ac_cv_path_mkdir+y}; then
3572 MKDIR_P="$ac_cv_path_mkdir -p"
3573 else
3574 # As a last resort, use the slow shell script. Don't cache a
3575 # value for MKDIR_P within a source directory, because that will
3576 # break other packages using the cache if that directory is
3577 # removed, or if the value is a relative name.
3578 MKDIR_P="$ac_install_sh -d"
3579 fi
3580 fi
3581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3582 printf "%s\n" "$MKDIR_P" >&6; }
3583
3584 for ac_prog in gawk mawk nawk awk
3585 do
3586 # Extract the first word of "$ac_prog", so it can be a program name with args.
3587 set dummy $ac_prog; ac_word=$2
3588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3589 printf %s "checking for $ac_word... " >&6; }
3590 if test ${ac_cv_prog_AWK+y}
3591 then :
3592 printf %s "(cached) " >&6
3593 else $as_nop
3594 if test -n "$AWK"; then
3595 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3596 else
3597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3598 for as_dir in $PATH
3599 do
3600 IFS=$as_save_IFS
3601 case $as_dir in #(((
3602 '') as_dir=./ ;;
3603 */) ;;
3604 *) as_dir=$as_dir/ ;;
3605 esac
3606 for ac_exec_ext in '' $ac_executable_extensions; do
3607 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3608 ac_cv_prog_AWK="$ac_prog"
3609 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3610 break 2
3611 fi
3612 done
3613 done
3614 IFS=$as_save_IFS
3615
3616 fi
3617 fi
3618 AWK=$ac_cv_prog_AWK
3619 if test -n "$AWK"; then
3620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3621 printf "%s\n" "$AWK" >&6; }
3622 else
3623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3624 printf "%s\n" "no" >&6; }
3625 fi
3626
3627
3628 test -n "$AWK" && break
3629 done
3630
3631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3632 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3633 set x ${MAKE-make}
3634 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3635 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3636 then :
3637 printf %s "(cached) " >&6
3638 else $as_nop
3639 cat >conftest.make <<\_ACEOF
3640 SHELL = /bin/sh
3641 all:
3642 @echo '@@@%%%=$(MAKE)=@@@%%%'
3643 _ACEOF
3644 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3645 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3646 *@@@%%%=?*=@@@%%%*)
3647 eval ac_cv_prog_make_${ac_make}_set=yes;;
3648 *)
3649 eval ac_cv_prog_make_${ac_make}_set=no;;
3650 esac
3651 rm -f conftest.make
3652 fi
3653 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3655 printf "%s\n" "yes" >&6; }
3656 SET_MAKE=
3657 else
3658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3659 printf "%s\n" "no" >&6; }
3660 SET_MAKE="MAKE=${MAKE-make}"
3661 fi
3662
3663 rm -rf .tst 2>/dev/null
3664 mkdir .tst 2>/dev/null
3665 if test -d .tst; then
3666 am__leading_dot=.
3667 else
3668 am__leading_dot=_
3669 fi
3670 rmdir .tst 2>/dev/null
3671
3672 # Check whether --enable-silent-rules was given.
3673 if test ${enable_silent_rules+y}
3674 then :
3675 enableval=$enable_silent_rules;
3676 fi
3677
3678 case $enable_silent_rules in # (((
3679 yes) AM_DEFAULT_VERBOSITY=0;;
3680 no) AM_DEFAULT_VERBOSITY=1;;
3681 *) AM_DEFAULT_VERBOSITY=1;;
3682 esac
3683 am_make=${MAKE-make}
3684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3685 printf %s "checking whether $am_make supports nested variables... " >&6; }
3686 if test ${am_cv_make_support_nested_variables+y}
3687 then :
3688 printf %s "(cached) " >&6
3689 else $as_nop
3690 if printf "%s\n" 'TRUE=$(BAR$(V))
3691 BAR0=false
3692 BAR1=true
3693 V=1
3694 am__doit:
3695 @$(TRUE)
3696 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3697 am_cv_make_support_nested_variables=yes
3698 else
3699 am_cv_make_support_nested_variables=no
3700 fi
3701 fi
3702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3703 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3704 if test $am_cv_make_support_nested_variables = yes; then
3705 AM_V='$(V)'
3706 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3707 else
3708 AM_V=$AM_DEFAULT_VERBOSITY
3709 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3710 fi
3711 AM_BACKSLASH='\'
3712
3713 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3714 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3715 # is not polluted with repeated "-I."
3716 am__isrc=' -I$(srcdir)'
3717 # test to see if srcdir already configured
3718 if test -f $srcdir/config.status; then
3719 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3720 fi
3721 fi
3722
3723 # test whether we have cygpath
3724 if test -z "$CYGPATH_W"; then
3725 if (cygpath --version) >/dev/null 2>/dev/null; then
3726 CYGPATH_W='cygpath -w'
3727 else
3728 CYGPATH_W=echo
3729 fi
3730 fi
3731
3732
3733 # Define the identity of the package.
3734 PACKAGE='gc'
3735 VERSION='8.2.8'
3736
3737
3738 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3739
3740
3741 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3742
3743 # Some tools Automake needs.
3744
3745 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3746
3747
3748 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3749
3750
3751 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3752
3753
3754 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3755
3756
3757 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3758
3759 # For better backward compatibility. To be removed once Automake 1.9.x
3760 # dies out for good. For more background, see:
3761 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3762 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3763 mkdir_p='$(MKDIR_P)'
3764
3765 # We need awk for the "check" target (and possibly the TAP driver). The
3766 # system "awk" is bad on some platforms.
3767 # Always define AMTAR for backward compatibility. Yes, it's still used
3768 # in the wild :-( We should find a proper way to deprecate it ...
3769 AMTAR='$${TAR-tar}'
3770
3771
3772 # We'll loop over all known methods to create a tar archive until one works.
3773 _am_tools='gnutar pax cpio none'
3774
3775 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3776
3777
3778
3779
3780
3781 # Variables for tags utilities; see am/tags.am
3782 if test -z "$CTAGS"; then
3783 CTAGS=ctags
3784 fi
3785
3786 if test -z "$ETAGS"; then
3787 ETAGS=etags
3788 fi
3789
3790 if test -z "$CSCOPE"; then
3791 CSCOPE=cscope
3792 fi
3793
3794
3795
3796 # POSIX will say in a future version that running "rm -f" with no argument
3797 # is OK; and we want to be able to make that assumption in our Makefile
3798 # recipes. So use an aggressive probe to check that the usage we want is
3799 # actually supported "in the wild" to an acceptable degree.
3800 # See automake bug#10828.
3801 # To make any issue more visible, cause the running configure to be aborted
3802 # by default if the 'rm' program in use doesn't match our expectations; the
3803 # user can still override this though.
3804 if rm -f && rm -fr && rm -rf; then : OK; else
3805 cat >&2 <<'END'
3806 Oops!
3807
3808 Your 'rm' program seems unable to run without file operands specified
3809 on the command line, even when the '-f' option is present. This is contrary
3810 to the behaviour of most rm programs out there, and not conforming with
3811 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3812
3813 Please tell [email protected] about your system, including the value
3814 of your $PATH and any error possibly output before this message. This
3815 can help us improve future automake versions.
3816
3817 END
3818 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3819 echo 'Configuration will proceed anyway, since you have set the' >&2
3820 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3821 echo >&2
3822 else
3823 cat >&2 <<'END'
3824 Aborting the configuration process, to ensure you take notice of the issue.
3825
3826 You can download and install GNU coreutils to get an 'rm' implementation
3827 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3828
3829 If you want to complete the configuration process using your problematic
3830 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3831 to "yes", and re-run configure.
3832
3833 END
3834 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3835 fi
3836 fi
3837
3838 ac_config_headers="$ac_config_headers include/config.h"
3839
3840
3841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3842 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3843 # Check whether --enable-maintainer-mode was given.
3844 if test ${enable_maintainer_mode+y}
3845 then :
3846 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3847 else $as_nop
3848 USE_MAINTAINER_MODE=no
3849 fi
3850
3851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3852 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
3853 if test $USE_MAINTAINER_MODE = yes; then
3854 MAINTAINER_MODE_TRUE=
3855 MAINTAINER_MODE_FALSE='#'
3856 else
3857 MAINTAINER_MODE_TRUE='#'
3858 MAINTAINER_MODE_FALSE=
3859 fi
3860
3861 MAINT=$MAINTAINER_MODE_TRUE
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877 DEPDIR="${am__leading_dot}deps"
3878
3879 ac_config_commands="$ac_config_commands depfiles"
3880
3881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3882 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3883 cat > confinc.mk << 'END'
3884 am__doit:
3885 @echo this is the am__doit target >confinc.out
3886 .PHONY: am__doit
3887 END
3888 am__include="#"
3889 am__quote=
3890 # BSD make does it like this.
3891 echo '.include "confinc.mk" # ignored' > confmf.BSD
3892 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3893 echo 'include confinc.mk # ignored' > confmf.GNU
3894 _am_result=no
3895 for s in GNU BSD; do
3896 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3897 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3898 ac_status=$?
3899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3900 (exit $ac_status); }
3901 case $?:`cat confinc.out 2>/dev/null` in #(
3902 '0:this is the am__doit target') :
3903 case $s in #(
3904 BSD) :
3905 am__include='.include' am__quote='"' ;; #(
3906 *) :
3907 am__include='include' am__quote='' ;;
3908 esac ;; #(
3909 *) :
3910 ;;
3911 esac
3912 if test "$am__include" != "#"; then
3913 _am_result="yes ($s style)"
3914 break
3915 fi
3916 done
3917 rm -f confinc.* confmf.*
3918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3919 printf "%s\n" "${_am_result}" >&6; }
3920
3921 # Check whether --enable-dependency-tracking was given.
3922 if test ${enable_dependency_tracking+y}
3923 then :
3924 enableval=$enable_dependency_tracking;
3925 fi
3926
3927 if test "x$enable_dependency_tracking" != xno; then
3928 am_depcomp="$ac_aux_dir/depcomp"
3929 AMDEPBACKSLASH='\'
3930 am__nodep='_no'
3931 fi
3932 if test "x$enable_dependency_tracking" != xno; then
3933 AMDEP_TRUE=
3934 AMDEP_FALSE='#'
3935 else
3936 AMDEP_TRUE='#'
3937 AMDEP_FALSE=
3938 fi
3939
3940
3941 ac_ext=c
3942 ac_cpp='$CPP $CPPFLAGS'
3943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3946 if test -n "$ac_tool_prefix"; then
3947 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3948 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3950 printf %s "checking for $ac_word... " >&6; }
3951 if test ${ac_cv_prog_CC+y}
3952 then :
3953 printf %s "(cached) " >&6
3954 else $as_nop
3955 if test -n "$CC"; then
3956 ac_cv_prog_CC="$CC" # Let the user override the test.
3957 else
3958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3959 for as_dir in $PATH
3960 do
3961 IFS=$as_save_IFS
3962 case $as_dir in #(((
3963 '') as_dir=./ ;;
3964 */) ;;
3965 *) as_dir=$as_dir/ ;;
3966 esac
3967 for ac_exec_ext in '' $ac_executable_extensions; do
3968 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3969 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3970 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3971 break 2
3972 fi
3973 done
3974 done
3975 IFS=$as_save_IFS
3976
3977 fi
3978 fi
3979 CC=$ac_cv_prog_CC
3980 if test -n "$CC"; then
3981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3982 printf "%s\n" "$CC" >&6; }
3983 else
3984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3985 printf "%s\n" "no" >&6; }
3986 fi
3987
3988
3989 fi
3990 if test -z "$ac_cv_prog_CC"; then
3991 ac_ct_CC=$CC
3992 # Extract the first word of "gcc", so it can be a program name with args.
3993 set dummy gcc; ac_word=$2
3994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3995 printf %s "checking for $ac_word... " >&6; }
3996 if test ${ac_cv_prog_ac_ct_CC+y}
3997 then :
3998 printf %s "(cached) " >&6
3999 else $as_nop
4000 if test -n "$ac_ct_CC"; then
4001 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4002 else
4003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4004 for as_dir in $PATH
4005 do
4006 IFS=$as_save_IFS
4007 case $as_dir in #(((
4008 '') as_dir=./ ;;
4009 */) ;;
4010 *) as_dir=$as_dir/ ;;
4011 esac
4012 for ac_exec_ext in '' $ac_executable_extensions; do
4013 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4014 ac_cv_prog_ac_ct_CC="gcc"
4015 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4016 break 2
4017 fi
4018 done
4019 done
4020 IFS=$as_save_IFS
4021
4022 fi
4023 fi
4024 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4025 if test -n "$ac_ct_CC"; then
4026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4027 printf "%s\n" "$ac_ct_CC" >&6; }
4028 else
4029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4030 printf "%s\n" "no" >&6; }
4031 fi
4032
4033 if test "x$ac_ct_CC" = x; then
4034 CC=""
4035 else
4036 case $cross_compiling:$ac_tool_warned in
4037 yes:)
4038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4039 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4040 ac_tool_warned=yes ;;
4041 esac
4042 CC=$ac_ct_CC
4043 fi
4044 else
4045 CC="$ac_cv_prog_CC"
4046 fi
4047
4048 if test -z "$CC"; then
4049 if test -n "$ac_tool_prefix"; then
4050 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4051 set dummy ${ac_tool_prefix}cc; ac_word=$2
4052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4053 printf %s "checking for $ac_word... " >&6; }
4054 if test ${ac_cv_prog_CC+y}
4055 then :
4056 printf %s "(cached) " >&6
4057 else $as_nop
4058 if test -n "$CC"; then
4059 ac_cv_prog_CC="$CC" # Let the user override the test.
4060 else
4061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4062 for as_dir in $PATH
4063 do
4064 IFS=$as_save_IFS
4065 case $as_dir in #(((
4066 '') as_dir=./ ;;
4067 */) ;;
4068 *) as_dir=$as_dir/ ;;
4069 esac
4070 for ac_exec_ext in '' $ac_executable_extensions; do
4071 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4072 ac_cv_prog_CC="${ac_tool_prefix}cc"
4073 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4074 break 2
4075 fi
4076 done
4077 done
4078 IFS=$as_save_IFS
4079
4080 fi
4081 fi
4082 CC=$ac_cv_prog_CC
4083 if test -n "$CC"; then
4084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4085 printf "%s\n" "$CC" >&6; }
4086 else
4087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4088 printf "%s\n" "no" >&6; }
4089 fi
4090
4091
4092 fi
4093 fi
4094 if test -z "$CC"; then
4095 # Extract the first word of "cc", so it can be a program name with args.
4096 set dummy cc; ac_word=$2
4097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4098 printf %s "checking for $ac_word... " >&6; }
4099 if test ${ac_cv_prog_CC+y}
4100 then :
4101 printf %s "(cached) " >&6
4102 else $as_nop
4103 if test -n "$CC"; then
4104 ac_cv_prog_CC="$CC" # Let the user override the test.
4105 else
4106 ac_prog_rejected=no
4107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4108 for as_dir in $PATH
4109 do
4110 IFS=$as_save_IFS
4111 case $as_dir in #(((
4112 '') as_dir=./ ;;
4113 */) ;;
4114 *) as_dir=$as_dir/ ;;
4115 esac
4116 for ac_exec_ext in '' $ac_executable_extensions; do
4117 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4118 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4119 ac_prog_rejected=yes
4120 continue
4121 fi
4122 ac_cv_prog_CC="cc"
4123 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4124 break 2
4125 fi
4126 done
4127 done
4128 IFS=$as_save_IFS
4129
4130 if test $ac_prog_rejected = yes; then
4131 # We found a bogon in the path, so make sure we never use it.
4132 set dummy $ac_cv_prog_CC
4133 shift
4134 if test $# != 0; then
4135 # We chose a different compiler from the bogus one.
4136 # However, it has the same basename, so the bogon will be chosen
4137 # first if we set CC to just the basename; use the full file name.
4138 shift
4139 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4140 fi
4141 fi
4142 fi
4143 fi
4144 CC=$ac_cv_prog_CC
4145 if test -n "$CC"; then
4146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4147 printf "%s\n" "$CC" >&6; }
4148 else
4149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4150 printf "%s\n" "no" >&6; }
4151 fi
4152
4153
4154 fi
4155 if test -z "$CC"; then
4156 if test -n "$ac_tool_prefix"; then
4157 for ac_prog in cl.exe
4158 do
4159 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4160 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4162 printf %s "checking for $ac_word... " >&6; }
4163 if test ${ac_cv_prog_CC+y}
4164 then :
4165 printf %s "(cached) " >&6
4166 else $as_nop
4167 if test -n "$CC"; then
4168 ac_cv_prog_CC="$CC" # Let the user override the test.
4169 else
4170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4171 for as_dir in $PATH
4172 do
4173 IFS=$as_save_IFS
4174 case $as_dir in #(((
4175 '') as_dir=./ ;;
4176 */) ;;
4177 *) as_dir=$as_dir/ ;;
4178 esac
4179 for ac_exec_ext in '' $ac_executable_extensions; do
4180 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4181 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4182 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4183 break 2
4184 fi
4185 done
4186 done
4187 IFS=$as_save_IFS
4188
4189 fi
4190 fi
4191 CC=$ac_cv_prog_CC
4192 if test -n "$CC"; then
4193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4194 printf "%s\n" "$CC" >&6; }
4195 else
4196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4197 printf "%s\n" "no" >&6; }
4198 fi
4199
4200
4201 test -n "$CC" && break
4202 done
4203 fi
4204 if test -z "$CC"; then
4205 ac_ct_CC=$CC
4206 for ac_prog in cl.exe
4207 do
4208 # Extract the first word of "$ac_prog", so it can be a program name with args.
4209 set dummy $ac_prog; ac_word=$2
4210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4211 printf %s "checking for $ac_word... " >&6; }
4212 if test ${ac_cv_prog_ac_ct_CC+y}
4213 then :
4214 printf %s "(cached) " >&6
4215 else $as_nop
4216 if test -n "$ac_ct_CC"; then
4217 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4218 else
4219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4220 for as_dir in $PATH
4221 do
4222 IFS=$as_save_IFS
4223 case $as_dir in #(((
4224 '') as_dir=./ ;;
4225 */) ;;
4226 *) as_dir=$as_dir/ ;;
4227 esac
4228 for ac_exec_ext in '' $ac_executable_extensions; do
4229 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4230 ac_cv_prog_ac_ct_CC="$ac_prog"
4231 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4232 break 2
4233 fi
4234 done
4235 done
4236 IFS=$as_save_IFS
4237
4238 fi
4239 fi
4240 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4241 if test -n "$ac_ct_CC"; then
4242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4243 printf "%s\n" "$ac_ct_CC" >&6; }
4244 else
4245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4246 printf "%s\n" "no" >&6; }
4247 fi
4248
4249
4250 test -n "$ac_ct_CC" && break
4251 done
4252
4253 if test "x$ac_ct_CC" = x; then
4254 CC=""
4255 else
4256 case $cross_compiling:$ac_tool_warned in
4257 yes:)
4258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4259 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4260 ac_tool_warned=yes ;;
4261 esac
4262 CC=$ac_ct_CC
4263 fi
4264 fi
4265
4266 fi
4267 if test -z "$CC"; then
4268 if test -n "$ac_tool_prefix"; then
4269 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4270 set dummy ${ac_tool_prefix}clang; ac_word=$2
4271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4272 printf %s "checking for $ac_word... " >&6; }
4273 if test ${ac_cv_prog_CC+y}
4274 then :
4275 printf %s "(cached) " >&6
4276 else $as_nop
4277 if test -n "$CC"; then
4278 ac_cv_prog_CC="$CC" # Let the user override the test.
4279 else
4280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4281 for as_dir in $PATH
4282 do
4283 IFS=$as_save_IFS
4284 case $as_dir in #(((
4285 '') as_dir=./ ;;
4286 */) ;;
4287 *) as_dir=$as_dir/ ;;
4288 esac
4289 for ac_exec_ext in '' $ac_executable_extensions; do
4290 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4291 ac_cv_prog_CC="${ac_tool_prefix}clang"
4292 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4293 break 2
4294 fi
4295 done
4296 done
4297 IFS=$as_save_IFS
4298
4299 fi
4300 fi
4301 CC=$ac_cv_prog_CC
4302 if test -n "$CC"; then
4303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4304 printf "%s\n" "$CC" >&6; }
4305 else
4306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4307 printf "%s\n" "no" >&6; }
4308 fi
4309
4310
4311 fi
4312 if test -z "$ac_cv_prog_CC"; then
4313 ac_ct_CC=$CC
4314 # Extract the first word of "clang", so it can be a program name with args.
4315 set dummy clang; ac_word=$2
4316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4317 printf %s "checking for $ac_word... " >&6; }
4318 if test ${ac_cv_prog_ac_ct_CC+y}
4319 then :
4320 printf %s "(cached) " >&6
4321 else $as_nop
4322 if test -n "$ac_ct_CC"; then
4323 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4324 else
4325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4326 for as_dir in $PATH
4327 do
4328 IFS=$as_save_IFS
4329 case $as_dir in #(((
4330 '') as_dir=./ ;;
4331 */) ;;
4332 *) as_dir=$as_dir/ ;;
4333 esac
4334 for ac_exec_ext in '' $ac_executable_extensions; do
4335 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4336 ac_cv_prog_ac_ct_CC="clang"
4337 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4338 break 2
4339 fi
4340 done
4341 done
4342 IFS=$as_save_IFS
4343
4344 fi
4345 fi
4346 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4347 if test -n "$ac_ct_CC"; then
4348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4349 printf "%s\n" "$ac_ct_CC" >&6; }
4350 else
4351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4352 printf "%s\n" "no" >&6; }
4353 fi
4354
4355 if test "x$ac_ct_CC" = x; then
4356 CC=""
4357 else
4358 case $cross_compiling:$ac_tool_warned in
4359 yes:)
4360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4361 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4362 ac_tool_warned=yes ;;
4363 esac
4364 CC=$ac_ct_CC
4365 fi
4366 else
4367 CC="$ac_cv_prog_CC"
4368 fi
4369
4370 fi
4371
4372
4373 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4374 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4375 as_fn_error $? "no acceptable C compiler found in \$PATH
4376 See \`config.log' for more details" "$LINENO" 5; }
4377
4378 # Provide some information about the compiler.
4379 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4380 set X $ac_compile
4381 ac_compiler=$2
4382 for ac_option in --version -v -V -qversion -version; do
4383 { { ac_try="$ac_compiler $ac_option >&5"
4384 case "(($ac_try" in
4385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4386 *) ac_try_echo=$ac_try;;
4387 esac
4388 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4389 printf "%s\n" "$ac_try_echo"; } >&5
4390 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4391 ac_status=$?
4392 if test -s conftest.err; then
4393 sed '10a\
4394 ... rest of stderr output deleted ...
4395 10q' conftest.err >conftest.er1
4396 cat conftest.er1 >&5
4397 fi
4398 rm -f conftest.er1 conftest.err
4399 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4400 test $ac_status = 0; }
4401 done
4402
4403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4404 /* end confdefs.h. */
4405
4406 int
4407 main (void)
4408 {
4409
4410 ;
4411 return 0;
4412 }
4413 _ACEOF
4414 ac_clean_files_save=$ac_clean_files
4415 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4416 # Try to create an executable without -o first, disregard a.out.
4417 # It will help us diagnose broken compilers, and finding out an intuition
4418 # of exeext.
4419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4420 printf %s "checking whether the C compiler works... " >&6; }
4421 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4422
4423 # The possible output files:
4424 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4425
4426 ac_rmfiles=
4427 for ac_file in $ac_files
4428 do
4429 case $ac_file in
4430 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4431 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4432 esac
4433 done
4434 rm -f $ac_rmfiles
4435
4436 if { { ac_try="$ac_link_default"
4437 case "(($ac_try" in
4438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4439 *) ac_try_echo=$ac_try;;
4440 esac
4441 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4442 printf "%s\n" "$ac_try_echo"; } >&5
4443 (eval "$ac_link_default") 2>&5
4444 ac_status=$?
4445 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4446 test $ac_status = 0; }
4447 then :
4448 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4449 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4450 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4451 # so that the user can short-circuit this test for compilers unknown to
4452 # Autoconf.
4453 for ac_file in $ac_files ''
4454 do
4455 test -f "$ac_file" || continue
4456 case $ac_file in
4457 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4458 ;;
4459 [ab].out )
4460 # We found the default executable, but exeext='' is most
4461 # certainly right.
4462 break;;
4463 *.* )
4464 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4465 then :; else
4466 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4467 fi
4468 # We set ac_cv_exeext here because the later test for it is not
4469 # safe: cross compilers may not add the suffix if given an `-o'
4470 # argument, so we may need to know it at that point already.
4471 # Even if this section looks crufty: it has the advantage of
4472 # actually working.
4473 break;;
4474 * )
4475 break;;
4476 esac
4477 done
4478 test "$ac_cv_exeext" = no && ac_cv_exeext=
4479
4480 else $as_nop
4481 ac_file=''
4482 fi
4483 if test -z "$ac_file"
4484 then :
4485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4486 printf "%s\n" "no" >&6; }
4487 printf "%s\n" "$as_me: failed program was:" >&5
4488 sed 's/^/| /' conftest.$ac_ext >&5
4489
4490 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4491 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4492 as_fn_error 77 "C compiler cannot create executables
4493 See \`config.log' for more details" "$LINENO" 5; }
4494 else $as_nop
4495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4496 printf "%s\n" "yes" >&6; }
4497 fi
4498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4499 printf %s "checking for C compiler default output file name... " >&6; }
4500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4501 printf "%s\n" "$ac_file" >&6; }
4502 ac_exeext=$ac_cv_exeext
4503
4504 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4505 ac_clean_files=$ac_clean_files_save
4506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4507 printf %s "checking for suffix of executables... " >&6; }
4508 if { { ac_try="$ac_link"
4509 case "(($ac_try" in
4510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4511 *) ac_try_echo=$ac_try;;
4512 esac
4513 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4514 printf "%s\n" "$ac_try_echo"; } >&5
4515 (eval "$ac_link") 2>&5
4516 ac_status=$?
4517 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4518 test $ac_status = 0; }
4519 then :
4520 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4521 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4522 # work properly (i.e., refer to `conftest.exe'), while it won't with
4523 # `rm'.
4524 for ac_file in conftest.exe conftest conftest.*; do
4525 test -f "$ac_file" || continue
4526 case $ac_file in
4527 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4528 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4529 break;;
4530 * ) break;;
4531 esac
4532 done
4533 else $as_nop
4534 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4535 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4536 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4537 See \`config.log' for more details" "$LINENO" 5; }
4538 fi
4539 rm -f conftest conftest$ac_cv_exeext
4540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4541 printf "%s\n" "$ac_cv_exeext" >&6; }
4542
4543 rm -f conftest.$ac_ext
4544 EXEEXT=$ac_cv_exeext
4545 ac_exeext=$EXEEXT
4546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4547 /* end confdefs.h. */
4548 #include <stdio.h>
4549 int
4550 main (void)
4551 {
4552 FILE *f = fopen ("conftest.out", "w");
4553 return ferror (f) || fclose (f) != 0;
4554
4555 ;
4556 return 0;
4557 }
4558 _ACEOF
4559 ac_clean_files="$ac_clean_files conftest.out"
4560 # Check that the compiler produces executables we can run. If not, either
4561 # the compiler is broken, or we cross compile.
4562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4563 printf %s "checking whether we are cross compiling... " >&6; }
4564 if test "$cross_compiling" != yes; then
4565 { { ac_try="$ac_link"
4566 case "(($ac_try" in
4567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4568 *) ac_try_echo=$ac_try;;
4569 esac
4570 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4571 printf "%s\n" "$ac_try_echo"; } >&5
4572 (eval "$ac_link") 2>&5
4573 ac_status=$?
4574 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4575 test $ac_status = 0; }
4576 if { ac_try='./conftest$ac_cv_exeext'
4577 { { case "(($ac_try" in
4578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4579 *) ac_try_echo=$ac_try;;
4580 esac
4581 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4582 printf "%s\n" "$ac_try_echo"; } >&5
4583 (eval "$ac_try") 2>&5
4584 ac_status=$?
4585 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4586 test $ac_status = 0; }; }; then
4587 cross_compiling=no
4588 else
4589 if test "$cross_compiling" = maybe; then
4590 cross_compiling=yes
4591 else
4592 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4593 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4594 as_fn_error 77 "cannot run C compiled programs.
4595 If you meant to cross compile, use \`--host'.
4596 See \`config.log' for more details" "$LINENO" 5; }
4597 fi
4598 fi
4599 fi
4600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4601 printf "%s\n" "$cross_compiling" >&6; }
4602
4603 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4604 ac_clean_files=$ac_clean_files_save
4605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4606 printf %s "checking for suffix of object files... " >&6; }
4607 if test ${ac_cv_objext+y}
4608 then :
4609 printf %s "(cached) " >&6
4610 else $as_nop
4611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4612 /* end confdefs.h. */
4613
4614 int
4615 main (void)
4616 {
4617
4618 ;
4619 return 0;
4620 }
4621 _ACEOF
4622 rm -f conftest.o conftest.obj
4623 if { { ac_try="$ac_compile"
4624 case "(($ac_try" in
4625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4626 *) ac_try_echo=$ac_try;;
4627 esac
4628 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4629 printf "%s\n" "$ac_try_echo"; } >&5
4630 (eval "$ac_compile") 2>&5
4631 ac_status=$?
4632 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4633 test $ac_status = 0; }
4634 then :
4635 for ac_file in conftest.o conftest.obj conftest.*; do
4636 test -f "$ac_file" || continue;
4637 case $ac_file in
4638 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4639 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4640 break;;
4641 esac
4642 done
4643 else $as_nop
4644 printf "%s\n" "$as_me: failed program was:" >&5
4645 sed 's/^/| /' conftest.$ac_ext >&5
4646
4647 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4648 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4649 as_fn_error $? "cannot compute suffix of object files: cannot compile
4650 See \`config.log' for more details" "$LINENO" 5; }
4651 fi
4652 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4653 fi
4654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4655 printf "%s\n" "$ac_cv_objext" >&6; }
4656 OBJEXT=$ac_cv_objext
4657 ac_objext=$OBJEXT
4658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4659 printf %s "checking whether the compiler supports GNU C... " >&6; }
4660 if test ${ac_cv_c_compiler_gnu+y}
4661 then :
4662 printf %s "(cached) " >&6
4663 else $as_nop
4664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4665 /* end confdefs.h. */
4666
4667 int
4668 main (void)
4669 {
4670 #ifndef __GNUC__
4671 choke me
4672 #endif
4673
4674 ;
4675 return 0;
4676 }
4677 _ACEOF
4678 if ac_fn_c_try_compile "$LINENO"
4679 then :
4680 ac_compiler_gnu=yes
4681 else $as_nop
4682 ac_compiler_gnu=no
4683 fi
4684 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4685 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4686
4687 fi
4688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4689 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4691
4692 if test $ac_compiler_gnu = yes; then
4693 GCC=yes
4694 else
4695 GCC=
4696 fi
4697 ac_test_CFLAGS=${CFLAGS+y}
4698 ac_save_CFLAGS=$CFLAGS
4699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4700 printf %s "checking whether $CC accepts -g... " >&6; }
4701 if test ${ac_cv_prog_cc_g+y}
4702 then :
4703 printf %s "(cached) " >&6
4704 else $as_nop
4705 ac_save_c_werror_flag=$ac_c_werror_flag
4706 ac_c_werror_flag=yes
4707 ac_cv_prog_cc_g=no
4708 CFLAGS="-g"
4709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4710 /* end confdefs.h. */
4711
4712 int
4713 main (void)
4714 {
4715
4716 ;
4717 return 0;
4718 }
4719 _ACEOF
4720 if ac_fn_c_try_compile "$LINENO"
4721 then :
4722 ac_cv_prog_cc_g=yes
4723 else $as_nop
4724 CFLAGS=""
4725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4726 /* end confdefs.h. */
4727
4728 int
4729 main (void)
4730 {
4731
4732 ;
4733 return 0;
4734 }
4735 _ACEOF
4736 if ac_fn_c_try_compile "$LINENO"
4737 then :
4738
4739 else $as_nop
4740 ac_c_werror_flag=$ac_save_c_werror_flag
4741 CFLAGS="-g"
4742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4743 /* end confdefs.h. */
4744
4745 int
4746 main (void)
4747 {
4748
4749 ;
4750 return 0;
4751 }
4752 _ACEOF
4753 if ac_fn_c_try_compile "$LINENO"
4754 then :
4755 ac_cv_prog_cc_g=yes
4756 fi
4757 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4758 fi
4759 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4760 fi
4761 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4762 ac_c_werror_flag=$ac_save_c_werror_flag
4763 fi
4764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4765 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4766 if test $ac_test_CFLAGS; then
4767 CFLAGS=$ac_save_CFLAGS
4768 elif test $ac_cv_prog_cc_g = yes; then
4769 if test "$GCC" = yes; then
4770 CFLAGS="-g -O2"
4771 else
4772 CFLAGS="-g"
4773 fi
4774 else
4775 if test "$GCC" = yes; then
4776 CFLAGS="-O2"
4777 else
4778 CFLAGS=
4779 fi
4780 fi
4781 ac_prog_cc_stdc=no
4782 if test x$ac_prog_cc_stdc = xno
4783 then :
4784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4785 printf %s "checking for $CC option to enable C11 features... " >&6; }
4786 if test ${ac_cv_prog_cc_c11+y}
4787 then :
4788 printf %s "(cached) " >&6
4789 else $as_nop
4790 ac_cv_prog_cc_c11=no
4791 ac_save_CC=$CC
4792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4793 /* end confdefs.h. */
4794 $ac_c_conftest_c11_program
4795 _ACEOF
4796 for ac_arg in '' -std=gnu11
4797 do
4798 CC="$ac_save_CC $ac_arg"
4799 if ac_fn_c_try_compile "$LINENO"
4800 then :
4801 ac_cv_prog_cc_c11=$ac_arg
4802 fi
4803 rm -f core conftest.err conftest.$ac_objext conftest.beam
4804 test "x$ac_cv_prog_cc_c11" != "xno" && break
4805 done
4806 rm -f conftest.$ac_ext
4807 CC=$ac_save_CC
4808 fi
4809
4810 if test "x$ac_cv_prog_cc_c11" = xno
4811 then :
4812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4813 printf "%s\n" "unsupported" >&6; }
4814 else $as_nop
4815 if test "x$ac_cv_prog_cc_c11" = x
4816 then :
4817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4818 printf "%s\n" "none needed" >&6; }
4819 else $as_nop
4820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4821 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4822 CC="$CC $ac_cv_prog_cc_c11"
4823 fi
4824 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4825 ac_prog_cc_stdc=c11
4826 fi
4827 fi
4828 if test x$ac_prog_cc_stdc = xno
4829 then :
4830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4831 printf %s "checking for $CC option to enable C99 features... " >&6; }
4832 if test ${ac_cv_prog_cc_c99+y}
4833 then :
4834 printf %s "(cached) " >&6
4835 else $as_nop
4836 ac_cv_prog_cc_c99=no
4837 ac_save_CC=$CC
4838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4839 /* end confdefs.h. */
4840 $ac_c_conftest_c99_program
4841 _ACEOF
4842 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4843 do
4844 CC="$ac_save_CC $ac_arg"
4845 if ac_fn_c_try_compile "$LINENO"
4846 then :
4847 ac_cv_prog_cc_c99=$ac_arg
4848 fi
4849 rm -f core conftest.err conftest.$ac_objext conftest.beam
4850 test "x$ac_cv_prog_cc_c99" != "xno" && break
4851 done
4852 rm -f conftest.$ac_ext
4853 CC=$ac_save_CC
4854 fi
4855
4856 if test "x$ac_cv_prog_cc_c99" = xno
4857 then :
4858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4859 printf "%s\n" "unsupported" >&6; }
4860 else $as_nop
4861 if test "x$ac_cv_prog_cc_c99" = x
4862 then :
4863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4864 printf "%s\n" "none needed" >&6; }
4865 else $as_nop
4866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4867 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4868 CC="$CC $ac_cv_prog_cc_c99"
4869 fi
4870 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4871 ac_prog_cc_stdc=c99
4872 fi
4873 fi
4874 if test x$ac_prog_cc_stdc = xno
4875 then :
4876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4877 printf %s "checking for $CC option to enable C89 features... " >&6; }
4878 if test ${ac_cv_prog_cc_c89+y}
4879 then :
4880 printf %s "(cached) " >&6
4881 else $as_nop
4882 ac_cv_prog_cc_c89=no
4883 ac_save_CC=$CC
4884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4885 /* end confdefs.h. */
4886 $ac_c_conftest_c89_program
4887 _ACEOF
4888 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4889 do
4890 CC="$ac_save_CC $ac_arg"
4891 if ac_fn_c_try_compile "$LINENO"
4892 then :
4893 ac_cv_prog_cc_c89=$ac_arg
4894 fi
4895 rm -f core conftest.err conftest.$ac_objext conftest.beam
4896 test "x$ac_cv_prog_cc_c89" != "xno" && break
4897 done
4898 rm -f conftest.$ac_ext
4899 CC=$ac_save_CC
4900 fi
4901
4902 if test "x$ac_cv_prog_cc_c89" = xno
4903 then :
4904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4905 printf "%s\n" "unsupported" >&6; }
4906 else $as_nop
4907 if test "x$ac_cv_prog_cc_c89" = x
4908 then :
4909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4910 printf "%s\n" "none needed" >&6; }
4911 else $as_nop
4912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4913 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4914 CC="$CC $ac_cv_prog_cc_c89"
4915 fi
4916 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4917 ac_prog_cc_stdc=c89
4918 fi
4919 fi
4920
4921 ac_ext=c
4922 ac_cpp='$CPP $CPPFLAGS'
4923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4926
4927
4928 ac_ext=c
4929 ac_cpp='$CPP $CPPFLAGS'
4930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4934 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4935 if test ${am_cv_prog_cc_c_o+y}
4936 then :
4937 printf %s "(cached) " >&6
4938 else $as_nop
4939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4940 /* end confdefs.h. */
4941
4942 int
4943 main (void)
4944 {
4945
4946 ;
4947 return 0;
4948 }
4949 _ACEOF
4950 # Make sure it works both with $CC and with simple cc.
4951 # Following AC_PROG_CC_C_O, we do the test twice because some
4952 # compilers refuse to overwrite an existing .o file with -o,
4953 # though they will create one.
4954 am_cv_prog_cc_c_o=yes
4955 for am_i in 1 2; do
4956 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4957 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4958 ac_status=$?
4959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4960 (exit $ac_status); } \
4961 && test -f conftest2.$ac_objext; then
4962 : OK
4963 else
4964 am_cv_prog_cc_c_o=no
4965 break
4966 fi
4967 done
4968 rm -f core conftest*
4969 unset am_i
4970 fi
4971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4972 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4973 if test "$am_cv_prog_cc_c_o" != yes; then
4974 # Losing compiler, so override with the script.
4975 # FIXME: It is wrong to rewrite CC.
4976 # But if we don't then we get into trouble of one sort or another.
4977 # A longer-term fix would be to have automake use am__CC in this case,
4978 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4979 CC="$am_aux_dir/compile $CC"
4980 fi
4981 ac_ext=c
4982 ac_cpp='$CPP $CPPFLAGS'
4983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4986
4987
4988 depcc="$CC" am_compiler_list=
4989
4990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4991 printf %s "checking dependency style of $depcc... " >&6; }
4992 if test ${am_cv_CC_dependencies_compiler_type+y}
4993 then :
4994 printf %s "(cached) " >&6
4995 else $as_nop
4996 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4997 # We make a subdir and do the tests there. Otherwise we can end up
4998 # making bogus files that we don't know about and never remove. For
4999 # instance it was reported that on HP-UX the gcc test will end up
5000 # making a dummy file named 'D' -- because '-MD' means "put the output
5001 # in D".
5002 rm -rf conftest.dir
5003 mkdir conftest.dir
5004 # Copy depcomp to subdir because otherwise we won't find it if we're
5005 # using a relative directory.
5006 cp "$am_depcomp" conftest.dir
5007 cd conftest.dir
5008 # We will build objects and dependencies in a subdirectory because
5009 # it helps to detect inapplicable dependency modes. For instance
5010 # both Tru64's cc and ICC support -MD to output dependencies as a
5011 # side effect of compilation, but ICC will put the dependencies in
5012 # the current directory while Tru64 will put them in the object
5013 # directory.
5014 mkdir sub
5015
5016 am_cv_CC_dependencies_compiler_type=none
5017 if test "$am_compiler_list" = ""; then
5018 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5019 fi
5020 am__universal=false
5021 case " $depcc " in #(
5022 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5023 esac
5024
5025 for depmode in $am_compiler_list; do
5026 # Setup a source with many dependencies, because some compilers
5027 # like to wrap large dependency lists on column 80 (with \), and
5028 # we should not choose a depcomp mode which is confused by this.
5029 #
5030 # We need to recreate these files for each test, as the compiler may
5031 # overwrite some of them when testing with obscure command lines.
5032 # This happens at least with the AIX C compiler.
5033 : > sub/conftest.c
5034 for i in 1 2 3 4 5 6; do
5035 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5036 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5037 # Solaris 10 /bin/sh.
5038 echo '/* dummy */' > sub/conftst$i.h
5039 done
5040 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5041
5042 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5043 # mode. It turns out that the SunPro C++ compiler does not properly
5044 # handle '-M -o', and we need to detect this. Also, some Intel
5045 # versions had trouble with output in subdirs.
5046 am__obj=sub/conftest.${OBJEXT-o}
5047 am__minus_obj="-o $am__obj"
5048 case $depmode in
5049 gcc)
5050 # This depmode causes a compiler race in universal mode.
5051 test "$am__universal" = false || continue
5052 ;;
5053 nosideeffect)
5054 # After this tag, mechanisms are not by side-effect, so they'll
5055 # only be used when explicitly requested.
5056 if test "x$enable_dependency_tracking" = xyes; then
5057 continue
5058 else
5059 break
5060 fi
5061 ;;
5062 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5063 # This compiler won't grok '-c -o', but also, the minuso test has
5064 # not run yet. These depmodes are late enough in the game, and
5065 # so weak that their functioning should not be impacted.
5066 am__obj=conftest.${OBJEXT-o}
5067 am__minus_obj=
5068 ;;
5069 none) break ;;
5070 esac
5071 if depmode=$depmode \
5072 source=sub/conftest.c object=$am__obj \
5073 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5074 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5075 >/dev/null 2>conftest.err &&
5076 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5077 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5078 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5079 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5080 # icc doesn't choke on unknown options, it will just issue warnings
5081 # or remarks (even with -Werror). So we grep stderr for any message
5082 # that says an option was ignored or not supported.
5083 # When given -MP, icc 7.0 and 7.1 complain thusly:
5084 # icc: Command line warning: ignoring option '-M'; no argument required
5085 # The diagnosis changed in icc 8.0:
5086 # icc: Command line remark: option '-MP' not supported
5087 if (grep 'ignoring option' conftest.err ||
5088 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5089 am_cv_CC_dependencies_compiler_type=$depmode
5090 break
5091 fi
5092 fi
5093 done
5094
5095 cd ..
5096 rm -rf conftest.dir
5097 else
5098 am_cv_CC_dependencies_compiler_type=none
5099 fi
5100
5101 fi
5102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5103 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5104 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5105
5106 if
5107 test "x$enable_dependency_tracking" != xno \
5108 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5109 am__fastdepCC_TRUE=
5110 am__fastdepCC_FALSE='#'
5111 else
5112 am__fastdepCC_TRUE='#'
5113 am__fastdepCC_FALSE=
5114 fi
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124 ac_ext=cpp
5125 ac_cpp='$CXXCPP $CPPFLAGS'
5126 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5127 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5128 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5129 if test -z "$CXX"; then
5130 if test -n "$CCC"; then
5131 CXX=$CCC
5132 else
5133 if test -n "$ac_tool_prefix"; then
5134 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
5135 do
5136 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5137 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5139 printf %s "checking for $ac_word... " >&6; }
5140 if test ${ac_cv_prog_CXX+y}
5141 then :
5142 printf %s "(cached) " >&6
5143 else $as_nop
5144 if test -n "$CXX"; then
5145 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5146 else
5147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5148 for as_dir in $PATH
5149 do
5150 IFS=$as_save_IFS
5151 case $as_dir in #(((
5152 '') as_dir=./ ;;
5153 */) ;;
5154 *) as_dir=$as_dir/ ;;
5155 esac
5156 for ac_exec_ext in '' $ac_executable_extensions; do
5157 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5158 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5159 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5160 break 2
5161 fi
5162 done
5163 done
5164 IFS=$as_save_IFS
5165
5166 fi
5167 fi
5168 CXX=$ac_cv_prog_CXX
5169 if test -n "$CXX"; then
5170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5171 printf "%s\n" "$CXX" >&6; }
5172 else
5173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5174 printf "%s\n" "no" >&6; }
5175 fi
5176
5177
5178 test -n "$CXX" && break
5179 done
5180 fi
5181 if test -z "$CXX"; then
5182 ac_ct_CXX=$CXX
5183 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
5184 do
5185 # Extract the first word of "$ac_prog", so it can be a program name with args.
5186 set dummy $ac_prog; ac_word=$2
5187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5188 printf %s "checking for $ac_word... " >&6; }
5189 if test ${ac_cv_prog_ac_ct_CXX+y}
5190 then :
5191 printf %s "(cached) " >&6
5192 else $as_nop
5193 if test -n "$ac_ct_CXX"; then
5194 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5195 else
5196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5197 for as_dir in $PATH
5198 do
5199 IFS=$as_save_IFS
5200 case $as_dir in #(((
5201 '') as_dir=./ ;;
5202 */) ;;
5203 *) as_dir=$as_dir/ ;;
5204 esac
5205 for ac_exec_ext in '' $ac_executable_extensions; do
5206 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5207 ac_cv_prog_ac_ct_CXX="$ac_prog"
5208 printf "%s\n" "$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 fi
5216 fi
5217 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5218 if test -n "$ac_ct_CXX"; then
5219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5220 printf "%s\n" "$ac_ct_CXX" >&6; }
5221 else
5222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5223 printf "%s\n" "no" >&6; }
5224 fi
5225
5226
5227 test -n "$ac_ct_CXX" && break
5228 done
5229
5230 if test "x$ac_ct_CXX" = x; then
5231 CXX="g++"
5232 else
5233 case $cross_compiling:$ac_tool_warned in
5234 yes:)
5235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5236 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5237 ac_tool_warned=yes ;;
5238 esac
5239 CXX=$ac_ct_CXX
5240 fi
5241 fi
5242
5243 fi
5244 fi
5245 # Provide some information about the compiler.
5246 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5247 set X $ac_compile
5248 ac_compiler=$2
5249 for ac_option in --version -v -V -qversion; do
5250 { { ac_try="$ac_compiler $ac_option >&5"
5251 case "(($ac_try" in
5252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5253 *) ac_try_echo=$ac_try;;
5254 esac
5255 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5256 printf "%s\n" "$ac_try_echo"; } >&5
5257 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5258 ac_status=$?
5259 if test -s conftest.err; then
5260 sed '10a\
5261 ... rest of stderr output deleted ...
5262 10q' conftest.err >conftest.er1
5263 cat conftest.er1 >&5
5264 fi
5265 rm -f conftest.er1 conftest.err
5266 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5267 test $ac_status = 0; }
5268 done
5269
5270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
5271 printf %s "checking whether the compiler supports GNU C++... " >&6; }
5272 if test ${ac_cv_cxx_compiler_gnu+y}
5273 then :
5274 printf %s "(cached) " >&6
5275 else $as_nop
5276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5277 /* end confdefs.h. */
5278
5279 int
5280 main (void)
5281 {
5282 #ifndef __GNUC__
5283 choke me
5284 #endif
5285
5286 ;
5287 return 0;
5288 }
5289 _ACEOF
5290 if ac_fn_cxx_try_compile "$LINENO"
5291 then :
5292 ac_compiler_gnu=yes
5293 else $as_nop
5294 ac_compiler_gnu=no
5295 fi
5296 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5297 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5298
5299 fi
5300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5301 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
5302 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5303
5304 if test $ac_compiler_gnu = yes; then
5305 GXX=yes
5306 else
5307 GXX=
5308 fi
5309 ac_test_CXXFLAGS=${CXXFLAGS+y}
5310 ac_save_CXXFLAGS=$CXXFLAGS
5311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5312 printf %s "checking whether $CXX accepts -g... " >&6; }
5313 if test ${ac_cv_prog_cxx_g+y}
5314 then :
5315 printf %s "(cached) " >&6
5316 else $as_nop
5317 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5318 ac_cxx_werror_flag=yes
5319 ac_cv_prog_cxx_g=no
5320 CXXFLAGS="-g"
5321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5322 /* end confdefs.h. */
5323
5324 int
5325 main (void)
5326 {
5327
5328 ;
5329 return 0;
5330 }
5331 _ACEOF
5332 if ac_fn_cxx_try_compile "$LINENO"
5333 then :
5334 ac_cv_prog_cxx_g=yes
5335 else $as_nop
5336 CXXFLAGS=""
5337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5338 /* end confdefs.h. */
5339
5340 int
5341 main (void)
5342 {
5343
5344 ;
5345 return 0;
5346 }
5347 _ACEOF
5348 if ac_fn_cxx_try_compile "$LINENO"
5349 then :
5350
5351 else $as_nop
5352 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5353 CXXFLAGS="-g"
5354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5355 /* end confdefs.h. */
5356
5357 int
5358 main (void)
5359 {
5360
5361 ;
5362 return 0;
5363 }
5364 _ACEOF
5365 if ac_fn_cxx_try_compile "$LINENO"
5366 then :
5367 ac_cv_prog_cxx_g=yes
5368 fi
5369 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5370 fi
5371 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5372 fi
5373 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5374 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5375 fi
5376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5377 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
5378 if test $ac_test_CXXFLAGS; then
5379 CXXFLAGS=$ac_save_CXXFLAGS
5380 elif test $ac_cv_prog_cxx_g = yes; then
5381 if test "$GXX" = yes; then
5382 CXXFLAGS="-g -O2"
5383 else
5384 CXXFLAGS="-g"
5385 fi
5386 else
5387 if test "$GXX" = yes; then
5388 CXXFLAGS="-O2"
5389 else
5390 CXXFLAGS=
5391 fi
5392 fi
5393 ac_prog_cxx_stdcxx=no
5394 if test x$ac_prog_cxx_stdcxx = xno
5395 then :
5396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
5397 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
5398 if test ${ac_cv_prog_cxx_11+y}
5399 then :
5400 printf %s "(cached) " >&6
5401 else $as_nop
5402 ac_cv_prog_cxx_11=no
5403 ac_save_CXX=$CXX
5404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5405 /* end confdefs.h. */
5406 $ac_cxx_conftest_cxx11_program
5407 _ACEOF
5408 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
5409 do
5410 CXX="$ac_save_CXX $ac_arg"
5411 if ac_fn_cxx_try_compile "$LINENO"
5412 then :
5413 ac_cv_prog_cxx_cxx11=$ac_arg
5414 fi
5415 rm -f core conftest.err conftest.$ac_objext conftest.beam
5416 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
5417 done
5418 rm -f conftest.$ac_ext
5419 CXX=$ac_save_CXX
5420 fi
5421
5422 if test "x$ac_cv_prog_cxx_cxx11" = xno
5423 then :
5424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5425 printf "%s\n" "unsupported" >&6; }
5426 else $as_nop
5427 if test "x$ac_cv_prog_cxx_cxx11" = x
5428 then :
5429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5430 printf "%s\n" "none needed" >&6; }
5431 else $as_nop
5432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
5433 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
5434 CXX="$CXX $ac_cv_prog_cxx_cxx11"
5435 fi
5436 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
5437 ac_prog_cxx_stdcxx=cxx11
5438 fi
5439 fi
5440 if test x$ac_prog_cxx_stdcxx = xno
5441 then :
5442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
5443 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
5444 if test ${ac_cv_prog_cxx_98+y}
5445 then :
5446 printf %s "(cached) " >&6
5447 else $as_nop
5448 ac_cv_prog_cxx_98=no
5449 ac_save_CXX=$CXX
5450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5451 /* end confdefs.h. */
5452 $ac_cxx_conftest_cxx98_program
5453 _ACEOF
5454 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
5455 do
5456 CXX="$ac_save_CXX $ac_arg"
5457 if ac_fn_cxx_try_compile "$LINENO"
5458 then :
5459 ac_cv_prog_cxx_cxx98=$ac_arg
5460 fi
5461 rm -f core conftest.err conftest.$ac_objext conftest.beam
5462 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
5463 done
5464 rm -f conftest.$ac_ext
5465 CXX=$ac_save_CXX
5466 fi
5467
5468 if test "x$ac_cv_prog_cxx_cxx98" = xno
5469 then :
5470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5471 printf "%s\n" "unsupported" >&6; }
5472 else $as_nop
5473 if test "x$ac_cv_prog_cxx_cxx98" = x
5474 then :
5475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5476 printf "%s\n" "none needed" >&6; }
5477 else $as_nop
5478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
5479 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
5480 CXX="$CXX $ac_cv_prog_cxx_cxx98"
5481 fi
5482 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
5483 ac_prog_cxx_stdcxx=cxx98
5484 fi
5485 fi
5486
5487 ac_ext=c
5488 ac_cpp='$CPP $CPPFLAGS'
5489 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5490 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5491 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5492
5493 depcc="$CXX" am_compiler_list=
5494
5495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5496 printf %s "checking dependency style of $depcc... " >&6; }
5497 if test ${am_cv_CXX_dependencies_compiler_type+y}
5498 then :
5499 printf %s "(cached) " >&6
5500 else $as_nop
5501 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5502 # We make a subdir and do the tests there. Otherwise we can end up
5503 # making bogus files that we don't know about and never remove. For
5504 # instance it was reported that on HP-UX the gcc test will end up
5505 # making a dummy file named 'D' -- because '-MD' means "put the output
5506 # in D".
5507 rm -rf conftest.dir
5508 mkdir conftest.dir
5509 # Copy depcomp to subdir because otherwise we won't find it if we're
5510 # using a relative directory.
5511 cp "$am_depcomp" conftest.dir
5512 cd conftest.dir
5513 # We will build objects and dependencies in a subdirectory because
5514 # it helps to detect inapplicable dependency modes. For instance
5515 # both Tru64's cc and ICC support -MD to output dependencies as a
5516 # side effect of compilation, but ICC will put the dependencies in
5517 # the current directory while Tru64 will put them in the object
5518 # directory.
5519 mkdir sub
5520
5521 am_cv_CXX_dependencies_compiler_type=none
5522 if test "$am_compiler_list" = ""; then
5523 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5524 fi
5525 am__universal=false
5526 case " $depcc " in #(
5527 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5528 esac
5529
5530 for depmode in $am_compiler_list; do
5531 # Setup a source with many dependencies, because some compilers
5532 # like to wrap large dependency lists on column 80 (with \), and
5533 # we should not choose a depcomp mode which is confused by this.
5534 #
5535 # We need to recreate these files for each test, as the compiler may
5536 # overwrite some of them when testing with obscure command lines.
5537 # This happens at least with the AIX C compiler.
5538 : > sub/conftest.c
5539 for i in 1 2 3 4 5 6; do
5540 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5541 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5542 # Solaris 10 /bin/sh.
5543 echo '/* dummy */' > sub/conftst$i.h
5544 done
5545 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5546
5547 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5548 # mode. It turns out that the SunPro C++ compiler does not properly
5549 # handle '-M -o', and we need to detect this. Also, some Intel
5550 # versions had trouble with output in subdirs.
5551 am__obj=sub/conftest.${OBJEXT-o}
5552 am__minus_obj="-o $am__obj"
5553 case $depmode in
5554 gcc)
5555 # This depmode causes a compiler race in universal mode.
5556 test "$am__universal" = false || continue
5557 ;;
5558 nosideeffect)
5559 # After this tag, mechanisms are not by side-effect, so they'll
5560 # only be used when explicitly requested.
5561 if test "x$enable_dependency_tracking" = xyes; then
5562 continue
5563 else
5564 break
5565 fi
5566 ;;
5567 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5568 # This compiler won't grok '-c -o', but also, the minuso test has
5569 # not run yet. These depmodes are late enough in the game, and
5570 # so weak that their functioning should not be impacted.
5571 am__obj=conftest.${OBJEXT-o}
5572 am__minus_obj=
5573 ;;
5574 none) break ;;
5575 esac
5576 if depmode=$depmode \
5577 source=sub/conftest.c object=$am__obj \
5578 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5579 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5580 >/dev/null 2>conftest.err &&
5581 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5582 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5583 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5584 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5585 # icc doesn't choke on unknown options, it will just issue warnings
5586 # or remarks (even with -Werror). So we grep stderr for any message
5587 # that says an option was ignored or not supported.
5588 # When given -MP, icc 7.0 and 7.1 complain thusly:
5589 # icc: Command line warning: ignoring option '-M'; no argument required
5590 # The diagnosis changed in icc 8.0:
5591 # icc: Command line remark: option '-MP' not supported
5592 if (grep 'ignoring option' conftest.err ||
5593 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5594 am_cv_CXX_dependencies_compiler_type=$depmode
5595 break
5596 fi
5597 fi
5598 done
5599
5600 cd ..
5601 rm -rf conftest.dir
5602 else
5603 am_cv_CXX_dependencies_compiler_type=none
5604 fi
5605
5606 fi
5607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5608 printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
5609 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5610
5611 if
5612 test "x$enable_dependency_tracking" != xno \
5613 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5614 am__fastdepCXX_TRUE=
5615 am__fastdepCXX_FALSE='#'
5616 else
5617 am__fastdepCXX_TRUE='#'
5618 am__fastdepCXX_FALSE=
5619 fi
5620
5621
5622 # By default we simply use the C compiler to build assembly code.
5623
5624 test "${CCAS+set}" = set || CCAS=$CC
5625 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
5626
5627
5628
5629 depcc="$CCAS" am_compiler_list=
5630
5631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5632 printf %s "checking dependency style of $depcc... " >&6; }
5633 if test ${am_cv_CCAS_dependencies_compiler_type+y}
5634 then :
5635 printf %s "(cached) " >&6
5636 else $as_nop
5637 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5638 # We make a subdir and do the tests there. Otherwise we can end up
5639 # making bogus files that we don't know about and never remove. For
5640 # instance it was reported that on HP-UX the gcc test will end up
5641 # making a dummy file named 'D' -- because '-MD' means "put the output
5642 # in D".
5643 rm -rf conftest.dir
5644 mkdir conftest.dir
5645 # Copy depcomp to subdir because otherwise we won't find it if we're
5646 # using a relative directory.
5647 cp "$am_depcomp" conftest.dir
5648 cd conftest.dir
5649 # We will build objects and dependencies in a subdirectory because
5650 # it helps to detect inapplicable dependency modes. For instance
5651 # both Tru64's cc and ICC support -MD to output dependencies as a
5652 # side effect of compilation, but ICC will put the dependencies in
5653 # the current directory while Tru64 will put them in the object
5654 # directory.
5655 mkdir sub
5656
5657 am_cv_CCAS_dependencies_compiler_type=none
5658 if test "$am_compiler_list" = ""; then
5659 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5660 fi
5661 am__universal=false
5662
5663
5664 for depmode in $am_compiler_list; do
5665 # Setup a source with many dependencies, because some compilers
5666 # like to wrap large dependency lists on column 80 (with \), and
5667 # we should not choose a depcomp mode which is confused by this.
5668 #
5669 # We need to recreate these files for each test, as the compiler may
5670 # overwrite some of them when testing with obscure command lines.
5671 # This happens at least with the AIX C compiler.
5672 : > sub/conftest.c
5673 for i in 1 2 3 4 5 6; do
5674 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5675 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5676 # Solaris 10 /bin/sh.
5677 echo '/* dummy */' > sub/conftst$i.h
5678 done
5679 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5680
5681 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5682 # mode. It turns out that the SunPro C++ compiler does not properly
5683 # handle '-M -o', and we need to detect this. Also, some Intel
5684 # versions had trouble with output in subdirs.
5685 am__obj=sub/conftest.${OBJEXT-o}
5686 am__minus_obj="-o $am__obj"
5687 case $depmode in
5688 gcc)
5689 # This depmode causes a compiler race in universal mode.
5690 test "$am__universal" = false || continue
5691 ;;
5692 nosideeffect)
5693 # After this tag, mechanisms are not by side-effect, so they'll
5694 # only be used when explicitly requested.
5695 if test "x$enable_dependency_tracking" = xyes; then
5696 continue
5697 else
5698 break
5699 fi
5700 ;;
5701 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5702 # This compiler won't grok '-c -o', but also, the minuso test has
5703 # not run yet. These depmodes are late enough in the game, and
5704 # so weak that their functioning should not be impacted.
5705 am__obj=conftest.${OBJEXT-o}
5706 am__minus_obj=
5707 ;;
5708 none) break ;;
5709 esac
5710 if depmode=$depmode \
5711 source=sub/conftest.c object=$am__obj \
5712 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5713 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5714 >/dev/null 2>conftest.err &&
5715 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5716 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5717 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5718 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5719 # icc doesn't choke on unknown options, it will just issue warnings
5720 # or remarks (even with -Werror). So we grep stderr for any message
5721 # that says an option was ignored or not supported.
5722 # When given -MP, icc 7.0 and 7.1 complain thusly:
5723 # icc: Command line warning: ignoring option '-M'; no argument required
5724 # The diagnosis changed in icc 8.0:
5725 # icc: Command line remark: option '-MP' not supported
5726 if (grep 'ignoring option' conftest.err ||
5727 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5728 am_cv_CCAS_dependencies_compiler_type=$depmode
5729 break
5730 fi
5731 fi
5732 done
5733
5734 cd ..
5735 rm -rf conftest.dir
5736 else
5737 am_cv_CCAS_dependencies_compiler_type=none
5738 fi
5739
5740 fi
5741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
5742 printf "%s\n" "$am_cv_CCAS_dependencies_compiler_type" >&6; }
5743 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
5744
5745 if
5746 test "x$enable_dependency_tracking" != xno \
5747 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
5748 am__fastdepCCAS_TRUE=
5749 am__fastdepCCAS_FALSE='#'
5750 else
5751 am__fastdepCCAS_TRUE='#'
5752 am__fastdepCCAS_FALSE=
5753 fi
5754
5755
5756
5757 case `pwd` in
5758 *\ * | *\ *)
5759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5760 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5761 esac
5762
5763
5764
5765 macro_version='2.4.6'
5766 macro_revision='2.4.6'
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781 ltmain=$ac_aux_dir/ltmain.sh
5782
5783 # Backslashify metacharacters that are still active within
5784 # double-quoted strings.
5785 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5786
5787 # Same as above, but do not quote variable references.
5788 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5789
5790 # Sed substitution to delay expansion of an escaped shell variable in a
5791 # double_quote_subst'ed string.
5792 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5793
5794 # Sed substitution to delay expansion of an escaped single quote.
5795 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5796
5797 # Sed substitution to avoid accidental globbing in evaled expressions
5798 no_glob_subst='s/\*/\\\*/g'
5799
5800 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5801 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5802 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5803
5804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5805 printf %s "checking how to print strings... " >&6; }
5806 # Test print first, because it will be a builtin if present.
5807 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5808 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5809 ECHO='print -r --'
5810 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5811 ECHO='printf %s\n'
5812 else
5813 # Use this function as a fallback that always works.
5814 func_fallback_echo ()
5815 {
5816 eval 'cat <<_LTECHO_EOF
5817 $1
5818 _LTECHO_EOF'
5819 }
5820 ECHO='func_fallback_echo'
5821 fi
5822
5823 # func_echo_all arg...
5824 # Invoke $ECHO with all args, space-separated.
5825 func_echo_all ()
5826 {
5827 $ECHO ""
5828 }
5829
5830 case $ECHO in
5831 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5832 printf "%s\n" "printf" >&6; } ;;
5833 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5834 printf "%s\n" "print -r" >&6; } ;;
5835 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5836 printf "%s\n" "cat" >&6; } ;;
5837 esac
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5853 printf %s "checking for a sed that does not truncate output... " >&6; }
5854 if test ${ac_cv_path_SED+y}
5855 then :
5856 printf %s "(cached) " >&6
5857 else $as_nop
5858 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5859 for ac_i in 1 2 3 4 5 6 7; do
5860 ac_script="$ac_script$as_nl$ac_script"
5861 done
5862 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5863 { ac_script=; unset ac_script;}
5864 if test -z "$SED"; then
5865 ac_path_SED_found=false
5866 # Loop through the user's path and test for each of PROGNAME-LIST
5867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5868 for as_dir in $PATH
5869 do
5870 IFS=$as_save_IFS
5871 case $as_dir in #(((
5872 '') as_dir=./ ;;
5873 */) ;;
5874 *) as_dir=$as_dir/ ;;
5875 esac
5876 for ac_prog in sed gsed
5877 do
5878 for ac_exec_ext in '' $ac_executable_extensions; do
5879 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5880 as_fn_executable_p "$ac_path_SED" || continue
5881 # Check for GNU ac_path_SED and select it if it is found.
5882 # Check for GNU $ac_path_SED
5883 case `"$ac_path_SED" --version 2>&1` in
5884 *GNU*)
5885 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5886 *)
5887 ac_count=0
5888 printf %s 0123456789 >"conftest.in"
5889 while :
5890 do
5891 cat "conftest.in" "conftest.in" >"conftest.tmp"
5892 mv "conftest.tmp" "conftest.in"
5893 cp "conftest.in" "conftest.nl"
5894 printf "%s\n" '' >> "conftest.nl"
5895 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5896 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5897 as_fn_arith $ac_count + 1 && ac_count=$as_val
5898 if test $ac_count -gt ${ac_path_SED_max-0}; then
5899 # Best one so far, save it but keep looking for a better one
5900 ac_cv_path_SED="$ac_path_SED"
5901 ac_path_SED_max=$ac_count
5902 fi
5903 # 10*(2^10) chars as input seems more than enough
5904 test $ac_count -gt 10 && break
5905 done
5906 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5907 esac
5908
5909 $ac_path_SED_found && break 3
5910 done
5911 done
5912 done
5913 IFS=$as_save_IFS
5914 if test -z "$ac_cv_path_SED"; then
5915 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5916 fi
5917 else
5918 ac_cv_path_SED=$SED
5919 fi
5920
5921 fi
5922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5923 printf "%s\n" "$ac_cv_path_SED" >&6; }
5924 SED="$ac_cv_path_SED"
5925 rm -f conftest.sed
5926
5927 test -z "$SED" && SED=sed
5928 Xsed="$SED -e 1s/^X//"
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5941 printf %s "checking for grep that handles long lines and -e... " >&6; }
5942 if test ${ac_cv_path_GREP+y}
5943 then :
5944 printf %s "(cached) " >&6
5945 else $as_nop
5946 if test -z "$GREP"; then
5947 ac_path_GREP_found=false
5948 # Loop through the user's path and test for each of PROGNAME-LIST
5949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5950 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5951 do
5952 IFS=$as_save_IFS
5953 case $as_dir in #(((
5954 '') as_dir=./ ;;
5955 */) ;;
5956 *) as_dir=$as_dir/ ;;
5957 esac
5958 for ac_prog in grep ggrep
5959 do
5960 for ac_exec_ext in '' $ac_executable_extensions; do
5961 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5962 as_fn_executable_p "$ac_path_GREP" || continue
5963 # Check for GNU ac_path_GREP and select it if it is found.
5964 # Check for GNU $ac_path_GREP
5965 case `"$ac_path_GREP" --version 2>&1` in
5966 *GNU*)
5967 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5968 *)
5969 ac_count=0
5970 printf %s 0123456789 >"conftest.in"
5971 while :
5972 do
5973 cat "conftest.in" "conftest.in" >"conftest.tmp"
5974 mv "conftest.tmp" "conftest.in"
5975 cp "conftest.in" "conftest.nl"
5976 printf "%s\n" 'GREP' >> "conftest.nl"
5977 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5978 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5979 as_fn_arith $ac_count + 1 && ac_count=$as_val
5980 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5981 # Best one so far, save it but keep looking for a better one
5982 ac_cv_path_GREP="$ac_path_GREP"
5983 ac_path_GREP_max=$ac_count
5984 fi
5985 # 10*(2^10) chars as input seems more than enough
5986 test $ac_count -gt 10 && break
5987 done
5988 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5989 esac
5990
5991 $ac_path_GREP_found && break 3
5992 done
5993 done
5994 done
5995 IFS=$as_save_IFS
5996 if test -z "$ac_cv_path_GREP"; then
5997 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5998 fi
5999 else
6000 ac_cv_path_GREP=$GREP
6001 fi
6002
6003 fi
6004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6005 printf "%s\n" "$ac_cv_path_GREP" >&6; }
6006 GREP="$ac_cv_path_GREP"
6007
6008
6009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6010 printf %s "checking for egrep... " >&6; }
6011 if test ${ac_cv_path_EGREP+y}
6012 then :
6013 printf %s "(cached) " >&6
6014 else $as_nop
6015 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6016 then ac_cv_path_EGREP="$GREP -E"
6017 else
6018 if test -z "$EGREP"; then
6019 ac_path_EGREP_found=false
6020 # Loop through the user's path and test for each of PROGNAME-LIST
6021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6022 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6023 do
6024 IFS=$as_save_IFS
6025 case $as_dir in #(((
6026 '') as_dir=./ ;;
6027 */) ;;
6028 *) as_dir=$as_dir/ ;;
6029 esac
6030 for ac_prog in egrep
6031 do
6032 for ac_exec_ext in '' $ac_executable_extensions; do
6033 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
6034 as_fn_executable_p "$ac_path_EGREP" || continue
6035 # Check for GNU ac_path_EGREP and select it if it is found.
6036 # Check for GNU $ac_path_EGREP
6037 case `"$ac_path_EGREP" --version 2>&1` in
6038 *GNU*)
6039 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6040 *)
6041 ac_count=0
6042 printf %s 0123456789 >"conftest.in"
6043 while :
6044 do
6045 cat "conftest.in" "conftest.in" >"conftest.tmp"
6046 mv "conftest.tmp" "conftest.in"
6047 cp "conftest.in" "conftest.nl"
6048 printf "%s\n" 'EGREP' >> "conftest.nl"
6049 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6050 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6051 as_fn_arith $ac_count + 1 && ac_count=$as_val
6052 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6053 # Best one so far, save it but keep looking for a better one
6054 ac_cv_path_EGREP="$ac_path_EGREP"
6055 ac_path_EGREP_max=$ac_count
6056 fi
6057 # 10*(2^10) chars as input seems more than enough
6058 test $ac_count -gt 10 && break
6059 done
6060 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6061 esac
6062
6063 $ac_path_EGREP_found && break 3
6064 done
6065 done
6066 done
6067 IFS=$as_save_IFS
6068 if test -z "$ac_cv_path_EGREP"; then
6069 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6070 fi
6071 else
6072 ac_cv_path_EGREP=$EGREP
6073 fi
6074
6075 fi
6076 fi
6077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6078 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
6079 EGREP="$ac_cv_path_EGREP"
6080
6081
6082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6083 printf %s "checking for fgrep... " >&6; }
6084 if test ${ac_cv_path_FGREP+y}
6085 then :
6086 printf %s "(cached) " >&6
6087 else $as_nop
6088 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6089 then ac_cv_path_FGREP="$GREP -F"
6090 else
6091 if test -z "$FGREP"; then
6092 ac_path_FGREP_found=false
6093 # Loop through the user's path and test for each of PROGNAME-LIST
6094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6095 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6096 do
6097 IFS=$as_save_IFS
6098 case $as_dir in #(((
6099 '') as_dir=./ ;;
6100 */) ;;
6101 *) as_dir=$as_dir/ ;;
6102 esac
6103 for ac_prog in fgrep
6104 do
6105 for ac_exec_ext in '' $ac_executable_extensions; do
6106 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
6107 as_fn_executable_p "$ac_path_FGREP" || continue
6108 # Check for GNU ac_path_FGREP and select it if it is found.
6109 # Check for GNU $ac_path_FGREP
6110 case `"$ac_path_FGREP" --version 2>&1` in
6111 *GNU*)
6112 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6113 *)
6114 ac_count=0
6115 printf %s 0123456789 >"conftest.in"
6116 while :
6117 do
6118 cat "conftest.in" "conftest.in" >"conftest.tmp"
6119 mv "conftest.tmp" "conftest.in"
6120 cp "conftest.in" "conftest.nl"
6121 printf "%s\n" 'FGREP' >> "conftest.nl"
6122 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6123 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6124 as_fn_arith $ac_count + 1 && ac_count=$as_val
6125 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6126 # Best one so far, save it but keep looking for a better one
6127 ac_cv_path_FGREP="$ac_path_FGREP"
6128 ac_path_FGREP_max=$ac_count
6129 fi
6130 # 10*(2^10) chars as input seems more than enough
6131 test $ac_count -gt 10 && break
6132 done
6133 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6134 esac
6135
6136 $ac_path_FGREP_found && break 3
6137 done
6138 done
6139 done
6140 IFS=$as_save_IFS
6141 if test -z "$ac_cv_path_FGREP"; then
6142 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6143 fi
6144 else
6145 ac_cv_path_FGREP=$FGREP
6146 fi
6147
6148 fi
6149 fi
6150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6151 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
6152 FGREP="$ac_cv_path_FGREP"
6153
6154
6155 test -z "$GREP" && GREP=grep
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175 # Check whether --with-gnu-ld was given.
6176 if test ${with_gnu_ld+y}
6177 then :
6178 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6179 else $as_nop
6180 with_gnu_ld=no
6181 fi
6182
6183 ac_prog=ld
6184 if test yes = "$GCC"; then
6185 # Check if gcc -print-prog-name=ld gives a path.
6186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6187 printf %s "checking for ld used by $CC... " >&6; }
6188 case $host in
6189 *-*-mingw*)
6190 # gcc leaves a trailing carriage return, which upsets mingw
6191 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6192 *)
6193 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6194 esac
6195 case $ac_prog in
6196 # Accept absolute paths.
6197 [\\/]* | ?:[\\/]*)
6198 re_direlt='/[^/][^/]*/\.\./'
6199 # Canonicalize the pathname of ld
6200 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6201 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6202 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6203 done
6204 test -z "$LD" && LD=$ac_prog
6205 ;;
6206 "")
6207 # If it fails, then pretend we aren't using GCC.
6208 ac_prog=ld
6209 ;;
6210 *)
6211 # If it is relative, then search for the first ld in PATH.
6212 with_gnu_ld=unknown
6213 ;;
6214 esac
6215 elif test yes = "$with_gnu_ld"; then
6216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6217 printf %s "checking for GNU ld... " >&6; }
6218 else
6219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6220 printf %s "checking for non-GNU ld... " >&6; }
6221 fi
6222 if test ${lt_cv_path_LD+y}
6223 then :
6224 printf %s "(cached) " >&6
6225 else $as_nop
6226 if test -z "$LD"; then
6227 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6228 for ac_dir in $PATH; do
6229 IFS=$lt_save_ifs
6230 test -z "$ac_dir" && ac_dir=.
6231 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6232 lt_cv_path_LD=$ac_dir/$ac_prog
6233 # Check to see if the program is GNU ld. I'd rather use --version,
6234 # but apparently some variants of GNU ld only accept -v.
6235 # Break only if it was the GNU/non-GNU ld that we prefer.
6236 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6237 *GNU* | *'with BFD'*)
6238 test no != "$with_gnu_ld" && break
6239 ;;
6240 *)
6241 test yes != "$with_gnu_ld" && break
6242 ;;
6243 esac
6244 fi
6245 done
6246 IFS=$lt_save_ifs
6247 else
6248 lt_cv_path_LD=$LD # Let the user override the test with a path.
6249 fi
6250 fi
6251
6252 LD=$lt_cv_path_LD
6253 if test -n "$LD"; then
6254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6255 printf "%s\n" "$LD" >&6; }
6256 else
6257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6258 printf "%s\n" "no" >&6; }
6259 fi
6260 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6262 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
6263 if test ${lt_cv_prog_gnu_ld+y}
6264 then :
6265 printf %s "(cached) " >&6
6266 else $as_nop
6267 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6268 case `$LD -v 2>&1 </dev/null` in
6269 *GNU* | *'with BFD'*)
6270 lt_cv_prog_gnu_ld=yes
6271 ;;
6272 *)
6273 lt_cv_prog_gnu_ld=no
6274 ;;
6275 esac
6276 fi
6277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6278 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
6279 with_gnu_ld=$lt_cv_prog_gnu_ld
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6290 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6291 if test ${lt_cv_path_NM+y}
6292 then :
6293 printf %s "(cached) " >&6
6294 else $as_nop
6295 if test -n "$NM"; then
6296 # Let the user override the test.
6297 lt_cv_path_NM=$NM
6298 else
6299 lt_nm_to_check=${ac_tool_prefix}nm
6300 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6301 lt_nm_to_check="$lt_nm_to_check nm"
6302 fi
6303 for lt_tmp_nm in $lt_nm_to_check; do
6304 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6305 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6306 IFS=$lt_save_ifs
6307 test -z "$ac_dir" && ac_dir=.
6308 tmp_nm=$ac_dir/$lt_tmp_nm
6309 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6310 # Check to see if the nm accepts a BSD-compat flag.
6311 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6312 # nm: unknown option "B" ignored
6313 # Tru64's nm complains that /dev/null is an invalid object file
6314 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6315 case $build_os in
6316 mingw*) lt_bad_file=conftest.nm/nofile ;;
6317 *) lt_bad_file=/dev/null ;;
6318 esac
6319 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
6320 *$lt_bad_file* | *'Invalid file or object type'*)
6321 lt_cv_path_NM="$tmp_nm -B"
6322 break 2
6323 ;;
6324 *)
6325 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6326 */dev/null*)
6327 lt_cv_path_NM="$tmp_nm -p"
6328 break 2
6329 ;;
6330 *)
6331 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6332 continue # so that we can try to find one that supports BSD flags
6333 ;;
6334 esac
6335 ;;
6336 esac
6337 fi
6338 done
6339 IFS=$lt_save_ifs
6340 done
6341 : ${lt_cv_path_NM=no}
6342 fi
6343 fi
6344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6345 printf "%s\n" "$lt_cv_path_NM" >&6; }
6346 if test no != "$lt_cv_path_NM"; then
6347 NM=$lt_cv_path_NM
6348 else
6349 # Didn't find any BSD compatible name lister, look for dumpbin.
6350 if test -n "$DUMPBIN"; then :
6351 # Let the user override the test.
6352 else
6353 if test -n "$ac_tool_prefix"; then
6354 for ac_prog in dumpbin "link -dump"
6355 do
6356 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6357 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6359 printf %s "checking for $ac_word... " >&6; }
6360 if test ${ac_cv_prog_DUMPBIN+y}
6361 then :
6362 printf %s "(cached) " >&6
6363 else $as_nop
6364 if test -n "$DUMPBIN"; then
6365 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6366 else
6367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6368 for as_dir in $PATH
6369 do
6370 IFS=$as_save_IFS
6371 case $as_dir in #(((
6372 '') as_dir=./ ;;
6373 */) ;;
6374 *) as_dir=$as_dir/ ;;
6375 esac
6376 for ac_exec_ext in '' $ac_executable_extensions; do
6377 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6378 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6379 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6380 break 2
6381 fi
6382 done
6383 done
6384 IFS=$as_save_IFS
6385
6386 fi
6387 fi
6388 DUMPBIN=$ac_cv_prog_DUMPBIN
6389 if test -n "$DUMPBIN"; then
6390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6391 printf "%s\n" "$DUMPBIN" >&6; }
6392 else
6393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6394 printf "%s\n" "no" >&6; }
6395 fi
6396
6397
6398 test -n "$DUMPBIN" && break
6399 done
6400 fi
6401 if test -z "$DUMPBIN"; then
6402 ac_ct_DUMPBIN=$DUMPBIN
6403 for ac_prog in dumpbin "link -dump"
6404 do
6405 # Extract the first word of "$ac_prog", so it can be a program name with args.
6406 set dummy $ac_prog; ac_word=$2
6407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6408 printf %s "checking for $ac_word... " >&6; }
6409 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
6410 then :
6411 printf %s "(cached) " >&6
6412 else $as_nop
6413 if test -n "$ac_ct_DUMPBIN"; then
6414 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6415 else
6416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6417 for as_dir in $PATH
6418 do
6419 IFS=$as_save_IFS
6420 case $as_dir in #(((
6421 '') as_dir=./ ;;
6422 */) ;;
6423 *) as_dir=$as_dir/ ;;
6424 esac
6425 for ac_exec_ext in '' $ac_executable_extensions; do
6426 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6427 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6428 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6429 break 2
6430 fi
6431 done
6432 done
6433 IFS=$as_save_IFS
6434
6435 fi
6436 fi
6437 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6438 if test -n "$ac_ct_DUMPBIN"; then
6439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6440 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
6441 else
6442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6443 printf "%s\n" "no" >&6; }
6444 fi
6445
6446
6447 test -n "$ac_ct_DUMPBIN" && break
6448 done
6449
6450 if test "x$ac_ct_DUMPBIN" = x; then
6451 DUMPBIN=":"
6452 else
6453 case $cross_compiling:$ac_tool_warned in
6454 yes:)
6455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6456 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6457 ac_tool_warned=yes ;;
6458 esac
6459 DUMPBIN=$ac_ct_DUMPBIN
6460 fi
6461 fi
6462
6463 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6464 *COFF*)
6465 DUMPBIN="$DUMPBIN -symbols -headers"
6466 ;;
6467 *)
6468 DUMPBIN=:
6469 ;;
6470 esac
6471 fi
6472
6473 if test : != "$DUMPBIN"; then
6474 NM=$DUMPBIN
6475 fi
6476 fi
6477 test -z "$NM" && NM=nm
6478
6479
6480
6481
6482
6483
6484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6485 printf %s "checking the name lister ($NM) interface... " >&6; }
6486 if test ${lt_cv_nm_interface+y}
6487 then :
6488 printf %s "(cached) " >&6
6489 else $as_nop
6490 lt_cv_nm_interface="BSD nm"
6491 echo "int some_variable = 0;" > conftest.$ac_ext
6492 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6493 (eval "$ac_compile" 2>conftest.err)
6494 cat conftest.err >&5
6495 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6496 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6497 cat conftest.err >&5
6498 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6499 cat conftest.out >&5
6500 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6501 lt_cv_nm_interface="MS dumpbin"
6502 fi
6503 rm -f conftest*
6504 fi
6505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6506 printf "%s\n" "$lt_cv_nm_interface" >&6; }
6507
6508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6509 printf %s "checking whether ln -s works... " >&6; }
6510 LN_S=$as_ln_s
6511 if test "$LN_S" = "ln -s"; then
6512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6513 printf "%s\n" "yes" >&6; }
6514 else
6515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6516 printf "%s\n" "no, using $LN_S" >&6; }
6517 fi
6518
6519 # find the maximum length of command line arguments
6520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6521 printf %s "checking the maximum length of command line arguments... " >&6; }
6522 if test ${lt_cv_sys_max_cmd_len+y}
6523 then :
6524 printf %s "(cached) " >&6
6525 else $as_nop
6526 i=0
6527 teststring=ABCD
6528
6529 case $build_os in
6530 msdosdjgpp*)
6531 # On DJGPP, this test can blow up pretty badly due to problems in libc
6532 # (any single argument exceeding 2000 bytes causes a buffer overrun
6533 # during glob expansion). Even if it were fixed, the result of this
6534 # check would be larger than it should be.
6535 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6536 ;;
6537
6538 gnu*)
6539 # Under GNU Hurd, this test is not required because there is
6540 # no limit to the length of command line arguments.
6541 # Libtool will interpret -1 as no limit whatsoever
6542 lt_cv_sys_max_cmd_len=-1;
6543 ;;
6544
6545 cygwin* | mingw* | cegcc*)
6546 # On Win9x/ME, this test blows up -- it succeeds, but takes
6547 # about 5 minutes as the teststring grows exponentially.
6548 # Worse, since 9x/ME are not pre-emptively multitasking,
6549 # you end up with a "frozen" computer, even though with patience
6550 # the test eventually succeeds (with a max line length of 256k).
6551 # Instead, let's just punt: use the minimum linelength reported by
6552 # all of the supported platforms: 8192 (on NT/2K/XP).
6553 lt_cv_sys_max_cmd_len=8192;
6554 ;;
6555
6556 mint*)
6557 # On MiNT this can take a long time and run out of memory.
6558 lt_cv_sys_max_cmd_len=8192;
6559 ;;
6560
6561 amigaos*)
6562 # On AmigaOS with pdksh, this test takes hours, literally.
6563 # So we just punt and use a minimum line length of 8192.
6564 lt_cv_sys_max_cmd_len=8192;
6565 ;;
6566
6567 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6568 # This has been around since 386BSD, at least. Likely further.
6569 if test -x /sbin/sysctl; then
6570 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6571 elif test -x /usr/sbin/sysctl; then
6572 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6573 else
6574 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6575 fi
6576 # And add a safety zone
6577 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6578 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6579 ;;
6580
6581 interix*)
6582 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6583 lt_cv_sys_max_cmd_len=196608
6584 ;;
6585
6586 os2*)
6587 # The test takes a long time on OS/2.
6588 lt_cv_sys_max_cmd_len=8192
6589 ;;
6590
6591 osf*)
6592 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6593 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6594 # nice to cause kernel panics so lets avoid the loop below.
6595 # First set a reasonable default.
6596 lt_cv_sys_max_cmd_len=16384
6597 #
6598 if test -x /sbin/sysconfig; then
6599 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6600 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6601 esac
6602 fi
6603 ;;
6604 sco3.2v5*)
6605 lt_cv_sys_max_cmd_len=102400
6606 ;;
6607 sysv5* | sco5v6* | sysv4.2uw2*)
6608 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6609 if test -n "$kargmax"; then
6610 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6611 else
6612 lt_cv_sys_max_cmd_len=32768
6613 fi
6614 ;;
6615 *)
6616 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6617 if test -n "$lt_cv_sys_max_cmd_len" && \
6618 test undefined != "$lt_cv_sys_max_cmd_len"; then
6619 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6620 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6621 else
6622 # Make teststring a little bigger before we do anything with it.
6623 # a 1K string should be a reasonable start.
6624 for i in 1 2 3 4 5 6 7 8; do
6625 teststring=$teststring$teststring
6626 done
6627 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6628 # If test is not a shell built-in, we'll probably end up computing a
6629 # maximum length that is only half of the actual maximum length, but
6630 # we can't tell.
6631 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6632 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6633 test 17 != "$i" # 1/2 MB should be enough
6634 do
6635 i=`expr $i + 1`
6636 teststring=$teststring$teststring
6637 done
6638 # Only check the string length outside the loop.
6639 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6640 teststring=
6641 # Add a significant safety factor because C++ compilers can tack on
6642 # massive amounts of additional arguments before passing them to the
6643 # linker. It appears as though 1/2 is a usable value.
6644 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6645 fi
6646 ;;
6647 esac
6648
6649 fi
6650
6651 if test -n "$lt_cv_sys_max_cmd_len"; then
6652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6653 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6654 else
6655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6656 printf "%s\n" "none" >&6; }
6657 fi
6658 max_cmd_len=$lt_cv_sys_max_cmd_len
6659
6660
6661
6662
6663
6664
6665 : ${CP="cp -f"}
6666 : ${MV="mv -f"}
6667 : ${RM="rm -f"}
6668
6669 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6670 lt_unset=unset
6671 else
6672 lt_unset=false
6673 fi
6674
6675
6676
6677
6678
6679 # test EBCDIC or ASCII
6680 case `echo X|tr X '\101'` in
6681 A) # ASCII based system
6682 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6683 lt_SP2NL='tr \040 \012'
6684 lt_NL2SP='tr \015\012 \040\040'
6685 ;;
6686 *) # EBCDIC based system
6687 lt_SP2NL='tr \100 \n'
6688 lt_NL2SP='tr \r\n \100\100'
6689 ;;
6690 esac
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6701 printf %s "checking how to convert $build file names to $host format... " >&6; }
6702 if test ${lt_cv_to_host_file_cmd+y}
6703 then :
6704 printf %s "(cached) " >&6
6705 else $as_nop
6706 case $host in
6707 *-*-mingw* )
6708 case $build in
6709 *-*-mingw* ) # actually msys
6710 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6711 ;;
6712 *-*-cygwin* )
6713 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6714 ;;
6715 * ) # otherwise, assume *nix
6716 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6717 ;;
6718 esac
6719 ;;
6720 *-*-cygwin* )
6721 case $build in
6722 *-*-mingw* ) # actually msys
6723 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6724 ;;
6725 *-*-cygwin* )
6726 lt_cv_to_host_file_cmd=func_convert_file_noop
6727 ;;
6728 * ) # otherwise, assume *nix
6729 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6730 ;;
6731 esac
6732 ;;
6733 * ) # unhandled hosts (and "normal" native builds)
6734 lt_cv_to_host_file_cmd=func_convert_file_noop
6735 ;;
6736 esac
6737
6738 fi
6739
6740 to_host_file_cmd=$lt_cv_to_host_file_cmd
6741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6742 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6743
6744
6745
6746
6747
6748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6749 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6750 if test ${lt_cv_to_tool_file_cmd+y}
6751 then :
6752 printf %s "(cached) " >&6
6753 else $as_nop
6754 #assume ordinary cross tools, or native build.
6755 lt_cv_to_tool_file_cmd=func_convert_file_noop
6756 case $host in
6757 *-*-mingw* )
6758 case $build in
6759 *-*-mingw* ) # actually msys
6760 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6761 ;;
6762 esac
6763 ;;
6764 esac
6765
6766 fi
6767
6768 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6770 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6771
6772
6773
6774
6775
6776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6777 printf %s "checking for $LD option to reload object files... " >&6; }
6778 if test ${lt_cv_ld_reload_flag+y}
6779 then :
6780 printf %s "(cached) " >&6
6781 else $as_nop
6782 lt_cv_ld_reload_flag='-r'
6783 fi
6784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6785 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6786 reload_flag=$lt_cv_ld_reload_flag
6787 case $reload_flag in
6788 "" | " "*) ;;
6789 *) reload_flag=" $reload_flag" ;;
6790 esac
6791 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6792 case $host_os in
6793 cygwin* | mingw* | pw32* | cegcc*)
6794 if test yes != "$GCC"; then
6795 reload_cmds=false
6796 fi
6797 ;;
6798 darwin*)
6799 if test yes = "$GCC"; then
6800 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6801 else
6802 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6803 fi
6804 ;;
6805 esac
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815 if test -n "$ac_tool_prefix"; then
6816 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6817 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6819 printf %s "checking for $ac_word... " >&6; }
6820 if test ${ac_cv_prog_OBJDUMP+y}
6821 then :
6822 printf %s "(cached) " >&6
6823 else $as_nop
6824 if test -n "$OBJDUMP"; then
6825 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6826 else
6827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6828 for as_dir in $PATH
6829 do
6830 IFS=$as_save_IFS
6831 case $as_dir in #(((
6832 '') as_dir=./ ;;
6833 */) ;;
6834 *) as_dir=$as_dir/ ;;
6835 esac
6836 for ac_exec_ext in '' $ac_executable_extensions; do
6837 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6838 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6839 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6840 break 2
6841 fi
6842 done
6843 done
6844 IFS=$as_save_IFS
6845
6846 fi
6847 fi
6848 OBJDUMP=$ac_cv_prog_OBJDUMP
6849 if test -n "$OBJDUMP"; then
6850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6851 printf "%s\n" "$OBJDUMP" >&6; }
6852 else
6853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6854 printf "%s\n" "no" >&6; }
6855 fi
6856
6857
6858 fi
6859 if test -z "$ac_cv_prog_OBJDUMP"; then
6860 ac_ct_OBJDUMP=$OBJDUMP
6861 # Extract the first word of "objdump", so it can be a program name with args.
6862 set dummy objdump; ac_word=$2
6863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6864 printf %s "checking for $ac_word... " >&6; }
6865 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6866 then :
6867 printf %s "(cached) " >&6
6868 else $as_nop
6869 if test -n "$ac_ct_OBJDUMP"; then
6870 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6871 else
6872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6873 for as_dir in $PATH
6874 do
6875 IFS=$as_save_IFS
6876 case $as_dir in #(((
6877 '') as_dir=./ ;;
6878 */) ;;
6879 *) as_dir=$as_dir/ ;;
6880 esac
6881 for ac_exec_ext in '' $ac_executable_extensions; do
6882 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6883 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6884 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6885 break 2
6886 fi
6887 done
6888 done
6889 IFS=$as_save_IFS
6890
6891 fi
6892 fi
6893 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6894 if test -n "$ac_ct_OBJDUMP"; then
6895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6896 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6897 else
6898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6899 printf "%s\n" "no" >&6; }
6900 fi
6901
6902 if test "x$ac_ct_OBJDUMP" = x; then
6903 OBJDUMP="false"
6904 else
6905 case $cross_compiling:$ac_tool_warned in
6906 yes:)
6907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6908 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6909 ac_tool_warned=yes ;;
6910 esac
6911 OBJDUMP=$ac_ct_OBJDUMP
6912 fi
6913 else
6914 OBJDUMP="$ac_cv_prog_OBJDUMP"
6915 fi
6916
6917 test -z "$OBJDUMP" && OBJDUMP=objdump
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6928 printf %s "checking how to recognize dependent libraries... " >&6; }
6929 if test ${lt_cv_deplibs_check_method+y}
6930 then :
6931 printf %s "(cached) " >&6
6932 else $as_nop
6933 lt_cv_file_magic_cmd='$MAGIC_CMD'
6934 lt_cv_file_magic_test_file=
6935 lt_cv_deplibs_check_method='unknown'
6936 # Need to set the preceding variable on all platforms that support
6937 # interlibrary dependencies.
6938 # 'none' -- dependencies not supported.
6939 # 'unknown' -- same as none, but documents that we really don't know.
6940 # 'pass_all' -- all dependencies passed with no checks.
6941 # 'test_compile' -- check by making test program.
6942 # 'file_magic [[regex]]' -- check by looking for files in library path
6943 # that responds to the $file_magic_cmd with a given extended regex.
6944 # If you have 'file' or equivalent on your system and you're not sure
6945 # whether 'pass_all' will *always* work, you probably want this one.
6946
6947 case $host_os in
6948 aix[4-9]*)
6949 lt_cv_deplibs_check_method=pass_all
6950 ;;
6951
6952 beos*)
6953 lt_cv_deplibs_check_method=pass_all
6954 ;;
6955
6956 bsdi[45]*)
6957 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6958 lt_cv_file_magic_cmd='/usr/bin/file -L'
6959 lt_cv_file_magic_test_file=/shlib/libc.so
6960 ;;
6961
6962 cygwin*)
6963 # func_win32_libid is a shell function defined in ltmain.sh
6964 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6965 lt_cv_file_magic_cmd='func_win32_libid'
6966 ;;
6967
6968 mingw* | pw32*)
6969 # Base MSYS/MinGW do not provide the 'file' command needed by
6970 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6971 # unless we find 'file', for example because we are cross-compiling.
6972 if ( file / ) >/dev/null 2>&1; then
6973 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6974 lt_cv_file_magic_cmd='func_win32_libid'
6975 else
6976 # Keep this pattern in sync with the one in func_win32_libid.
6977 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6978 lt_cv_file_magic_cmd='$OBJDUMP -f'
6979 fi
6980 ;;
6981
6982 cegcc*)
6983 # use the weaker test based on 'objdump'. See mingw*.
6984 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6985 lt_cv_file_magic_cmd='$OBJDUMP -f'
6986 ;;
6987
6988 darwin* | rhapsody*)
6989 lt_cv_deplibs_check_method=pass_all
6990 ;;
6991
6992 freebsd* | dragonfly*)
6993 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6994 case $host_cpu in
6995 i*86 )
6996 # Not sure whether the presence of OpenBSD here was a mistake.
6997 # Let's accept both of them until this is cleared up.
6998 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6999 lt_cv_file_magic_cmd=/usr/bin/file
7000 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7001 ;;
7002 esac
7003 else
7004 lt_cv_deplibs_check_method=pass_all
7005 fi
7006 ;;
7007
7008 haiku*)
7009 lt_cv_deplibs_check_method=pass_all
7010 ;;
7011
7012 hpux10.20* | hpux11*)
7013 lt_cv_file_magic_cmd=/usr/bin/file
7014 case $host_cpu in
7015 ia64*)
7016 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7017 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7018 ;;
7019 hppa*64*)
7020 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]'
7021 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7022 ;;
7023 *)
7024 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7025 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7026 ;;
7027 esac
7028 ;;
7029
7030 interix[3-9]*)
7031 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7032 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7033 ;;
7034
7035 irix5* | irix6* | nonstopux*)
7036 case $LD in
7037 *-32|*"-32 ") libmagic=32-bit;;
7038 *-n32|*"-n32 ") libmagic=N32;;
7039 *-64|*"-64 ") libmagic=64-bit;;
7040 *) libmagic=never-match;;
7041 esac
7042 lt_cv_deplibs_check_method=pass_all
7043 ;;
7044
7045 # This must be glibc/ELF.
7046 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7047 lt_cv_deplibs_check_method=pass_all
7048 ;;
7049
7050 netbsd*)
7051 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7052 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7053 else
7054 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7055 fi
7056 ;;
7057
7058 newos6*)
7059 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7060 lt_cv_file_magic_cmd=/usr/bin/file
7061 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7062 ;;
7063
7064 *nto* | *qnx*)
7065 lt_cv_deplibs_check_method=pass_all
7066 ;;
7067
7068 openbsd* | bitrig*)
7069 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7070 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7071 else
7072 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7073 fi
7074 ;;
7075
7076 osf3* | osf4* | osf5*)
7077 lt_cv_deplibs_check_method=pass_all
7078 ;;
7079
7080 rdos*)
7081 lt_cv_deplibs_check_method=pass_all
7082 ;;
7083
7084 solaris*)
7085 lt_cv_deplibs_check_method=pass_all
7086 ;;
7087
7088 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7089 lt_cv_deplibs_check_method=pass_all
7090 ;;
7091
7092 sysv4 | sysv4.3*)
7093 case $host_vendor in
7094 motorola)
7095 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]'
7096 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7097 ;;
7098 ncr)
7099 lt_cv_deplibs_check_method=pass_all
7100 ;;
7101 sequent)
7102 lt_cv_file_magic_cmd='/bin/file'
7103 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7104 ;;
7105 sni)
7106 lt_cv_file_magic_cmd='/bin/file'
7107 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7108 lt_cv_file_magic_test_file=/lib/libc.so
7109 ;;
7110 siemens)
7111 lt_cv_deplibs_check_method=pass_all
7112 ;;
7113 pc)
7114 lt_cv_deplibs_check_method=pass_all
7115 ;;
7116 esac
7117 ;;
7118
7119 tpf*)
7120 lt_cv_deplibs_check_method=pass_all
7121 ;;
7122 os2*)
7123 lt_cv_deplibs_check_method=pass_all
7124 ;;
7125 esac
7126
7127 fi
7128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7129 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
7130
7131 file_magic_glob=
7132 want_nocaseglob=no
7133 if test "$build" = "$host"; then
7134 case $host_os in
7135 mingw* | pw32*)
7136 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7137 want_nocaseglob=yes
7138 else
7139 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7140 fi
7141 ;;
7142 esac
7143 fi
7144
7145 file_magic_cmd=$lt_cv_file_magic_cmd
7146 deplibs_check_method=$lt_cv_deplibs_check_method
7147 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170 if test -n "$ac_tool_prefix"; then
7171 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7172 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7174 printf %s "checking for $ac_word... " >&6; }
7175 if test ${ac_cv_prog_DLLTOOL+y}
7176 then :
7177 printf %s "(cached) " >&6
7178 else $as_nop
7179 if test -n "$DLLTOOL"; then
7180 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7181 else
7182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7183 for as_dir in $PATH
7184 do
7185 IFS=$as_save_IFS
7186 case $as_dir in #(((
7187 '') as_dir=./ ;;
7188 */) ;;
7189 *) as_dir=$as_dir/ ;;
7190 esac
7191 for ac_exec_ext in '' $ac_executable_extensions; do
7192 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7193 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7194 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7195 break 2
7196 fi
7197 done
7198 done
7199 IFS=$as_save_IFS
7200
7201 fi
7202 fi
7203 DLLTOOL=$ac_cv_prog_DLLTOOL
7204 if test -n "$DLLTOOL"; then
7205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7206 printf "%s\n" "$DLLTOOL" >&6; }
7207 else
7208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7209 printf "%s\n" "no" >&6; }
7210 fi
7211
7212
7213 fi
7214 if test -z "$ac_cv_prog_DLLTOOL"; then
7215 ac_ct_DLLTOOL=$DLLTOOL
7216 # Extract the first word of "dlltool", so it can be a program name with args.
7217 set dummy dlltool; ac_word=$2
7218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7219 printf %s "checking for $ac_word... " >&6; }
7220 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
7221 then :
7222 printf %s "(cached) " >&6
7223 else $as_nop
7224 if test -n "$ac_ct_DLLTOOL"; then
7225 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7226 else
7227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7228 for as_dir in $PATH
7229 do
7230 IFS=$as_save_IFS
7231 case $as_dir in #(((
7232 '') as_dir=./ ;;
7233 */) ;;
7234 *) as_dir=$as_dir/ ;;
7235 esac
7236 for ac_exec_ext in '' $ac_executable_extensions; do
7237 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7238 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7239 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7240 break 2
7241 fi
7242 done
7243 done
7244 IFS=$as_save_IFS
7245
7246 fi
7247 fi
7248 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7249 if test -n "$ac_ct_DLLTOOL"; then
7250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7251 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
7252 else
7253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7254 printf "%s\n" "no" >&6; }
7255 fi
7256
7257 if test "x$ac_ct_DLLTOOL" = x; then
7258 DLLTOOL="false"
7259 else
7260 case $cross_compiling:$ac_tool_warned in
7261 yes:)
7262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7263 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7264 ac_tool_warned=yes ;;
7265 esac
7266 DLLTOOL=$ac_ct_DLLTOOL
7267 fi
7268 else
7269 DLLTOOL="$ac_cv_prog_DLLTOOL"
7270 fi
7271
7272 test -z "$DLLTOOL" && DLLTOOL=dlltool
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7284 printf %s "checking how to associate runtime and link libraries... " >&6; }
7285 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
7286 then :
7287 printf %s "(cached) " >&6
7288 else $as_nop
7289 lt_cv_sharedlib_from_linklib_cmd='unknown'
7290
7291 case $host_os in
7292 cygwin* | mingw* | pw32* | cegcc*)
7293 # two different shell functions defined in ltmain.sh;
7294 # decide which one to use based on capabilities of $DLLTOOL
7295 case `$DLLTOOL --help 2>&1` in
7296 *--identify-strict*)
7297 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7298 ;;
7299 *)
7300 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7301 ;;
7302 esac
7303 ;;
7304 *)
7305 # fallback: assume linklib IS sharedlib
7306 lt_cv_sharedlib_from_linklib_cmd=$ECHO
7307 ;;
7308 esac
7309
7310 fi
7311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7312 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7313 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7314 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7315
7316
7317
7318
7319
7320
7321
7322
7323 if test -n "$ac_tool_prefix"; then
7324 for ac_prog in ar
7325 do
7326 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7327 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7329 printf %s "checking for $ac_word... " >&6; }
7330 if test ${ac_cv_prog_AR+y}
7331 then :
7332 printf %s "(cached) " >&6
7333 else $as_nop
7334 if test -n "$AR"; then
7335 ac_cv_prog_AR="$AR" # Let the user override the test.
7336 else
7337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7338 for as_dir in $PATH
7339 do
7340 IFS=$as_save_IFS
7341 case $as_dir in #(((
7342 '') as_dir=./ ;;
7343 */) ;;
7344 *) as_dir=$as_dir/ ;;
7345 esac
7346 for ac_exec_ext in '' $ac_executable_extensions; do
7347 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7348 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7349 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7350 break 2
7351 fi
7352 done
7353 done
7354 IFS=$as_save_IFS
7355
7356 fi
7357 fi
7358 AR=$ac_cv_prog_AR
7359 if test -n "$AR"; then
7360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7361 printf "%s\n" "$AR" >&6; }
7362 else
7363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7364 printf "%s\n" "no" >&6; }
7365 fi
7366
7367
7368 test -n "$AR" && break
7369 done
7370 fi
7371 if test -z "$AR"; then
7372 ac_ct_AR=$AR
7373 for ac_prog in ar
7374 do
7375 # Extract the first word of "$ac_prog", so it can be a program name with args.
7376 set dummy $ac_prog; ac_word=$2
7377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7378 printf %s "checking for $ac_word... " >&6; }
7379 if test ${ac_cv_prog_ac_ct_AR+y}
7380 then :
7381 printf %s "(cached) " >&6
7382 else $as_nop
7383 if test -n "$ac_ct_AR"; then
7384 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7385 else
7386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7387 for as_dir in $PATH
7388 do
7389 IFS=$as_save_IFS
7390 case $as_dir in #(((
7391 '') as_dir=./ ;;
7392 */) ;;
7393 *) as_dir=$as_dir/ ;;
7394 esac
7395 for ac_exec_ext in '' $ac_executable_extensions; do
7396 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7397 ac_cv_prog_ac_ct_AR="$ac_prog"
7398 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7399 break 2
7400 fi
7401 done
7402 done
7403 IFS=$as_save_IFS
7404
7405 fi
7406 fi
7407 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7408 if test -n "$ac_ct_AR"; then
7409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7410 printf "%s\n" "$ac_ct_AR" >&6; }
7411 else
7412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7413 printf "%s\n" "no" >&6; }
7414 fi
7415
7416
7417 test -n "$ac_ct_AR" && break
7418 done
7419
7420 if test "x$ac_ct_AR" = x; then
7421 AR="false"
7422 else
7423 case $cross_compiling:$ac_tool_warned in
7424 yes:)
7425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7426 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7427 ac_tool_warned=yes ;;
7428 esac
7429 AR=$ac_ct_AR
7430 fi
7431 fi
7432
7433 : ${AR=ar}
7434 : ${AR_FLAGS=cru}
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7447 printf %s "checking for archiver @FILE support... " >&6; }
7448 if test ${lt_cv_ar_at_file+y}
7449 then :
7450 printf %s "(cached) " >&6
7451 else $as_nop
7452 lt_cv_ar_at_file=no
7453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7454 /* end confdefs.h. */
7455
7456 int
7457 main (void)
7458 {
7459
7460 ;
7461 return 0;
7462 }
7463 _ACEOF
7464 if ac_fn_c_try_compile "$LINENO"
7465 then :
7466 echo conftest.$ac_objext > conftest.lst
7467 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7468 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7469 (eval $lt_ar_try) 2>&5
7470 ac_status=$?
7471 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7472 test $ac_status = 0; }
7473 if test 0 -eq "$ac_status"; then
7474 # Ensure the archiver fails upon bogus file names.
7475 rm -f conftest.$ac_objext libconftest.a
7476 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7477 (eval $lt_ar_try) 2>&5
7478 ac_status=$?
7479 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7480 test $ac_status = 0; }
7481 if test 0 -ne "$ac_status"; then
7482 lt_cv_ar_at_file=@
7483 fi
7484 fi
7485 rm -f conftest.* libconftest.a
7486
7487 fi
7488 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7489
7490 fi
7491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7492 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
7493
7494 if test no = "$lt_cv_ar_at_file"; then
7495 archiver_list_spec=
7496 else
7497 archiver_list_spec=$lt_cv_ar_at_file
7498 fi
7499
7500
7501
7502
7503
7504
7505
7506 if test -n "$ac_tool_prefix"; then
7507 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7508 set dummy ${ac_tool_prefix}strip; ac_word=$2
7509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7510 printf %s "checking for $ac_word... " >&6; }
7511 if test ${ac_cv_prog_STRIP+y}
7512 then :
7513 printf %s "(cached) " >&6
7514 else $as_nop
7515 if test -n "$STRIP"; then
7516 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7517 else
7518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7519 for as_dir in $PATH
7520 do
7521 IFS=$as_save_IFS
7522 case $as_dir in #(((
7523 '') as_dir=./ ;;
7524 */) ;;
7525 *) as_dir=$as_dir/ ;;
7526 esac
7527 for ac_exec_ext in '' $ac_executable_extensions; do
7528 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7529 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7530 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7531 break 2
7532 fi
7533 done
7534 done
7535 IFS=$as_save_IFS
7536
7537 fi
7538 fi
7539 STRIP=$ac_cv_prog_STRIP
7540 if test -n "$STRIP"; then
7541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7542 printf "%s\n" "$STRIP" >&6; }
7543 else
7544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7545 printf "%s\n" "no" >&6; }
7546 fi
7547
7548
7549 fi
7550 if test -z "$ac_cv_prog_STRIP"; then
7551 ac_ct_STRIP=$STRIP
7552 # Extract the first word of "strip", so it can be a program name with args.
7553 set dummy strip; ac_word=$2
7554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7555 printf %s "checking for $ac_word... " >&6; }
7556 if test ${ac_cv_prog_ac_ct_STRIP+y}
7557 then :
7558 printf %s "(cached) " >&6
7559 else $as_nop
7560 if test -n "$ac_ct_STRIP"; then
7561 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7562 else
7563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7564 for as_dir in $PATH
7565 do
7566 IFS=$as_save_IFS
7567 case $as_dir in #(((
7568 '') as_dir=./ ;;
7569 */) ;;
7570 *) as_dir=$as_dir/ ;;
7571 esac
7572 for ac_exec_ext in '' $ac_executable_extensions; do
7573 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7574 ac_cv_prog_ac_ct_STRIP="strip"
7575 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7576 break 2
7577 fi
7578 done
7579 done
7580 IFS=$as_save_IFS
7581
7582 fi
7583 fi
7584 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7585 if test -n "$ac_ct_STRIP"; then
7586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7587 printf "%s\n" "$ac_ct_STRIP" >&6; }
7588 else
7589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7590 printf "%s\n" "no" >&6; }
7591 fi
7592
7593 if test "x$ac_ct_STRIP" = x; then
7594 STRIP=":"
7595 else
7596 case $cross_compiling:$ac_tool_warned in
7597 yes:)
7598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7599 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7600 ac_tool_warned=yes ;;
7601 esac
7602 STRIP=$ac_ct_STRIP
7603 fi
7604 else
7605 STRIP="$ac_cv_prog_STRIP"
7606 fi
7607
7608 test -z "$STRIP" && STRIP=:
7609
7610
7611
7612
7613
7614
7615 if test -n "$ac_tool_prefix"; then
7616 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7617 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7619 printf %s "checking for $ac_word... " >&6; }
7620 if test ${ac_cv_prog_RANLIB+y}
7621 then :
7622 printf %s "(cached) " >&6
7623 else $as_nop
7624 if test -n "$RANLIB"; then
7625 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7626 else
7627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7628 for as_dir in $PATH
7629 do
7630 IFS=$as_save_IFS
7631 case $as_dir in #(((
7632 '') as_dir=./ ;;
7633 */) ;;
7634 *) as_dir=$as_dir/ ;;
7635 esac
7636 for ac_exec_ext in '' $ac_executable_extensions; do
7637 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7638 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7639 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7640 break 2
7641 fi
7642 done
7643 done
7644 IFS=$as_save_IFS
7645
7646 fi
7647 fi
7648 RANLIB=$ac_cv_prog_RANLIB
7649 if test -n "$RANLIB"; then
7650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7651 printf "%s\n" "$RANLIB" >&6; }
7652 else
7653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7654 printf "%s\n" "no" >&6; }
7655 fi
7656
7657
7658 fi
7659 if test -z "$ac_cv_prog_RANLIB"; then
7660 ac_ct_RANLIB=$RANLIB
7661 # Extract the first word of "ranlib", so it can be a program name with args.
7662 set dummy ranlib; ac_word=$2
7663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7664 printf %s "checking for $ac_word... " >&6; }
7665 if test ${ac_cv_prog_ac_ct_RANLIB+y}
7666 then :
7667 printf %s "(cached) " >&6
7668 else $as_nop
7669 if test -n "$ac_ct_RANLIB"; then
7670 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7671 else
7672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7673 for as_dir in $PATH
7674 do
7675 IFS=$as_save_IFS
7676 case $as_dir in #(((
7677 '') as_dir=./ ;;
7678 */) ;;
7679 *) as_dir=$as_dir/ ;;
7680 esac
7681 for ac_exec_ext in '' $ac_executable_extensions; do
7682 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7683 ac_cv_prog_ac_ct_RANLIB="ranlib"
7684 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7685 break 2
7686 fi
7687 done
7688 done
7689 IFS=$as_save_IFS
7690
7691 fi
7692 fi
7693 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7694 if test -n "$ac_ct_RANLIB"; then
7695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7696 printf "%s\n" "$ac_ct_RANLIB" >&6; }
7697 else
7698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7699 printf "%s\n" "no" >&6; }
7700 fi
7701
7702 if test "x$ac_ct_RANLIB" = x; then
7703 RANLIB=":"
7704 else
7705 case $cross_compiling:$ac_tool_warned in
7706 yes:)
7707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7708 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7709 ac_tool_warned=yes ;;
7710 esac
7711 RANLIB=$ac_ct_RANLIB
7712 fi
7713 else
7714 RANLIB="$ac_cv_prog_RANLIB"
7715 fi
7716
7717 test -z "$RANLIB" && RANLIB=:
7718
7719
7720
7721
7722
7723
7724 # Determine commands to create old-style static archives.
7725 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7726 old_postinstall_cmds='chmod 644 $oldlib'
7727 old_postuninstall_cmds=
7728
7729 if test -n "$RANLIB"; then
7730 case $host_os in
7731 bitrig* | openbsd*)
7732 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7733 ;;
7734 *)
7735 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7736 ;;
7737 esac
7738 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7739 fi
7740
7741 case $host_os in
7742 darwin*)
7743 lock_old_archive_extraction=yes ;;
7744 *)
7745 lock_old_archive_extraction=no ;;
7746 esac
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786 # If no C compiler was specified, use CC.
7787 LTCC=${LTCC-"$CC"}
7788
7789 # If no C compiler flags were specified, use CFLAGS.
7790 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7791
7792 # Allow CC to be a program name with arguments.
7793 compiler=$CC
7794
7795
7796 # Check for command to grab the raw symbol name followed by C symbol from nm.
7797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7798 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7799 if test ${lt_cv_sys_global_symbol_pipe+y}
7800 then :
7801 printf %s "(cached) " >&6
7802 else $as_nop
7803
7804 # These are sane defaults that work on at least a few old systems.
7805 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7806
7807 # Character class describing NM global symbol codes.
7808 symcode='[BCDEGRST]'
7809
7810 # Regexp to match symbols that can be accessed directly from C.
7811 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7812
7813 # Define system-specific variables.
7814 case $host_os in
7815 aix*)
7816 symcode='[BCDT]'
7817 ;;
7818 cygwin* | mingw* | pw32* | cegcc*)
7819 symcode='[ABCDGISTW]'
7820 ;;
7821 hpux*)
7822 if test ia64 = "$host_cpu"; then
7823 symcode='[ABCDEGRST]'
7824 fi
7825 ;;
7826 irix* | nonstopux*)
7827 symcode='[BCDEGRST]'
7828 ;;
7829 osf*)
7830 symcode='[BCDEGQRST]'
7831 ;;
7832 solaris*)
7833 symcode='[BDRT]'
7834 ;;
7835 sco3.2v5*)
7836 symcode='[DT]'
7837 ;;
7838 sysv4.2uw2*)
7839 symcode='[DT]'
7840 ;;
7841 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7842 symcode='[ABDT]'
7843 ;;
7844 sysv4)
7845 symcode='[DFNSTU]'
7846 ;;
7847 esac
7848
7849 # If we're using GNU nm, then use its standard symbol codes.
7850 case `$NM -V 2>&1` in
7851 *GNU* | *'with BFD'*)
7852 symcode='[ABCDGIRSTW]' ;;
7853 esac
7854
7855 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7856 # Gets list of data symbols to import.
7857 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7858 # Adjust the below global symbol transforms to fixup imported variables.
7859 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7860 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7861 lt_c_name_lib_hook="\
7862 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7863 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7864 else
7865 # Disable hooks by default.
7866 lt_cv_sys_global_symbol_to_import=
7867 lt_cdecl_hook=
7868 lt_c_name_hook=
7869 lt_c_name_lib_hook=
7870 fi
7871
7872 # Transform an extracted symbol line into a proper C declaration.
7873 # Some systems (esp. on ia64) link data and code symbols differently,
7874 # so use this general approach.
7875 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7876 $lt_cdecl_hook\
7877 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7878 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7879
7880 # Transform an extracted symbol line into symbol name and symbol address
7881 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7882 $lt_c_name_hook\
7883 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7884 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7885
7886 # Transform an extracted symbol line into symbol name with lib prefix and
7887 # symbol address.
7888 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7889 $lt_c_name_lib_hook\
7890 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7891 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7892 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7893
7894 # Handle CRLF in mingw tool chain
7895 opt_cr=
7896 case $build_os in
7897 mingw*)
7898 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7899 ;;
7900 esac
7901
7902 # Try without a prefix underscore, then with it.
7903 for ac_symprfx in "" "_"; do
7904
7905 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7906 symxfrm="\\1 $ac_symprfx\\2 \\2"
7907
7908 # Write the raw and C identifiers.
7909 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7910 # Fake it for dumpbin and say T for any non-static function,
7911 # D for any global variable and I for any imported variable.
7912 # Also find C++ and __fastcall symbols from MSVC++,
7913 # which start with @ or ?.
7914 lt_cv_sys_global_symbol_pipe="$AWK '"\
7915 " {last_section=section; section=\$ 3};"\
7916 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7917 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7918 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7919 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7920 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7921 " \$ 0!~/External *\|/{next};"\
7922 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7923 " {if(hide[section]) next};"\
7924 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7925 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7926 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7927 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7928 " ' prfx=^$ac_symprfx"
7929 else
7930 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7931 fi
7932 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7933
7934 # Check to see that the pipe works correctly.
7935 pipe_works=no
7936
7937 rm -f conftest*
7938 cat > conftest.$ac_ext <<_LT_EOF
7939 #ifdef __cplusplus
7940 extern "C" {
7941 #endif
7942 char nm_test_var;
7943 void nm_test_func(void);
7944 void nm_test_func(void){}
7945 #ifdef __cplusplus
7946 }
7947 #endif
7948 int main(){nm_test_var='a';nm_test_func();return(0);}
7949 _LT_EOF
7950
7951 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7952 (eval $ac_compile) 2>&5
7953 ac_status=$?
7954 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7955 test $ac_status = 0; }; then
7956 # Now try to grab the symbols.
7957 nlist=conftest.nm
7958 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7959 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7960 ac_status=$?
7961 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7962 test $ac_status = 0; } && test -s "$nlist"; then
7963 # Try sorting and uniquifying the output.
7964 if sort "$nlist" | uniq > "$nlist"T; then
7965 mv -f "$nlist"T "$nlist"
7966 else
7967 rm -f "$nlist"T
7968 fi
7969
7970 # Make sure that we snagged all the symbols we need.
7971 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7972 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7973 cat <<_LT_EOF > conftest.$ac_ext
7974 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7975 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7976 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7977 relocations are performed -- see ld's documentation on pseudo-relocs. */
7978 # define LT_DLSYM_CONST
7979 #elif defined __osf__
7980 /* This system does not cope well with relocations in const data. */
7981 # define LT_DLSYM_CONST
7982 #else
7983 # define LT_DLSYM_CONST const
7984 #endif
7985
7986 #ifdef __cplusplus
7987 extern "C" {
7988 #endif
7989
7990 _LT_EOF
7991 # Now generate the symbol file.
7992 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7993
7994 cat <<_LT_EOF >> conftest.$ac_ext
7995
7996 /* The mapping between symbol names and symbols. */
7997 LT_DLSYM_CONST struct {
7998 const char *name;
7999 void *address;
8000 }
8001 lt__PROGRAM__LTX_preloaded_symbols[] =
8002 {
8003 { "@PROGRAM@", (void *) 0 },
8004 _LT_EOF
8005 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8006 cat <<\_LT_EOF >> conftest.$ac_ext
8007 {0, (void *) 0}
8008 };
8009
8010 /* This works around a problem in FreeBSD linker */
8011 #ifdef FREEBSD_WORKAROUND
8012 static const void *lt_preloaded_setup() {
8013 return lt__PROGRAM__LTX_preloaded_symbols;
8014 }
8015 #endif
8016
8017 #ifdef __cplusplus
8018 }
8019 #endif
8020 _LT_EOF
8021 # Now try linking the two files.
8022 mv conftest.$ac_objext conftstm.$ac_objext
8023 lt_globsym_save_LIBS=$LIBS
8024 lt_globsym_save_CFLAGS=$CFLAGS
8025 LIBS=conftstm.$ac_objext
8026 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8027 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8028 (eval $ac_link) 2>&5
8029 ac_status=$?
8030 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8031 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8032 pipe_works=yes
8033 fi
8034 LIBS=$lt_globsym_save_LIBS
8035 CFLAGS=$lt_globsym_save_CFLAGS
8036 else
8037 echo "cannot find nm_test_func in $nlist" >&5
8038 fi
8039 else
8040 echo "cannot find nm_test_var in $nlist" >&5
8041 fi
8042 else
8043 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8044 fi
8045 else
8046 echo "$progname: failed program was:" >&5
8047 cat conftest.$ac_ext >&5
8048 fi
8049 rm -rf conftest* conftst*
8050
8051 # Do not use the global_symbol_pipe unless it works.
8052 if test yes = "$pipe_works"; then
8053 break
8054 else
8055 lt_cv_sys_global_symbol_pipe=
8056 fi
8057 done
8058
8059 fi
8060
8061 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8062 lt_cv_sys_global_symbol_to_cdecl=
8063 fi
8064 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8066 printf "%s\n" "failed" >&6; }
8067 else
8068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8069 printf "%s\n" "ok" >&6; }
8070 fi
8071
8072 # Response file support.
8073 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8074 nm_file_list_spec='@'
8075 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8076 nm_file_list_spec='@'
8077 fi
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8116 printf %s "checking for sysroot... " >&6; }
8117
8118 # Check whether --with-sysroot was given.
8119 if test ${with_sysroot+y}
8120 then :
8121 withval=$with_sysroot;
8122 else $as_nop
8123 with_sysroot=no
8124 fi
8125
8126
8127 lt_sysroot=
8128 case $with_sysroot in #(
8129 yes)
8130 if test yes = "$GCC"; then
8131 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8132 fi
8133 ;; #(
8134 /*)
8135 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8136 ;; #(
8137 no|'')
8138 ;; #(
8139 *)
8140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8141 printf "%s\n" "$with_sysroot" >&6; }
8142 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8143 ;;
8144 esac
8145
8146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8147 printf "%s\n" "${lt_sysroot:-no}" >&6; }
8148
8149
8150
8151
8152
8153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8154 printf %s "checking for a working dd... " >&6; }
8155 if test ${ac_cv_path_lt_DD+y}
8156 then :
8157 printf %s "(cached) " >&6
8158 else $as_nop
8159 printf 0123456789abcdef0123456789abcdef >conftest.i
8160 cat conftest.i conftest.i >conftest2.i
8161 : ${lt_DD:=$DD}
8162 if test -z "$lt_DD"; then
8163 ac_path_lt_DD_found=false
8164 # Loop through the user's path and test for each of PROGNAME-LIST
8165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8166 for as_dir in $PATH
8167 do
8168 IFS=$as_save_IFS
8169 case $as_dir in #(((
8170 '') as_dir=./ ;;
8171 */) ;;
8172 *) as_dir=$as_dir/ ;;
8173 esac
8174 for ac_prog in dd
8175 do
8176 for ac_exec_ext in '' $ac_executable_extensions; do
8177 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
8178 as_fn_executable_p "$ac_path_lt_DD" || continue
8179 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8180 cmp -s conftest.i conftest.out \
8181 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8182 fi
8183 $ac_path_lt_DD_found && break 3
8184 done
8185 done
8186 done
8187 IFS=$as_save_IFS
8188 if test -z "$ac_cv_path_lt_DD"; then
8189 :
8190 fi
8191 else
8192 ac_cv_path_lt_DD=$lt_DD
8193 fi
8194
8195 rm -f conftest.i conftest2.i conftest.out
8196 fi
8197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8198 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
8199
8200
8201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8202 printf %s "checking how to truncate binary pipes... " >&6; }
8203 if test ${lt_cv_truncate_bin+y}
8204 then :
8205 printf %s "(cached) " >&6
8206 else $as_nop
8207 printf 0123456789abcdef0123456789abcdef >conftest.i
8208 cat conftest.i conftest.i >conftest2.i
8209 lt_cv_truncate_bin=
8210 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8211 cmp -s conftest.i conftest.out \
8212 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8213 fi
8214 rm -f conftest.i conftest2.i conftest.out
8215 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
8216 fi
8217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8218 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
8219
8220
8221
8222
8223
8224
8225
8226 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
8227 func_cc_basename ()
8228 {
8229 for cc_temp in $*""; do
8230 case $cc_temp in
8231 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8232 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8233 \-*) ;;
8234 *) break;;
8235 esac
8236 done
8237 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8238 }
8239
8240 # Check whether --enable-libtool-lock was given.
8241 if test ${enable_libtool_lock+y}
8242 then :
8243 enableval=$enable_libtool_lock;
8244 fi
8245
8246 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8247
8248 # Some flags need to be propagated to the compiler or linker for good
8249 # libtool support.
8250 case $host in
8251 ia64-*-hpux*)
8252 # Find out what ABI is being produced by ac_compile, and set mode
8253 # options accordingly.
8254 echo 'int i;' > conftest.$ac_ext
8255 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8256 (eval $ac_compile) 2>&5
8257 ac_status=$?
8258 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8259 test $ac_status = 0; }; then
8260 case `/usr/bin/file conftest.$ac_objext` in
8261 *ELF-32*)
8262 HPUX_IA64_MODE=32
8263 ;;
8264 *ELF-64*)
8265 HPUX_IA64_MODE=64
8266 ;;
8267 esac
8268 fi
8269 rm -rf conftest*
8270 ;;
8271 *-*-irix6*)
8272 # Find out what ABI is being produced by ac_compile, and set linker
8273 # options accordingly.
8274 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8275 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8276 (eval $ac_compile) 2>&5
8277 ac_status=$?
8278 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8279 test $ac_status = 0; }; then
8280 if test yes = "$lt_cv_prog_gnu_ld"; then
8281 case `/usr/bin/file conftest.$ac_objext` in
8282 *32-bit*)
8283 LD="${LD-ld} -melf32bsmip"
8284 ;;
8285 *N32*)
8286 LD="${LD-ld} -melf32bmipn32"
8287 ;;
8288 *64-bit*)
8289 LD="${LD-ld} -melf64bmip"
8290 ;;
8291 esac
8292 else
8293 case `/usr/bin/file conftest.$ac_objext` in
8294 *32-bit*)
8295 LD="${LD-ld} -32"
8296 ;;
8297 *N32*)
8298 LD="${LD-ld} -n32"
8299 ;;
8300 *64-bit*)
8301 LD="${LD-ld} -64"
8302 ;;
8303 esac
8304 fi
8305 fi
8306 rm -rf conftest*
8307 ;;
8308
8309 mips64*-*linux*)
8310 # Find out what ABI is being produced by ac_compile, and set linker
8311 # options accordingly.
8312 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8313 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8314 (eval $ac_compile) 2>&5
8315 ac_status=$?
8316 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8317 test $ac_status = 0; }; then
8318 emul=elf
8319 case `/usr/bin/file conftest.$ac_objext` in
8320 *32-bit*)
8321 emul="${emul}32"
8322 ;;
8323 *64-bit*)
8324 emul="${emul}64"
8325 ;;
8326 esac
8327 case `/usr/bin/file conftest.$ac_objext` in
8328 *MSB*)
8329 emul="${emul}btsmip"
8330 ;;
8331 *LSB*)
8332 emul="${emul}ltsmip"
8333 ;;
8334 esac
8335 case `/usr/bin/file conftest.$ac_objext` in
8336 *N32*)
8337 emul="${emul}n32"
8338 ;;
8339 esac
8340 LD="${LD-ld} -m $emul"
8341 fi
8342 rm -rf conftest*
8343 ;;
8344
8345 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8346 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8347 # Find out what ABI is being produced by ac_compile, and set linker
8348 # options accordingly. Note that the listed cases only cover the
8349 # situations where additional linker options are needed (such as when
8350 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8351 # vice versa); the common cases where no linker options are needed do
8352 # not appear in the list.
8353 echo 'int i;' > conftest.$ac_ext
8354 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8355 (eval $ac_compile) 2>&5
8356 ac_status=$?
8357 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8358 test $ac_status = 0; }; then
8359 case `/usr/bin/file conftest.o` in
8360 *32-bit*)
8361 case $host in
8362 x86_64-*kfreebsd*-gnu)
8363 LD="${LD-ld} -m elf_i386_fbsd"
8364 ;;
8365 x86_64-*linux*)
8366 case `/usr/bin/file conftest.o` in
8367 *x86-64*)
8368 LD="${LD-ld} -m elf32_x86_64"
8369 ;;
8370 *)
8371 LD="${LD-ld} -m elf_i386"
8372 ;;
8373 esac
8374 ;;
8375 powerpc64le-*linux*)
8376 LD="${LD-ld} -m elf32lppclinux"
8377 ;;
8378 powerpc64-*linux*)
8379 LD="${LD-ld} -m elf32ppclinux"
8380 ;;
8381 s390x-*linux*)
8382 LD="${LD-ld} -m elf_s390"
8383 ;;
8384 sparc64-*linux*)
8385 LD="${LD-ld} -m elf32_sparc"
8386 ;;
8387 esac
8388 ;;
8389 *64-bit*)
8390 case $host in
8391 x86_64-*kfreebsd*-gnu)
8392 LD="${LD-ld} -m elf_x86_64_fbsd"
8393 ;;
8394 x86_64-*linux*)
8395 LD="${LD-ld} -m elf_x86_64"
8396 ;;
8397 powerpcle-*linux*)
8398 LD="${LD-ld} -m elf64lppc"
8399 ;;
8400 powerpc-*linux*)
8401 LD="${LD-ld} -m elf64ppc"
8402 ;;
8403 s390*-*linux*|s390*-*tpf*)
8404 LD="${LD-ld} -m elf64_s390"
8405 ;;
8406 sparc*-*linux*)
8407 LD="${LD-ld} -m elf64_sparc"
8408 ;;
8409 esac
8410 ;;
8411 esac
8412 fi
8413 rm -rf conftest*
8414 ;;
8415
8416 *-*-sco3.2v5*)
8417 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8418 SAVE_CFLAGS=$CFLAGS
8419 CFLAGS="$CFLAGS -belf"
8420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8421 printf %s "checking whether the C compiler needs -belf... " >&6; }
8422 if test ${lt_cv_cc_needs_belf+y}
8423 then :
8424 printf %s "(cached) " >&6
8425 else $as_nop
8426 ac_ext=c
8427 ac_cpp='$CPP $CPPFLAGS'
8428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8431
8432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8433 /* end confdefs.h. */
8434
8435 int
8436 main (void)
8437 {
8438
8439 ;
8440 return 0;
8441 }
8442 _ACEOF
8443 if ac_fn_c_try_link "$LINENO"
8444 then :
8445 lt_cv_cc_needs_belf=yes
8446 else $as_nop
8447 lt_cv_cc_needs_belf=no
8448 fi
8449 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8450 conftest$ac_exeext conftest.$ac_ext
8451 ac_ext=c
8452 ac_cpp='$CPP $CPPFLAGS'
8453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8456
8457 fi
8458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8459 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
8460 if test yes != "$lt_cv_cc_needs_belf"; then
8461 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8462 CFLAGS=$SAVE_CFLAGS
8463 fi
8464 ;;
8465 *-*solaris*)
8466 # Find out what ABI is being produced by ac_compile, and set linker
8467 # options accordingly.
8468 echo 'int i;' > conftest.$ac_ext
8469 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8470 (eval $ac_compile) 2>&5
8471 ac_status=$?
8472 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8473 test $ac_status = 0; }; then
8474 case `/usr/bin/file conftest.o` in
8475 *64-bit*)
8476 case $lt_cv_prog_gnu_ld in
8477 yes*)
8478 case $host in
8479 i?86-*-solaris*|x86_64-*-solaris*)
8480 LD="${LD-ld} -m elf_x86_64"
8481 ;;
8482 sparc*-*-solaris*)
8483 LD="${LD-ld} -m elf64_sparc"
8484 ;;
8485 esac
8486 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8487 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8488 LD=${LD-ld}_sol2
8489 fi
8490 ;;
8491 *)
8492 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8493 LD="${LD-ld} -64"
8494 fi
8495 ;;
8496 esac
8497 ;;
8498 esac
8499 fi
8500 rm -rf conftest*
8501 ;;
8502 esac
8503
8504 need_locks=$enable_libtool_lock
8505
8506 if test -n "$ac_tool_prefix"; then
8507 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8508 set dummy ${ac_tool_prefix}mt; ac_word=$2
8509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8510 printf %s "checking for $ac_word... " >&6; }
8511 if test ${ac_cv_prog_MANIFEST_TOOL+y}
8512 then :
8513 printf %s "(cached) " >&6
8514 else $as_nop
8515 if test -n "$MANIFEST_TOOL"; then
8516 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8517 else
8518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8519 for as_dir in $PATH
8520 do
8521 IFS=$as_save_IFS
8522 case $as_dir in #(((
8523 '') as_dir=./ ;;
8524 */) ;;
8525 *) as_dir=$as_dir/ ;;
8526 esac
8527 for ac_exec_ext in '' $ac_executable_extensions; do
8528 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8529 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8530 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8531 break 2
8532 fi
8533 done
8534 done
8535 IFS=$as_save_IFS
8536
8537 fi
8538 fi
8539 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8540 if test -n "$MANIFEST_TOOL"; then
8541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8542 printf "%s\n" "$MANIFEST_TOOL" >&6; }
8543 else
8544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8545 printf "%s\n" "no" >&6; }
8546 fi
8547
8548
8549 fi
8550 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8551 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8552 # Extract the first word of "mt", so it can be a program name with args.
8553 set dummy mt; ac_word=$2
8554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8555 printf %s "checking for $ac_word... " >&6; }
8556 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8557 then :
8558 printf %s "(cached) " >&6
8559 else $as_nop
8560 if test -n "$ac_ct_MANIFEST_TOOL"; then
8561 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8562 else
8563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8564 for as_dir in $PATH
8565 do
8566 IFS=$as_save_IFS
8567 case $as_dir in #(((
8568 '') as_dir=./ ;;
8569 */) ;;
8570 *) as_dir=$as_dir/ ;;
8571 esac
8572 for ac_exec_ext in '' $ac_executable_extensions; do
8573 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8574 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8575 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8576 break 2
8577 fi
8578 done
8579 done
8580 IFS=$as_save_IFS
8581
8582 fi
8583 fi
8584 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8585 if test -n "$ac_ct_MANIFEST_TOOL"; then
8586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8587 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
8588 else
8589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8590 printf "%s\n" "no" >&6; }
8591 fi
8592
8593 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8594 MANIFEST_TOOL=":"
8595 else
8596 case $cross_compiling:$ac_tool_warned in
8597 yes:)
8598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8599 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8600 ac_tool_warned=yes ;;
8601 esac
8602 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8603 fi
8604 else
8605 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8606 fi
8607
8608 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8610 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8611 if test ${lt_cv_path_mainfest_tool+y}
8612 then :
8613 printf %s "(cached) " >&6
8614 else $as_nop
8615 lt_cv_path_mainfest_tool=no
8616 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8617 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8618 cat conftest.err >&5
8619 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8620 lt_cv_path_mainfest_tool=yes
8621 fi
8622 rm -f conftest*
8623 fi
8624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8625 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
8626 if test yes != "$lt_cv_path_mainfest_tool"; then
8627 MANIFEST_TOOL=:
8628 fi
8629
8630
8631
8632
8633
8634
8635 case $host_os in
8636 rhapsody* | darwin*)
8637 if test -n "$ac_tool_prefix"; then
8638 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8639 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8641 printf %s "checking for $ac_word... " >&6; }
8642 if test ${ac_cv_prog_DSYMUTIL+y}
8643 then :
8644 printf %s "(cached) " >&6
8645 else $as_nop
8646 if test -n "$DSYMUTIL"; then
8647 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # 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 case $as_dir in #(((
8654 '') as_dir=./ ;;
8655 */) ;;
8656 *) as_dir=$as_dir/ ;;
8657 esac
8658 for ac_exec_ext in '' $ac_executable_extensions; do
8659 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8660 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8661 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8662 break 2
8663 fi
8664 done
8665 done
8666 IFS=$as_save_IFS
8667
8668 fi
8669 fi
8670 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8671 if test -n "$DSYMUTIL"; then
8672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8673 printf "%s\n" "$DSYMUTIL" >&6; }
8674 else
8675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8676 printf "%s\n" "no" >&6; }
8677 fi
8678
8679
8680 fi
8681 if test -z "$ac_cv_prog_DSYMUTIL"; then
8682 ac_ct_DSYMUTIL=$DSYMUTIL
8683 # Extract the first word of "dsymutil", so it can be a program name with args.
8684 set dummy dsymutil; ac_word=$2
8685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8686 printf %s "checking for $ac_word... " >&6; }
8687 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8688 then :
8689 printf %s "(cached) " >&6
8690 else $as_nop
8691 if test -n "$ac_ct_DSYMUTIL"; then
8692 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8693 else
8694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8695 for as_dir in $PATH
8696 do
8697 IFS=$as_save_IFS
8698 case $as_dir in #(((
8699 '') as_dir=./ ;;
8700 */) ;;
8701 *) as_dir=$as_dir/ ;;
8702 esac
8703 for ac_exec_ext in '' $ac_executable_extensions; do
8704 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8705 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8706 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8707 break 2
8708 fi
8709 done
8710 done
8711 IFS=$as_save_IFS
8712
8713 fi
8714 fi
8715 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8716 if test -n "$ac_ct_DSYMUTIL"; then
8717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8718 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8719 else
8720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8721 printf "%s\n" "no" >&6; }
8722 fi
8723
8724 if test "x$ac_ct_DSYMUTIL" = x; then
8725 DSYMUTIL=":"
8726 else
8727 case $cross_compiling:$ac_tool_warned in
8728 yes:)
8729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8730 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8731 ac_tool_warned=yes ;;
8732 esac
8733 DSYMUTIL=$ac_ct_DSYMUTIL
8734 fi
8735 else
8736 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8737 fi
8738
8739 if test -n "$ac_tool_prefix"; then
8740 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8741 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8743 printf %s "checking for $ac_word... " >&6; }
8744 if test ${ac_cv_prog_NMEDIT+y}
8745 then :
8746 printf %s "(cached) " >&6
8747 else $as_nop
8748 if test -n "$NMEDIT"; then
8749 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8750 else
8751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8752 for as_dir in $PATH
8753 do
8754 IFS=$as_save_IFS
8755 case $as_dir in #(((
8756 '') as_dir=./ ;;
8757 */) ;;
8758 *) as_dir=$as_dir/ ;;
8759 esac
8760 for ac_exec_ext in '' $ac_executable_extensions; do
8761 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8762 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8763 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8764 break 2
8765 fi
8766 done
8767 done
8768 IFS=$as_save_IFS
8769
8770 fi
8771 fi
8772 NMEDIT=$ac_cv_prog_NMEDIT
8773 if test -n "$NMEDIT"; then
8774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8775 printf "%s\n" "$NMEDIT" >&6; }
8776 else
8777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8778 printf "%s\n" "no" >&6; }
8779 fi
8780
8781
8782 fi
8783 if test -z "$ac_cv_prog_NMEDIT"; then
8784 ac_ct_NMEDIT=$NMEDIT
8785 # Extract the first word of "nmedit", so it can be a program name with args.
8786 set dummy nmedit; ac_word=$2
8787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8788 printf %s "checking for $ac_word... " >&6; }
8789 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8790 then :
8791 printf %s "(cached) " >&6
8792 else $as_nop
8793 if test -n "$ac_ct_NMEDIT"; then
8794 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8795 else
8796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8797 for as_dir in $PATH
8798 do
8799 IFS=$as_save_IFS
8800 case $as_dir in #(((
8801 '') as_dir=./ ;;
8802 */) ;;
8803 *) as_dir=$as_dir/ ;;
8804 esac
8805 for ac_exec_ext in '' $ac_executable_extensions; do
8806 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8807 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8808 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8809 break 2
8810 fi
8811 done
8812 done
8813 IFS=$as_save_IFS
8814
8815 fi
8816 fi
8817 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8818 if test -n "$ac_ct_NMEDIT"; then
8819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8820 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8821 else
8822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8823 printf "%s\n" "no" >&6; }
8824 fi
8825
8826 if test "x$ac_ct_NMEDIT" = x; then
8827 NMEDIT=":"
8828 else
8829 case $cross_compiling:$ac_tool_warned in
8830 yes:)
8831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8832 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8833 ac_tool_warned=yes ;;
8834 esac
8835 NMEDIT=$ac_ct_NMEDIT
8836 fi
8837 else
8838 NMEDIT="$ac_cv_prog_NMEDIT"
8839 fi
8840
8841 if test -n "$ac_tool_prefix"; then
8842 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8843 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8845 printf %s "checking for $ac_word... " >&6; }
8846 if test ${ac_cv_prog_LIPO+y}
8847 then :
8848 printf %s "(cached) " >&6
8849 else $as_nop
8850 if test -n "$LIPO"; then
8851 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8852 else
8853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8854 for as_dir in $PATH
8855 do
8856 IFS=$as_save_IFS
8857 case $as_dir in #(((
8858 '') as_dir=./ ;;
8859 */) ;;
8860 *) as_dir=$as_dir/ ;;
8861 esac
8862 for ac_exec_ext in '' $ac_executable_extensions; do
8863 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8864 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8865 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8866 break 2
8867 fi
8868 done
8869 done
8870 IFS=$as_save_IFS
8871
8872 fi
8873 fi
8874 LIPO=$ac_cv_prog_LIPO
8875 if test -n "$LIPO"; then
8876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8877 printf "%s\n" "$LIPO" >&6; }
8878 else
8879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8880 printf "%s\n" "no" >&6; }
8881 fi
8882
8883
8884 fi
8885 if test -z "$ac_cv_prog_LIPO"; then
8886 ac_ct_LIPO=$LIPO
8887 # Extract the first word of "lipo", so it can be a program name with args.
8888 set dummy lipo; ac_word=$2
8889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8890 printf %s "checking for $ac_word... " >&6; }
8891 if test ${ac_cv_prog_ac_ct_LIPO+y}
8892 then :
8893 printf %s "(cached) " >&6
8894 else $as_nop
8895 if test -n "$ac_ct_LIPO"; then
8896 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8897 else
8898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8899 for as_dir in $PATH
8900 do
8901 IFS=$as_save_IFS
8902 case $as_dir in #(((
8903 '') as_dir=./ ;;
8904 */) ;;
8905 *) as_dir=$as_dir/ ;;
8906 esac
8907 for ac_exec_ext in '' $ac_executable_extensions; do
8908 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8909 ac_cv_prog_ac_ct_LIPO="lipo"
8910 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8911 break 2
8912 fi
8913 done
8914 done
8915 IFS=$as_save_IFS
8916
8917 fi
8918 fi
8919 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8920 if test -n "$ac_ct_LIPO"; then
8921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8922 printf "%s\n" "$ac_ct_LIPO" >&6; }
8923 else
8924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8925 printf "%s\n" "no" >&6; }
8926 fi
8927
8928 if test "x$ac_ct_LIPO" = x; then
8929 LIPO=":"
8930 else
8931 case $cross_compiling:$ac_tool_warned in
8932 yes:)
8933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8934 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8935 ac_tool_warned=yes ;;
8936 esac
8937 LIPO=$ac_ct_LIPO
8938 fi
8939 else
8940 LIPO="$ac_cv_prog_LIPO"
8941 fi
8942
8943 if test -n "$ac_tool_prefix"; then
8944 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8945 set dummy ${ac_tool_prefix}otool; ac_word=$2
8946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8947 printf %s "checking for $ac_word... " >&6; }
8948 if test ${ac_cv_prog_OTOOL+y}
8949 then :
8950 printf %s "(cached) " >&6
8951 else $as_nop
8952 if test -n "$OTOOL"; then
8953 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8954 else
8955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8956 for as_dir in $PATH
8957 do
8958 IFS=$as_save_IFS
8959 case $as_dir in #(((
8960 '') as_dir=./ ;;
8961 */) ;;
8962 *) as_dir=$as_dir/ ;;
8963 esac
8964 for ac_exec_ext in '' $ac_executable_extensions; do
8965 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8966 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8967 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8968 break 2
8969 fi
8970 done
8971 done
8972 IFS=$as_save_IFS
8973
8974 fi
8975 fi
8976 OTOOL=$ac_cv_prog_OTOOL
8977 if test -n "$OTOOL"; then
8978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8979 printf "%s\n" "$OTOOL" >&6; }
8980 else
8981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8982 printf "%s\n" "no" >&6; }
8983 fi
8984
8985
8986 fi
8987 if test -z "$ac_cv_prog_OTOOL"; then
8988 ac_ct_OTOOL=$OTOOL
8989 # Extract the first word of "otool", so it can be a program name with args.
8990 set dummy otool; ac_word=$2
8991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8992 printf %s "checking for $ac_word... " >&6; }
8993 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8994 then :
8995 printf %s "(cached) " >&6
8996 else $as_nop
8997 if test -n "$ac_ct_OTOOL"; then
8998 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8999 else
9000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9001 for as_dir in $PATH
9002 do
9003 IFS=$as_save_IFS
9004 case $as_dir in #(((
9005 '') as_dir=./ ;;
9006 */) ;;
9007 *) as_dir=$as_dir/ ;;
9008 esac
9009 for ac_exec_ext in '' $ac_executable_extensions; do
9010 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9011 ac_cv_prog_ac_ct_OTOOL="otool"
9012 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9013 break 2
9014 fi
9015 done
9016 done
9017 IFS=$as_save_IFS
9018
9019 fi
9020 fi
9021 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9022 if test -n "$ac_ct_OTOOL"; then
9023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9024 printf "%s\n" "$ac_ct_OTOOL" >&6; }
9025 else
9026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9027 printf "%s\n" "no" >&6; }
9028 fi
9029
9030 if test "x$ac_ct_OTOOL" = x; then
9031 OTOOL=":"
9032 else
9033 case $cross_compiling:$ac_tool_warned in
9034 yes:)
9035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9036 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9037 ac_tool_warned=yes ;;
9038 esac
9039 OTOOL=$ac_ct_OTOOL
9040 fi
9041 else
9042 OTOOL="$ac_cv_prog_OTOOL"
9043 fi
9044
9045 if test -n "$ac_tool_prefix"; then
9046 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9047 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9049 printf %s "checking for $ac_word... " >&6; }
9050 if test ${ac_cv_prog_OTOOL64+y}
9051 then :
9052 printf %s "(cached) " >&6
9053 else $as_nop
9054 if test -n "$OTOOL64"; then
9055 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9056 else
9057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9058 for as_dir in $PATH
9059 do
9060 IFS=$as_save_IFS
9061 case $as_dir in #(((
9062 '') as_dir=./ ;;
9063 */) ;;
9064 *) as_dir=$as_dir/ ;;
9065 esac
9066 for ac_exec_ext in '' $ac_executable_extensions; do
9067 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9068 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9069 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9070 break 2
9071 fi
9072 done
9073 done
9074 IFS=$as_save_IFS
9075
9076 fi
9077 fi
9078 OTOOL64=$ac_cv_prog_OTOOL64
9079 if test -n "$OTOOL64"; then
9080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9081 printf "%s\n" "$OTOOL64" >&6; }
9082 else
9083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9084 printf "%s\n" "no" >&6; }
9085 fi
9086
9087
9088 fi
9089 if test -z "$ac_cv_prog_OTOOL64"; then
9090 ac_ct_OTOOL64=$OTOOL64
9091 # Extract the first word of "otool64", so it can be a program name with args.
9092 set dummy otool64; ac_word=$2
9093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9094 printf %s "checking for $ac_word... " >&6; }
9095 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
9096 then :
9097 printf %s "(cached) " >&6
9098 else $as_nop
9099 if test -n "$ac_ct_OTOOL64"; then
9100 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9101 else
9102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9103 for as_dir in $PATH
9104 do
9105 IFS=$as_save_IFS
9106 case $as_dir in #(((
9107 '') as_dir=./ ;;
9108 */) ;;
9109 *) as_dir=$as_dir/ ;;
9110 esac
9111 for ac_exec_ext in '' $ac_executable_extensions; do
9112 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9113 ac_cv_prog_ac_ct_OTOOL64="otool64"
9114 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9115 break 2
9116 fi
9117 done
9118 done
9119 IFS=$as_save_IFS
9120
9121 fi
9122 fi
9123 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9124 if test -n "$ac_ct_OTOOL64"; then
9125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9126 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
9127 else
9128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9129 printf "%s\n" "no" >&6; }
9130 fi
9131
9132 if test "x$ac_ct_OTOOL64" = x; then
9133 OTOOL64=":"
9134 else
9135 case $cross_compiling:$ac_tool_warned in
9136 yes:)
9137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9138 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9139 ac_tool_warned=yes ;;
9140 esac
9141 OTOOL64=$ac_ct_OTOOL64
9142 fi
9143 else
9144 OTOOL64="$ac_cv_prog_OTOOL64"
9145 fi
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9174 printf %s "checking for -single_module linker flag... " >&6; }
9175 if test ${lt_cv_apple_cc_single_mod+y}
9176 then :
9177 printf %s "(cached) " >&6
9178 else $as_nop
9179 lt_cv_apple_cc_single_mod=no
9180 if test -z "$LT_MULTI_MODULE"; then
9181 # By default we will add the -single_module flag. You can override
9182 # by either setting the environment variable LT_MULTI_MODULE
9183 # non-empty at configure time, or by adding -multi_module to the
9184 # link flags.
9185 rm -rf libconftest.dylib*
9186 echo "int foo(void){return 1;}" > conftest.c
9187 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9188 -dynamiclib -Wl,-single_module conftest.c" >&5
9189 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9190 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9191 _lt_result=$?
9192 # If there is a non-empty error log, and "single_module"
9193 # appears in it, assume the flag caused a linker warning
9194 if test -s conftest.err && $GREP single_module conftest.err; then
9195 cat conftest.err >&5
9196 # Otherwise, if the output was created with a 0 exit code from
9197 # the compiler, it worked.
9198 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9199 lt_cv_apple_cc_single_mod=yes
9200 else
9201 cat conftest.err >&5
9202 fi
9203 rm -rf libconftest.dylib*
9204 rm -f conftest.*
9205 fi
9206 fi
9207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9208 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
9209
9210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9211 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
9212 if test ${lt_cv_ld_exported_symbols_list+y}
9213 then :
9214 printf %s "(cached) " >&6
9215 else $as_nop
9216 lt_cv_ld_exported_symbols_list=no
9217 save_LDFLAGS=$LDFLAGS
9218 echo "_main" > conftest.sym
9219 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9221 /* end confdefs.h. */
9222
9223 int
9224 main (void)
9225 {
9226
9227 ;
9228 return 0;
9229 }
9230 _ACEOF
9231 if ac_fn_c_try_link "$LINENO"
9232 then :
9233 lt_cv_ld_exported_symbols_list=yes
9234 else $as_nop
9235 lt_cv_ld_exported_symbols_list=no
9236 fi
9237 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9238 conftest$ac_exeext conftest.$ac_ext
9239 LDFLAGS=$save_LDFLAGS
9240
9241 fi
9242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9243 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
9244
9245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9246 printf %s "checking for -force_load linker flag... " >&6; }
9247 if test ${lt_cv_ld_force_load+y}
9248 then :
9249 printf %s "(cached) " >&6
9250 else $as_nop
9251 lt_cv_ld_force_load=no
9252 cat > conftest.c << _LT_EOF
9253 int forced_loaded() { return 2;}
9254 _LT_EOF
9255 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9256 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9257 echo "$AR cru libconftest.a conftest.o" >&5
9258 $AR cru libconftest.a conftest.o 2>&5
9259 echo "$RANLIB libconftest.a" >&5
9260 $RANLIB libconftest.a 2>&5
9261 cat > conftest.c << _LT_EOF
9262 int main() { return 0;}
9263 _LT_EOF
9264 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9265 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9266 _lt_result=$?
9267 if test -s conftest.err && $GREP force_load conftest.err; then
9268 cat conftest.err >&5
9269 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9270 lt_cv_ld_force_load=yes
9271 else
9272 cat conftest.err >&5
9273 fi
9274 rm -f conftest.err libconftest.a conftest conftest.c
9275 rm -rf conftest.dSYM
9276
9277 fi
9278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9279 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
9280 case $host_os in
9281 rhapsody* | darwin1.[012])
9282 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9283 darwin1.*)
9284 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9285 darwin*) # darwin 5.x on
9286 # if running on 10.5 or later, the deployment target defaults
9287 # to the OS version, if on x86, and 10.4, the deployment
9288 # target defaults to 10.4. Don't you love it?
9289 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9290 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9291 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9292 10.[012][,.]*)
9293 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9294 10.*)
9295 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9296 esac
9297 ;;
9298 esac
9299 if test yes = "$lt_cv_apple_cc_single_mod"; then
9300 _lt_dar_single_mod='$single_module'
9301 fi
9302 if test yes = "$lt_cv_ld_exported_symbols_list"; then
9303 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9304 else
9305 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9306 fi
9307 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9308 _lt_dsymutil='~$DSYMUTIL $lib || :'
9309 else
9310 _lt_dsymutil=
9311 fi
9312 ;;
9313 esac
9314
9315 # func_munge_path_list VARIABLE PATH
9316 # -----------------------------------
9317 # VARIABLE is name of variable containing _space_ separated list of
9318 # directories to be munged by the contents of PATH, which is string
9319 # having a format:
9320 # "DIR[:DIR]:"
9321 # string "DIR[ DIR]" will be prepended to VARIABLE
9322 # ":DIR[:DIR]"
9323 # string "DIR[ DIR]" will be appended to VARIABLE
9324 # "DIRP[:DIRP]::[DIRA:]DIRA"
9325 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9326 # "DIRA[ DIRA]" will be appended to VARIABLE
9327 # "DIR[:DIR]"
9328 # VARIABLE will be replaced by "DIR[ DIR]"
9329 func_munge_path_list ()
9330 {
9331 case x$2 in
9332 x)
9333 ;;
9334 *:)
9335 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9336 ;;
9337 x:*)
9338 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9339 ;;
9340 *::*)
9341 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9342 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9343 ;;
9344 *)
9345 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9346 ;;
9347 esac
9348 }
9349
9350 ac_header= ac_cache=
9351 for ac_item in $ac_header_c_list
9352 do
9353 if test $ac_cache; then
9354 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
9355 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
9356 printf "%s\n" "#define $ac_item 1" >> confdefs.h
9357 fi
9358 ac_header= ac_cache=
9359 elif test $ac_header; then
9360 ac_cache=$ac_item
9361 else
9362 ac_header=$ac_item
9363 fi
9364 done
9365
9366
9367
9368
9369
9370
9371
9372
9373 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
9374 then :
9375
9376 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
9377
9378 fi
9379 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9380 "
9381 if test "x$ac_cv_header_dlfcn_h" = xyes
9382 then :
9383 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
9384
9385 fi
9386
9387
9388
9389
9390 func_stripname_cnf ()
9391 {
9392 case $2 in
9393 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
9394 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
9395 esac
9396 } # func_stripname_cnf
9397
9398
9399
9400
9401
9402 # Set options
9403 # Check whether --enable-static was given.
9404 if test ${enable_static+y}
9405 then :
9406 enableval=$enable_static; p=${PACKAGE-default}
9407 case $enableval in
9408 yes) enable_static=yes ;;
9409 no) enable_static=no ;;
9410 *)
9411 enable_static=no
9412 # Look at the argument we got. We use all the common list separators.
9413 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9414 for pkg in $enableval; do
9415 IFS=$lt_save_ifs
9416 if test "X$pkg" = "X$p"; then
9417 enable_static=yes
9418 fi
9419 done
9420 IFS=$lt_save_ifs
9421 ;;
9422 esac
9423 else $as_nop
9424 enable_static=no
9425 fi
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436 enable_dlopen=no
9437
9438
9439 enable_win32_dll=no
9440
9441
9442 # Check whether --enable-shared was given.
9443 if test ${enable_shared+y}
9444 then :
9445 enableval=$enable_shared; p=${PACKAGE-default}
9446 case $enableval in
9447 yes) enable_shared=yes ;;
9448 no) enable_shared=no ;;
9449 *)
9450 enable_shared=no
9451 # Look at the argument we got. We use all the common list separators.
9452 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9453 for pkg in $enableval; do
9454 IFS=$lt_save_ifs
9455 if test "X$pkg" = "X$p"; then
9456 enable_shared=yes
9457 fi
9458 done
9459 IFS=$lt_save_ifs
9460 ;;
9461 esac
9462 else $as_nop
9463 enable_shared=yes
9464 fi
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476 # Check whether --with-pic was given.
9477 if test ${with_pic+y}
9478 then :
9479 withval=$with_pic; lt_p=${PACKAGE-default}
9480 case $withval in
9481 yes|no) pic_mode=$withval ;;
9482 *)
9483 pic_mode=default
9484 # Look at the argument we got. We use all the common list separators.
9485 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9486 for lt_pkg in $withval; do
9487 IFS=$lt_save_ifs
9488 if test "X$lt_pkg" = "X$lt_p"; then
9489 pic_mode=yes
9490 fi
9491 done
9492 IFS=$lt_save_ifs
9493 ;;
9494 esac
9495 else $as_nop
9496 pic_mode=default
9497 fi
9498
9499
9500
9501
9502
9503
9504
9505
9506 # Check whether --enable-fast-install was given.
9507 if test ${enable_fast_install+y}
9508 then :
9509 enableval=$enable_fast_install; p=${PACKAGE-default}
9510 case $enableval in
9511 yes) enable_fast_install=yes ;;
9512 no) enable_fast_install=no ;;
9513 *)
9514 enable_fast_install=no
9515 # Look at the argument we got. We use all the common list separators.
9516 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9517 for pkg in $enableval; do
9518 IFS=$lt_save_ifs
9519 if test "X$pkg" = "X$p"; then
9520 enable_fast_install=yes
9521 fi
9522 done
9523 IFS=$lt_save_ifs
9524 ;;
9525 esac
9526 else $as_nop
9527 enable_fast_install=yes
9528 fi
9529
9530
9531
9532
9533
9534
9535
9536
9537 shared_archive_member_spec=
9538 case $host,$enable_shared in
9539 power*-*-aix[5-9]*,yes)
9540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9541 printf %s "checking which variant of shared library versioning to provide... " >&6; }
9542
9543 # Check whether --with-aix-soname was given.
9544 if test ${with_aix_soname+y}
9545 then :
9546 withval=$with_aix_soname; case $withval in
9547 aix|svr4|both)
9548 ;;
9549 *)
9550 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9551 ;;
9552 esac
9553 lt_cv_with_aix_soname=$with_aix_soname
9554 else $as_nop
9555 if test ${lt_cv_with_aix_soname+y}
9556 then :
9557 printf %s "(cached) " >&6
9558 else $as_nop
9559 lt_cv_with_aix_soname=aix
9560 fi
9561
9562 with_aix_soname=$lt_cv_with_aix_soname
9563 fi
9564
9565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9566 printf "%s\n" "$with_aix_soname" >&6; }
9567 if test aix != "$with_aix_soname"; then
9568 # For the AIX way of multilib, we name the shared archive member
9569 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9570 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9571 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9572 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9573 if test 64 = "${OBJECT_MODE-32}"; then
9574 shared_archive_member_spec=shr_64
9575 else
9576 shared_archive_member_spec=shr
9577 fi
9578 fi
9579 ;;
9580 *)
9581 with_aix_soname=aix
9582 ;;
9583 esac
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594 # This can be used to rebuild libtool when needed
9595 LIBTOOL_DEPS=$ltmain
9596
9597 # Always use our own libtool.
9598 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629 test -z "$LN_S" && LN_S="ln -s"
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644 if test -n "${ZSH_VERSION+set}"; then
9645 setopt NO_GLOB_SUBST
9646 fi
9647
9648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9649 printf %s "checking for objdir... " >&6; }
9650 if test ${lt_cv_objdir+y}
9651 then :
9652 printf %s "(cached) " >&6
9653 else $as_nop
9654 rm -f .libs 2>/dev/null
9655 mkdir .libs 2>/dev/null
9656 if test -d .libs; then
9657 lt_cv_objdir=.libs
9658 else
9659 # MS-DOS does not allow filenames that begin with a dot.
9660 lt_cv_objdir=_libs
9661 fi
9662 rmdir .libs 2>/dev/null
9663 fi
9664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9665 printf "%s\n" "$lt_cv_objdir" >&6; }
9666 objdir=$lt_cv_objdir
9667
9668
9669
9670
9671
9672 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
9673
9674
9675
9676
9677 case $host_os in
9678 aix3*)
9679 # AIX sometimes has problems with the GCC collect2 program. For some
9680 # reason, if we set the COLLECT_NAMES environment variable, the problems
9681 # vanish in a puff of smoke.
9682 if test set != "${COLLECT_NAMES+set}"; then
9683 COLLECT_NAMES=
9684 export COLLECT_NAMES
9685 fi
9686 ;;
9687 esac
9688
9689 # Global variables:
9690 ofile=libtool
9691 can_build_shared=yes
9692
9693 # All known linkers require a '.a' archive for static linking (except MSVC,
9694 # which needs '.lib').
9695 libext=a
9696
9697 with_gnu_ld=$lt_cv_prog_gnu_ld
9698
9699 old_CC=$CC
9700 old_CFLAGS=$CFLAGS
9701
9702 # Set sane defaults for various variables
9703 test -z "$CC" && CC=cc
9704 test -z "$LTCC" && LTCC=$CC
9705 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9706 test -z "$LD" && LD=ld
9707 test -z "$ac_objext" && ac_objext=o
9708
9709 func_cc_basename $compiler
9710 cc_basename=$func_cc_basename_result
9711
9712
9713 # Only perform the check for file, if the check method requires it
9714 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9715 case $deplibs_check_method in
9716 file_magic*)
9717 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9719 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9720 if test ${lt_cv_path_MAGIC_CMD+y}
9721 then :
9722 printf %s "(cached) " >&6
9723 else $as_nop
9724 case $MAGIC_CMD in
9725 [\\/*] | ?:[\\/]*)
9726 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9727 ;;
9728 *)
9729 lt_save_MAGIC_CMD=$MAGIC_CMD
9730 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9731 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9732 for ac_dir in $ac_dummy; do
9733 IFS=$lt_save_ifs
9734 test -z "$ac_dir" && ac_dir=.
9735 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9736 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9737 if test -n "$file_magic_test_file"; then
9738 case $deplibs_check_method in
9739 "file_magic "*)
9740 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9741 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9742 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9743 $EGREP "$file_magic_regex" > /dev/null; then
9744 :
9745 else
9746 cat <<_LT_EOF 1>&2
9747
9748 *** Warning: the command libtool uses to detect shared libraries,
9749 *** $file_magic_cmd, produces output that libtool cannot recognize.
9750 *** The result is that libtool may fail to recognize shared libraries
9751 *** as such. This will affect the creation of libtool libraries that
9752 *** depend on shared libraries, but programs linked with such libtool
9753 *** libraries will work regardless of this problem. Nevertheless, you
9754 *** may want to report the problem to your system manager and/or to
9755 *** [email protected]
9756
9757 _LT_EOF
9758 fi ;;
9759 esac
9760 fi
9761 break
9762 fi
9763 done
9764 IFS=$lt_save_ifs
9765 MAGIC_CMD=$lt_save_MAGIC_CMD
9766 ;;
9767 esac
9768 fi
9769
9770 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9771 if test -n "$MAGIC_CMD"; then
9772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9773 printf "%s\n" "$MAGIC_CMD" >&6; }
9774 else
9775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9776 printf "%s\n" "no" >&6; }
9777 fi
9778
9779
9780
9781
9782
9783 if test -z "$lt_cv_path_MAGIC_CMD"; then
9784 if test -n "$ac_tool_prefix"; then
9785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9786 printf %s "checking for file... " >&6; }
9787 if test ${lt_cv_path_MAGIC_CMD+y}
9788 then :
9789 printf %s "(cached) " >&6
9790 else $as_nop
9791 case $MAGIC_CMD in
9792 [\\/*] | ?:[\\/]*)
9793 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9794 ;;
9795 *)
9796 lt_save_MAGIC_CMD=$MAGIC_CMD
9797 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9798 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9799 for ac_dir in $ac_dummy; do
9800 IFS=$lt_save_ifs
9801 test -z "$ac_dir" && ac_dir=.
9802 if test -f "$ac_dir/file"; then
9803 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9804 if test -n "$file_magic_test_file"; then
9805 case $deplibs_check_method in
9806 "file_magic "*)
9807 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9808 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9809 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9810 $EGREP "$file_magic_regex" > /dev/null; then
9811 :
9812 else
9813 cat <<_LT_EOF 1>&2
9814
9815 *** Warning: the command libtool uses to detect shared libraries,
9816 *** $file_magic_cmd, produces output that libtool cannot recognize.
9817 *** The result is that libtool may fail to recognize shared libraries
9818 *** as such. This will affect the creation of libtool libraries that
9819 *** depend on shared libraries, but programs linked with such libtool
9820 *** libraries will work regardless of this problem. Nevertheless, you
9821 *** may want to report the problem to your system manager and/or to
9822 *** [email protected]
9823
9824 _LT_EOF
9825 fi ;;
9826 esac
9827 fi
9828 break
9829 fi
9830 done
9831 IFS=$lt_save_ifs
9832 MAGIC_CMD=$lt_save_MAGIC_CMD
9833 ;;
9834 esac
9835 fi
9836
9837 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9838 if test -n "$MAGIC_CMD"; then
9839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9840 printf "%s\n" "$MAGIC_CMD" >&6; }
9841 else
9842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9843 printf "%s\n" "no" >&6; }
9844 fi
9845
9846
9847 else
9848 MAGIC_CMD=:
9849 fi
9850 fi
9851
9852 fi
9853 ;;
9854 esac
9855
9856 # Use C for the default configuration in the libtool script
9857
9858 lt_save_CC=$CC
9859 ac_ext=c
9860 ac_cpp='$CPP $CPPFLAGS'
9861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9864
9865
9866 # Source file extension for C test sources.
9867 ac_ext=c
9868
9869 # Object file extension for compiled C test sources.
9870 objext=o
9871 objext=$objext
9872
9873 # Code to be used in simple compile tests
9874 lt_simple_compile_test_code="int some_variable = 0;"
9875
9876 # Code to be used in simple link tests
9877 lt_simple_link_test_code='int main(){return(0);}'
9878
9879
9880
9881
9882
9883
9884
9885 # If no C compiler was specified, use CC.
9886 LTCC=${LTCC-"$CC"}
9887
9888 # If no C compiler flags were specified, use CFLAGS.
9889 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9890
9891 # Allow CC to be a program name with arguments.
9892 compiler=$CC
9893
9894 # Save the default compiler, since it gets overwritten when the other
9895 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9896 compiler_DEFAULT=$CC
9897
9898 # save warnings/boilerplate of simple test code
9899 ac_outfile=conftest.$ac_objext
9900 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9901 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9902 _lt_compiler_boilerplate=`cat conftest.err`
9903 $RM conftest*
9904
9905 ac_outfile=conftest.$ac_objext
9906 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9907 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9908 _lt_linker_boilerplate=`cat conftest.err`
9909 $RM -r conftest*
9910
9911
9912 ## CAVEAT EMPTOR:
9913 ## There is no encapsulation within the following macros, do not change
9914 ## the running order or otherwise move them around unless you know exactly
9915 ## what you are doing...
9916 if test -n "$compiler"; then
9917
9918 lt_prog_compiler_no_builtin_flag=
9919
9920 if test yes = "$GCC"; then
9921 case $cc_basename in
9922 nvcc*)
9923 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9924 *)
9925 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9926 esac
9927
9928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9929 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9930 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9931 then :
9932 printf %s "(cached) " >&6
9933 else $as_nop
9934 lt_cv_prog_compiler_rtti_exceptions=no
9935 ac_outfile=conftest.$ac_objext
9936 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9937 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9938 # Insert the option either (1) after the last *FLAGS variable, or
9939 # (2) before a word containing "conftest.", or (3) at the end.
9940 # Note that $ac_compile itself does not contain backslashes and begins
9941 # with a dollar sign (not a hyphen), so the echo should work correctly.
9942 # The option is referenced via a variable to avoid confusing sed.
9943 lt_compile=`echo "$ac_compile" | $SED \
9944 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9945 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9946 -e 's:$: $lt_compiler_flag:'`
9947 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9948 (eval "$lt_compile" 2>conftest.err)
9949 ac_status=$?
9950 cat conftest.err >&5
9951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9952 if (exit $ac_status) && test -s "$ac_outfile"; then
9953 # The compiler can only warn and ignore the option if not recognized
9954 # So say no if there are warnings other than the usual output.
9955 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9956 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9957 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9958 lt_cv_prog_compiler_rtti_exceptions=yes
9959 fi
9960 fi
9961 $RM conftest*
9962
9963 fi
9964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9965 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9966
9967 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9968 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9969 else
9970 :
9971 fi
9972
9973 fi
9974
9975
9976
9977
9978
9979
9980 lt_prog_compiler_wl=
9981 lt_prog_compiler_pic=
9982 lt_prog_compiler_static=
9983
9984
9985 if test yes = "$GCC"; then
9986 lt_prog_compiler_wl='-Wl,'
9987 lt_prog_compiler_static='-static'
9988
9989 case $host_os in
9990 aix*)
9991 # All AIX code is PIC.
9992 if test ia64 = "$host_cpu"; then
9993 # AIX 5 now supports IA64 processor
9994 lt_prog_compiler_static='-Bstatic'
9995 fi
9996 lt_prog_compiler_pic='-fPIC'
9997 ;;
9998
9999 amigaos*)
10000 case $host_cpu in
10001 powerpc)
10002 # see comment about AmigaOS4 .so support
10003 lt_prog_compiler_pic='-fPIC'
10004 ;;
10005 m68k)
10006 # FIXME: we need at least 68020 code to build shared libraries, but
10007 # adding the '-m68020' flag to GCC prevents building anything better,
10008 # like '-m68040'.
10009 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10010 ;;
10011 esac
10012 ;;
10013
10014 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10015 # PIC is the default for these OSes.
10016 ;;
10017
10018 mingw* | cygwin* | pw32* | os2* | cegcc*)
10019 # This hack is so that the source file can tell whether it is being
10020 # built for inclusion in a dll (and should export symbols for example).
10021 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10022 # (--disable-auto-import) libraries
10023 lt_prog_compiler_pic='-DDLL_EXPORT'
10024 case $host_os in
10025 os2*)
10026 lt_prog_compiler_static='$wl-static'
10027 ;;
10028 esac
10029 ;;
10030
10031 darwin* | rhapsody*)
10032 # PIC is the default on this platform
10033 # Common symbols not allowed in MH_DYLIB files
10034 lt_prog_compiler_pic='-fno-common'
10035 ;;
10036
10037 haiku*)
10038 # PIC is the default for Haiku.
10039 # The "-static" flag exists, but is broken.
10040 lt_prog_compiler_static=
10041 ;;
10042
10043 hpux*)
10044 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10045 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10046 # sets the default TLS model and affects inlining.
10047 case $host_cpu in
10048 hppa*64*)
10049 # +Z the default
10050 ;;
10051 *)
10052 lt_prog_compiler_pic='-fPIC'
10053 ;;
10054 esac
10055 ;;
10056
10057 interix[3-9]*)
10058 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10059 # Instead, we relocate shared libraries at runtime.
10060 ;;
10061
10062 msdosdjgpp*)
10063 # Just because we use GCC doesn't mean we suddenly get shared libraries
10064 # on systems that don't support them.
10065 lt_prog_compiler_can_build_shared=no
10066 enable_shared=no
10067 ;;
10068
10069 *nto* | *qnx*)
10070 # QNX uses GNU C++, but need to define -shared option too, otherwise
10071 # it will coredump.
10072 lt_prog_compiler_pic='-fPIC -shared'
10073 ;;
10074
10075 sysv4*MP*)
10076 if test -d /usr/nec; then
10077 lt_prog_compiler_pic=-Kconform_pic
10078 fi
10079 ;;
10080
10081 *)
10082 lt_prog_compiler_pic='-fPIC'
10083 ;;
10084 esac
10085
10086 case $cc_basename in
10087 nvcc*) # Cuda Compiler Driver 2.2
10088 lt_prog_compiler_wl='-Xlinker '
10089 if test -n "$lt_prog_compiler_pic"; then
10090 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10091 fi
10092 ;;
10093 esac
10094 else
10095 # PORTME Check for flag to pass linker flags through the system compiler.
10096 case $host_os in
10097 aix*)
10098 lt_prog_compiler_wl='-Wl,'
10099 if test ia64 = "$host_cpu"; then
10100 # AIX 5 now supports IA64 processor
10101 lt_prog_compiler_static='-Bstatic'
10102 else
10103 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10104 fi
10105 ;;
10106
10107 darwin* | rhapsody*)
10108 # PIC is the default on this platform
10109 # Common symbols not allowed in MH_DYLIB files
10110 lt_prog_compiler_pic='-fno-common'
10111 case $cc_basename in
10112 nagfor*)
10113 # NAG Fortran compiler
10114 lt_prog_compiler_wl='-Wl,-Wl,,'
10115 lt_prog_compiler_pic='-PIC'
10116 lt_prog_compiler_static='-Bstatic'
10117 ;;
10118 esac
10119 ;;
10120
10121 mingw* | cygwin* | pw32* | os2* | cegcc*)
10122 # This hack is so that the source file can tell whether it is being
10123 # built for inclusion in a dll (and should export symbols for example).
10124 lt_prog_compiler_pic='-DDLL_EXPORT'
10125 case $host_os in
10126 os2*)
10127 lt_prog_compiler_static='$wl-static'
10128 ;;
10129 esac
10130 ;;
10131
10132 hpux9* | hpux10* | hpux11*)
10133 lt_prog_compiler_wl='-Wl,'
10134 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10135 # not for PA HP-UX.
10136 case $host_cpu in
10137 hppa*64*|ia64*)
10138 # +Z the default
10139 ;;
10140 *)
10141 lt_prog_compiler_pic='+Z'
10142 ;;
10143 esac
10144 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10145 lt_prog_compiler_static='$wl-a ${wl}archive'
10146 ;;
10147
10148 irix5* | irix6* | nonstopux*)
10149 lt_prog_compiler_wl='-Wl,'
10150 # PIC (with -KPIC) is the default.
10151 lt_prog_compiler_static='-non_shared'
10152 ;;
10153
10154 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10155 case $cc_basename in
10156 # old Intel for x86_64, which still supported -KPIC.
10157 ecc*)
10158 lt_prog_compiler_wl='-Wl,'
10159 lt_prog_compiler_pic='-KPIC'
10160 lt_prog_compiler_static='-static'
10161 ;;
10162 # icc used to be incompatible with GCC.
10163 # ICC 10 doesn't accept -KPIC any more.
10164 icc* | ifort*)
10165 lt_prog_compiler_wl='-Wl,'
10166 lt_prog_compiler_pic='-fPIC'
10167 lt_prog_compiler_static='-static'
10168 ;;
10169 # Lahey Fortran 8.1.
10170 lf95*)
10171 lt_prog_compiler_wl='-Wl,'
10172 lt_prog_compiler_pic='--shared'
10173 lt_prog_compiler_static='--static'
10174 ;;
10175 nagfor*)
10176 # NAG Fortran compiler
10177 lt_prog_compiler_wl='-Wl,-Wl,,'
10178 lt_prog_compiler_pic='-PIC'
10179 lt_prog_compiler_static='-Bstatic'
10180 ;;
10181 tcc*)
10182 # Fabrice Bellard et al's Tiny C Compiler
10183 lt_prog_compiler_wl='-Wl,'
10184 lt_prog_compiler_pic='-fPIC'
10185 lt_prog_compiler_static='-static'
10186 ;;
10187 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10188 # Portland Group compilers (*not* the Pentium gcc compiler,
10189 # which looks to be a dead project)
10190 lt_prog_compiler_wl='-Wl,'
10191 lt_prog_compiler_pic='-fpic'
10192 lt_prog_compiler_static='-Bstatic'
10193 ;;
10194 ccc*)
10195 lt_prog_compiler_wl='-Wl,'
10196 # All Alpha code is PIC.
10197 lt_prog_compiler_static='-non_shared'
10198 ;;
10199 xl* | bgxl* | bgf* | mpixl*)
10200 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10201 lt_prog_compiler_wl='-Wl,'
10202 lt_prog_compiler_pic='-qpic'
10203 lt_prog_compiler_static='-qstaticlink'
10204 ;;
10205 *)
10206 case `$CC -V 2>&1 | sed 5q` in
10207 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10208 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10209 lt_prog_compiler_pic='-KPIC'
10210 lt_prog_compiler_static='-Bstatic'
10211 lt_prog_compiler_wl=''
10212 ;;
10213 *Sun\ F* | *Sun*Fortran*)
10214 lt_prog_compiler_pic='-KPIC'
10215 lt_prog_compiler_static='-Bstatic'
10216 lt_prog_compiler_wl='-Qoption ld '
10217 ;;
10218 *Sun\ C*)
10219 # Sun C 5.9
10220 lt_prog_compiler_pic='-KPIC'
10221 lt_prog_compiler_static='-Bstatic'
10222 lt_prog_compiler_wl='-Wl,'
10223 ;;
10224 *Intel*\ [CF]*Compiler*)
10225 lt_prog_compiler_wl='-Wl,'
10226 lt_prog_compiler_pic='-fPIC'
10227 lt_prog_compiler_static='-static'
10228 ;;
10229 *Portland\ Group*)
10230 lt_prog_compiler_wl='-Wl,'
10231 lt_prog_compiler_pic='-fpic'
10232 lt_prog_compiler_static='-Bstatic'
10233 ;;
10234 esac
10235 ;;
10236 esac
10237 ;;
10238
10239 newsos6)
10240 lt_prog_compiler_pic='-KPIC'
10241 lt_prog_compiler_static='-Bstatic'
10242 ;;
10243
10244 *nto* | *qnx*)
10245 # QNX uses GNU C++, but need to define -shared option too, otherwise
10246 # it will coredump.
10247 lt_prog_compiler_pic='-fPIC -shared'
10248 ;;
10249
10250 osf3* | osf4* | osf5*)
10251 lt_prog_compiler_wl='-Wl,'
10252 # All OSF/1 code is PIC.
10253 lt_prog_compiler_static='-non_shared'
10254 ;;
10255
10256 rdos*)
10257 lt_prog_compiler_static='-non_shared'
10258 ;;
10259
10260 solaris*)
10261 lt_prog_compiler_pic='-KPIC'
10262 lt_prog_compiler_static='-Bstatic'
10263 case $cc_basename in
10264 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10265 lt_prog_compiler_wl='-Qoption ld ';;
10266 *)
10267 lt_prog_compiler_wl='-Wl,';;
10268 esac
10269 ;;
10270
10271 sunos4*)
10272 lt_prog_compiler_wl='-Qoption ld '
10273 lt_prog_compiler_pic='-PIC'
10274 lt_prog_compiler_static='-Bstatic'
10275 ;;
10276
10277 sysv4 | sysv4.2uw2* | sysv4.3*)
10278 lt_prog_compiler_wl='-Wl,'
10279 lt_prog_compiler_pic='-KPIC'
10280 lt_prog_compiler_static='-Bstatic'
10281 ;;
10282
10283 sysv4*MP*)
10284 if test -d /usr/nec; then
10285 lt_prog_compiler_pic='-Kconform_pic'
10286 lt_prog_compiler_static='-Bstatic'
10287 fi
10288 ;;
10289
10290 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10291 lt_prog_compiler_wl='-Wl,'
10292 lt_prog_compiler_pic='-KPIC'
10293 lt_prog_compiler_static='-Bstatic'
10294 ;;
10295
10296 unicos*)
10297 lt_prog_compiler_wl='-Wl,'
10298 lt_prog_compiler_can_build_shared=no
10299 ;;
10300
10301 uts4*)
10302 lt_prog_compiler_pic='-pic'
10303 lt_prog_compiler_static='-Bstatic'
10304 ;;
10305
10306 *)
10307 lt_prog_compiler_can_build_shared=no
10308 ;;
10309 esac
10310 fi
10311
10312 case $host_os in
10313 # For platforms that do not support PIC, -DPIC is meaningless:
10314 *djgpp*)
10315 lt_prog_compiler_pic=
10316 ;;
10317 *)
10318 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10319 ;;
10320 esac
10321
10322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10323 printf %s "checking for $compiler option to produce PIC... " >&6; }
10324 if test ${lt_cv_prog_compiler_pic+y}
10325 then :
10326 printf %s "(cached) " >&6
10327 else $as_nop
10328 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10329 fi
10330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10331 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
10332 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10333
10334 #
10335 # Check to make sure the PIC flag actually works.
10336 #
10337 if test -n "$lt_prog_compiler_pic"; then
10338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10339 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10340 if test ${lt_cv_prog_compiler_pic_works+y}
10341 then :
10342 printf %s "(cached) " >&6
10343 else $as_nop
10344 lt_cv_prog_compiler_pic_works=no
10345 ac_outfile=conftest.$ac_objext
10346 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10347 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10348 # Insert the option either (1) after the last *FLAGS variable, or
10349 # (2) before a word containing "conftest.", or (3) at the end.
10350 # Note that $ac_compile itself does not contain backslashes and begins
10351 # with a dollar sign (not a hyphen), so the echo should work correctly.
10352 # The option is referenced via a variable to avoid confusing sed.
10353 lt_compile=`echo "$ac_compile" | $SED \
10354 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10355 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10356 -e 's:$: $lt_compiler_flag:'`
10357 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10358 (eval "$lt_compile" 2>conftest.err)
10359 ac_status=$?
10360 cat conftest.err >&5
10361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10362 if (exit $ac_status) && test -s "$ac_outfile"; then
10363 # The compiler can only warn and ignore the option if not recognized
10364 # So say no if there are warnings other than the usual output.
10365 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10366 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10367 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10368 lt_cv_prog_compiler_pic_works=yes
10369 fi
10370 fi
10371 $RM conftest*
10372
10373 fi
10374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10375 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
10376
10377 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10378 case $lt_prog_compiler_pic in
10379 "" | " "*) ;;
10380 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10381 esac
10382 else
10383 lt_prog_compiler_pic=
10384 lt_prog_compiler_can_build_shared=no
10385 fi
10386
10387 fi
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399 #
10400 # Check to make sure the static flag actually works.
10401 #
10402 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10404 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10405 if test ${lt_cv_prog_compiler_static_works+y}
10406 then :
10407 printf %s "(cached) " >&6
10408 else $as_nop
10409 lt_cv_prog_compiler_static_works=no
10410 save_LDFLAGS=$LDFLAGS
10411 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10412 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10413 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10414 # The linker can only warn and ignore the option if not recognized
10415 # So say no if there are warnings
10416 if test -s conftest.err; then
10417 # Append any errors to the config.log.
10418 cat conftest.err 1>&5
10419 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10420 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10421 if diff conftest.exp conftest.er2 >/dev/null; then
10422 lt_cv_prog_compiler_static_works=yes
10423 fi
10424 else
10425 lt_cv_prog_compiler_static_works=yes
10426 fi
10427 fi
10428 $RM -r conftest*
10429 LDFLAGS=$save_LDFLAGS
10430
10431 fi
10432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10433 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
10434
10435 if test yes = "$lt_cv_prog_compiler_static_works"; then
10436 :
10437 else
10438 lt_prog_compiler_static=
10439 fi
10440
10441
10442
10443
10444
10445
10446
10447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10448 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10449 if test ${lt_cv_prog_compiler_c_o+y}
10450 then :
10451 printf %s "(cached) " >&6
10452 else $as_nop
10453 lt_cv_prog_compiler_c_o=no
10454 $RM -r conftest 2>/dev/null
10455 mkdir conftest
10456 cd conftest
10457 mkdir out
10458 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10459
10460 lt_compiler_flag="-o out/conftest2.$ac_objext"
10461 # Insert the option either (1) after the last *FLAGS variable, or
10462 # (2) before a word containing "conftest.", or (3) at the end.
10463 # Note that $ac_compile itself does not contain backslashes and begins
10464 # with a dollar sign (not a hyphen), so the echo should work correctly.
10465 lt_compile=`echo "$ac_compile" | $SED \
10466 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10467 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10468 -e 's:$: $lt_compiler_flag:'`
10469 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10470 (eval "$lt_compile" 2>out/conftest.err)
10471 ac_status=$?
10472 cat out/conftest.err >&5
10473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10474 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10475 then
10476 # The compiler can only warn and ignore the option if not recognized
10477 # So say no if there are warnings
10478 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10479 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10480 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10481 lt_cv_prog_compiler_c_o=yes
10482 fi
10483 fi
10484 chmod u+w . 2>&5
10485 $RM conftest*
10486 # SGI C++ compiler will create directory out/ii_files/ for
10487 # template instantiation
10488 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10489 $RM out/* && rmdir out
10490 cd ..
10491 $RM -r conftest
10492 $RM conftest*
10493
10494 fi
10495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10496 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10497
10498
10499
10500
10501
10502
10503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10504 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10505 if test ${lt_cv_prog_compiler_c_o+y}
10506 then :
10507 printf %s "(cached) " >&6
10508 else $as_nop
10509 lt_cv_prog_compiler_c_o=no
10510 $RM -r conftest 2>/dev/null
10511 mkdir conftest
10512 cd conftest
10513 mkdir out
10514 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10515
10516 lt_compiler_flag="-o out/conftest2.$ac_objext"
10517 # Insert the option either (1) after the last *FLAGS variable, or
10518 # (2) before a word containing "conftest.", or (3) at the end.
10519 # Note that $ac_compile itself does not contain backslashes and begins
10520 # with a dollar sign (not a hyphen), so the echo should work correctly.
10521 lt_compile=`echo "$ac_compile" | $SED \
10522 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10523 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10524 -e 's:$: $lt_compiler_flag:'`
10525 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10526 (eval "$lt_compile" 2>out/conftest.err)
10527 ac_status=$?
10528 cat out/conftest.err >&5
10529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10530 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10531 then
10532 # The compiler can only warn and ignore the option if not recognized
10533 # So say no if there are warnings
10534 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10535 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10536 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10537 lt_cv_prog_compiler_c_o=yes
10538 fi
10539 fi
10540 chmod u+w . 2>&5
10541 $RM conftest*
10542 # SGI C++ compiler will create directory out/ii_files/ for
10543 # template instantiation
10544 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10545 $RM out/* && rmdir out
10546 cd ..
10547 $RM -r conftest
10548 $RM conftest*
10549
10550 fi
10551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10552 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10553
10554
10555
10556
10557 hard_links=nottested
10558 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10559 # do not overwrite the value of need_locks provided by the user
10560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10561 printf %s "checking if we can lock with hard links... " >&6; }
10562 hard_links=yes
10563 $RM conftest*
10564 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10565 touch conftest.a
10566 ln conftest.a conftest.b 2>&5 || hard_links=no
10567 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10569 printf "%s\n" "$hard_links" >&6; }
10570 if test no = "$hard_links"; then
10571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10572 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10573 need_locks=warn
10574 fi
10575 else
10576 need_locks=no
10577 fi
10578
10579
10580
10581
10582
10583
10584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10585 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10586
10587 runpath_var=
10588 allow_undefined_flag=
10589 always_export_symbols=no
10590 archive_cmds=
10591 archive_expsym_cmds=
10592 compiler_needs_object=no
10593 enable_shared_with_static_runtimes=no
10594 export_dynamic_flag_spec=
10595 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10596 hardcode_automatic=no
10597 hardcode_direct=no
10598 hardcode_direct_absolute=no
10599 hardcode_libdir_flag_spec=
10600 hardcode_libdir_separator=
10601 hardcode_minus_L=no
10602 hardcode_shlibpath_var=unsupported
10603 inherit_rpath=no
10604 link_all_deplibs=unknown
10605 module_cmds=
10606 module_expsym_cmds=
10607 old_archive_from_new_cmds=
10608 old_archive_from_expsyms_cmds=
10609 thread_safe_flag_spec=
10610 whole_archive_flag_spec=
10611 # include_expsyms should be a list of space-separated symbols to be *always*
10612 # included in the symbol list
10613 include_expsyms=
10614 # exclude_expsyms can be an extended regexp of symbols to exclude
10615 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10616 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10617 # as well as any symbol that contains 'd'.
10618 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10619 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10620 # platforms (ab)use it in PIC code, but their linkers get confused if
10621 # the symbol is explicitly referenced. Since portable code cannot
10622 # rely on this symbol name, it's probably fine to never include it in
10623 # preloaded symbol tables.
10624 # Exclude shared library initialization/finalization symbols.
10625 extract_expsyms_cmds=
10626
10627 case $host_os in
10628 cygwin* | mingw* | pw32* | cegcc*)
10629 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10630 # When not using gcc, we currently assume that we are using
10631 # Microsoft Visual C++.
10632 if test yes != "$GCC"; then
10633 with_gnu_ld=no
10634 fi
10635 ;;
10636 interix*)
10637 # we just hope/assume this is gcc and not c89 (= MSVC++)
10638 with_gnu_ld=yes
10639 ;;
10640 openbsd* | bitrig*)
10641 with_gnu_ld=no
10642 ;;
10643 esac
10644
10645 ld_shlibs=yes
10646
10647 # On some targets, GNU ld is compatible enough with the native linker
10648 # that we're better off using the native interface for both.
10649 lt_use_gnu_ld_interface=no
10650 if test yes = "$with_gnu_ld"; then
10651 case $host_os in
10652 aix*)
10653 # The AIX port of GNU ld has always aspired to compatibility
10654 # with the native linker. However, as the warning in the GNU ld
10655 # block says, versions before 2.19.5* couldn't really create working
10656 # shared libraries, regardless of the interface used.
10657 case `$LD -v 2>&1` in
10658 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10659 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10660 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10661 *)
10662 lt_use_gnu_ld_interface=yes
10663 ;;
10664 esac
10665 ;;
10666 *)
10667 lt_use_gnu_ld_interface=yes
10668 ;;
10669 esac
10670 fi
10671
10672 if test yes = "$lt_use_gnu_ld_interface"; then
10673 # If archive_cmds runs LD, not CC, wlarc should be empty
10674 wlarc='$wl'
10675
10676 # Set some defaults for GNU ld with shared library support. These
10677 # are reset later if shared libraries are not supported. Putting them
10678 # here allows them to be overridden if necessary.
10679 runpath_var=LD_RUN_PATH
10680 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10681 export_dynamic_flag_spec='$wl--export-dynamic'
10682 # ancient GNU ld didn't support --whole-archive et. al.
10683 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10684 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10685 else
10686 whole_archive_flag_spec=
10687 fi
10688 supports_anon_versioning=no
10689 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10690 *GNU\ gold*) supports_anon_versioning=yes ;;
10691 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10692 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10693 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10694 *\ 2.11.*) ;; # other 2.11 versions
10695 *) supports_anon_versioning=yes ;;
10696 esac
10697
10698 # See if GNU ld supports shared libraries.
10699 case $host_os in
10700 aix[3-9]*)
10701 # On AIX/PPC, the GNU linker is very broken
10702 if test ia64 != "$host_cpu"; then
10703 ld_shlibs=no
10704 cat <<_LT_EOF 1>&2
10705
10706 *** Warning: the GNU linker, at least up to release 2.19, is reported
10707 *** to be unable to reliably create shared libraries on AIX.
10708 *** Therefore, libtool is disabling shared libraries support. If you
10709 *** really care for shared libraries, you may want to install binutils
10710 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10711 *** You will then need to restart the configuration process.
10712
10713 _LT_EOF
10714 fi
10715 ;;
10716
10717 amigaos*)
10718 case $host_cpu in
10719 powerpc)
10720 # see comment about AmigaOS4 .so support
10721 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10722 archive_expsym_cmds=''
10723 ;;
10724 m68k)
10725 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)'
10726 hardcode_libdir_flag_spec='-L$libdir'
10727 hardcode_minus_L=yes
10728 ;;
10729 esac
10730 ;;
10731
10732 beos*)
10733 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10734 allow_undefined_flag=unsupported
10735 # Joseph Beckenbach <[email protected]> says some releases of gcc
10736 # support --undefined. This deserves some investigation. FIXME
10737 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10738 else
10739 ld_shlibs=no
10740 fi
10741 ;;
10742
10743 cygwin* | mingw* | pw32* | cegcc*)
10744 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10745 # as there is no search path for DLLs.
10746 hardcode_libdir_flag_spec='-L$libdir'
10747 export_dynamic_flag_spec='$wl--export-all-symbols'
10748 allow_undefined_flag=unsupported
10749 always_export_symbols=no
10750 enable_shared_with_static_runtimes=yes
10751 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
10752 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10753
10754 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10755 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10756 # If the export-symbols file already is a .def file, use it as
10757 # is; otherwise, prepend EXPORTS...
10758 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10759 cp $export_symbols $output_objdir/$soname.def;
10760 else
10761 echo EXPORTS > $output_objdir/$soname.def;
10762 cat $export_symbols >> $output_objdir/$soname.def;
10763 fi~
10764 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10765 else
10766 ld_shlibs=no
10767 fi
10768 ;;
10769
10770 haiku*)
10771 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10772 link_all_deplibs=yes
10773 ;;
10774
10775 os2*)
10776 hardcode_libdir_flag_spec='-L$libdir'
10777 hardcode_minus_L=yes
10778 allow_undefined_flag=unsupported
10779 shrext_cmds=.dll
10780 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10781 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10782 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10783 $ECHO EXPORTS >> $output_objdir/$libname.def~
10784 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10785 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10786 emximp -o $lib $output_objdir/$libname.def'
10787 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10788 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10789 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10790 $ECHO EXPORTS >> $output_objdir/$libname.def~
10791 prefix_cmds="$SED"~
10792 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10793 prefix_cmds="$prefix_cmds -e 1d";
10794 fi~
10795 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10796 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10797 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10798 emximp -o $lib $output_objdir/$libname.def'
10799 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10800 enable_shared_with_static_runtimes=yes
10801 ;;
10802
10803 interix[3-9]*)
10804 hardcode_direct=no
10805 hardcode_shlibpath_var=no
10806 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10807 export_dynamic_flag_spec='$wl-E'
10808 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10809 # Instead, shared libraries are loaded at an image base (0x10000000 by
10810 # default) and relocated if they conflict, which is a slow very memory
10811 # consuming and fragmenting process. To avoid this, we pick a random,
10812 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10813 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10814 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10815 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'
10816 ;;
10817
10818 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10819 tmp_diet=no
10820 if test linux-dietlibc = "$host_os"; then
10821 case $cc_basename in
10822 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10823 esac
10824 fi
10825 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10826 && test no = "$tmp_diet"
10827 then
10828 tmp_addflag=' $pic_flag'
10829 tmp_sharedflag='-shared'
10830 case $cc_basename,$host_cpu in
10831 pgcc*) # Portland Group C compiler
10832 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'
10833 tmp_addflag=' $pic_flag'
10834 ;;
10835 pgf77* | pgf90* | pgf95* | pgfortran*)
10836 # Portland Group f77 and f90 compilers
10837 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'
10838 tmp_addflag=' $pic_flag -Mnomain' ;;
10839 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10840 tmp_addflag=' -i_dynamic' ;;
10841 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10842 tmp_addflag=' -i_dynamic -nofor_main' ;;
10843 ifc* | ifort*) # Intel Fortran compiler
10844 tmp_addflag=' -nofor_main' ;;
10845 lf95*) # Lahey Fortran 8.1
10846 whole_archive_flag_spec=
10847 tmp_sharedflag='--shared' ;;
10848 nagfor*) # NAGFOR 5.3
10849 tmp_sharedflag='-Wl,-shared' ;;
10850 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10851 tmp_sharedflag='-qmkshrobj'
10852 tmp_addflag= ;;
10853 nvcc*) # Cuda Compiler Driver 2.2
10854 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'
10855 compiler_needs_object=yes
10856 ;;
10857 esac
10858 case `$CC -V 2>&1 | sed 5q` in
10859 *Sun\ C*) # Sun C 5.9
10860 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'
10861 compiler_needs_object=yes
10862 tmp_sharedflag='-G' ;;
10863 *Sun\ F*) # Sun Fortran 8.3
10864 tmp_sharedflag='-G' ;;
10865 esac
10866 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10867
10868 if test yes = "$supports_anon_versioning"; then
10869 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10870 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10871 echo "local: *; };" >> $output_objdir/$libname.ver~
10872 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10873 fi
10874
10875 case $cc_basename in
10876 tcc*)
10877 export_dynamic_flag_spec='-rdynamic'
10878 ;;
10879 xlf* | bgf* | bgxlf* | mpixlf*)
10880 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10881 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10882 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10883 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10884 if test yes = "$supports_anon_versioning"; then
10885 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10886 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10887 echo "local: *; };" >> $output_objdir/$libname.ver~
10888 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10889 fi
10890 ;;
10891 esac
10892 else
10893 ld_shlibs=no
10894 fi
10895 ;;
10896
10897 netbsd*)
10898 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10899 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10900 wlarc=
10901 else
10902 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10903 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10904 fi
10905 ;;
10906
10907 solaris*)
10908 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10909 ld_shlibs=no
10910 cat <<_LT_EOF 1>&2
10911
10912 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10913 *** create shared libraries on Solaris systems. Therefore, libtool
10914 *** is disabling shared libraries support. We urge you to upgrade GNU
10915 *** binutils to release 2.9.1 or newer. Another option is to modify
10916 *** your PATH or compiler configuration so that the native linker is
10917 *** used, and then restart.
10918
10919 _LT_EOF
10920 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10921 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10922 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10923 else
10924 ld_shlibs=no
10925 fi
10926 ;;
10927
10928 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10929 case `$LD -v 2>&1` in
10930 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10931 ld_shlibs=no
10932 cat <<_LT_EOF 1>&2
10933
10934 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10935 *** reliably create shared libraries on SCO systems. Therefore, libtool
10936 *** is disabling shared libraries support. We urge you to upgrade GNU
10937 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10938 *** your PATH or compiler configuration so that the native linker is
10939 *** used, and then restart.
10940
10941 _LT_EOF
10942 ;;
10943 *)
10944 # For security reasons, it is highly recommended that you always
10945 # use absolute paths for naming shared libraries, and exclude the
10946 # DT_RUNPATH tag from executables and libraries. But doing so
10947 # requires that you compile everything twice, which is a pain.
10948 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10949 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10950 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10951 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10952 else
10953 ld_shlibs=no
10954 fi
10955 ;;
10956 esac
10957 ;;
10958
10959 sunos4*)
10960 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10961 wlarc=
10962 hardcode_direct=yes
10963 hardcode_shlibpath_var=no
10964 ;;
10965
10966 *)
10967 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10968 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10969 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10970 else
10971 ld_shlibs=no
10972 fi
10973 ;;
10974 esac
10975
10976 if test no = "$ld_shlibs"; then
10977 runpath_var=
10978 hardcode_libdir_flag_spec=
10979 export_dynamic_flag_spec=
10980 whole_archive_flag_spec=
10981 fi
10982 else
10983 # PORTME fill in a description of your system's linker (not GNU ld)
10984 case $host_os in
10985 aix3*)
10986 allow_undefined_flag=unsupported
10987 always_export_symbols=yes
10988 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'
10989 # Note: this linker hardcodes the directories in LIBPATH if there
10990 # are no directories specified by -L.
10991 hardcode_minus_L=yes
10992 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10993 # Neither direct hardcoding nor static linking is supported with a
10994 # broken collect2.
10995 hardcode_direct=unsupported
10996 fi
10997 ;;
10998
10999 aix[4-9]*)
11000 if test ia64 = "$host_cpu"; then
11001 # On IA64, the linker does run time linking by default, so we don't
11002 # have to do anything special.
11003 aix_use_runtimelinking=no
11004 exp_sym_flag='-Bexport'
11005 no_entry_flag=
11006 else
11007 # If we're using GNU nm, then we don't want the "-C" option.
11008 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
11009 # Without the "-l" option, or with the "-B" option, AIX nm treats
11010 # weak defined symbols like other global defined symbols, whereas
11011 # GNU nm marks them as "W".
11012 # While the 'weak' keyword is ignored in the Export File, we need
11013 # it in the Import File for the 'aix-soname' feature, so we have
11014 # to replace the "-B" option with "-P" for AIX nm.
11015 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11016 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
11017 else
11018 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
11019 fi
11020 aix_use_runtimelinking=no
11021
11022 # Test if we are trying to use run time linking or normal
11023 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11024 # have runtime linking enabled, and use it for executables.
11025 # For shared libraries, we enable/disable runtime linking
11026 # depending on the kind of the shared library created -
11027 # when "with_aix_soname,aix_use_runtimelinking" is:
11028 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
11029 # "aix,yes" lib.so shared, rtl:yes, for executables
11030 # lib.a static archive
11031 # "both,no" lib.so.V(shr.o) shared, rtl:yes
11032 # lib.a(lib.so.V) shared, rtl:no, for executables
11033 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11034 # lib.a(lib.so.V) shared, rtl:no
11035 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
11036 # lib.a static archive
11037 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11038 for ld_flag in $LDFLAGS; do
11039 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11040 aix_use_runtimelinking=yes
11041 break
11042 fi
11043 done
11044 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11045 # With aix-soname=svr4, we create the lib.so.V shared archives only,
11046 # so we don't have lib.a shared libs to link our executables.
11047 # We have to force runtime linking in this case.
11048 aix_use_runtimelinking=yes
11049 LDFLAGS="$LDFLAGS -Wl,-brtl"
11050 fi
11051 ;;
11052 esac
11053
11054 exp_sym_flag='-bexport'
11055 no_entry_flag='-bnoentry'
11056 fi
11057
11058 # When large executables or shared objects are built, AIX ld can
11059 # have problems creating the table of contents. If linking a library
11060 # or program results in "error TOC overflow" add -mminimal-toc to
11061 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11062 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11063
11064 archive_cmds=''
11065 hardcode_direct=yes
11066 hardcode_direct_absolute=yes
11067 hardcode_libdir_separator=':'
11068 link_all_deplibs=yes
11069 file_list_spec='$wl-f,'
11070 case $with_aix_soname,$aix_use_runtimelinking in
11071 aix,*) ;; # traditional, no import file
11072 svr4,* | *,yes) # use import file
11073 # The Import File defines what to hardcode.
11074 hardcode_direct=no
11075 hardcode_direct_absolute=no
11076 ;;
11077 esac
11078
11079 if test yes = "$GCC"; then
11080 case $host_os in aix4.[012]|aix4.[012].*)
11081 # We only want to do this on AIX 4.2 and lower, the check
11082 # below for broken collect2 doesn't work under 4.3+
11083 collect2name=`$CC -print-prog-name=collect2`
11084 if test -f "$collect2name" &&
11085 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11086 then
11087 # We have reworked collect2
11088 :
11089 else
11090 # We have old collect2
11091 hardcode_direct=unsupported
11092 # It fails to find uninstalled libraries when the uninstalled
11093 # path is not listed in the libpath. Setting hardcode_minus_L
11094 # to unsupported forces relinking
11095 hardcode_minus_L=yes
11096 hardcode_libdir_flag_spec='-L$libdir'
11097 hardcode_libdir_separator=
11098 fi
11099 ;;
11100 esac
11101 shared_flag='-shared'
11102 if test yes = "$aix_use_runtimelinking"; then
11103 shared_flag="$shared_flag "'$wl-G'
11104 fi
11105 # Need to ensure runtime linking is disabled for the traditional
11106 # shared library, or the linker may eventually find shared libraries
11107 # /with/ Import File - we do not want to mix them.
11108 shared_flag_aix='-shared'
11109 shared_flag_svr4='-shared $wl-G'
11110 else
11111 # not using gcc
11112 if test ia64 = "$host_cpu"; then
11113 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11114 # chokes on -Wl,-G. The following line is correct:
11115 shared_flag='-G'
11116 else
11117 if test yes = "$aix_use_runtimelinking"; then
11118 shared_flag='$wl-G'
11119 else
11120 shared_flag='$wl-bM:SRE'
11121 fi
11122 shared_flag_aix='$wl-bM:SRE'
11123 shared_flag_svr4='$wl-G'
11124 fi
11125 fi
11126
11127 export_dynamic_flag_spec='$wl-bexpall'
11128 # It seems that -bexpall does not export symbols beginning with
11129 # underscore (_), so it is better to generate a list of symbols to export.
11130 always_export_symbols=yes
11131 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11132 # Warning - without using the other runtime loading flags (-brtl),
11133 # -berok will link without error, but may produce a broken library.
11134 allow_undefined_flag='-berok'
11135 # Determine the default libpath from the value encoded in an
11136 # empty executable.
11137 if test set = "${lt_cv_aix_libpath+set}"; then
11138 aix_libpath=$lt_cv_aix_libpath
11139 else
11140 if test ${lt_cv_aix_libpath_+y}
11141 then :
11142 printf %s "(cached) " >&6
11143 else $as_nop
11144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11145 /* end confdefs.h. */
11146
11147 int
11148 main (void)
11149 {
11150
11151 ;
11152 return 0;
11153 }
11154 _ACEOF
11155 if ac_fn_c_try_link "$LINENO"
11156 then :
11157
11158 lt_aix_libpath_sed='
11159 /Import File Strings/,/^$/ {
11160 /^0/ {
11161 s/^0 *\([^ ]*\) *$/\1/
11162 p
11163 }
11164 }'
11165 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11166 # Check for a 64-bit object if we didn't find anything.
11167 if test -z "$lt_cv_aix_libpath_"; then
11168 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11169 fi
11170 fi
11171 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11172 conftest$ac_exeext conftest.$ac_ext
11173 if test -z "$lt_cv_aix_libpath_"; then
11174 lt_cv_aix_libpath_=/usr/lib:/lib
11175 fi
11176
11177 fi
11178
11179 aix_libpath=$lt_cv_aix_libpath_
11180 fi
11181
11182 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11183 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
11184 else
11185 if test ia64 = "$host_cpu"; then
11186 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11187 allow_undefined_flag="-z nodefs"
11188 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"
11189 else
11190 # Determine the default libpath from the value encoded in an
11191 # empty executable.
11192 if test set = "${lt_cv_aix_libpath+set}"; then
11193 aix_libpath=$lt_cv_aix_libpath
11194 else
11195 if test ${lt_cv_aix_libpath_+y}
11196 then :
11197 printf %s "(cached) " >&6
11198 else $as_nop
11199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11200 /* end confdefs.h. */
11201
11202 int
11203 main (void)
11204 {
11205
11206 ;
11207 return 0;
11208 }
11209 _ACEOF
11210 if ac_fn_c_try_link "$LINENO"
11211 then :
11212
11213 lt_aix_libpath_sed='
11214 /Import File Strings/,/^$/ {
11215 /^0/ {
11216 s/^0 *\([^ ]*\) *$/\1/
11217 p
11218 }
11219 }'
11220 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11221 # Check for a 64-bit object if we didn't find anything.
11222 if test -z "$lt_cv_aix_libpath_"; then
11223 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11224 fi
11225 fi
11226 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11227 conftest$ac_exeext conftest.$ac_ext
11228 if test -z "$lt_cv_aix_libpath_"; then
11229 lt_cv_aix_libpath_=/usr/lib:/lib
11230 fi
11231
11232 fi
11233
11234 aix_libpath=$lt_cv_aix_libpath_
11235 fi
11236
11237 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11238 # Warning - without using the other run time loading flags,
11239 # -berok will link without error, but may produce a broken library.
11240 no_undefined_flag=' $wl-bernotok'
11241 allow_undefined_flag=' $wl-berok'
11242 if test yes = "$with_gnu_ld"; then
11243 # We only use this code for GNU lds that support --whole-archive.
11244 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11245 else
11246 # Exported symbols can be pulled into shared objects from archives
11247 whole_archive_flag_spec='$convenience'
11248 fi
11249 archive_cmds_need_lc=yes
11250 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11251 # -brtl affects multiple linker settings, -berok does not and is overridden later
11252 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11253 if test svr4 != "$with_aix_soname"; then
11254 # This is similar to how AIX traditionally builds its shared libraries.
11255 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
11256 fi
11257 if test aix != "$with_aix_soname"; then
11258 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
11259 else
11260 # used by -dlpreopen to get the symbols
11261 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
11262 fi
11263 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11264 fi
11265 fi
11266 ;;
11267
11268 amigaos*)
11269 case $host_cpu in
11270 powerpc)
11271 # see comment about AmigaOS4 .so support
11272 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11273 archive_expsym_cmds=''
11274 ;;
11275 m68k)
11276 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)'
11277 hardcode_libdir_flag_spec='-L$libdir'
11278 hardcode_minus_L=yes
11279 ;;
11280 esac
11281 ;;
11282
11283 bsdi[45]*)
11284 export_dynamic_flag_spec=-rdynamic
11285 ;;
11286
11287 cygwin* | mingw* | pw32* | cegcc*)
11288 # When not using gcc, we currently assume that we are using
11289 # Microsoft Visual C++.
11290 # hardcode_libdir_flag_spec is actually meaningless, as there is
11291 # no search path for DLLs.
11292 case $cc_basename in
11293 cl*)
11294 # Native MSVC
11295 hardcode_libdir_flag_spec=' '
11296 allow_undefined_flag=unsupported
11297 always_export_symbols=yes
11298 file_list_spec='@'
11299 # Tell ltmain to make .lib files, not .a files.
11300 libext=lib
11301 # Tell ltmain to make .dll files, not .so files.
11302 shrext_cmds=.dll
11303 # FIXME: Setting linknames here is a bad hack.
11304 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11305 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11306 cp "$export_symbols" "$output_objdir/$soname.def";
11307 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11308 else
11309 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11310 fi~
11311 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11312 linknames='
11313 # The linker will not automatically build a static lib if we build a DLL.
11314 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11315 enable_shared_with_static_runtimes=yes
11316 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11317 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11318 # Don't use ranlib
11319 old_postinstall_cmds='chmod 644 $oldlib'
11320 postlink_cmds='lt_outputfile="@OUTPUT@"~
11321 lt_tool_outputfile="@TOOL_OUTPUT@"~
11322 case $lt_outputfile in
11323 *.exe|*.EXE) ;;
11324 *)
11325 lt_outputfile=$lt_outputfile.exe
11326 lt_tool_outputfile=$lt_tool_outputfile.exe
11327 ;;
11328 esac~
11329 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11330 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11331 $RM "$lt_outputfile.manifest";
11332 fi'
11333 ;;
11334 *)
11335 # Assume MSVC wrapper
11336 hardcode_libdir_flag_spec=' '
11337 allow_undefined_flag=unsupported
11338 # Tell ltmain to make .lib files, not .a files.
11339 libext=lib
11340 # Tell ltmain to make .dll files, not .so files.
11341 shrext_cmds=.dll
11342 # FIXME: Setting linknames here is a bad hack.
11343 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11344 # The linker will automatically build a .lib file if we build a DLL.
11345 old_archive_from_new_cmds='true'
11346 # FIXME: Should let the user specify the lib program.
11347 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11348 enable_shared_with_static_runtimes=yes
11349 ;;
11350 esac
11351 ;;
11352
11353 darwin* | rhapsody*)
11354
11355
11356 archive_cmds_need_lc=no
11357 hardcode_direct=no
11358 hardcode_automatic=yes
11359 hardcode_shlibpath_var=unsupported
11360 if test yes = "$lt_cv_ld_force_load"; then
11361 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\"`'
11362
11363 else
11364 whole_archive_flag_spec=''
11365 fi
11366 link_all_deplibs=yes
11367 allow_undefined_flag=$_lt_dar_allow_undefined
11368 case $cc_basename in
11369 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11370 *) _lt_dar_can_shared=$GCC ;;
11371 esac
11372 if test yes = "$_lt_dar_can_shared"; then
11373 output_verbose_link_cmd=func_echo_all
11374 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11375 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11376 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"
11377 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"
11378
11379 else
11380 ld_shlibs=no
11381 fi
11382
11383 ;;
11384
11385 dgux*)
11386 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11387 hardcode_libdir_flag_spec='-L$libdir'
11388 hardcode_shlibpath_var=no
11389 ;;
11390
11391 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11392 # support. Future versions do this automatically, but an explicit c++rt0.o
11393 # does not break anything, and helps significantly (at the cost of a little
11394 # extra space).
11395 freebsd2.2*)
11396 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11397 hardcode_libdir_flag_spec='-R$libdir'
11398 hardcode_direct=yes
11399 hardcode_shlibpath_var=no
11400 ;;
11401
11402 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11403 freebsd2.*)
11404 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11405 hardcode_direct=yes
11406 hardcode_minus_L=yes
11407 hardcode_shlibpath_var=no
11408 ;;
11409
11410 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11411 freebsd* | dragonfly*)
11412 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11413 hardcode_libdir_flag_spec='-R$libdir'
11414 hardcode_direct=yes
11415 hardcode_shlibpath_var=no
11416 ;;
11417
11418 hpux9*)
11419 if test yes = "$GCC"; then
11420 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11421 else
11422 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11423 fi
11424 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11425 hardcode_libdir_separator=:
11426 hardcode_direct=yes
11427
11428 # hardcode_minus_L: Not really in the search PATH,
11429 # but as the default location of the library.
11430 hardcode_minus_L=yes
11431 export_dynamic_flag_spec='$wl-E'
11432 ;;
11433
11434 hpux10*)
11435 if test yes,no = "$GCC,$with_gnu_ld"; then
11436 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11437 else
11438 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11439 fi
11440 if test no = "$with_gnu_ld"; then
11441 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11442 hardcode_libdir_separator=:
11443 hardcode_direct=yes
11444 hardcode_direct_absolute=yes
11445 export_dynamic_flag_spec='$wl-E'
11446 # hardcode_minus_L: Not really in the search PATH,
11447 # but as the default location of the library.
11448 hardcode_minus_L=yes
11449 fi
11450 ;;
11451
11452 hpux11*)
11453 if test yes,no = "$GCC,$with_gnu_ld"; then
11454 case $host_cpu in
11455 hppa*64*)
11456 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11457 ;;
11458 ia64*)
11459 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11460 ;;
11461 *)
11462 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11463 ;;
11464 esac
11465 else
11466 case $host_cpu in
11467 hppa*64*)
11468 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11469 ;;
11470 ia64*)
11471 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11472 ;;
11473 *)
11474
11475 # Older versions of the 11.00 compiler do not understand -b yet
11476 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11478 printf %s "checking if $CC understands -b... " >&6; }
11479 if test ${lt_cv_prog_compiler__b+y}
11480 then :
11481 printf %s "(cached) " >&6
11482 else $as_nop
11483 lt_cv_prog_compiler__b=no
11484 save_LDFLAGS=$LDFLAGS
11485 LDFLAGS="$LDFLAGS -b"
11486 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11487 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11488 # The linker can only warn and ignore the option if not recognized
11489 # So say no if there are warnings
11490 if test -s conftest.err; then
11491 # Append any errors to the config.log.
11492 cat conftest.err 1>&5
11493 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11494 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11495 if diff conftest.exp conftest.er2 >/dev/null; then
11496 lt_cv_prog_compiler__b=yes
11497 fi
11498 else
11499 lt_cv_prog_compiler__b=yes
11500 fi
11501 fi
11502 $RM -r conftest*
11503 LDFLAGS=$save_LDFLAGS
11504
11505 fi
11506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11507 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
11508
11509 if test yes = "$lt_cv_prog_compiler__b"; then
11510 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11511 else
11512 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11513 fi
11514
11515 ;;
11516 esac
11517 fi
11518 if test no = "$with_gnu_ld"; then
11519 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11520 hardcode_libdir_separator=:
11521
11522 case $host_cpu in
11523 hppa*64*|ia64*)
11524 hardcode_direct=no
11525 hardcode_shlibpath_var=no
11526 ;;
11527 *)
11528 hardcode_direct=yes
11529 hardcode_direct_absolute=yes
11530 export_dynamic_flag_spec='$wl-E'
11531
11532 # hardcode_minus_L: Not really in the search PATH,
11533 # but as the default location of the library.
11534 hardcode_minus_L=yes
11535 ;;
11536 esac
11537 fi
11538 ;;
11539
11540 irix5* | irix6* | nonstopux*)
11541 if test yes = "$GCC"; then
11542 archive_cmds='$CC -shared $pic_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'
11543 # Try to use the -exported_symbol ld option, if it does not
11544 # work, assume that -exports_file does not work either and
11545 # implicitly export all symbols.
11546 # This should be the same for all languages, so no per-tag cache variable.
11547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11548 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11549 if test ${lt_cv_irix_exported_symbol+y}
11550 then :
11551 printf %s "(cached) " >&6
11552 else $as_nop
11553 save_LDFLAGS=$LDFLAGS
11554 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11556 /* end confdefs.h. */
11557 int foo (void) { return 0; }
11558 _ACEOF
11559 if ac_fn_c_try_link "$LINENO"
11560 then :
11561 lt_cv_irix_exported_symbol=yes
11562 else $as_nop
11563 lt_cv_irix_exported_symbol=no
11564 fi
11565 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11566 conftest$ac_exeext conftest.$ac_ext
11567 LDFLAGS=$save_LDFLAGS
11568 fi
11569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11570 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
11571 if test yes = "$lt_cv_irix_exported_symbol"; then
11572 archive_expsym_cmds='$CC -shared $pic_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 $wl-exports_file $wl$export_symbols -o $lib'
11573 fi
11574 else
11575 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'
11576 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'
11577 fi
11578 archive_cmds_need_lc='no'
11579 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11580 hardcode_libdir_separator=:
11581 inherit_rpath=yes
11582 link_all_deplibs=yes
11583 ;;
11584
11585 linux*)
11586 case $cc_basename in
11587 tcc*)
11588 # Fabrice Bellard et al's Tiny C Compiler
11589 ld_shlibs=yes
11590 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11591 ;;
11592 esac
11593 ;;
11594
11595 netbsd*)
11596 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11597 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11598 else
11599 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11600 fi
11601 hardcode_libdir_flag_spec='-R$libdir'
11602 hardcode_direct=yes
11603 hardcode_shlibpath_var=no
11604 ;;
11605
11606 newsos6)
11607 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11608 hardcode_direct=yes
11609 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11610 hardcode_libdir_separator=:
11611 hardcode_shlibpath_var=no
11612 ;;
11613
11614 *nto* | *qnx*)
11615 ;;
11616
11617 openbsd* | bitrig*)
11618 if test -f /usr/libexec/ld.so; then
11619 hardcode_direct=yes
11620 hardcode_shlibpath_var=no
11621 hardcode_direct_absolute=yes
11622 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11623 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11624 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11625 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11626 export_dynamic_flag_spec='$wl-E'
11627 else
11628 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11629 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11630 fi
11631 else
11632 ld_shlibs=no
11633 fi
11634 ;;
11635
11636 os2*)
11637 hardcode_libdir_flag_spec='-L$libdir'
11638 hardcode_minus_L=yes
11639 allow_undefined_flag=unsupported
11640 shrext_cmds=.dll
11641 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11642 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11643 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11644 $ECHO EXPORTS >> $output_objdir/$libname.def~
11645 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11646 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11647 emximp -o $lib $output_objdir/$libname.def'
11648 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11649 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11650 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11651 $ECHO EXPORTS >> $output_objdir/$libname.def~
11652 prefix_cmds="$SED"~
11653 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11654 prefix_cmds="$prefix_cmds -e 1d";
11655 fi~
11656 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11657 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11658 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11659 emximp -o $lib $output_objdir/$libname.def'
11660 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11661 enable_shared_with_static_runtimes=yes
11662 ;;
11663
11664 osf3*)
11665 if test yes = "$GCC"; then
11666 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11667 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'
11668 else
11669 allow_undefined_flag=' -expect_unresolved \*'
11670 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'
11671 fi
11672 archive_cmds_need_lc='no'
11673 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11674 hardcode_libdir_separator=:
11675 ;;
11676
11677 osf4* | osf5*) # as osf3* with the addition of -msym flag
11678 if test yes = "$GCC"; then
11679 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11680 archive_cmds='$CC -shared$allow_undefined_flag $pic_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'
11681 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11682 else
11683 allow_undefined_flag=' -expect_unresolved \*'
11684 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'
11685 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~
11686 $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'
11687
11688 # Both c and cxx compiler support -rpath directly
11689 hardcode_libdir_flag_spec='-rpath $libdir'
11690 fi
11691 archive_cmds_need_lc='no'
11692 hardcode_libdir_separator=:
11693 ;;
11694
11695 solaris*)
11696 no_undefined_flag=' -z defs'
11697 if test yes = "$GCC"; then
11698 wlarc='$wl'
11699 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11700 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11701 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11702 else
11703 case `$CC -V 2>&1` in
11704 *"Compilers 5.0"*)
11705 wlarc=''
11706 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11707 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11708 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11709 ;;
11710 *)
11711 wlarc='$wl'
11712 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11713 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11714 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11715 ;;
11716 esac
11717 fi
11718 hardcode_libdir_flag_spec='-R$libdir'
11719 hardcode_shlibpath_var=no
11720 case $host_os in
11721 solaris2.[0-5] | solaris2.[0-5].*) ;;
11722 *)
11723 # The compiler driver will combine and reorder linker options,
11724 # but understands '-z linker_flag'. GCC discards it without '$wl',
11725 # but is careful enough not to reorder.
11726 # Supported since Solaris 2.6 (maybe 2.5.1?)
11727 if test yes = "$GCC"; then
11728 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11729 else
11730 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11731 fi
11732 ;;
11733 esac
11734 link_all_deplibs=yes
11735 ;;
11736
11737 sunos4*)
11738 if test sequent = "$host_vendor"; then
11739 # Use $CC to link under sequent, because it throws in some extra .o
11740 # files that make .init and .fini sections work.
11741 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11742 else
11743 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11744 fi
11745 hardcode_libdir_flag_spec='-L$libdir'
11746 hardcode_direct=yes
11747 hardcode_minus_L=yes
11748 hardcode_shlibpath_var=no
11749 ;;
11750
11751 sysv4)
11752 case $host_vendor in
11753 sni)
11754 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11755 hardcode_direct=yes # is this really true???
11756 ;;
11757 siemens)
11758 ## LD is ld it makes a PLAMLIB
11759 ## CC just makes a GrossModule.
11760 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11761 reload_cmds='$CC -r -o $output$reload_objs'
11762 hardcode_direct=no
11763 ;;
11764 motorola)
11765 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11766 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11767 ;;
11768 esac
11769 runpath_var='LD_RUN_PATH'
11770 hardcode_shlibpath_var=no
11771 ;;
11772
11773 sysv4.3*)
11774 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11775 hardcode_shlibpath_var=no
11776 export_dynamic_flag_spec='-Bexport'
11777 ;;
11778
11779 sysv4*MP*)
11780 if test -d /usr/nec; then
11781 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11782 hardcode_shlibpath_var=no
11783 runpath_var=LD_RUN_PATH
11784 hardcode_runpath_var=yes
11785 ld_shlibs=yes
11786 fi
11787 ;;
11788
11789 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11790 no_undefined_flag='$wl-z,text'
11791 archive_cmds_need_lc=no
11792 hardcode_shlibpath_var=no
11793 runpath_var='LD_RUN_PATH'
11794
11795 if test yes = "$GCC"; then
11796 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11797 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11798 else
11799 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11800 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11801 fi
11802 ;;
11803
11804 sysv5* | sco3.2v5* | sco5v6*)
11805 # Note: We CANNOT use -z defs as we might desire, because we do not
11806 # link with -lc, and that would cause any symbols used from libc to
11807 # always be unresolved, which means just about no library would
11808 # ever link correctly. If we're not using GNU ld we use -z text
11809 # though, which does catch some bad symbols but isn't as heavy-handed
11810 # as -z defs.
11811 no_undefined_flag='$wl-z,text'
11812 allow_undefined_flag='$wl-z,nodefs'
11813 archive_cmds_need_lc=no
11814 hardcode_shlibpath_var=no
11815 hardcode_libdir_flag_spec='$wl-R,$libdir'
11816 hardcode_libdir_separator=':'
11817 link_all_deplibs=yes
11818 export_dynamic_flag_spec='$wl-Bexport'
11819 runpath_var='LD_RUN_PATH'
11820
11821 if test yes = "$GCC"; then
11822 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11823 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11824 else
11825 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11826 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11827 fi
11828 ;;
11829
11830 uts4*)
11831 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11832 hardcode_libdir_flag_spec='-L$libdir'
11833 hardcode_shlibpath_var=no
11834 ;;
11835
11836 *)
11837 ld_shlibs=no
11838 ;;
11839 esac
11840
11841 if test sni = "$host_vendor"; then
11842 case $host in
11843 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11844 export_dynamic_flag_spec='$wl-Blargedynsym'
11845 ;;
11846 esac
11847 fi
11848 fi
11849
11850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11851 printf "%s\n" "$ld_shlibs" >&6; }
11852 test no = "$ld_shlibs" && can_build_shared=no
11853
11854 with_gnu_ld=$with_gnu_ld
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870 #
11871 # Do we need to explicitly link libc?
11872 #
11873 case "x$archive_cmds_need_lc" in
11874 x|xyes)
11875 # Assume -lc should be added
11876 archive_cmds_need_lc=yes
11877
11878 if test yes,yes = "$GCC,$enable_shared"; then
11879 case $archive_cmds in
11880 *'~'*)
11881 # FIXME: we may have to deal with multi-command sequences.
11882 ;;
11883 '$CC '*)
11884 # Test whether the compiler implicitly links with -lc since on some
11885 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11886 # to ld, don't add -lc before -lgcc.
11887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11888 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11889 if test ${lt_cv_archive_cmds_need_lc+y}
11890 then :
11891 printf %s "(cached) " >&6
11892 else $as_nop
11893 $RM conftest*
11894 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11895
11896 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11897 (eval $ac_compile) 2>&5
11898 ac_status=$?
11899 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11900 test $ac_status = 0; } 2>conftest.err; then
11901 soname=conftest
11902 lib=conftest
11903 libobjs=conftest.$ac_objext
11904 deplibs=
11905 wl=$lt_prog_compiler_wl
11906 pic_flag=$lt_prog_compiler_pic
11907 compiler_flags=-v
11908 linker_flags=-v
11909 verstring=
11910 output_objdir=.
11911 libname=conftest
11912 lt_save_allow_undefined_flag=$allow_undefined_flag
11913 allow_undefined_flag=
11914 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11915 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11916 ac_status=$?
11917 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11918 test $ac_status = 0; }
11919 then
11920 lt_cv_archive_cmds_need_lc=no
11921 else
11922 lt_cv_archive_cmds_need_lc=yes
11923 fi
11924 allow_undefined_flag=$lt_save_allow_undefined_flag
11925 else
11926 cat conftest.err 1>&5
11927 fi
11928 $RM conftest*
11929
11930 fi
11931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11932 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11933 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11934 ;;
11935 esac
11936 fi
11937 ;;
11938 esac
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
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12092 printf %s "checking dynamic linker characteristics... " >&6; }
12093
12094 if test yes = "$GCC"; then
12095 case $host_os in
12096 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12097 *) lt_awk_arg='/^libraries:/' ;;
12098 esac
12099 case $host_os in
12100 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12101 *) lt_sed_strip_eq='s|=/|/|g' ;;
12102 esac
12103 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12104 case $lt_search_path_spec in
12105 *\;*)
12106 # if the path contains ";" then we assume it to be the separator
12107 # otherwise default to the standard path separator (i.e. ":") - it is
12108 # assumed that no part of a normal pathname contains ";" but that should
12109 # okay in the real world where ";" in dirpaths is itself problematic.
12110 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12111 ;;
12112 *)
12113 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12114 ;;
12115 esac
12116 # Ok, now we have the path, separated by spaces, we can step through it
12117 # and add multilib dir if necessary...
12118 lt_tmp_lt_search_path_spec=
12119 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12120 # ...but if some path component already ends with the multilib dir we assume
12121 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12122 case "$lt_multi_os_dir; $lt_search_path_spec " in
12123 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12124 lt_multi_os_dir=
12125 ;;
12126 esac
12127 for lt_sys_path in $lt_search_path_spec; do
12128 if test -d "$lt_sys_path$lt_multi_os_dir"; then
12129 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12130 elif test -n "$lt_multi_os_dir"; then
12131 test -d "$lt_sys_path" && \
12132 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12133 fi
12134 done
12135 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12136 BEGIN {RS = " "; FS = "/|\n";} {
12137 lt_foo = "";
12138 lt_count = 0;
12139 for (lt_i = NF; lt_i > 0; lt_i--) {
12140 if ($lt_i != "" && $lt_i != ".") {
12141 if ($lt_i == "..") {
12142 lt_count++;
12143 } else {
12144 if (lt_count == 0) {
12145 lt_foo = "/" $lt_i lt_foo;
12146 } else {
12147 lt_count--;
12148 }
12149 }
12150 }
12151 }
12152 if (lt_foo != "") { lt_freq[lt_foo]++; }
12153 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12154 }'`
12155 # AWK program above erroneously prepends '/' to C:/dos/paths
12156 # for these hosts.
12157 case $host_os in
12158 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12159 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12160 esac
12161 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12162 else
12163 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12164 fi
12165 library_names_spec=
12166 libname_spec='lib$name'
12167 soname_spec=
12168 shrext_cmds=.so
12169 postinstall_cmds=
12170 postuninstall_cmds=
12171 finish_cmds=
12172 finish_eval=
12173 shlibpath_var=
12174 shlibpath_overrides_runpath=unknown
12175 version_type=none
12176 dynamic_linker="$host_os ld.so"
12177 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12178 need_lib_prefix=unknown
12179 hardcode_into_libs=no
12180
12181 # when you set need_version to no, make sure it does not cause -set_version
12182 # flags to be left without arguments
12183 need_version=unknown
12184
12185
12186
12187 case $host_os in
12188 aix3*)
12189 version_type=linux # correct to gnu/linux during the next big refactor
12190 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12191 shlibpath_var=LIBPATH
12192
12193 # AIX 3 has no versioning support, so we append a major version to the name.
12194 soname_spec='$libname$release$shared_ext$major'
12195 ;;
12196
12197 aix[4-9]*)
12198 version_type=linux # correct to gnu/linux during the next big refactor
12199 need_lib_prefix=no
12200 need_version=no
12201 hardcode_into_libs=yes
12202 if test ia64 = "$host_cpu"; then
12203 # AIX 5 supports IA64
12204 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12205 shlibpath_var=LD_LIBRARY_PATH
12206 else
12207 # With GCC up to 2.95.x, collect2 would create an import file
12208 # for dependence libraries. The import file would start with
12209 # the line '#! .'. This would cause the generated library to
12210 # depend on '.', always an invalid library. This was fixed in
12211 # development snapshots of GCC prior to 3.0.
12212 case $host_os in
12213 aix4 | aix4.[01] | aix4.[01].*)
12214 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12215 echo ' yes '
12216 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12217 :
12218 else
12219 can_build_shared=no
12220 fi
12221 ;;
12222 esac
12223 # Using Import Files as archive members, it is possible to support
12224 # filename-based versioning of shared library archives on AIX. While
12225 # this would work for both with and without runtime linking, it will
12226 # prevent static linking of such archives. So we do filename-based
12227 # shared library versioning with .so extension only, which is used
12228 # when both runtime linking and shared linking is enabled.
12229 # Unfortunately, runtime linking may impact performance, so we do
12230 # not want this to be the default eventually. Also, we use the
12231 # versioned .so libs for executables only if there is the -brtl
12232 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12233 # To allow for filename-based versioning support, we need to create
12234 # libNAME.so.V as an archive file, containing:
12235 # *) an Import File, referring to the versioned filename of the
12236 # archive as well as the shared archive member, telling the
12237 # bitwidth (32 or 64) of that shared object, and providing the
12238 # list of exported symbols of that shared object, eventually
12239 # decorated with the 'weak' keyword
12240 # *) the shared object with the F_LOADONLY flag set, to really avoid
12241 # it being seen by the linker.
12242 # At run time we better use the real file rather than another symlink,
12243 # but for link time we create the symlink libNAME.so -> libNAME.so.V
12244
12245 case $with_aix_soname,$aix_use_runtimelinking in
12246 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12247 # soname into executable. Probably we can add versioning support to
12248 # collect2, so additional links can be useful in future.
12249 aix,yes) # traditional libtool
12250 dynamic_linker='AIX unversionable lib.so'
12251 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12252 # instead of lib<name>.a to let people know that these are not
12253 # typical AIX shared libraries.
12254 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12255 ;;
12256 aix,no) # traditional AIX only
12257 dynamic_linker='AIX lib.a(lib.so.V)'
12258 # We preserve .a as extension for shared libraries through AIX4.2
12259 # and later when we are not doing run time linking.
12260 library_names_spec='$libname$release.a $libname.a'
12261 soname_spec='$libname$release$shared_ext$major'
12262 ;;
12263 svr4,*) # full svr4 only
12264 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12265 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12266 # We do not specify a path in Import Files, so LIBPATH fires.
12267 shlibpath_overrides_runpath=yes
12268 ;;
12269 *,yes) # both, prefer svr4
12270 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12271 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12272 # unpreferred sharedlib libNAME.a needs extra handling
12273 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
12274 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
12275 # We do not specify a path in Import Files, so LIBPATH fires.
12276 shlibpath_overrides_runpath=yes
12277 ;;
12278 *,no) # both, prefer aix
12279 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12280 library_names_spec='$libname$release.a $libname.a'
12281 soname_spec='$libname$release$shared_ext$major'
12282 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12283 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
12284 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
12285 ;;
12286 esac
12287 shlibpath_var=LIBPATH
12288 fi
12289 ;;
12290
12291 amigaos*)
12292 case $host_cpu in
12293 powerpc)
12294 # Since July 2007 AmigaOS4 officially supports .so libraries.
12295 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12296 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12297 ;;
12298 m68k)
12299 library_names_spec='$libname.ixlibrary $libname.a'
12300 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12301 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
12302 ;;
12303 esac
12304 ;;
12305
12306 beos*)
12307 library_names_spec='$libname$shared_ext'
12308 dynamic_linker="$host_os ld.so"
12309 shlibpath_var=LIBRARY_PATH
12310 ;;
12311
12312 bsdi[45]*)
12313 version_type=linux # correct to gnu/linux during the next big refactor
12314 need_version=no
12315 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12316 soname_spec='$libname$release$shared_ext$major'
12317 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12318 shlibpath_var=LD_LIBRARY_PATH
12319 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12320 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12321 # the default ld.so.conf also contains /usr/contrib/lib and
12322 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12323 # libtool to hard-code these into programs
12324 ;;
12325
12326 cygwin* | mingw* | pw32* | cegcc*)
12327 version_type=windows
12328 shrext_cmds=.dll
12329 need_version=no
12330 need_lib_prefix=no
12331
12332 case $GCC,$cc_basename in
12333 yes,*)
12334 # gcc
12335 library_names_spec='$libname.dll.a'
12336 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12337 postinstall_cmds='base_file=`basename \$file`~
12338 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12339 dldir=$destdir/`dirname \$dlpath`~
12340 test -d \$dldir || mkdir -p \$dldir~
12341 $install_prog $dir/$dlname \$dldir/$dlname~
12342 chmod a+x \$dldir/$dlname~
12343 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12344 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12345 fi'
12346 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12347 dlpath=$dir/\$dldll~
12348 $RM \$dlpath'
12349 shlibpath_overrides_runpath=yes
12350
12351 case $host_os in
12352 cygwin*)
12353 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12354 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12355
12356 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12357 ;;
12358 mingw* | cegcc*)
12359 # MinGW DLLs use traditional 'lib' prefix
12360 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12361 ;;
12362 pw32*)
12363 # pw32 DLLs use 'pw' prefix rather than 'lib'
12364 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12365 ;;
12366 esac
12367 dynamic_linker='Win32 ld.exe'
12368 ;;
12369
12370 *,cl*)
12371 # Native MSVC
12372 libname_spec='$name'
12373 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12374 library_names_spec='$libname.dll.lib'
12375
12376 case $build_os in
12377 mingw*)
12378 sys_lib_search_path_spec=
12379 lt_save_ifs=$IFS
12380 IFS=';'
12381 for lt_path in $LIB
12382 do
12383 IFS=$lt_save_ifs
12384 # Let DOS variable expansion print the short 8.3 style file name.
12385 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12386 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12387 done
12388 IFS=$lt_save_ifs
12389 # Convert to MSYS style.
12390 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12391 ;;
12392 cygwin*)
12393 # Convert to unix form, then to dos form, then back to unix form
12394 # but this time dos style (no spaces!) so that the unix form looks
12395 # like /cygdrive/c/PROGRA~1:/cygdr...
12396 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12397 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12398 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12399 ;;
12400 *)
12401 sys_lib_search_path_spec=$LIB
12402 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12403 # It is most probably a Windows format PATH.
12404 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12405 else
12406 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12407 fi
12408 # FIXME: find the short name or the path components, as spaces are
12409 # common. (e.g. "Program Files" -> "PROGRA~1")
12410 ;;
12411 esac
12412
12413 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12414 postinstall_cmds='base_file=`basename \$file`~
12415 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12416 dldir=$destdir/`dirname \$dlpath`~
12417 test -d \$dldir || mkdir -p \$dldir~
12418 $install_prog $dir/$dlname \$dldir/$dlname'
12419 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12420 dlpath=$dir/\$dldll~
12421 $RM \$dlpath'
12422 shlibpath_overrides_runpath=yes
12423 dynamic_linker='Win32 link.exe'
12424 ;;
12425
12426 *)
12427 # Assume MSVC wrapper
12428 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12429 dynamic_linker='Win32 ld.exe'
12430 ;;
12431 esac
12432 # FIXME: first we should search . and the directory the executable is in
12433 shlibpath_var=PATH
12434 ;;
12435
12436 darwin* | rhapsody*)
12437 dynamic_linker="$host_os dyld"
12438 version_type=darwin
12439 need_lib_prefix=no
12440 need_version=no
12441 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12442 soname_spec='$libname$release$major$shared_ext'
12443 shlibpath_overrides_runpath=yes
12444 shlibpath_var=DYLD_LIBRARY_PATH
12445 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12446
12447 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12448 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12449 ;;
12450
12451 dgux*)
12452 version_type=linux # correct to gnu/linux during the next big refactor
12453 need_lib_prefix=no
12454 need_version=no
12455 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12456 soname_spec='$libname$release$shared_ext$major'
12457 shlibpath_var=LD_LIBRARY_PATH
12458 ;;
12459
12460 freebsd* | dragonfly*)
12461 # DragonFly does not have aout. When/if they implement a new
12462 # versioning mechanism, adjust this.
12463 if test -x /usr/bin/objformat; then
12464 objformat=`/usr/bin/objformat`
12465 else
12466 case $host_os in
12467 freebsd[23].*) objformat=aout ;;
12468 *) objformat=elf ;;
12469 esac
12470 fi
12471 version_type=freebsd-$objformat
12472 case $version_type in
12473 freebsd-elf*)
12474 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12475 soname_spec='$libname$release$shared_ext$major'
12476 need_version=no
12477 need_lib_prefix=no
12478 ;;
12479 freebsd-*)
12480 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12481 need_version=yes
12482 ;;
12483 esac
12484 shlibpath_var=LD_LIBRARY_PATH
12485 case $host_os in
12486 freebsd2.*)
12487 shlibpath_overrides_runpath=yes
12488 ;;
12489 freebsd3.[01]* | freebsdelf3.[01]*)
12490 shlibpath_overrides_runpath=yes
12491 hardcode_into_libs=yes
12492 ;;
12493 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12494 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12495 shlibpath_overrides_runpath=no
12496 hardcode_into_libs=yes
12497 ;;
12498 *) # from 4.6 on, and DragonFly
12499 shlibpath_overrides_runpath=yes
12500 hardcode_into_libs=yes
12501 ;;
12502 esac
12503 ;;
12504
12505 haiku*)
12506 version_type=linux # correct to gnu/linux during the next big refactor
12507 need_lib_prefix=no
12508 need_version=no
12509 dynamic_linker="$host_os runtime_loader"
12510 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12511 soname_spec='$libname$release$shared_ext$major'
12512 shlibpath_var=LIBRARY_PATH
12513 shlibpath_overrides_runpath=no
12514 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12515 hardcode_into_libs=yes
12516 ;;
12517
12518 hpux9* | hpux10* | hpux11*)
12519 # Give a soname corresponding to the major version so that dld.sl refuses to
12520 # link against other versions.
12521 version_type=sunos
12522 need_lib_prefix=no
12523 need_version=no
12524 case $host_cpu in
12525 ia64*)
12526 shrext_cmds='.so'
12527 hardcode_into_libs=yes
12528 dynamic_linker="$host_os dld.so"
12529 shlibpath_var=LD_LIBRARY_PATH
12530 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12531 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12532 soname_spec='$libname$release$shared_ext$major'
12533 if test 32 = "$HPUX_IA64_MODE"; then
12534 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12535 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12536 else
12537 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12538 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12539 fi
12540 ;;
12541 hppa*64*)
12542 shrext_cmds='.sl'
12543 hardcode_into_libs=yes
12544 dynamic_linker="$host_os dld.sl"
12545 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12546 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12547 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12548 soname_spec='$libname$release$shared_ext$major'
12549 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12550 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12551 ;;
12552 *)
12553 shrext_cmds='.sl'
12554 dynamic_linker="$host_os dld.sl"
12555 shlibpath_var=SHLIB_PATH
12556 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12557 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12558 soname_spec='$libname$release$shared_ext$major'
12559 ;;
12560 esac
12561 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12562 postinstall_cmds='chmod 555 $lib'
12563 # or fails outright, so override atomically:
12564 install_override_mode=555
12565 ;;
12566
12567 interix[3-9]*)
12568 version_type=linux # correct to gnu/linux during the next big refactor
12569 need_lib_prefix=no
12570 need_version=no
12571 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12572 soname_spec='$libname$release$shared_ext$major'
12573 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12574 shlibpath_var=LD_LIBRARY_PATH
12575 shlibpath_overrides_runpath=no
12576 hardcode_into_libs=yes
12577 ;;
12578
12579 irix5* | irix6* | nonstopux*)
12580 case $host_os in
12581 nonstopux*) version_type=nonstopux ;;
12582 *)
12583 if test yes = "$lt_cv_prog_gnu_ld"; then
12584 version_type=linux # correct to gnu/linux during the next big refactor
12585 else
12586 version_type=irix
12587 fi ;;
12588 esac
12589 need_lib_prefix=no
12590 need_version=no
12591 soname_spec='$libname$release$shared_ext$major'
12592 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12593 case $host_os in
12594 irix5* | nonstopux*)
12595 libsuff= shlibsuff=
12596 ;;
12597 *)
12598 case $LD in # libtool.m4 will add one of these switches to LD
12599 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12600 libsuff= shlibsuff= libmagic=32-bit;;
12601 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12602 libsuff=32 shlibsuff=N32 libmagic=N32;;
12603 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12604 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12605 *) libsuff= shlibsuff= libmagic=never-match;;
12606 esac
12607 ;;
12608 esac
12609 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12610 shlibpath_overrides_runpath=no
12611 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12612 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12613 hardcode_into_libs=yes
12614 ;;
12615
12616 # No shared lib support for Linux oldld, aout, or coff.
12617 linux*oldld* | linux*aout* | linux*coff*)
12618 dynamic_linker=no
12619 ;;
12620
12621 linux*android*)
12622 version_type=none # Android doesn't support versioned libraries.
12623 need_lib_prefix=no
12624 need_version=no
12625 library_names_spec='$libname$release$shared_ext'
12626 soname_spec='$libname$release$shared_ext'
12627 finish_cmds=
12628 shlibpath_var=LD_LIBRARY_PATH
12629 shlibpath_overrides_runpath=yes
12630
12631 # This implies no fast_install, which is unacceptable.
12632 # Some rework will be needed to allow for fast_install
12633 # before this can be enabled.
12634 hardcode_into_libs=yes
12635
12636 dynamic_linker='Android linker'
12637 # Don't embed -rpath directories since the linker doesn't support them.
12638 hardcode_libdir_flag_spec='-L$libdir'
12639 ;;
12640
12641 # This must be glibc/ELF.
12642 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12643 version_type=linux # correct to gnu/linux during the next big refactor
12644 need_lib_prefix=no
12645 need_version=no
12646 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12647 soname_spec='$libname$release$shared_ext$major'
12648 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12649 shlibpath_var=LD_LIBRARY_PATH
12650 shlibpath_overrides_runpath=no
12651
12652 # Some binutils ld are patched to set DT_RUNPATH
12653 if test ${lt_cv_shlibpath_overrides_runpath+y}
12654 then :
12655 printf %s "(cached) " >&6
12656 else $as_nop
12657 lt_cv_shlibpath_overrides_runpath=no
12658 save_LDFLAGS=$LDFLAGS
12659 save_libdir=$libdir
12660 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12661 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12663 /* end confdefs.h. */
12664
12665 int
12666 main (void)
12667 {
12668
12669 ;
12670 return 0;
12671 }
12672 _ACEOF
12673 if ac_fn_c_try_link "$LINENO"
12674 then :
12675 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12676 then :
12677 lt_cv_shlibpath_overrides_runpath=yes
12678 fi
12679 fi
12680 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12681 conftest$ac_exeext conftest.$ac_ext
12682 LDFLAGS=$save_LDFLAGS
12683 libdir=$save_libdir
12684
12685 fi
12686
12687 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12688
12689 # This implies no fast_install, which is unacceptable.
12690 # Some rework will be needed to allow for fast_install
12691 # before this can be enabled.
12692 hardcode_into_libs=yes
12693
12694 # Ideally, we could use ldconfig to report *all* directores which are
12695 # searched for libraries, however this is still not possible. Aside from not
12696 # being certain /sbin/ldconfig is available, command
12697 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12698 # even though it is searched at run-time. Try to do the best guess by
12699 # appending ld.so.conf contents (and includes) to the search path.
12700 if test -f /etc/ld.so.conf; then
12701 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' ' '`
12702 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12703 fi
12704
12705 # We used to test for /lib/ld.so.1 and disable shared libraries on
12706 # powerpc, because MkLinux only supported shared libraries with the
12707 # GNU dynamic linker. Since this was broken with cross compilers,
12708 # most powerpc-linux boxes support dynamic linking these days and
12709 # people can always --disable-shared, the test was removed, and we
12710 # assume the GNU/Linux dynamic linker is in use.
12711 dynamic_linker='GNU/Linux ld.so'
12712 ;;
12713
12714 netbsd*)
12715 version_type=sunos
12716 need_lib_prefix=no
12717 need_version=no
12718 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12719 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12720 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12721 dynamic_linker='NetBSD (a.out) ld.so'
12722 else
12723 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12724 soname_spec='$libname$release$shared_ext$major'
12725 dynamic_linker='NetBSD ld.elf_so'
12726 fi
12727 shlibpath_var=LD_LIBRARY_PATH
12728 shlibpath_overrides_runpath=yes
12729 hardcode_into_libs=yes
12730 ;;
12731
12732 newsos6)
12733 version_type=linux # correct to gnu/linux during the next big refactor
12734 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12735 shlibpath_var=LD_LIBRARY_PATH
12736 shlibpath_overrides_runpath=yes
12737 ;;
12738
12739 *nto* | *qnx*)
12740 version_type=qnx
12741 need_lib_prefix=no
12742 need_version=no
12743 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12744 soname_spec='$libname$release$shared_ext$major'
12745 shlibpath_var=LD_LIBRARY_PATH
12746 shlibpath_overrides_runpath=no
12747 hardcode_into_libs=yes
12748 dynamic_linker='ldqnx.so'
12749 ;;
12750
12751 openbsd* | bitrig*)
12752 version_type=sunos
12753 sys_lib_dlsearch_path_spec=/usr/lib
12754 need_lib_prefix=no
12755 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12756 need_version=no
12757 else
12758 need_version=yes
12759 fi
12760 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12761 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12762 shlibpath_var=LD_LIBRARY_PATH
12763 shlibpath_overrides_runpath=yes
12764 ;;
12765
12766 os2*)
12767 libname_spec='$name'
12768 version_type=windows
12769 shrext_cmds=.dll
12770 need_version=no
12771 need_lib_prefix=no
12772 # OS/2 can only load a DLL with a base name of 8 characters or less.
12773 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12774 v=$($ECHO $release$versuffix | tr -d .-);
12775 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12776 $ECHO $n$v`$shared_ext'
12777 library_names_spec='${libname}_dll.$libext'
12778 dynamic_linker='OS/2 ld.exe'
12779 shlibpath_var=BEGINLIBPATH
12780 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12781 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12782 postinstall_cmds='base_file=`basename \$file`~
12783 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12784 dldir=$destdir/`dirname \$dlpath`~
12785 test -d \$dldir || mkdir -p \$dldir~
12786 $install_prog $dir/$dlname \$dldir/$dlname~
12787 chmod a+x \$dldir/$dlname~
12788 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12789 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12790 fi'
12791 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12792 dlpath=$dir/\$dldll~
12793 $RM \$dlpath'
12794 ;;
12795
12796 osf3* | osf4* | osf5*)
12797 version_type=osf
12798 need_lib_prefix=no
12799 need_version=no
12800 soname_spec='$libname$release$shared_ext$major'
12801 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12802 shlibpath_var=LD_LIBRARY_PATH
12803 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12804 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12805 ;;
12806
12807 rdos*)
12808 dynamic_linker=no
12809 ;;
12810
12811 solaris*)
12812 version_type=linux # correct to gnu/linux during the next big refactor
12813 need_lib_prefix=no
12814 need_version=no
12815 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12816 soname_spec='$libname$release$shared_ext$major'
12817 shlibpath_var=LD_LIBRARY_PATH
12818 shlibpath_overrides_runpath=yes
12819 hardcode_into_libs=yes
12820 # ldd complains unless libraries are executable
12821 postinstall_cmds='chmod +x $lib'
12822 ;;
12823
12824 sunos4*)
12825 version_type=sunos
12826 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12827 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12828 shlibpath_var=LD_LIBRARY_PATH
12829 shlibpath_overrides_runpath=yes
12830 if test yes = "$with_gnu_ld"; then
12831 need_lib_prefix=no
12832 fi
12833 need_version=yes
12834 ;;
12835
12836 sysv4 | sysv4.3*)
12837 version_type=linux # correct to gnu/linux during the next big refactor
12838 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12839 soname_spec='$libname$release$shared_ext$major'
12840 shlibpath_var=LD_LIBRARY_PATH
12841 case $host_vendor in
12842 sni)
12843 shlibpath_overrides_runpath=no
12844 need_lib_prefix=no
12845 runpath_var=LD_RUN_PATH
12846 ;;
12847 siemens)
12848 need_lib_prefix=no
12849 ;;
12850 motorola)
12851 need_lib_prefix=no
12852 need_version=no
12853 shlibpath_overrides_runpath=no
12854 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12855 ;;
12856 esac
12857 ;;
12858
12859 sysv4*MP*)
12860 if test -d /usr/nec; then
12861 version_type=linux # correct to gnu/linux during the next big refactor
12862 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12863 soname_spec='$libname$shared_ext.$major'
12864 shlibpath_var=LD_LIBRARY_PATH
12865 fi
12866 ;;
12867
12868 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12869 version_type=sco
12870 need_lib_prefix=no
12871 need_version=no
12872 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12873 soname_spec='$libname$release$shared_ext$major'
12874 shlibpath_var=LD_LIBRARY_PATH
12875 shlibpath_overrides_runpath=yes
12876 hardcode_into_libs=yes
12877 if test yes = "$with_gnu_ld"; then
12878 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12879 else
12880 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12881 case $host_os in
12882 sco3.2v5*)
12883 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12884 ;;
12885 esac
12886 fi
12887 sys_lib_dlsearch_path_spec='/usr/lib'
12888 ;;
12889
12890 tpf*)
12891 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12892 version_type=linux # correct to gnu/linux during the next big refactor
12893 need_lib_prefix=no
12894 need_version=no
12895 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12896 shlibpath_var=LD_LIBRARY_PATH
12897 shlibpath_overrides_runpath=no
12898 hardcode_into_libs=yes
12899 ;;
12900
12901 uts4*)
12902 version_type=linux # correct to gnu/linux during the next big refactor
12903 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12904 soname_spec='$libname$release$shared_ext$major'
12905 shlibpath_var=LD_LIBRARY_PATH
12906 ;;
12907
12908 *)
12909 dynamic_linker=no
12910 ;;
12911 esac
12912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12913 printf "%s\n" "$dynamic_linker" >&6; }
12914 test no = "$dynamic_linker" && can_build_shared=no
12915
12916 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12917 if test yes = "$GCC"; then
12918 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12919 fi
12920
12921 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12922 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12923 fi
12924
12925 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12926 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12927 fi
12928
12929 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12930 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12931
12932 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12933 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12934
12935 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12936 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966
12967
12968
12969
12970
12971
12972
12973
12974
12975
12976
12977
12978
12979
12980
12981
12982
12983
12984
12985
12986
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002
13003
13004
13005
13006
13007
13008
13009
13010
13011
13012
13013
13014
13015
13016
13017
13018
13019
13020
13021
13022
13023
13024
13025
13026
13027
13028
13029
13030
13031
13032
13033
13034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13035 printf %s "checking how to hardcode library paths into programs... " >&6; }
13036 hardcode_action=
13037 if test -n "$hardcode_libdir_flag_spec" ||
13038 test -n "$runpath_var" ||
13039 test yes = "$hardcode_automatic"; then
13040
13041 # We can hardcode non-existent directories.
13042 if test no != "$hardcode_direct" &&
13043 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13044 # have to relink, otherwise we might link with an installed library
13045 # when we should be linking with a yet-to-be-installed one
13046 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13047 test no != "$hardcode_minus_L"; then
13048 # Linking always hardcodes the temporary library directory.
13049 hardcode_action=relink
13050 else
13051 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13052 hardcode_action=immediate
13053 fi
13054 else
13055 # We cannot hardcode anything, or else we can only hardcode existing
13056 # directories.
13057 hardcode_action=unsupported
13058 fi
13059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13060 printf "%s\n" "$hardcode_action" >&6; }
13061
13062 if test relink = "$hardcode_action" ||
13063 test yes = "$inherit_rpath"; then
13064 # Fast installation is not supported
13065 enable_fast_install=no
13066 elif test yes = "$shlibpath_overrides_runpath" ||
13067 test no = "$enable_shared"; then
13068 # Fast installation is not necessary
13069 enable_fast_install=needless
13070 fi
13071
13072
13073
13074
13075
13076
13077 if test yes != "$enable_dlopen"; then
13078 enable_dlopen=unknown
13079 enable_dlopen_self=unknown
13080 enable_dlopen_self_static=unknown
13081 else
13082 lt_cv_dlopen=no
13083 lt_cv_dlopen_libs=
13084
13085 case $host_os in
13086 beos*)
13087 lt_cv_dlopen=load_add_on
13088 lt_cv_dlopen_libs=
13089 lt_cv_dlopen_self=yes
13090 ;;
13091
13092 mingw* | pw32* | cegcc*)
13093 lt_cv_dlopen=LoadLibrary
13094 lt_cv_dlopen_libs=
13095 ;;
13096
13097 cygwin*)
13098 lt_cv_dlopen=dlopen
13099 lt_cv_dlopen_libs=
13100 ;;
13101
13102 darwin*)
13103 # if libdl is installed we need to link against it
13104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13105 printf %s "checking for dlopen in -ldl... " >&6; }
13106 if test ${ac_cv_lib_dl_dlopen+y}
13107 then :
13108 printf %s "(cached) " >&6
13109 else $as_nop
13110 ac_check_lib_save_LIBS=$LIBS
13111 LIBS="-ldl $LIBS"
13112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13113 /* end confdefs.h. */
13114
13115 /* Override any GCC internal prototype to avoid an error.
13116 Use char because int might match the return type of a GCC
13117 builtin and then its argument prototype would still apply. */
13118 char dlopen ();
13119 int
13120 main (void)
13121 {
13122 return dlopen ();
13123 ;
13124 return 0;
13125 }
13126 _ACEOF
13127 if ac_fn_c_try_link "$LINENO"
13128 then :
13129 ac_cv_lib_dl_dlopen=yes
13130 else $as_nop
13131 ac_cv_lib_dl_dlopen=no
13132 fi
13133 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13134 conftest$ac_exeext conftest.$ac_ext
13135 LIBS=$ac_check_lib_save_LIBS
13136 fi
13137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13138 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13139 if test "x$ac_cv_lib_dl_dlopen" = xyes
13140 then :
13141 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13142 else $as_nop
13143
13144 lt_cv_dlopen=dyld
13145 lt_cv_dlopen_libs=
13146 lt_cv_dlopen_self=yes
13147
13148 fi
13149
13150 ;;
13151
13152 tpf*)
13153 # Don't try to run any link tests for TPF. We know it's impossible
13154 # because TPF is a cross-compiler, and we know how we open DSOs.
13155 lt_cv_dlopen=dlopen
13156 lt_cv_dlopen_libs=
13157 lt_cv_dlopen_self=no
13158 ;;
13159
13160 *)
13161 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13162 if test "x$ac_cv_func_shl_load" = xyes
13163 then :
13164 lt_cv_dlopen=shl_load
13165 else $as_nop
13166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13167 printf %s "checking for shl_load in -ldld... " >&6; }
13168 if test ${ac_cv_lib_dld_shl_load+y}
13169 then :
13170 printf %s "(cached) " >&6
13171 else $as_nop
13172 ac_check_lib_save_LIBS=$LIBS
13173 LIBS="-ldld $LIBS"
13174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13175 /* end confdefs.h. */
13176
13177 /* Override any GCC internal prototype to avoid an error.
13178 Use char because int might match the return type of a GCC
13179 builtin and then its argument prototype would still apply. */
13180 char shl_load ();
13181 int
13182 main (void)
13183 {
13184 return shl_load ();
13185 ;
13186 return 0;
13187 }
13188 _ACEOF
13189 if ac_fn_c_try_link "$LINENO"
13190 then :
13191 ac_cv_lib_dld_shl_load=yes
13192 else $as_nop
13193 ac_cv_lib_dld_shl_load=no
13194 fi
13195 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13196 conftest$ac_exeext conftest.$ac_ext
13197 LIBS=$ac_check_lib_save_LIBS
13198 fi
13199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13200 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
13201 if test "x$ac_cv_lib_dld_shl_load" = xyes
13202 then :
13203 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13204 else $as_nop
13205 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13206 if test "x$ac_cv_func_dlopen" = xyes
13207 then :
13208 lt_cv_dlopen=dlopen
13209 else $as_nop
13210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13211 printf %s "checking for dlopen in -ldl... " >&6; }
13212 if test ${ac_cv_lib_dl_dlopen+y}
13213 then :
13214 printf %s "(cached) " >&6
13215 else $as_nop
13216 ac_check_lib_save_LIBS=$LIBS
13217 LIBS="-ldl $LIBS"
13218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13219 /* end confdefs.h. */
13220
13221 /* Override any GCC internal prototype to avoid an error.
13222 Use char because int might match the return type of a GCC
13223 builtin and then its argument prototype would still apply. */
13224 char dlopen ();
13225 int
13226 main (void)
13227 {
13228 return dlopen ();
13229 ;
13230 return 0;
13231 }
13232 _ACEOF
13233 if ac_fn_c_try_link "$LINENO"
13234 then :
13235 ac_cv_lib_dl_dlopen=yes
13236 else $as_nop
13237 ac_cv_lib_dl_dlopen=no
13238 fi
13239 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13240 conftest$ac_exeext conftest.$ac_ext
13241 LIBS=$ac_check_lib_save_LIBS
13242 fi
13243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13244 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13245 if test "x$ac_cv_lib_dl_dlopen" = xyes
13246 then :
13247 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13248 else $as_nop
13249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13250 printf %s "checking for dlopen in -lsvld... " >&6; }
13251 if test ${ac_cv_lib_svld_dlopen+y}
13252 then :
13253 printf %s "(cached) " >&6
13254 else $as_nop
13255 ac_check_lib_save_LIBS=$LIBS
13256 LIBS="-lsvld $LIBS"
13257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13258 /* end confdefs.h. */
13259
13260 /* Override any GCC internal prototype to avoid an error.
13261 Use char because int might match the return type of a GCC
13262 builtin and then its argument prototype would still apply. */
13263 char dlopen ();
13264 int
13265 main (void)
13266 {
13267 return dlopen ();
13268 ;
13269 return 0;
13270 }
13271 _ACEOF
13272 if ac_fn_c_try_link "$LINENO"
13273 then :
13274 ac_cv_lib_svld_dlopen=yes
13275 else $as_nop
13276 ac_cv_lib_svld_dlopen=no
13277 fi
13278 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13279 conftest$ac_exeext conftest.$ac_ext
13280 LIBS=$ac_check_lib_save_LIBS
13281 fi
13282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13283 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
13284 if test "x$ac_cv_lib_svld_dlopen" = xyes
13285 then :
13286 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13287 else $as_nop
13288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13289 printf %s "checking for dld_link in -ldld... " >&6; }
13290 if test ${ac_cv_lib_dld_dld_link+y}
13291 then :
13292 printf %s "(cached) " >&6
13293 else $as_nop
13294 ac_check_lib_save_LIBS=$LIBS
13295 LIBS="-ldld $LIBS"
13296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13297 /* end confdefs.h. */
13298
13299 /* Override any GCC internal prototype to avoid an error.
13300 Use char because int might match the return type of a GCC
13301 builtin and then its argument prototype would still apply. */
13302 char dld_link ();
13303 int
13304 main (void)
13305 {
13306 return dld_link ();
13307 ;
13308 return 0;
13309 }
13310 _ACEOF
13311 if ac_fn_c_try_link "$LINENO"
13312 then :
13313 ac_cv_lib_dld_dld_link=yes
13314 else $as_nop
13315 ac_cv_lib_dld_dld_link=no
13316 fi
13317 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13318 conftest$ac_exeext conftest.$ac_ext
13319 LIBS=$ac_check_lib_save_LIBS
13320 fi
13321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13322 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
13323 if test "x$ac_cv_lib_dld_dld_link" = xyes
13324 then :
13325 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13326 fi
13327
13328
13329 fi
13330
13331
13332 fi
13333
13334
13335 fi
13336
13337
13338 fi
13339
13340
13341 fi
13342
13343 ;;
13344 esac
13345
13346 if test no = "$lt_cv_dlopen"; then
13347 enable_dlopen=no
13348 else
13349 enable_dlopen=yes
13350 fi
13351
13352 case $lt_cv_dlopen in
13353 dlopen)
13354 save_CPPFLAGS=$CPPFLAGS
13355 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13356
13357 save_LDFLAGS=$LDFLAGS
13358 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13359
13360 save_LIBS=$LIBS
13361 LIBS="$lt_cv_dlopen_libs $LIBS"
13362
13363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13364 printf %s "checking whether a program can dlopen itself... " >&6; }
13365 if test ${lt_cv_dlopen_self+y}
13366 then :
13367 printf %s "(cached) " >&6
13368 else $as_nop
13369 if test yes = "$cross_compiling"; then :
13370 lt_cv_dlopen_self=cross
13371 else
13372 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13373 lt_status=$lt_dlunknown
13374 cat > conftest.$ac_ext <<_LT_EOF
13375 #line $LINENO "configure"
13376 #include "confdefs.h"
13377
13378 #if HAVE_DLFCN_H
13379 #include <dlfcn.h>
13380 #endif
13381
13382 #include <stdio.h>
13383
13384 #ifdef RTLD_GLOBAL
13385 # define LT_DLGLOBAL RTLD_GLOBAL
13386 #else
13387 # ifdef DL_GLOBAL
13388 # define LT_DLGLOBAL DL_GLOBAL
13389 # else
13390 # define LT_DLGLOBAL 0
13391 # endif
13392 #endif
13393
13394 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13395 find out it does not work in some platform. */
13396 #ifndef LT_DLLAZY_OR_NOW
13397 # ifdef RTLD_LAZY
13398 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13399 # else
13400 # ifdef DL_LAZY
13401 # define LT_DLLAZY_OR_NOW DL_LAZY
13402 # else
13403 # ifdef RTLD_NOW
13404 # define LT_DLLAZY_OR_NOW RTLD_NOW
13405 # else
13406 # ifdef DL_NOW
13407 # define LT_DLLAZY_OR_NOW DL_NOW
13408 # else
13409 # define LT_DLLAZY_OR_NOW 0
13410 # endif
13411 # endif
13412 # endif
13413 # endif
13414 #endif
13415
13416 /* When -fvisibility=hidden is used, assume the code has been annotated
13417 correspondingly for the symbols needed. */
13418 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13419 int fnord () __attribute__((visibility("default")));
13420 #endif
13421
13422 int fnord () { return 42; }
13423 int main ()
13424 {
13425 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13426 int status = $lt_dlunknown;
13427
13428 if (self)
13429 {
13430 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13431 else
13432 {
13433 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13434 else puts (dlerror ());
13435 }
13436 /* dlclose (self); */
13437 }
13438 else
13439 puts (dlerror ());
13440
13441 return status;
13442 }
13443 _LT_EOF
13444 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13445 (eval $ac_link) 2>&5
13446 ac_status=$?
13447 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13448 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13449 (./conftest; exit; ) >&5 2>/dev/null
13450 lt_status=$?
13451 case x$lt_status in
13452 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13453 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13454 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13455 esac
13456 else :
13457 # compilation failed
13458 lt_cv_dlopen_self=no
13459 fi
13460 fi
13461 rm -fr conftest*
13462
13463
13464 fi
13465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13466 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
13467
13468 if test yes = "$lt_cv_dlopen_self"; then
13469 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13471 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
13472 if test ${lt_cv_dlopen_self_static+y}
13473 then :
13474 printf %s "(cached) " >&6
13475 else $as_nop
13476 if test yes = "$cross_compiling"; then :
13477 lt_cv_dlopen_self_static=cross
13478 else
13479 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13480 lt_status=$lt_dlunknown
13481 cat > conftest.$ac_ext <<_LT_EOF
13482 #line $LINENO "configure"
13483 #include "confdefs.h"
13484
13485 #if HAVE_DLFCN_H
13486 #include <dlfcn.h>
13487 #endif
13488
13489 #include <stdio.h>
13490
13491 #ifdef RTLD_GLOBAL
13492 # define LT_DLGLOBAL RTLD_GLOBAL
13493 #else
13494 # ifdef DL_GLOBAL
13495 # define LT_DLGLOBAL DL_GLOBAL
13496 # else
13497 # define LT_DLGLOBAL 0
13498 # endif
13499 #endif
13500
13501 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13502 find out it does not work in some platform. */
13503 #ifndef LT_DLLAZY_OR_NOW
13504 # ifdef RTLD_LAZY
13505 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13506 # else
13507 # ifdef DL_LAZY
13508 # define LT_DLLAZY_OR_NOW DL_LAZY
13509 # else
13510 # ifdef RTLD_NOW
13511 # define LT_DLLAZY_OR_NOW RTLD_NOW
13512 # else
13513 # ifdef DL_NOW
13514 # define LT_DLLAZY_OR_NOW DL_NOW
13515 # else
13516 # define LT_DLLAZY_OR_NOW 0
13517 # endif
13518 # endif
13519 # endif
13520 # endif
13521 #endif
13522
13523 /* When -fvisibility=hidden is used, assume the code has been annotated
13524 correspondingly for the symbols needed. */
13525 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13526 int fnord () __attribute__((visibility("default")));
13527 #endif
13528
13529 int fnord () { return 42; }
13530 int main ()
13531 {
13532 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13533 int status = $lt_dlunknown;
13534
13535 if (self)
13536 {
13537 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13538 else
13539 {
13540 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13541 else puts (dlerror ());
13542 }
13543 /* dlclose (self); */
13544 }
13545 else
13546 puts (dlerror ());
13547
13548 return status;
13549 }
13550 _LT_EOF
13551 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13552 (eval $ac_link) 2>&5
13553 ac_status=$?
13554 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13555 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13556 (./conftest; exit; ) >&5 2>/dev/null
13557 lt_status=$?
13558 case x$lt_status in
13559 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13560 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13561 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13562 esac
13563 else :
13564 # compilation failed
13565 lt_cv_dlopen_self_static=no
13566 fi
13567 fi
13568 rm -fr conftest*
13569
13570
13571 fi
13572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13573 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
13574 fi
13575
13576 CPPFLAGS=$save_CPPFLAGS
13577 LDFLAGS=$save_LDFLAGS
13578 LIBS=$save_LIBS
13579 ;;
13580 esac
13581
13582 case $lt_cv_dlopen_self in
13583 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13584 *) enable_dlopen_self=unknown ;;
13585 esac
13586
13587 case $lt_cv_dlopen_self_static in
13588 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13589 *) enable_dlopen_self_static=unknown ;;
13590 esac
13591 fi
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609 striplib=
13610 old_striplib=
13611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13612 printf %s "checking whether stripping libraries is possible... " >&6; }
13613 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13614 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13615 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13617 printf "%s\n" "yes" >&6; }
13618 else
13619 # FIXME - insert some real tests, host_os isn't really good enough
13620 case $host_os in
13621 darwin*)
13622 if test -n "$STRIP"; then
13623 striplib="$STRIP -x"
13624 old_striplib="$STRIP -S"
13625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13626 printf "%s\n" "yes" >&6; }
13627 else
13628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13629 printf "%s\n" "no" >&6; }
13630 fi
13631 ;;
13632 *)
13633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13634 printf "%s\n" "no" >&6; }
13635 ;;
13636 esac
13637 fi
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650 # Report what library types will actually be built
13651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13652 printf %s "checking if libtool supports shared libraries... " >&6; }
13653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13654 printf "%s\n" "$can_build_shared" >&6; }
13655
13656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13657 printf %s "checking whether to build shared libraries... " >&6; }
13658 test no = "$can_build_shared" && enable_shared=no
13659
13660 # On AIX, shared libraries and static libraries use the same namespace, and
13661 # are all built from PIC.
13662 case $host_os in
13663 aix3*)
13664 test yes = "$enable_shared" && enable_static=no
13665 if test -n "$RANLIB"; then
13666 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13667 postinstall_cmds='$RANLIB $lib'
13668 fi
13669 ;;
13670
13671 aix[4-9]*)
13672 if test ia64 != "$host_cpu"; then
13673 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13674 yes,aix,yes) ;; # shared object as lib.so file only
13675 yes,svr4,*) ;; # shared object as lib.so archive member only
13676 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13677 esac
13678 fi
13679 ;;
13680 esac
13681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13682 printf "%s\n" "$enable_shared" >&6; }
13683
13684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13685 printf %s "checking whether to build static libraries... " >&6; }
13686 # Make sure either enable_shared or enable_static is yes.
13687 test yes = "$enable_shared" || enable_static=yes
13688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13689 printf "%s\n" "$enable_static" >&6; }
13690
13691
13692
13693
13694 fi
13695 ac_ext=c
13696 ac_cpp='$CPP $CPPFLAGS'
13697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13700
13701 CC=$lt_save_CC
13702
13703 if test -n "$CXX" && ( test no != "$CXX" &&
13704 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
13705 (test g++ != "$CXX"))); then
13706 ac_ext=cpp
13707 ac_cpp='$CXXCPP $CPPFLAGS'
13708 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13709 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13710 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13712 printf %s "checking how to run the C++ preprocessor... " >&6; }
13713 if test -z "$CXXCPP"; then
13714 if test ${ac_cv_prog_CXXCPP+y}
13715 then :
13716 printf %s "(cached) " >&6
13717 else $as_nop
13718 # Double quotes because $CXX needs to be expanded
13719 for CXXCPP in "$CXX -E" cpp /lib/cpp
13720 do
13721 ac_preproc_ok=false
13722 for ac_cxx_preproc_warn_flag in '' yes
13723 do
13724 # Use a header file that comes with gcc, so configuring glibc
13725 # with a fresh cross-compiler works.
13726 # On the NeXT, cc -E runs the code through the compiler's parser,
13727 # not just through cpp. "Syntax error" is here to catch this case.
13728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13729 /* end confdefs.h. */
13730 #include <limits.h>
13731 Syntax error
13732 _ACEOF
13733 if ac_fn_cxx_try_cpp "$LINENO"
13734 then :
13735
13736 else $as_nop
13737 # Broken: fails on valid input.
13738 continue
13739 fi
13740 rm -f conftest.err conftest.i conftest.$ac_ext
13741
13742 # OK, works on sane cases. Now check whether nonexistent headers
13743 # can be detected and how.
13744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13745 /* end confdefs.h. */
13746 #include <ac_nonexistent.h>
13747 _ACEOF
13748 if ac_fn_cxx_try_cpp "$LINENO"
13749 then :
13750 # Broken: success on invalid input.
13751 continue
13752 else $as_nop
13753 # Passes both tests.
13754 ac_preproc_ok=:
13755 break
13756 fi
13757 rm -f conftest.err conftest.i conftest.$ac_ext
13758
13759 done
13760 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13761 rm -f conftest.i conftest.err conftest.$ac_ext
13762 if $ac_preproc_ok
13763 then :
13764 break
13765 fi
13766
13767 done
13768 ac_cv_prog_CXXCPP=$CXXCPP
13769
13770 fi
13771 CXXCPP=$ac_cv_prog_CXXCPP
13772 else
13773 ac_cv_prog_CXXCPP=$CXXCPP
13774 fi
13775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13776 printf "%s\n" "$CXXCPP" >&6; }
13777 ac_preproc_ok=false
13778 for ac_cxx_preproc_warn_flag in '' yes
13779 do
13780 # Use a header file that comes with gcc, so configuring glibc
13781 # with a fresh cross-compiler works.
13782 # On the NeXT, cc -E runs the code through the compiler's parser,
13783 # not just through cpp. "Syntax error" is here to catch this case.
13784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13785 /* end confdefs.h. */
13786 #include <limits.h>
13787 Syntax error
13788 _ACEOF
13789 if ac_fn_cxx_try_cpp "$LINENO"
13790 then :
13791
13792 else $as_nop
13793 # Broken: fails on valid input.
13794 continue
13795 fi
13796 rm -f conftest.err conftest.i conftest.$ac_ext
13797
13798 # OK, works on sane cases. Now check whether nonexistent headers
13799 # can be detected and how.
13800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13801 /* end confdefs.h. */
13802 #include <ac_nonexistent.h>
13803 _ACEOF
13804 if ac_fn_cxx_try_cpp "$LINENO"
13805 then :
13806 # Broken: success on invalid input.
13807 continue
13808 else $as_nop
13809 # Passes both tests.
13810 ac_preproc_ok=:
13811 break
13812 fi
13813 rm -f conftest.err conftest.i conftest.$ac_ext
13814
13815 done
13816 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13817 rm -f conftest.i conftest.err conftest.$ac_ext
13818 if $ac_preproc_ok
13819 then :
13820
13821 else $as_nop
13822 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13823 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13824 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13825 See \`config.log' for more details" "$LINENO" 5; }
13826 fi
13827
13828 ac_ext=c
13829 ac_cpp='$CPP $CPPFLAGS'
13830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13833
13834 else
13835 _lt_caught_CXX_error=yes
13836 fi
13837
13838 ac_ext=cpp
13839 ac_cpp='$CXXCPP $CPPFLAGS'
13840 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13841 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13842 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13843
13844 archive_cmds_need_lc_CXX=no
13845 allow_undefined_flag_CXX=
13846 always_export_symbols_CXX=no
13847 archive_expsym_cmds_CXX=
13848 compiler_needs_object_CXX=no
13849 export_dynamic_flag_spec_CXX=
13850 hardcode_direct_CXX=no
13851 hardcode_direct_absolute_CXX=no
13852 hardcode_libdir_flag_spec_CXX=
13853 hardcode_libdir_separator_CXX=
13854 hardcode_minus_L_CXX=no
13855 hardcode_shlibpath_var_CXX=unsupported
13856 hardcode_automatic_CXX=no
13857 inherit_rpath_CXX=no
13858 module_cmds_CXX=
13859 module_expsym_cmds_CXX=
13860 link_all_deplibs_CXX=unknown
13861 old_archive_cmds_CXX=$old_archive_cmds
13862 reload_flag_CXX=$reload_flag
13863 reload_cmds_CXX=$reload_cmds
13864 no_undefined_flag_CXX=
13865 whole_archive_flag_spec_CXX=
13866 enable_shared_with_static_runtimes_CXX=no
13867
13868 # Source file extension for C++ test sources.
13869 ac_ext=cpp
13870
13871 # Object file extension for compiled C++ test sources.
13872 objext=o
13873 objext_CXX=$objext
13874
13875 # No sense in running all these tests if we already determined that
13876 # the CXX compiler isn't working. Some variables (like enable_shared)
13877 # are currently assumed to apply to all compilers on this platform,
13878 # and will be corrupted by setting them based on a non-working compiler.
13879 if test yes != "$_lt_caught_CXX_error"; then
13880 # Code to be used in simple compile tests
13881 lt_simple_compile_test_code="int some_variable = 0;"
13882
13883 # Code to be used in simple link tests
13884 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13885
13886 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13887
13888
13889
13890
13891
13892
13893 # If no C compiler was specified, use CC.
13894 LTCC=${LTCC-"$CC"}
13895
13896 # If no C compiler flags were specified, use CFLAGS.
13897 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13898
13899 # Allow CC to be a program name with arguments.
13900 compiler=$CC
13901
13902
13903 # save warnings/boilerplate of simple test code
13904 ac_outfile=conftest.$ac_objext
13905 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13906 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13907 _lt_compiler_boilerplate=`cat conftest.err`
13908 $RM conftest*
13909
13910 ac_outfile=conftest.$ac_objext
13911 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13912 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13913 _lt_linker_boilerplate=`cat conftest.err`
13914 $RM -r conftest*
13915
13916
13917 # Allow CC to be a program name with arguments.
13918 lt_save_CC=$CC
13919 lt_save_CFLAGS=$CFLAGS
13920 lt_save_LD=$LD
13921 lt_save_GCC=$GCC
13922 GCC=$GXX
13923 lt_save_with_gnu_ld=$with_gnu_ld
13924 lt_save_path_LD=$lt_cv_path_LD
13925 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13926 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13927 else
13928 $as_unset lt_cv_prog_gnu_ld
13929 fi
13930 if test -n "${lt_cv_path_LDCXX+set}"; then
13931 lt_cv_path_LD=$lt_cv_path_LDCXX
13932 else
13933 $as_unset lt_cv_path_LD
13934 fi
13935 test -z "${LDCXX+set}" || LD=$LDCXX
13936 CC=${CXX-"c++"}
13937 CFLAGS=$CXXFLAGS
13938 compiler=$CC
13939 compiler_CXX=$CC
13940 func_cc_basename $compiler
13941 cc_basename=$func_cc_basename_result
13942
13943
13944 if test -n "$compiler"; then
13945 # We don't want -fno-exception when compiling C++ code, so set the
13946 # no_builtin_flag separately
13947 if test yes = "$GXX"; then
13948 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13949 else
13950 lt_prog_compiler_no_builtin_flag_CXX=
13951 fi
13952
13953 if test yes = "$GXX"; then
13954 # Set up default GNU C++ configuration
13955
13956
13957
13958 # Check whether --with-gnu-ld was given.
13959 if test ${with_gnu_ld+y}
13960 then :
13961 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
13962 else $as_nop
13963 with_gnu_ld=no
13964 fi
13965
13966 ac_prog=ld
13967 if test yes = "$GCC"; then
13968 # Check if gcc -print-prog-name=ld gives a path.
13969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13970 printf %s "checking for ld used by $CC... " >&6; }
13971 case $host in
13972 *-*-mingw*)
13973 # gcc leaves a trailing carriage return, which upsets mingw
13974 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13975 *)
13976 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13977 esac
13978 case $ac_prog in
13979 # Accept absolute paths.
13980 [\\/]* | ?:[\\/]*)
13981 re_direlt='/[^/][^/]*/\.\./'
13982 # Canonicalize the pathname of ld
13983 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13984 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13985 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13986 done
13987 test -z "$LD" && LD=$ac_prog
13988 ;;
13989 "")
13990 # If it fails, then pretend we aren't using GCC.
13991 ac_prog=ld
13992 ;;
13993 *)
13994 # If it is relative, then search for the first ld in PATH.
13995 with_gnu_ld=unknown
13996 ;;
13997 esac
13998 elif test yes = "$with_gnu_ld"; then
13999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14000 printf %s "checking for GNU ld... " >&6; }
14001 else
14002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14003 printf %s "checking for non-GNU ld... " >&6; }
14004 fi
14005 if test ${lt_cv_path_LD+y}
14006 then :
14007 printf %s "(cached) " >&6
14008 else $as_nop
14009 if test -z "$LD"; then
14010 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14011 for ac_dir in $PATH; do
14012 IFS=$lt_save_ifs
14013 test -z "$ac_dir" && ac_dir=.
14014 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14015 lt_cv_path_LD=$ac_dir/$ac_prog
14016 # Check to see if the program is GNU ld. I'd rather use --version,
14017 # but apparently some variants of GNU ld only accept -v.
14018 # Break only if it was the GNU/non-GNU ld that we prefer.
14019 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14020 *GNU* | *'with BFD'*)
14021 test no != "$with_gnu_ld" && break
14022 ;;
14023 *)
14024 test yes != "$with_gnu_ld" && break
14025 ;;
14026 esac
14027 fi
14028 done
14029 IFS=$lt_save_ifs
14030 else
14031 lt_cv_path_LD=$LD # Let the user override the test with a path.
14032 fi
14033 fi
14034
14035 LD=$lt_cv_path_LD
14036 if test -n "$LD"; then
14037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14038 printf "%s\n" "$LD" >&6; }
14039 else
14040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14041 printf "%s\n" "no" >&6; }
14042 fi
14043 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14045 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
14046 if test ${lt_cv_prog_gnu_ld+y}
14047 then :
14048 printf %s "(cached) " >&6
14049 else $as_nop
14050 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14051 case `$LD -v 2>&1 </dev/null` in
14052 *GNU* | *'with BFD'*)
14053 lt_cv_prog_gnu_ld=yes
14054 ;;
14055 *)
14056 lt_cv_prog_gnu_ld=no
14057 ;;
14058 esac
14059 fi
14060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14061 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
14062 with_gnu_ld=$lt_cv_prog_gnu_ld
14063
14064
14065
14066
14067
14068
14069
14070 # Check if GNU C++ uses GNU ld as the underlying linker, since the
14071 # archiving commands below assume that GNU ld is being used.
14072 if test yes = "$with_gnu_ld"; then
14073 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14074 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'
14075
14076 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14077 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14078
14079 # If archive_cmds runs LD, not CC, wlarc should be empty
14080 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14081 # investigate it a little bit more. (MM)
14082 wlarc='$wl'
14083
14084 # ancient GNU ld didn't support --whole-archive et. al.
14085 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14086 $GREP 'no-whole-archive' > /dev/null; then
14087 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14088 else
14089 whole_archive_flag_spec_CXX=
14090 fi
14091 else
14092 with_gnu_ld=no
14093 wlarc=
14094
14095 # A generic and very simple default shared library creation
14096 # command for GNU C++ for the case where it uses the native
14097 # linker, instead of GNU ld. If possible, this setting should
14098 # overridden to take advantage of the native linker features on
14099 # the platform it is being used on.
14100 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14101 fi
14102
14103 # Commands to make compiler produce verbose output that lists
14104 # what "hidden" libraries, object files and flags are used when
14105 # linking a shared library.
14106 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14107
14108 else
14109 GXX=no
14110 with_gnu_ld=no
14111 wlarc=
14112 fi
14113
14114 # PORTME: fill in a description of your system's C++ link characteristics
14115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14116 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14117 ld_shlibs_CXX=yes
14118 case $host_os in
14119 aix3*)
14120 # FIXME: insert proper C++ library support
14121 ld_shlibs_CXX=no
14122 ;;
14123 aix[4-9]*)
14124 if test ia64 = "$host_cpu"; then
14125 # On IA64, the linker does run time linking by default, so we don't
14126 # have to do anything special.
14127 aix_use_runtimelinking=no
14128 exp_sym_flag='-Bexport'
14129 no_entry_flag=
14130 else
14131 aix_use_runtimelinking=no
14132
14133 # Test if we are trying to use run time linking or normal
14134 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14135 # have runtime linking enabled, and use it for executables.
14136 # For shared libraries, we enable/disable runtime linking
14137 # depending on the kind of the shared library created -
14138 # when "with_aix_soname,aix_use_runtimelinking" is:
14139 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
14140 # "aix,yes" lib.so shared, rtl:yes, for executables
14141 # lib.a static archive
14142 # "both,no" lib.so.V(shr.o) shared, rtl:yes
14143 # lib.a(lib.so.V) shared, rtl:no, for executables
14144 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
14145 # lib.a(lib.so.V) shared, rtl:no
14146 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
14147 # lib.a static archive
14148 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14149 for ld_flag in $LDFLAGS; do
14150 case $ld_flag in
14151 *-brtl*)
14152 aix_use_runtimelinking=yes
14153 break
14154 ;;
14155 esac
14156 done
14157 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
14158 # With aix-soname=svr4, we create the lib.so.V shared archives only,
14159 # so we don't have lib.a shared libs to link our executables.
14160 # We have to force runtime linking in this case.
14161 aix_use_runtimelinking=yes
14162 LDFLAGS="$LDFLAGS -Wl,-brtl"
14163 fi
14164 ;;
14165 esac
14166
14167 exp_sym_flag='-bexport'
14168 no_entry_flag='-bnoentry'
14169 fi
14170
14171 # When large executables or shared objects are built, AIX ld can
14172 # have problems creating the table of contents. If linking a library
14173 # or program results in "error TOC overflow" add -mminimal-toc to
14174 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14175 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14176
14177 archive_cmds_CXX=''
14178 hardcode_direct_CXX=yes
14179 hardcode_direct_absolute_CXX=yes
14180 hardcode_libdir_separator_CXX=':'
14181 link_all_deplibs_CXX=yes
14182 file_list_spec_CXX='$wl-f,'
14183 case $with_aix_soname,$aix_use_runtimelinking in
14184 aix,*) ;; # no import file
14185 svr4,* | *,yes) # use import file
14186 # The Import File defines what to hardcode.
14187 hardcode_direct_CXX=no
14188 hardcode_direct_absolute_CXX=no
14189 ;;
14190 esac
14191
14192 if test yes = "$GXX"; then
14193 case $host_os in aix4.[012]|aix4.[012].*)
14194 # We only want to do this on AIX 4.2 and lower, the check
14195 # below for broken collect2 doesn't work under 4.3+
14196 collect2name=`$CC -print-prog-name=collect2`
14197 if test -f "$collect2name" &&
14198 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14199 then
14200 # We have reworked collect2
14201 :
14202 else
14203 # We have old collect2
14204 hardcode_direct_CXX=unsupported
14205 # It fails to find uninstalled libraries when the uninstalled
14206 # path is not listed in the libpath. Setting hardcode_minus_L
14207 # to unsupported forces relinking
14208 hardcode_minus_L_CXX=yes
14209 hardcode_libdir_flag_spec_CXX='-L$libdir'
14210 hardcode_libdir_separator_CXX=
14211 fi
14212 esac
14213 shared_flag='-shared'
14214 if test yes = "$aix_use_runtimelinking"; then
14215 shared_flag=$shared_flag' $wl-G'
14216 fi
14217 # Need to ensure runtime linking is disabled for the traditional
14218 # shared library, or the linker may eventually find shared libraries
14219 # /with/ Import File - we do not want to mix them.
14220 shared_flag_aix='-shared'
14221 shared_flag_svr4='-shared $wl-G'
14222 else
14223 # not using gcc
14224 if test ia64 = "$host_cpu"; then
14225 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14226 # chokes on -Wl,-G. The following line is correct:
14227 shared_flag='-G'
14228 else
14229 if test yes = "$aix_use_runtimelinking"; then
14230 shared_flag='$wl-G'
14231 else
14232 shared_flag='$wl-bM:SRE'
14233 fi
14234 shared_flag_aix='$wl-bM:SRE'
14235 shared_flag_svr4='$wl-G'
14236 fi
14237 fi
14238
14239 export_dynamic_flag_spec_CXX='$wl-bexpall'
14240 # It seems that -bexpall does not export symbols beginning with
14241 # underscore (_), so it is better to generate a list of symbols to
14242 # export.
14243 always_export_symbols_CXX=yes
14244 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
14245 # Warning - without using the other runtime loading flags (-brtl),
14246 # -berok will link without error, but may produce a broken library.
14247 # The "-G" linker flag allows undefined symbols.
14248 no_undefined_flag_CXX='-bernotok'
14249 # Determine the default libpath from the value encoded in an empty
14250 # executable.
14251 if test set = "${lt_cv_aix_libpath+set}"; then
14252 aix_libpath=$lt_cv_aix_libpath
14253 else
14254 if test ${lt_cv_aix_libpath__CXX+y}
14255 then :
14256 printf %s "(cached) " >&6
14257 else $as_nop
14258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14259 /* end confdefs.h. */
14260
14261 int
14262 main (void)
14263 {
14264
14265 ;
14266 return 0;
14267 }
14268 _ACEOF
14269 if ac_fn_cxx_try_link "$LINENO"
14270 then :
14271
14272 lt_aix_libpath_sed='
14273 /Import File Strings/,/^$/ {
14274 /^0/ {
14275 s/^0 *\([^ ]*\) *$/\1/
14276 p
14277 }
14278 }'
14279 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14280 # Check for a 64-bit object if we didn't find anything.
14281 if test -z "$lt_cv_aix_libpath__CXX"; then
14282 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14283 fi
14284 fi
14285 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14286 conftest$ac_exeext conftest.$ac_ext
14287 if test -z "$lt_cv_aix_libpath__CXX"; then
14288 lt_cv_aix_libpath__CXX=/usr/lib:/lib
14289 fi
14290
14291 fi
14292
14293 aix_libpath=$lt_cv_aix_libpath__CXX
14294 fi
14295
14296 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14297
14298 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
14299 else
14300 if test ia64 = "$host_cpu"; then
14301 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
14302 allow_undefined_flag_CXX="-z nodefs"
14303 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"
14304 else
14305 # Determine the default libpath from the value encoded in an
14306 # empty executable.
14307 if test set = "${lt_cv_aix_libpath+set}"; then
14308 aix_libpath=$lt_cv_aix_libpath
14309 else
14310 if test ${lt_cv_aix_libpath__CXX+y}
14311 then :
14312 printf %s "(cached) " >&6
14313 else $as_nop
14314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14315 /* end confdefs.h. */
14316
14317 int
14318 main (void)
14319 {
14320
14321 ;
14322 return 0;
14323 }
14324 _ACEOF
14325 if ac_fn_cxx_try_link "$LINENO"
14326 then :
14327
14328 lt_aix_libpath_sed='
14329 /Import File Strings/,/^$/ {
14330 /^0/ {
14331 s/^0 *\([^ ]*\) *$/\1/
14332 p
14333 }
14334 }'
14335 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14336 # Check for a 64-bit object if we didn't find anything.
14337 if test -z "$lt_cv_aix_libpath__CXX"; then
14338 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14339 fi
14340 fi
14341 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14342 conftest$ac_exeext conftest.$ac_ext
14343 if test -z "$lt_cv_aix_libpath__CXX"; then
14344 lt_cv_aix_libpath__CXX=/usr/lib:/lib
14345 fi
14346
14347 fi
14348
14349 aix_libpath=$lt_cv_aix_libpath__CXX
14350 fi
14351
14352 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14353 # Warning - without using the other run time loading flags,
14354 # -berok will link without error, but may produce a broken library.
14355 no_undefined_flag_CXX=' $wl-bernotok'
14356 allow_undefined_flag_CXX=' $wl-berok'
14357 if test yes = "$with_gnu_ld"; then
14358 # We only use this code for GNU lds that support --whole-archive.
14359 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14360 else
14361 # Exported symbols can be pulled into shared objects from archives
14362 whole_archive_flag_spec_CXX='$convenience'
14363 fi
14364 archive_cmds_need_lc_CXX=yes
14365 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
14366 # -brtl affects multiple linker settings, -berok does not and is overridden later
14367 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
14368 if test svr4 != "$with_aix_soname"; then
14369 # This is similar to how AIX traditionally builds its shared
14370 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
14371 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
14372 fi
14373 if test aix != "$with_aix_soname"; then
14374 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
14375 else
14376 # used by -dlpreopen to get the symbols
14377 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
14378 fi
14379 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
14380 fi
14381 fi
14382 ;;
14383
14384 beos*)
14385 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14386 allow_undefined_flag_CXX=unsupported
14387 # Joseph Beckenbach <[email protected]> says some releases of gcc
14388 # support --undefined. This deserves some investigation. FIXME
14389 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14390 else
14391 ld_shlibs_CXX=no
14392 fi
14393 ;;
14394
14395 chorus*)
14396 case $cc_basename in
14397 *)
14398 # FIXME: insert proper C++ library support
14399 ld_shlibs_CXX=no
14400 ;;
14401 esac
14402 ;;
14403
14404 cygwin* | mingw* | pw32* | cegcc*)
14405 case $GXX,$cc_basename in
14406 ,cl* | no,cl*)
14407 # Native MSVC
14408 # hardcode_libdir_flag_spec is actually meaningless, as there is
14409 # no search path for DLLs.
14410 hardcode_libdir_flag_spec_CXX=' '
14411 allow_undefined_flag_CXX=unsupported
14412 always_export_symbols_CXX=yes
14413 file_list_spec_CXX='@'
14414 # Tell ltmain to make .lib files, not .a files.
14415 libext=lib
14416 # Tell ltmain to make .dll files, not .so files.
14417 shrext_cmds=.dll
14418 # FIXME: Setting linknames here is a bad hack.
14419 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
14420 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
14421 cp "$export_symbols" "$output_objdir/$soname.def";
14422 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
14423 else
14424 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
14425 fi~
14426 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14427 linknames='
14428 # The linker will not automatically build a static lib if we build a DLL.
14429 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14430 enable_shared_with_static_runtimes_CXX=yes
14431 # Don't use ranlib
14432 old_postinstall_cmds_CXX='chmod 644 $oldlib'
14433 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14434 lt_tool_outputfile="@TOOL_OUTPUT@"~
14435 case $lt_outputfile in
14436 *.exe|*.EXE) ;;
14437 *)
14438 lt_outputfile=$lt_outputfile.exe
14439 lt_tool_outputfile=$lt_tool_outputfile.exe
14440 ;;
14441 esac~
14442 func_to_tool_file "$lt_outputfile"~
14443 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
14444 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14445 $RM "$lt_outputfile.manifest";
14446 fi'
14447 ;;
14448 *)
14449 # g++
14450 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14451 # as there is no search path for DLLs.
14452 hardcode_libdir_flag_spec_CXX='-L$libdir'
14453 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
14454 allow_undefined_flag_CXX=unsupported
14455 always_export_symbols_CXX=no
14456 enable_shared_with_static_runtimes_CXX=yes
14457
14458 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14459 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'
14460 # If the export-symbols file already is a .def file, use it as
14461 # is; otherwise, prepend EXPORTS...
14462 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
14463 cp $export_symbols $output_objdir/$soname.def;
14464 else
14465 echo EXPORTS > $output_objdir/$soname.def;
14466 cat $export_symbols >> $output_objdir/$soname.def;
14467 fi~
14468 $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'
14469 else
14470 ld_shlibs_CXX=no
14471 fi
14472 ;;
14473 esac
14474 ;;
14475 darwin* | rhapsody*)
14476
14477
14478 archive_cmds_need_lc_CXX=no
14479 hardcode_direct_CXX=no
14480 hardcode_automatic_CXX=yes
14481 hardcode_shlibpath_var_CXX=unsupported
14482 if test yes = "$lt_cv_ld_force_load"; then
14483 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\"`'
14484
14485 else
14486 whole_archive_flag_spec_CXX=''
14487 fi
14488 link_all_deplibs_CXX=yes
14489 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
14490 case $cc_basename in
14491 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
14492 *) _lt_dar_can_shared=$GCC ;;
14493 esac
14494 if test yes = "$_lt_dar_can_shared"; then
14495 output_verbose_link_cmd=func_echo_all
14496 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"
14497 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
14498 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"
14499 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"
14500 if test yes != "$lt_cv_apple_cc_single_mod"; then
14501 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"
14502 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"
14503 fi
14504
14505 else
14506 ld_shlibs_CXX=no
14507 fi
14508
14509 ;;
14510
14511 os2*)
14512 hardcode_libdir_flag_spec_CXX='-L$libdir'
14513 hardcode_minus_L_CXX=yes
14514 allow_undefined_flag_CXX=unsupported
14515 shrext_cmds=.dll
14516 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14517 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14518 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14519 $ECHO EXPORTS >> $output_objdir/$libname.def~
14520 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14521 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14522 emximp -o $lib $output_objdir/$libname.def'
14523 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14524 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14525 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14526 $ECHO EXPORTS >> $output_objdir/$libname.def~
14527 prefix_cmds="$SED"~
14528 if test EXPORTS = "`$SED 1q $export_symbols`"; then
14529 prefix_cmds="$prefix_cmds -e 1d";
14530 fi~
14531 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14532 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14533 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14534 emximp -o $lib $output_objdir/$libname.def'
14535 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14536 enable_shared_with_static_runtimes_CXX=yes
14537 ;;
14538
14539 dgux*)
14540 case $cc_basename in
14541 ec++*)
14542 # FIXME: insert proper C++ library support
14543 ld_shlibs_CXX=no
14544 ;;
14545 ghcx*)
14546 # Green Hills C++ Compiler
14547 # FIXME: insert proper C++ library support
14548 ld_shlibs_CXX=no
14549 ;;
14550 *)
14551 # FIXME: insert proper C++ library support
14552 ld_shlibs_CXX=no
14553 ;;
14554 esac
14555 ;;
14556
14557 freebsd2.*)
14558 # C++ shared libraries reported to be fairly broken before
14559 # switch to ELF
14560 ld_shlibs_CXX=no
14561 ;;
14562
14563 freebsd-elf*)
14564 archive_cmds_need_lc_CXX=no
14565 ;;
14566
14567 freebsd* | dragonfly*)
14568 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14569 # conventions
14570 ld_shlibs_CXX=yes
14571 ;;
14572
14573 haiku*)
14574 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14575 link_all_deplibs_CXX=yes
14576 ;;
14577
14578 hpux9*)
14579 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14580 hardcode_libdir_separator_CXX=:
14581 export_dynamic_flag_spec_CXX='$wl-E'
14582 hardcode_direct_CXX=yes
14583 hardcode_minus_L_CXX=yes # Not in the search PATH,
14584 # but as the default
14585 # location of the library.
14586
14587 case $cc_basename in
14588 CC*)
14589 # FIXME: insert proper C++ library support
14590 ld_shlibs_CXX=no
14591 ;;
14592 aCC*)
14593 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
14594 # Commands to make compiler produce verbose output that lists
14595 # what "hidden" libraries, object files and flags are used when
14596 # linking a shared library.
14597 #
14598 # There doesn't appear to be a way to prevent this compiler from
14599 # explicitly linking system object files so we need to strip them
14600 # from the output so that they don't get included in the library
14601 # dependencies.
14602 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"'
14603 ;;
14604 *)
14605 if test yes = "$GXX"; then
14606 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
14607 else
14608 # FIXME: insert proper C++ library support
14609 ld_shlibs_CXX=no
14610 fi
14611 ;;
14612 esac
14613 ;;
14614
14615 hpux10*|hpux11*)
14616 if test no = "$with_gnu_ld"; then
14617 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14618 hardcode_libdir_separator_CXX=:
14619
14620 case $host_cpu in
14621 hppa*64*|ia64*)
14622 ;;
14623 *)
14624 export_dynamic_flag_spec_CXX='$wl-E'
14625 ;;
14626 esac
14627 fi
14628 case $host_cpu in
14629 hppa*64*|ia64*)
14630 hardcode_direct_CXX=no
14631 hardcode_shlibpath_var_CXX=no
14632 ;;
14633 *)
14634 hardcode_direct_CXX=yes
14635 hardcode_direct_absolute_CXX=yes
14636 hardcode_minus_L_CXX=yes # Not in the search PATH,
14637 # but as the default
14638 # location of the library.
14639 ;;
14640 esac
14641
14642 case $cc_basename in
14643 CC*)
14644 # FIXME: insert proper C++ library support
14645 ld_shlibs_CXX=no
14646 ;;
14647 aCC*)
14648 case $host_cpu in
14649 hppa*64*)
14650 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14651 ;;
14652 ia64*)
14653 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14654 ;;
14655 *)
14656 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14657 ;;
14658 esac
14659 # Commands to make compiler produce verbose output that lists
14660 # what "hidden" libraries, object files and flags are used when
14661 # linking a shared library.
14662 #
14663 # There doesn't appear to be a way to prevent this compiler from
14664 # explicitly linking system object files so we need to strip them
14665 # from the output so that they don't get included in the library
14666 # dependencies.
14667 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"'
14668 ;;
14669 *)
14670 if test yes = "$GXX"; then
14671 if test no = "$with_gnu_ld"; then
14672 case $host_cpu in
14673 hppa*64*)
14674 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14675 ;;
14676 ia64*)
14677 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14678 ;;
14679 *)
14680 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14681 ;;
14682 esac
14683 fi
14684 else
14685 # FIXME: insert proper C++ library support
14686 ld_shlibs_CXX=no
14687 fi
14688 ;;
14689 esac
14690 ;;
14691
14692 interix[3-9]*)
14693 hardcode_direct_CXX=no
14694 hardcode_shlibpath_var_CXX=no
14695 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14696 export_dynamic_flag_spec_CXX='$wl-E'
14697 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14698 # Instead, shared libraries are loaded at an image base (0x10000000 by
14699 # default) and relocated if they conflict, which is a slow very memory
14700 # consuming and fragmenting process. To avoid this, we pick a random,
14701 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14702 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14703 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'
14704 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'
14705 ;;
14706 irix5* | irix6*)
14707 case $cc_basename in
14708 CC*)
14709 # SGI C++
14710 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'
14711
14712 # Archives containing C++ object files must be created using
14713 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14714 # necessary to make sure instantiated templates are included
14715 # in the archive.
14716 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14717 ;;
14718 *)
14719 if test yes = "$GXX"; then
14720 if test no = "$with_gnu_ld"; then
14721 archive_cmds_CXX='$CC -shared $pic_flag -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'
14722 else
14723 archive_cmds_CXX='$CC -shared $pic_flag -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'
14724 fi
14725 fi
14726 link_all_deplibs_CXX=yes
14727 ;;
14728 esac
14729 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14730 hardcode_libdir_separator_CXX=:
14731 inherit_rpath_CXX=yes
14732 ;;
14733
14734 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14735 case $cc_basename in
14736 KCC*)
14737 # Kuck and Associates, Inc. (KAI) C++ Compiler
14738
14739 # KCC will only create a shared library if the output file
14740 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14741 # to its proper name (with version) after linking.
14742 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'
14743 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'
14744 # Commands to make compiler produce verbose output that lists
14745 # what "hidden" libraries, object files and flags are used when
14746 # linking a shared library.
14747 #
14748 # There doesn't appear to be a way to prevent this compiler from
14749 # explicitly linking system object files so we need to strip them
14750 # from the output so that they don't get included in the library
14751 # dependencies.
14752 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"'
14753
14754 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14755 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14756
14757 # Archives containing C++ object files must be created using
14758 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14759 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14760 ;;
14761 icpc* | ecpc* )
14762 # Intel C++
14763 with_gnu_ld=yes
14764 # version 8.0 and above of icpc choke on multiply defined symbols
14765 # if we add $predep_objects and $postdep_objects, however 7.1 and
14766 # earlier do not add the objects themselves.
14767 case `$CC -V 2>&1` in
14768 *"Version 7."*)
14769 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14770 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'
14771 ;;
14772 *) # Version 8.0 or newer
14773 tmp_idyn=
14774 case $host_cpu in
14775 ia64*) tmp_idyn=' -i_dynamic';;
14776 esac
14777 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14778 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'
14779 ;;
14780 esac
14781 archive_cmds_need_lc_CXX=no
14782 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14783 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14784 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14785 ;;
14786 pgCC* | pgcpp*)
14787 # Portland Group C++ compiler
14788 case `$CC -V` in
14789 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14790 prelink_cmds_CXX='tpldir=Template.dir~
14791 rm -rf $tpldir~
14792 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14793 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14794 old_archive_cmds_CXX='tpldir=Template.dir~
14795 rm -rf $tpldir~
14796 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14797 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14798 $RANLIB $oldlib'
14799 archive_cmds_CXX='tpldir=Template.dir~
14800 rm -rf $tpldir~
14801 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14802 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14803 archive_expsym_cmds_CXX='tpldir=Template.dir~
14804 rm -rf $tpldir~
14805 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14806 $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'
14807 ;;
14808 *) # Version 6 and above use weak symbols
14809 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14810 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'
14811 ;;
14812 esac
14813
14814 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
14815 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14816 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'
14817 ;;
14818 cxx*)
14819 # Compaq C++
14820 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14821 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'
14822
14823 runpath_var=LD_RUN_PATH
14824 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14825 hardcode_libdir_separator_CXX=:
14826
14827 # Commands to make compiler produce verbose output that lists
14828 # what "hidden" libraries, object files and flags are used when
14829 # linking a shared library.
14830 #
14831 # There doesn't appear to be a way to prevent this compiler from
14832 # explicitly linking system object files so we need to strip them
14833 # from the output so that they don't get included in the library
14834 # dependencies.
14835 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'
14836 ;;
14837 xl* | mpixl* | bgxl*)
14838 # IBM XL 8.0 on PPC, with GNU ld
14839 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14840 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14841 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14842 if test yes = "$supports_anon_versioning"; then
14843 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14844 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14845 echo "local: *; };" >> $output_objdir/$libname.ver~
14846 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
14847 fi
14848 ;;
14849 *)
14850 case `$CC -V 2>&1 | sed 5q` in
14851 *Sun\ C*)
14852 # Sun C++ 5.9
14853 no_undefined_flag_CXX=' -zdefs'
14854 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14855 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'
14856 hardcode_libdir_flag_spec_CXX='-R$libdir'
14857 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'
14858 compiler_needs_object_CXX=yes
14859
14860 # Not sure whether something based on
14861 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14862 # would be better.
14863 output_verbose_link_cmd='func_echo_all'
14864
14865 # Archives containing C++ object files must be created using
14866 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14867 # necessary to make sure instantiated templates are included
14868 # in the archive.
14869 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14870 ;;
14871 esac
14872 ;;
14873 esac
14874 ;;
14875
14876 lynxos*)
14877 # FIXME: insert proper C++ library support
14878 ld_shlibs_CXX=no
14879 ;;
14880
14881 m88k*)
14882 # FIXME: insert proper C++ library support
14883 ld_shlibs_CXX=no
14884 ;;
14885
14886 mvs*)
14887 case $cc_basename in
14888 cxx*)
14889 # FIXME: insert proper C++ library support
14890 ld_shlibs_CXX=no
14891 ;;
14892 *)
14893 # FIXME: insert proper C++ library support
14894 ld_shlibs_CXX=no
14895 ;;
14896 esac
14897 ;;
14898
14899 netbsd*)
14900 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14901 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14902 wlarc=
14903 hardcode_libdir_flag_spec_CXX='-R$libdir'
14904 hardcode_direct_CXX=yes
14905 hardcode_shlibpath_var_CXX=no
14906 fi
14907 # Workaround some broken pre-1.5 toolchains
14908 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14909 ;;
14910
14911 *nto* | *qnx*)
14912 ld_shlibs_CXX=yes
14913 ;;
14914
14915 openbsd* | bitrig*)
14916 if test -f /usr/libexec/ld.so; then
14917 hardcode_direct_CXX=yes
14918 hardcode_shlibpath_var_CXX=no
14919 hardcode_direct_absolute_CXX=yes
14920 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14921 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14922 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
14923 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
14924 export_dynamic_flag_spec_CXX='$wl-E'
14925 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14926 fi
14927 output_verbose_link_cmd=func_echo_all
14928 else
14929 ld_shlibs_CXX=no
14930 fi
14931 ;;
14932
14933 osf3* | osf4* | osf5*)
14934 case $cc_basename in
14935 KCC*)
14936 # Kuck and Associates, Inc. (KAI) C++ Compiler
14937
14938 # KCC will only create a shared library if the output file
14939 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14940 # to its proper name (with version) after linking.
14941 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'
14942
14943 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14944 hardcode_libdir_separator_CXX=:
14945
14946 # Archives containing C++ object files must be created using
14947 # the KAI C++ compiler.
14948 case $host in
14949 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14950 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14951 esac
14952 ;;
14953 RCC*)
14954 # Rational C++ 2.4.1
14955 # FIXME: insert proper C++ library support
14956 ld_shlibs_CXX=no
14957 ;;
14958 cxx*)
14959 case $host in
14960 osf3*)
14961 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14962 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'
14963 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14964 ;;
14965 *)
14966 allow_undefined_flag_CXX=' -expect_unresolved \*'
14967 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'
14968 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14969 echo "-hidden">> $lib.exp~
14970 $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~
14971 $RM $lib.exp'
14972 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14973 ;;
14974 esac
14975
14976 hardcode_libdir_separator_CXX=:
14977
14978 # Commands to make compiler produce verbose output that lists
14979 # what "hidden" libraries, object files and flags are used when
14980 # linking a shared library.
14981 #
14982 # There doesn't appear to be a way to prevent this compiler from
14983 # explicitly linking system object files so we need to strip them
14984 # from the output so that they don't get included in the library
14985 # dependencies.
14986 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"'
14987 ;;
14988 *)
14989 if test yes,no = "$GXX,$with_gnu_ld"; then
14990 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14991 case $host in
14992 osf3*)
14993 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'
14994 ;;
14995 *)
14996 archive_cmds_CXX='$CC -shared $pic_flag -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'
14997 ;;
14998 esac
14999
15000 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15001 hardcode_libdir_separator_CXX=:
15002
15003 # Commands to make compiler produce verbose output that lists
15004 # what "hidden" libraries, object files and flags are used when
15005 # linking a shared library.
15006 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15007
15008 else
15009 # FIXME: insert proper C++ library support
15010 ld_shlibs_CXX=no
15011 fi
15012 ;;
15013 esac
15014 ;;
15015
15016 psos*)
15017 # FIXME: insert proper C++ library support
15018 ld_shlibs_CXX=no
15019 ;;
15020
15021 sunos4*)
15022 case $cc_basename in
15023 CC*)
15024 # Sun C++ 4.x
15025 # FIXME: insert proper C++ library support
15026 ld_shlibs_CXX=no
15027 ;;
15028 lcc*)
15029 # Lucid
15030 # FIXME: insert proper C++ library support
15031 ld_shlibs_CXX=no
15032 ;;
15033 *)
15034 # FIXME: insert proper C++ library support
15035 ld_shlibs_CXX=no
15036 ;;
15037 esac
15038 ;;
15039
15040 solaris*)
15041 case $cc_basename in
15042 CC* | sunCC*)
15043 # Sun C++ 4.2, 5.x and Centerline C++
15044 archive_cmds_need_lc_CXX=yes
15045 no_undefined_flag_CXX=' -zdefs'
15046 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15047 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15048 $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'
15049
15050 hardcode_libdir_flag_spec_CXX='-R$libdir'
15051 hardcode_shlibpath_var_CXX=no
15052 case $host_os in
15053 solaris2.[0-5] | solaris2.[0-5].*) ;;
15054 *)
15055 # The compiler driver will combine and reorder linker options,
15056 # but understands '-z linker_flag'.
15057 # Supported since Solaris 2.6 (maybe 2.5.1?)
15058 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15059 ;;
15060 esac
15061 link_all_deplibs_CXX=yes
15062
15063 output_verbose_link_cmd='func_echo_all'
15064
15065 # Archives containing C++ object files must be created using
15066 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15067 # necessary to make sure instantiated templates are included
15068 # in the archive.
15069 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15070 ;;
15071 gcx*)
15072 # Green Hills C++ Compiler
15073 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15074
15075 # The C++ compiler must be used to create the archive.
15076 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15077 ;;
15078 *)
15079 # GNU C++ compiler with Solaris linker
15080 if test yes,no = "$GXX,$with_gnu_ld"; then
15081 no_undefined_flag_CXX=' $wl-z ${wl}defs'
15082 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15083 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15084 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15085 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15086
15087 # Commands to make compiler produce verbose output that lists
15088 # what "hidden" libraries, object files and flags are used when
15089 # linking a shared library.
15090 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15091 else
15092 # g++ 2.7 appears to require '-G' NOT '-shared' on this
15093 # platform.
15094 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15095 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15096 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15097
15098 # Commands to make compiler produce verbose output that lists
15099 # what "hidden" libraries, object files and flags are used when
15100 # linking a shared library.
15101 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15102 fi
15103
15104 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
15105 case $host_os in
15106 solaris2.[0-5] | solaris2.[0-5].*) ;;
15107 *)
15108 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
15109 ;;
15110 esac
15111 fi
15112 ;;
15113 esac
15114 ;;
15115
15116 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15117 no_undefined_flag_CXX='$wl-z,text'
15118 archive_cmds_need_lc_CXX=no
15119 hardcode_shlibpath_var_CXX=no
15120 runpath_var='LD_RUN_PATH'
15121
15122 case $cc_basename in
15123 CC*)
15124 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15125 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15126 ;;
15127 *)
15128 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15129 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15130 ;;
15131 esac
15132 ;;
15133
15134 sysv5* | sco3.2v5* | sco5v6*)
15135 # Note: We CANNOT use -z defs as we might desire, because we do not
15136 # link with -lc, and that would cause any symbols used from libc to
15137 # always be unresolved, which means just about no library would
15138 # ever link correctly. If we're not using GNU ld we use -z text
15139 # though, which does catch some bad symbols but isn't as heavy-handed
15140 # as -z defs.
15141 no_undefined_flag_CXX='$wl-z,text'
15142 allow_undefined_flag_CXX='$wl-z,nodefs'
15143 archive_cmds_need_lc_CXX=no
15144 hardcode_shlibpath_var_CXX=no
15145 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
15146 hardcode_libdir_separator_CXX=':'
15147 link_all_deplibs_CXX=yes
15148 export_dynamic_flag_spec_CXX='$wl-Bexport'
15149 runpath_var='LD_RUN_PATH'
15150
15151 case $cc_basename in
15152 CC*)
15153 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15154 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15155 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
15156 '"$old_archive_cmds_CXX"
15157 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
15158 '"$reload_cmds_CXX"
15159 ;;
15160 *)
15161 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15162 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15163 ;;
15164 esac
15165 ;;
15166
15167 tandem*)
15168 case $cc_basename in
15169 NCC*)
15170 # NonStop-UX NCC 3.20
15171 # FIXME: insert proper C++ library support
15172 ld_shlibs_CXX=no
15173 ;;
15174 *)
15175 # FIXME: insert proper C++ library support
15176 ld_shlibs_CXX=no
15177 ;;
15178 esac
15179 ;;
15180
15181 vxworks*)
15182 # FIXME: insert proper C++ library support
15183 ld_shlibs_CXX=no
15184 ;;
15185
15186 *)
15187 # FIXME: insert proper C++ library support
15188 ld_shlibs_CXX=no
15189 ;;
15190 esac
15191
15192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15193 printf "%s\n" "$ld_shlibs_CXX" >&6; }
15194 test no = "$ld_shlibs_CXX" && can_build_shared=no
15195
15196 GCC_CXX=$GXX
15197 LD_CXX=$LD
15198
15199 ## CAVEAT EMPTOR:
15200 ## There is no encapsulation within the following macros, do not change
15201 ## the running order or otherwise move them around unless you know exactly
15202 ## what you are doing...
15203 # Dependencies to place before and after the object being linked:
15204 predep_objects_CXX=
15205 postdep_objects_CXX=
15206 predeps_CXX=
15207 postdeps_CXX=
15208 compiler_lib_search_path_CXX=
15209
15210 cat > conftest.$ac_ext <<_LT_EOF
15211 class Foo
15212 {
15213 public:
15214 Foo (void) { a = 0; }
15215 private:
15216 int a;
15217 };
15218 _LT_EOF
15219
15220
15221 _lt_libdeps_save_CFLAGS=$CFLAGS
15222 case "$CC $CFLAGS " in #(
15223 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
15224 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
15225 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
15226 esac
15227
15228 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15229 (eval $ac_compile) 2>&5
15230 ac_status=$?
15231 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15232 test $ac_status = 0; }; then
15233 # Parse the compiler output and extract the necessary
15234 # objects, libraries and library flags.
15235
15236 # Sentinel used to keep track of whether or not we are before
15237 # the conftest object file.
15238 pre_test_object_deps_done=no
15239
15240 for p in `eval "$output_verbose_link_cmd"`; do
15241 case $prev$p in
15242
15243 -L* | -R* | -l*)
15244 # Some compilers place space between "-{L,R}" and the path.
15245 # Remove the space.
15246 if test x-L = "$p" ||
15247 test x-R = "$p"; then
15248 prev=$p
15249 continue
15250 fi
15251
15252 # Expand the sysroot to ease extracting the directories later.
15253 if test -z "$prev"; then
15254 case $p in
15255 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
15256 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
15257 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
15258 esac
15259 fi
15260 case $p in
15261 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
15262 esac
15263 if test no = "$pre_test_object_deps_done"; then
15264 case $prev in
15265 -L | -R)
15266 # Internal compiler library paths should come after those
15267 # provided the user. The postdeps already come after the
15268 # user supplied libs so there is no need to process them.
15269 if test -z "$compiler_lib_search_path_CXX"; then
15270 compiler_lib_search_path_CXX=$prev$p
15271 else
15272 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
15273 fi
15274 ;;
15275 # The "-l" case would never come before the object being
15276 # linked, so don't bother handling this case.
15277 esac
15278 else
15279 if test -z "$postdeps_CXX"; then
15280 postdeps_CXX=$prev$p
15281 else
15282 postdeps_CXX="${postdeps_CXX} $prev$p"
15283 fi
15284 fi
15285 prev=
15286 ;;
15287
15288 *.lto.$objext) ;; # Ignore GCC LTO objects
15289 *.$objext)
15290 # This assumes that the test object file only shows up
15291 # once in the compiler output.
15292 if test "$p" = "conftest.$objext"; then
15293 pre_test_object_deps_done=yes
15294 continue
15295 fi
15296
15297 if test no = "$pre_test_object_deps_done"; then
15298 if test -z "$predep_objects_CXX"; then
15299 predep_objects_CXX=$p
15300 else
15301 predep_objects_CXX="$predep_objects_CXX $p"
15302 fi
15303 else
15304 if test -z "$postdep_objects_CXX"; then
15305 postdep_objects_CXX=$p
15306 else
15307 postdep_objects_CXX="$postdep_objects_CXX $p"
15308 fi
15309 fi
15310 ;;
15311
15312 *) ;; # Ignore the rest.
15313
15314 esac
15315 done
15316
15317 # Clean up.
15318 rm -f a.out a.exe
15319 else
15320 echo "libtool.m4: error: problem compiling CXX test program"
15321 fi
15322
15323 $RM -f confest.$objext
15324 CFLAGS=$_lt_libdeps_save_CFLAGS
15325
15326 # PORTME: override above test on systems where it is broken
15327 case $host_os in
15328 interix[3-9]*)
15329 # Interix 3.5 installs completely hosed .la files for C++, so rather than
15330 # hack all around it, let's just trust "g++" to DTRT.
15331 predep_objects_CXX=
15332 postdep_objects_CXX=
15333 postdeps_CXX=
15334 ;;
15335 esac
15336
15337
15338 case " $postdeps_CXX " in
15339 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15340 esac
15341 compiler_lib_search_dirs_CXX=
15342 if test -n "${compiler_lib_search_path_CXX}"; then
15343 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
15344 fi
15345
15346
15347
15348
15349
15350
15351
15352
15353
15354
15355
15356
15357
15358
15359
15360
15361
15362
15363
15364
15365
15366
15367
15368
15369
15370
15371
15372
15373
15374
15375
15376 lt_prog_compiler_wl_CXX=
15377 lt_prog_compiler_pic_CXX=
15378 lt_prog_compiler_static_CXX=
15379
15380
15381 # C++ specific cases for pic, static, wl, etc.
15382 if test yes = "$GXX"; then
15383 lt_prog_compiler_wl_CXX='-Wl,'
15384 lt_prog_compiler_static_CXX='-static'
15385
15386 case $host_os in
15387 aix*)
15388 # All AIX code is PIC.
15389 if test ia64 = "$host_cpu"; then
15390 # AIX 5 now supports IA64 processor
15391 lt_prog_compiler_static_CXX='-Bstatic'
15392 fi
15393 lt_prog_compiler_pic_CXX='-fPIC'
15394 ;;
15395
15396 amigaos*)
15397 case $host_cpu in
15398 powerpc)
15399 # see comment about AmigaOS4 .so support
15400 lt_prog_compiler_pic_CXX='-fPIC'
15401 ;;
15402 m68k)
15403 # FIXME: we need at least 68020 code to build shared libraries, but
15404 # adding the '-m68020' flag to GCC prevents building anything better,
15405 # like '-m68040'.
15406 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15407 ;;
15408 esac
15409 ;;
15410
15411 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15412 # PIC is the default for these OSes.
15413 ;;
15414 mingw* | cygwin* | os2* | pw32* | cegcc*)
15415 # This hack is so that the source file can tell whether it is being
15416 # built for inclusion in a dll (and should export symbols for example).
15417 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15418 # (--disable-auto-import) libraries
15419 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15420 case $host_os in
15421 os2*)
15422 lt_prog_compiler_static_CXX='$wl-static'
15423 ;;
15424 esac
15425 ;;
15426 darwin* | rhapsody*)
15427 # PIC is the default on this platform
15428 # Common symbols not allowed in MH_DYLIB files
15429 lt_prog_compiler_pic_CXX='-fno-common'
15430 ;;
15431 *djgpp*)
15432 # DJGPP does not support shared libraries at all
15433 lt_prog_compiler_pic_CXX=
15434 ;;
15435 haiku*)
15436 # PIC is the default for Haiku.
15437 # The "-static" flag exists, but is broken.
15438 lt_prog_compiler_static_CXX=
15439 ;;
15440 interix[3-9]*)
15441 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15442 # Instead, we relocate shared libraries at runtime.
15443 ;;
15444 sysv4*MP*)
15445 if test -d /usr/nec; then
15446 lt_prog_compiler_pic_CXX=-Kconform_pic
15447 fi
15448 ;;
15449 hpux*)
15450 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15451 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15452 # sets the default TLS model and affects inlining.
15453 case $host_cpu in
15454 hppa*64*)
15455 ;;
15456 *)
15457 lt_prog_compiler_pic_CXX='-fPIC'
15458 ;;
15459 esac
15460 ;;
15461 *qnx* | *nto*)
15462 # QNX uses GNU C++, but need to define -shared option too, otherwise
15463 # it will coredump.
15464 lt_prog_compiler_pic_CXX='-fPIC -shared'
15465 ;;
15466 *)
15467 lt_prog_compiler_pic_CXX='-fPIC'
15468 ;;
15469 esac
15470 else
15471 case $host_os in
15472 aix[4-9]*)
15473 # All AIX code is PIC.
15474 if test ia64 = "$host_cpu"; then
15475 # AIX 5 now supports IA64 processor
15476 lt_prog_compiler_static_CXX='-Bstatic'
15477 else
15478 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15479 fi
15480 ;;
15481 chorus*)
15482 case $cc_basename in
15483 cxch68*)
15484 # Green Hills C++ Compiler
15485 # _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"
15486 ;;
15487 esac
15488 ;;
15489 mingw* | cygwin* | os2* | pw32* | cegcc*)
15490 # This hack is so that the source file can tell whether it is being
15491 # built for inclusion in a dll (and should export symbols for example).
15492 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15493 ;;
15494 dgux*)
15495 case $cc_basename in
15496 ec++*)
15497 lt_prog_compiler_pic_CXX='-KPIC'
15498 ;;
15499 ghcx*)
15500 # Green Hills C++ Compiler
15501 lt_prog_compiler_pic_CXX='-pic'
15502 ;;
15503 *)
15504 ;;
15505 esac
15506 ;;
15507 freebsd* | dragonfly*)
15508 # FreeBSD uses GNU C++
15509 ;;
15510 hpux9* | hpux10* | hpux11*)
15511 case $cc_basename in
15512 CC*)
15513 lt_prog_compiler_wl_CXX='-Wl,'
15514 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15515 if test ia64 != "$host_cpu"; then
15516 lt_prog_compiler_pic_CXX='+Z'
15517 fi
15518 ;;
15519 aCC*)
15520 lt_prog_compiler_wl_CXX='-Wl,'
15521 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15522 case $host_cpu in
15523 hppa*64*|ia64*)
15524 # +Z the default
15525 ;;
15526 *)
15527 lt_prog_compiler_pic_CXX='+Z'
15528 ;;
15529 esac
15530 ;;
15531 *)
15532 ;;
15533 esac
15534 ;;
15535 interix*)
15536 # This is c89, which is MS Visual C++ (no shared libs)
15537 # Anyone wants to do a port?
15538 ;;
15539 irix5* | irix6* | nonstopux*)
15540 case $cc_basename in
15541 CC*)
15542 lt_prog_compiler_wl_CXX='-Wl,'
15543 lt_prog_compiler_static_CXX='-non_shared'
15544 # CC pic flag -KPIC is the default.
15545 ;;
15546 *)
15547 ;;
15548 esac
15549 ;;
15550 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15551 case $cc_basename in
15552 KCC*)
15553 # KAI C++ Compiler
15554 lt_prog_compiler_wl_CXX='--backend -Wl,'
15555 lt_prog_compiler_pic_CXX='-fPIC'
15556 ;;
15557 ecpc* )
15558 # old Intel C++ for x86_64, which still supported -KPIC.
15559 lt_prog_compiler_wl_CXX='-Wl,'
15560 lt_prog_compiler_pic_CXX='-KPIC'
15561 lt_prog_compiler_static_CXX='-static'
15562 ;;
15563 icpc* )
15564 # Intel C++, used to be incompatible with GCC.
15565 # ICC 10 doesn't accept -KPIC any more.
15566 lt_prog_compiler_wl_CXX='-Wl,'
15567 lt_prog_compiler_pic_CXX='-fPIC'
15568 lt_prog_compiler_static_CXX='-static'
15569 ;;
15570 pgCC* | pgcpp*)
15571 # Portland Group C++ compiler
15572 lt_prog_compiler_wl_CXX='-Wl,'
15573 lt_prog_compiler_pic_CXX='-fpic'
15574 lt_prog_compiler_static_CXX='-Bstatic'
15575 ;;
15576 cxx*)
15577 # Compaq C++
15578 # Make sure the PIC flag is empty. It appears that all Alpha
15579 # Linux and Compaq Tru64 Unix objects are PIC.
15580 lt_prog_compiler_pic_CXX=
15581 lt_prog_compiler_static_CXX='-non_shared'
15582 ;;
15583 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15584 # IBM XL 8.0, 9.0 on PPC and BlueGene
15585 lt_prog_compiler_wl_CXX='-Wl,'
15586 lt_prog_compiler_pic_CXX='-qpic'
15587 lt_prog_compiler_static_CXX='-qstaticlink'
15588 ;;
15589 *)
15590 case `$CC -V 2>&1 | sed 5q` in
15591 *Sun\ C*)
15592 # Sun C++ 5.9
15593 lt_prog_compiler_pic_CXX='-KPIC'
15594 lt_prog_compiler_static_CXX='-Bstatic'
15595 lt_prog_compiler_wl_CXX='-Qoption ld '
15596 ;;
15597 esac
15598 ;;
15599 esac
15600 ;;
15601 lynxos*)
15602 ;;
15603 m88k*)
15604 ;;
15605 mvs*)
15606 case $cc_basename in
15607 cxx*)
15608 lt_prog_compiler_pic_CXX='-W c,exportall'
15609 ;;
15610 *)
15611 ;;
15612 esac
15613 ;;
15614 netbsd*)
15615 ;;
15616 *qnx* | *nto*)
15617 # QNX uses GNU C++, but need to define -shared option too, otherwise
15618 # it will coredump.
15619 lt_prog_compiler_pic_CXX='-fPIC -shared'
15620 ;;
15621 osf3* | osf4* | osf5*)
15622 case $cc_basename in
15623 KCC*)
15624 lt_prog_compiler_wl_CXX='--backend -Wl,'
15625 ;;
15626 RCC*)
15627 # Rational C++ 2.4.1
15628 lt_prog_compiler_pic_CXX='-pic'
15629 ;;
15630 cxx*)
15631 # Digital/Compaq C++
15632 lt_prog_compiler_wl_CXX='-Wl,'
15633 # Make sure the PIC flag is empty. It appears that all Alpha
15634 # Linux and Compaq Tru64 Unix objects are PIC.
15635 lt_prog_compiler_pic_CXX=
15636 lt_prog_compiler_static_CXX='-non_shared'
15637 ;;
15638 *)
15639 ;;
15640 esac
15641 ;;
15642 psos*)
15643 ;;
15644 solaris*)
15645 case $cc_basename in
15646 CC* | sunCC*)
15647 # Sun C++ 4.2, 5.x and Centerline C++
15648 lt_prog_compiler_pic_CXX='-KPIC'
15649 lt_prog_compiler_static_CXX='-Bstatic'
15650 lt_prog_compiler_wl_CXX='-Qoption ld '
15651 ;;
15652 gcx*)
15653 # Green Hills C++ Compiler
15654 lt_prog_compiler_pic_CXX='-PIC'
15655 ;;
15656 *)
15657 ;;
15658 esac
15659 ;;
15660 sunos4*)
15661 case $cc_basename in
15662 CC*)
15663 # Sun C++ 4.x
15664 lt_prog_compiler_pic_CXX='-pic'
15665 lt_prog_compiler_static_CXX='-Bstatic'
15666 ;;
15667 lcc*)
15668 # Lucid
15669 lt_prog_compiler_pic_CXX='-pic'
15670 ;;
15671 *)
15672 ;;
15673 esac
15674 ;;
15675 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15676 case $cc_basename in
15677 CC*)
15678 lt_prog_compiler_wl_CXX='-Wl,'
15679 lt_prog_compiler_pic_CXX='-KPIC'
15680 lt_prog_compiler_static_CXX='-Bstatic'
15681 ;;
15682 esac
15683 ;;
15684 tandem*)
15685 case $cc_basename in
15686 NCC*)
15687 # NonStop-UX NCC 3.20
15688 lt_prog_compiler_pic_CXX='-KPIC'
15689 ;;
15690 *)
15691 ;;
15692 esac
15693 ;;
15694 vxworks*)
15695 ;;
15696 *)
15697 lt_prog_compiler_can_build_shared_CXX=no
15698 ;;
15699 esac
15700 fi
15701
15702 case $host_os in
15703 # For platforms that do not support PIC, -DPIC is meaningless:
15704 *djgpp*)
15705 lt_prog_compiler_pic_CXX=
15706 ;;
15707 *)
15708 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15709 ;;
15710 esac
15711
15712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15713 printf %s "checking for $compiler option to produce PIC... " >&6; }
15714 if test ${lt_cv_prog_compiler_pic_CXX+y}
15715 then :
15716 printf %s "(cached) " >&6
15717 else $as_nop
15718 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15719 fi
15720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15721 printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
15722 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15723
15724 #
15725 # Check to make sure the PIC flag actually works.
15726 #
15727 if test -n "$lt_prog_compiler_pic_CXX"; then
15728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15729 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15730 if test ${lt_cv_prog_compiler_pic_works_CXX+y}
15731 then :
15732 printf %s "(cached) " >&6
15733 else $as_nop
15734 lt_cv_prog_compiler_pic_works_CXX=no
15735 ac_outfile=conftest.$ac_objext
15736 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15737 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
15738 # Insert the option either (1) after the last *FLAGS variable, or
15739 # (2) before a word containing "conftest.", or (3) at the end.
15740 # Note that $ac_compile itself does not contain backslashes and begins
15741 # with a dollar sign (not a hyphen), so the echo should work correctly.
15742 # The option is referenced via a variable to avoid confusing sed.
15743 lt_compile=`echo "$ac_compile" | $SED \
15744 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15745 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15746 -e 's:$: $lt_compiler_flag:'`
15747 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15748 (eval "$lt_compile" 2>conftest.err)
15749 ac_status=$?
15750 cat conftest.err >&5
15751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15752 if (exit $ac_status) && test -s "$ac_outfile"; then
15753 # The compiler can only warn and ignore the option if not recognized
15754 # So say no if there are warnings other than the usual output.
15755 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15756 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15757 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15758 lt_cv_prog_compiler_pic_works_CXX=yes
15759 fi
15760 fi
15761 $RM conftest*
15762
15763 fi
15764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15765 printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15766
15767 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
15768 case $lt_prog_compiler_pic_CXX in
15769 "" | " "*) ;;
15770 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15771 esac
15772 else
15773 lt_prog_compiler_pic_CXX=
15774 lt_prog_compiler_can_build_shared_CXX=no
15775 fi
15776
15777 fi
15778
15779
15780
15781
15782
15783 #
15784 # Check to make sure the static flag actually works.
15785 #
15786 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15788 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15789 if test ${lt_cv_prog_compiler_static_works_CXX+y}
15790 then :
15791 printf %s "(cached) " >&6
15792 else $as_nop
15793 lt_cv_prog_compiler_static_works_CXX=no
15794 save_LDFLAGS=$LDFLAGS
15795 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15796 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15797 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15798 # The linker can only warn and ignore the option if not recognized
15799 # So say no if there are warnings
15800 if test -s conftest.err; then
15801 # Append any errors to the config.log.
15802 cat conftest.err 1>&5
15803 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15804 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15805 if diff conftest.exp conftest.er2 >/dev/null; then
15806 lt_cv_prog_compiler_static_works_CXX=yes
15807 fi
15808 else
15809 lt_cv_prog_compiler_static_works_CXX=yes
15810 fi
15811 fi
15812 $RM -r conftest*
15813 LDFLAGS=$save_LDFLAGS
15814
15815 fi
15816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15817 printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15818
15819 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
15820 :
15821 else
15822 lt_prog_compiler_static_CXX=
15823 fi
15824
15825
15826
15827
15828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15829 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15830 if test ${lt_cv_prog_compiler_c_o_CXX+y}
15831 then :
15832 printf %s "(cached) " >&6
15833 else $as_nop
15834 lt_cv_prog_compiler_c_o_CXX=no
15835 $RM -r conftest 2>/dev/null
15836 mkdir conftest
15837 cd conftest
15838 mkdir out
15839 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15840
15841 lt_compiler_flag="-o out/conftest2.$ac_objext"
15842 # Insert the option either (1) after the last *FLAGS variable, or
15843 # (2) before a word containing "conftest.", or (3) at the end.
15844 # Note that $ac_compile itself does not contain backslashes and begins
15845 # with a dollar sign (not a hyphen), so the echo should work correctly.
15846 lt_compile=`echo "$ac_compile" | $SED \
15847 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15848 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15849 -e 's:$: $lt_compiler_flag:'`
15850 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15851 (eval "$lt_compile" 2>out/conftest.err)
15852 ac_status=$?
15853 cat out/conftest.err >&5
15854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15855 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15856 then
15857 # The compiler can only warn and ignore the option if not recognized
15858 # So say no if there are warnings
15859 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15860 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15861 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15862 lt_cv_prog_compiler_c_o_CXX=yes
15863 fi
15864 fi
15865 chmod u+w . 2>&5
15866 $RM conftest*
15867 # SGI C++ compiler will create directory out/ii_files/ for
15868 # template instantiation
15869 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15870 $RM out/* && rmdir out
15871 cd ..
15872 $RM -r conftest
15873 $RM conftest*
15874
15875 fi
15876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15877 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15878
15879
15880
15881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15882 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15883 if test ${lt_cv_prog_compiler_c_o_CXX+y}
15884 then :
15885 printf %s "(cached) " >&6
15886 else $as_nop
15887 lt_cv_prog_compiler_c_o_CXX=no
15888 $RM -r conftest 2>/dev/null
15889 mkdir conftest
15890 cd conftest
15891 mkdir out
15892 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15893
15894 lt_compiler_flag="-o out/conftest2.$ac_objext"
15895 # Insert the option either (1) after the last *FLAGS variable, or
15896 # (2) before a word containing "conftest.", or (3) at the end.
15897 # Note that $ac_compile itself does not contain backslashes and begins
15898 # with a dollar sign (not a hyphen), so the echo should work correctly.
15899 lt_compile=`echo "$ac_compile" | $SED \
15900 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15901 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15902 -e 's:$: $lt_compiler_flag:'`
15903 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15904 (eval "$lt_compile" 2>out/conftest.err)
15905 ac_status=$?
15906 cat out/conftest.err >&5
15907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15908 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15909 then
15910 # The compiler can only warn and ignore the option if not recognized
15911 # So say no if there are warnings
15912 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15913 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15914 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15915 lt_cv_prog_compiler_c_o_CXX=yes
15916 fi
15917 fi
15918 chmod u+w . 2>&5
15919 $RM conftest*
15920 # SGI C++ compiler will create directory out/ii_files/ for
15921 # template instantiation
15922 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15923 $RM out/* && rmdir out
15924 cd ..
15925 $RM -r conftest
15926 $RM conftest*
15927
15928 fi
15929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15930 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15931
15932
15933
15934
15935 hard_links=nottested
15936 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
15937 # do not overwrite the value of need_locks provided by the user
15938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15939 printf %s "checking if we can lock with hard links... " >&6; }
15940 hard_links=yes
15941 $RM conftest*
15942 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15943 touch conftest.a
15944 ln conftest.a conftest.b 2>&5 || hard_links=no
15945 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15947 printf "%s\n" "$hard_links" >&6; }
15948 if test no = "$hard_links"; then
15949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15950 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
15951 need_locks=warn
15952 fi
15953 else
15954 need_locks=no
15955 fi
15956
15957
15958
15959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15960 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15961
15962 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15963 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15964 case $host_os in
15965 aix[4-9]*)
15966 # If we're using GNU nm, then we don't want the "-C" option.
15967 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
15968 # Without the "-l" option, or with the "-B" option, AIX nm treats
15969 # weak defined symbols like other global defined symbols, whereas
15970 # GNU nm marks them as "W".
15971 # While the 'weak' keyword is ignored in the Export File, we need
15972 # it in the Import File for the 'aix-soname' feature, so we have
15973 # to replace the "-B" option with "-P" for AIX nm.
15974 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15975 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
15976 else
15977 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
15978 fi
15979 ;;
15980 pw32*)
15981 export_symbols_cmds_CXX=$ltdll_cmds
15982 ;;
15983 cygwin* | mingw* | cegcc*)
15984 case $cc_basename in
15985 cl*)
15986 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15987 ;;
15988 *)
15989 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
15990 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15991 ;;
15992 esac
15993 ;;
15994 *)
15995 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15996 ;;
15997 esac
15998
15999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16000 printf "%s\n" "$ld_shlibs_CXX" >&6; }
16001 test no = "$ld_shlibs_CXX" && can_build_shared=no
16002
16003 with_gnu_ld_CXX=$with_gnu_ld
16004
16005
16006
16007
16008
16009
16010 #
16011 # Do we need to explicitly link libc?
16012 #
16013 case "x$archive_cmds_need_lc_CXX" in
16014 x|xyes)
16015 # Assume -lc should be added
16016 archive_cmds_need_lc_CXX=yes
16017
16018 if test yes,yes = "$GCC,$enable_shared"; then
16019 case $archive_cmds_CXX in
16020 *'~'*)
16021 # FIXME: we may have to deal with multi-command sequences.
16022 ;;
16023 '$CC '*)
16024 # Test whether the compiler implicitly links with -lc since on some
16025 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16026 # to ld, don't add -lc before -lgcc.
16027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16028 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
16029 if test ${lt_cv_archive_cmds_need_lc_CXX+y}
16030 then :
16031 printf %s "(cached) " >&6
16032 else $as_nop
16033 $RM conftest*
16034 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16035
16036 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16037 (eval $ac_compile) 2>&5
16038 ac_status=$?
16039 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16040 test $ac_status = 0; } 2>conftest.err; then
16041 soname=conftest
16042 lib=conftest
16043 libobjs=conftest.$ac_objext
16044 deplibs=
16045 wl=$lt_prog_compiler_wl_CXX
16046 pic_flag=$lt_prog_compiler_pic_CXX
16047 compiler_flags=-v
16048 linker_flags=-v
16049 verstring=
16050 output_objdir=.
16051 libname=conftest
16052 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16053 allow_undefined_flag_CXX=
16054 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16055 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16056 ac_status=$?
16057 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16058 test $ac_status = 0; }
16059 then
16060 lt_cv_archive_cmds_need_lc_CXX=no
16061 else
16062 lt_cv_archive_cmds_need_lc_CXX=yes
16063 fi
16064 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16065 else
16066 cat conftest.err 1>&5
16067 fi
16068 $RM conftest*
16069
16070 fi
16071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
16072 printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
16073 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
16074 ;;
16075 esac
16076 fi
16077 ;;
16078 esac
16079
16080
16081
16082
16083
16084
16085
16086
16087
16088
16089
16090
16091
16092
16093
16094
16095
16096
16097
16098
16099
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133
16134
16135
16136
16137
16138
16139
16140
16141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16142 printf %s "checking dynamic linker characteristics... " >&6; }
16143
16144 library_names_spec=
16145 libname_spec='lib$name'
16146 soname_spec=
16147 shrext_cmds=.so
16148 postinstall_cmds=
16149 postuninstall_cmds=
16150 finish_cmds=
16151 finish_eval=
16152 shlibpath_var=
16153 shlibpath_overrides_runpath=unknown
16154 version_type=none
16155 dynamic_linker="$host_os ld.so"
16156 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16157 need_lib_prefix=unknown
16158 hardcode_into_libs=no
16159
16160 # when you set need_version to no, make sure it does not cause -set_version
16161 # flags to be left without arguments
16162 need_version=unknown
16163
16164
16165
16166 case $host_os in
16167 aix3*)
16168 version_type=linux # correct to gnu/linux during the next big refactor
16169 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
16170 shlibpath_var=LIBPATH
16171
16172 # AIX 3 has no versioning support, so we append a major version to the name.
16173 soname_spec='$libname$release$shared_ext$major'
16174 ;;
16175
16176 aix[4-9]*)
16177 version_type=linux # correct to gnu/linux during the next big refactor
16178 need_lib_prefix=no
16179 need_version=no
16180 hardcode_into_libs=yes
16181 if test ia64 = "$host_cpu"; then
16182 # AIX 5 supports IA64
16183 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
16184 shlibpath_var=LD_LIBRARY_PATH
16185 else
16186 # With GCC up to 2.95.x, collect2 would create an import file
16187 # for dependence libraries. The import file would start with
16188 # the line '#! .'. This would cause the generated library to
16189 # depend on '.', always an invalid library. This was fixed in
16190 # development snapshots of GCC prior to 3.0.
16191 case $host_os in
16192 aix4 | aix4.[01] | aix4.[01].*)
16193 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16194 echo ' yes '
16195 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
16196 :
16197 else
16198 can_build_shared=no
16199 fi
16200 ;;
16201 esac
16202 # Using Import Files as archive members, it is possible to support
16203 # filename-based versioning of shared library archives on AIX. While
16204 # this would work for both with and without runtime linking, it will
16205 # prevent static linking of such archives. So we do filename-based
16206 # shared library versioning with .so extension only, which is used
16207 # when both runtime linking and shared linking is enabled.
16208 # Unfortunately, runtime linking may impact performance, so we do
16209 # not want this to be the default eventually. Also, we use the
16210 # versioned .so libs for executables only if there is the -brtl
16211 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
16212 # To allow for filename-based versioning support, we need to create
16213 # libNAME.so.V as an archive file, containing:
16214 # *) an Import File, referring to the versioned filename of the
16215 # archive as well as the shared archive member, telling the
16216 # bitwidth (32 or 64) of that shared object, and providing the
16217 # list of exported symbols of that shared object, eventually
16218 # decorated with the 'weak' keyword
16219 # *) the shared object with the F_LOADONLY flag set, to really avoid
16220 # it being seen by the linker.
16221 # At run time we better use the real file rather than another symlink,
16222 # but for link time we create the symlink libNAME.so -> libNAME.so.V
16223
16224 case $with_aix_soname,$aix_use_runtimelinking in
16225 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
16226 # soname into executable. Probably we can add versioning support to
16227 # collect2, so additional links can be useful in future.
16228 aix,yes) # traditional libtool
16229 dynamic_linker='AIX unversionable lib.so'
16230 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16231 # instead of lib<name>.a to let people know that these are not
16232 # typical AIX shared libraries.
16233 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16234 ;;
16235 aix,no) # traditional AIX only
16236 dynamic_linker='AIX lib.a(lib.so.V)'
16237 # We preserve .a as extension for shared libraries through AIX4.2
16238 # and later when we are not doing run time linking.
16239 library_names_spec='$libname$release.a $libname.a'
16240 soname_spec='$libname$release$shared_ext$major'
16241 ;;
16242 svr4,*) # full svr4 only
16243 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
16244 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16245 # We do not specify a path in Import Files, so LIBPATH fires.
16246 shlibpath_overrides_runpath=yes
16247 ;;
16248 *,yes) # both, prefer svr4
16249 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
16250 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16251 # unpreferred sharedlib libNAME.a needs extra handling
16252 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
16253 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
16254 # We do not specify a path in Import Files, so LIBPATH fires.
16255 shlibpath_overrides_runpath=yes
16256 ;;
16257 *,no) # both, prefer aix
16258 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
16259 library_names_spec='$libname$release.a $libname.a'
16260 soname_spec='$libname$release$shared_ext$major'
16261 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
16262 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
16263 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
16264 ;;
16265 esac
16266 shlibpath_var=LIBPATH
16267 fi
16268 ;;
16269
16270 amigaos*)
16271 case $host_cpu in
16272 powerpc)
16273 # Since July 2007 AmigaOS4 officially supports .so libraries.
16274 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16275 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16276 ;;
16277 m68k)
16278 library_names_spec='$libname.ixlibrary $libname.a'
16279 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16280 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
16281 ;;
16282 esac
16283 ;;
16284
16285 beos*)
16286 library_names_spec='$libname$shared_ext'
16287 dynamic_linker="$host_os ld.so"
16288 shlibpath_var=LIBRARY_PATH
16289 ;;
16290
16291 bsdi[45]*)
16292 version_type=linux # correct to gnu/linux during the next big refactor
16293 need_version=no
16294 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16295 soname_spec='$libname$release$shared_ext$major'
16296 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16297 shlibpath_var=LD_LIBRARY_PATH
16298 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16299 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16300 # the default ld.so.conf also contains /usr/contrib/lib and
16301 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16302 # libtool to hard-code these into programs
16303 ;;
16304
16305 cygwin* | mingw* | pw32* | cegcc*)
16306 version_type=windows
16307 shrext_cmds=.dll
16308 need_version=no
16309 need_lib_prefix=no
16310
16311 case $GCC,$cc_basename in
16312 yes,*)
16313 # gcc
16314 library_names_spec='$libname.dll.a'
16315 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16316 postinstall_cmds='base_file=`basename \$file`~
16317 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16318 dldir=$destdir/`dirname \$dlpath`~
16319 test -d \$dldir || mkdir -p \$dldir~
16320 $install_prog $dir/$dlname \$dldir/$dlname~
16321 chmod a+x \$dldir/$dlname~
16322 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16323 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16324 fi'
16325 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16326 dlpath=$dir/\$dldll~
16327 $RM \$dlpath'
16328 shlibpath_overrides_runpath=yes
16329
16330 case $host_os in
16331 cygwin*)
16332 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16333 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16334
16335 ;;
16336 mingw* | cegcc*)
16337 # MinGW DLLs use traditional 'lib' prefix
16338 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16339 ;;
16340 pw32*)
16341 # pw32 DLLs use 'pw' prefix rather than 'lib'
16342 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16343 ;;
16344 esac
16345 dynamic_linker='Win32 ld.exe'
16346 ;;
16347
16348 *,cl*)
16349 # Native MSVC
16350 libname_spec='$name'
16351 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16352 library_names_spec='$libname.dll.lib'
16353
16354 case $build_os in
16355 mingw*)
16356 sys_lib_search_path_spec=
16357 lt_save_ifs=$IFS
16358 IFS=';'
16359 for lt_path in $LIB
16360 do
16361 IFS=$lt_save_ifs
16362 # Let DOS variable expansion print the short 8.3 style file name.
16363 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16364 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16365 done
16366 IFS=$lt_save_ifs
16367 # Convert to MSYS style.
16368 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16369 ;;
16370 cygwin*)
16371 # Convert to unix form, then to dos form, then back to unix form
16372 # but this time dos style (no spaces!) so that the unix form looks
16373 # like /cygdrive/c/PROGRA~1:/cygdr...
16374 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16375 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16376 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16377 ;;
16378 *)
16379 sys_lib_search_path_spec=$LIB
16380 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16381 # It is most probably a Windows format PATH.
16382 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16383 else
16384 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16385 fi
16386 # FIXME: find the short name or the path components, as spaces are
16387 # common. (e.g. "Program Files" -> "PROGRA~1")
16388 ;;
16389 esac
16390
16391 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16392 postinstall_cmds='base_file=`basename \$file`~
16393 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16394 dldir=$destdir/`dirname \$dlpath`~
16395 test -d \$dldir || mkdir -p \$dldir~
16396 $install_prog $dir/$dlname \$dldir/$dlname'
16397 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16398 dlpath=$dir/\$dldll~
16399 $RM \$dlpath'
16400 shlibpath_overrides_runpath=yes
16401 dynamic_linker='Win32 link.exe'
16402 ;;
16403
16404 *)
16405 # Assume MSVC wrapper
16406 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
16407 dynamic_linker='Win32 ld.exe'
16408 ;;
16409 esac
16410 # FIXME: first we should search . and the directory the executable is in
16411 shlibpath_var=PATH
16412 ;;
16413
16414 darwin* | rhapsody*)
16415 dynamic_linker="$host_os dyld"
16416 version_type=darwin
16417 need_lib_prefix=no
16418 need_version=no
16419 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
16420 soname_spec='$libname$release$major$shared_ext'
16421 shlibpath_overrides_runpath=yes
16422 shlibpath_var=DYLD_LIBRARY_PATH
16423 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16424
16425 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16426 ;;
16427
16428 dgux*)
16429 version_type=linux # correct to gnu/linux during the next big refactor
16430 need_lib_prefix=no
16431 need_version=no
16432 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16433 soname_spec='$libname$release$shared_ext$major'
16434 shlibpath_var=LD_LIBRARY_PATH
16435 ;;
16436
16437 freebsd* | dragonfly*)
16438 # DragonFly does not have aout. When/if they implement a new
16439 # versioning mechanism, adjust this.
16440 if test -x /usr/bin/objformat; then
16441 objformat=`/usr/bin/objformat`
16442 else
16443 case $host_os in
16444 freebsd[23].*) objformat=aout ;;
16445 *) objformat=elf ;;
16446 esac
16447 fi
16448 version_type=freebsd-$objformat
16449 case $version_type in
16450 freebsd-elf*)
16451 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16452 soname_spec='$libname$release$shared_ext$major'
16453 need_version=no
16454 need_lib_prefix=no
16455 ;;
16456 freebsd-*)
16457 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16458 need_version=yes
16459 ;;
16460 esac
16461 shlibpath_var=LD_LIBRARY_PATH
16462 case $host_os in
16463 freebsd2.*)
16464 shlibpath_overrides_runpath=yes
16465 ;;
16466 freebsd3.[01]* | freebsdelf3.[01]*)
16467 shlibpath_overrides_runpath=yes
16468 hardcode_into_libs=yes
16469 ;;
16470 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16471 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16472 shlibpath_overrides_runpath=no
16473 hardcode_into_libs=yes
16474 ;;
16475 *) # from 4.6 on, and DragonFly
16476 shlibpath_overrides_runpath=yes
16477 hardcode_into_libs=yes
16478 ;;
16479 esac
16480 ;;
16481
16482 haiku*)
16483 version_type=linux # correct to gnu/linux during the next big refactor
16484 need_lib_prefix=no
16485 need_version=no
16486 dynamic_linker="$host_os runtime_loader"
16487 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16488 soname_spec='$libname$release$shared_ext$major'
16489 shlibpath_var=LIBRARY_PATH
16490 shlibpath_overrides_runpath=no
16491 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16492 hardcode_into_libs=yes
16493 ;;
16494
16495 hpux9* | hpux10* | hpux11*)
16496 # Give a soname corresponding to the major version so that dld.sl refuses to
16497 # link against other versions.
16498 version_type=sunos
16499 need_lib_prefix=no
16500 need_version=no
16501 case $host_cpu in
16502 ia64*)
16503 shrext_cmds='.so'
16504 hardcode_into_libs=yes
16505 dynamic_linker="$host_os dld.so"
16506 shlibpath_var=LD_LIBRARY_PATH
16507 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16508 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16509 soname_spec='$libname$release$shared_ext$major'
16510 if test 32 = "$HPUX_IA64_MODE"; then
16511 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16512 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
16513 else
16514 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16515 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
16516 fi
16517 ;;
16518 hppa*64*)
16519 shrext_cmds='.sl'
16520 hardcode_into_libs=yes
16521 dynamic_linker="$host_os dld.sl"
16522 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16523 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16524 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16525 soname_spec='$libname$release$shared_ext$major'
16526 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16527 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16528 ;;
16529 *)
16530 shrext_cmds='.sl'
16531 dynamic_linker="$host_os dld.sl"
16532 shlibpath_var=SHLIB_PATH
16533 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16534 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16535 soname_spec='$libname$release$shared_ext$major'
16536 ;;
16537 esac
16538 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16539 postinstall_cmds='chmod 555 $lib'
16540 # or fails outright, so override atomically:
16541 install_override_mode=555
16542 ;;
16543
16544 interix[3-9]*)
16545 version_type=linux # correct to gnu/linux during the next big refactor
16546 need_lib_prefix=no
16547 need_version=no
16548 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16549 soname_spec='$libname$release$shared_ext$major'
16550 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16551 shlibpath_var=LD_LIBRARY_PATH
16552 shlibpath_overrides_runpath=no
16553 hardcode_into_libs=yes
16554 ;;
16555
16556 irix5* | irix6* | nonstopux*)
16557 case $host_os in
16558 nonstopux*) version_type=nonstopux ;;
16559 *)
16560 if test yes = "$lt_cv_prog_gnu_ld"; then
16561 version_type=linux # correct to gnu/linux during the next big refactor
16562 else
16563 version_type=irix
16564 fi ;;
16565 esac
16566 need_lib_prefix=no
16567 need_version=no
16568 soname_spec='$libname$release$shared_ext$major'
16569 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
16570 case $host_os in
16571 irix5* | nonstopux*)
16572 libsuff= shlibsuff=
16573 ;;
16574 *)
16575 case $LD in # libtool.m4 will add one of these switches to LD
16576 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16577 libsuff= shlibsuff= libmagic=32-bit;;
16578 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16579 libsuff=32 shlibsuff=N32 libmagic=N32;;
16580 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16581 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16582 *) libsuff= shlibsuff= libmagic=never-match;;
16583 esac
16584 ;;
16585 esac
16586 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16587 shlibpath_overrides_runpath=no
16588 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
16589 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
16590 hardcode_into_libs=yes
16591 ;;
16592
16593 # No shared lib support for Linux oldld, aout, or coff.
16594 linux*oldld* | linux*aout* | linux*coff*)
16595 dynamic_linker=no
16596 ;;
16597
16598 linux*android*)
16599 version_type=none # Android doesn't support versioned libraries.
16600 need_lib_prefix=no
16601 need_version=no
16602 library_names_spec='$libname$release$shared_ext'
16603 soname_spec='$libname$release$shared_ext'
16604 finish_cmds=
16605 shlibpath_var=LD_LIBRARY_PATH
16606 shlibpath_overrides_runpath=yes
16607
16608 # This implies no fast_install, which is unacceptable.
16609 # Some rework will be needed to allow for fast_install
16610 # before this can be enabled.
16611 hardcode_into_libs=yes
16612
16613 dynamic_linker='Android linker'
16614 # Don't embed -rpath directories since the linker doesn't support them.
16615 hardcode_libdir_flag_spec_CXX='-L$libdir'
16616 ;;
16617
16618 # This must be glibc/ELF.
16619 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16620 version_type=linux # correct to gnu/linux during the next big refactor
16621 need_lib_prefix=no
16622 need_version=no
16623 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16624 soname_spec='$libname$release$shared_ext$major'
16625 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16626 shlibpath_var=LD_LIBRARY_PATH
16627 shlibpath_overrides_runpath=no
16628
16629 # Some binutils ld are patched to set DT_RUNPATH
16630 if test ${lt_cv_shlibpath_overrides_runpath+y}
16631 then :
16632 printf %s "(cached) " >&6
16633 else $as_nop
16634 lt_cv_shlibpath_overrides_runpath=no
16635 save_LDFLAGS=$LDFLAGS
16636 save_libdir=$libdir
16637 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16638 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16640 /* end confdefs.h. */
16641
16642 int
16643 main (void)
16644 {
16645
16646 ;
16647 return 0;
16648 }
16649 _ACEOF
16650 if ac_fn_cxx_try_link "$LINENO"
16651 then :
16652 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
16653 then :
16654 lt_cv_shlibpath_overrides_runpath=yes
16655 fi
16656 fi
16657 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16658 conftest$ac_exeext conftest.$ac_ext
16659 LDFLAGS=$save_LDFLAGS
16660 libdir=$save_libdir
16661
16662 fi
16663
16664 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16665
16666 # This implies no fast_install, which is unacceptable.
16667 # Some rework will be needed to allow for fast_install
16668 # before this can be enabled.
16669 hardcode_into_libs=yes
16670
16671 # Ideally, we could use ldconfig to report *all* directores which are
16672 # searched for libraries, however this is still not possible. Aside from not
16673 # being certain /sbin/ldconfig is available, command
16674 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
16675 # even though it is searched at run-time. Try to do the best guess by
16676 # appending ld.so.conf contents (and includes) to the search path.
16677 if test -f /etc/ld.so.conf; then
16678 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' ' '`
16679 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16680 fi
16681
16682 # We used to test for /lib/ld.so.1 and disable shared libraries on
16683 # powerpc, because MkLinux only supported shared libraries with the
16684 # GNU dynamic linker. Since this was broken with cross compilers,
16685 # most powerpc-linux boxes support dynamic linking these days and
16686 # people can always --disable-shared, the test was removed, and we
16687 # assume the GNU/Linux dynamic linker is in use.
16688 dynamic_linker='GNU/Linux ld.so'
16689 ;;
16690
16691 netbsd*)
16692 version_type=sunos
16693 need_lib_prefix=no
16694 need_version=no
16695 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16696 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16697 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16698 dynamic_linker='NetBSD (a.out) ld.so'
16699 else
16700 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16701 soname_spec='$libname$release$shared_ext$major'
16702 dynamic_linker='NetBSD ld.elf_so'
16703 fi
16704 shlibpath_var=LD_LIBRARY_PATH
16705 shlibpath_overrides_runpath=yes
16706 hardcode_into_libs=yes
16707 ;;
16708
16709 newsos6)
16710 version_type=linux # correct to gnu/linux during the next big refactor
16711 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16712 shlibpath_var=LD_LIBRARY_PATH
16713 shlibpath_overrides_runpath=yes
16714 ;;
16715
16716 *nto* | *qnx*)
16717 version_type=qnx
16718 need_lib_prefix=no
16719 need_version=no
16720 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16721 soname_spec='$libname$release$shared_ext$major'
16722 shlibpath_var=LD_LIBRARY_PATH
16723 shlibpath_overrides_runpath=no
16724 hardcode_into_libs=yes
16725 dynamic_linker='ldqnx.so'
16726 ;;
16727
16728 openbsd* | bitrig*)
16729 version_type=sunos
16730 sys_lib_dlsearch_path_spec=/usr/lib
16731 need_lib_prefix=no
16732 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16733 need_version=no
16734 else
16735 need_version=yes
16736 fi
16737 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16738 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16739 shlibpath_var=LD_LIBRARY_PATH
16740 shlibpath_overrides_runpath=yes
16741 ;;
16742
16743 os2*)
16744 libname_spec='$name'
16745 version_type=windows
16746 shrext_cmds=.dll
16747 need_version=no
16748 need_lib_prefix=no
16749 # OS/2 can only load a DLL with a base name of 8 characters or less.
16750 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
16751 v=$($ECHO $release$versuffix | tr -d .-);
16752 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
16753 $ECHO $n$v`$shared_ext'
16754 library_names_spec='${libname}_dll.$libext'
16755 dynamic_linker='OS/2 ld.exe'
16756 shlibpath_var=BEGINLIBPATH
16757 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16758 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16759 postinstall_cmds='base_file=`basename \$file`~
16760 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
16761 dldir=$destdir/`dirname \$dlpath`~
16762 test -d \$dldir || mkdir -p \$dldir~
16763 $install_prog $dir/$dlname \$dldir/$dlname~
16764 chmod a+x \$dldir/$dlname~
16765 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16766 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16767 fi'
16768 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
16769 dlpath=$dir/\$dldll~
16770 $RM \$dlpath'
16771 ;;
16772
16773 osf3* | osf4* | osf5*)
16774 version_type=osf
16775 need_lib_prefix=no
16776 need_version=no
16777 soname_spec='$libname$release$shared_ext$major'
16778 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16779 shlibpath_var=LD_LIBRARY_PATH
16780 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16781 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16782 ;;
16783
16784 rdos*)
16785 dynamic_linker=no
16786 ;;
16787
16788 solaris*)
16789 version_type=linux # correct to gnu/linux during the next big refactor
16790 need_lib_prefix=no
16791 need_version=no
16792 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16793 soname_spec='$libname$release$shared_ext$major'
16794 shlibpath_var=LD_LIBRARY_PATH
16795 shlibpath_overrides_runpath=yes
16796 hardcode_into_libs=yes
16797 # ldd complains unless libraries are executable
16798 postinstall_cmds='chmod +x $lib'
16799 ;;
16800
16801 sunos4*)
16802 version_type=sunos
16803 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16804 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16805 shlibpath_var=LD_LIBRARY_PATH
16806 shlibpath_overrides_runpath=yes
16807 if test yes = "$with_gnu_ld"; then
16808 need_lib_prefix=no
16809 fi
16810 need_version=yes
16811 ;;
16812
16813 sysv4 | sysv4.3*)
16814 version_type=linux # correct to gnu/linux during the next big refactor
16815 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16816 soname_spec='$libname$release$shared_ext$major'
16817 shlibpath_var=LD_LIBRARY_PATH
16818 case $host_vendor in
16819 sni)
16820 shlibpath_overrides_runpath=no
16821 need_lib_prefix=no
16822 runpath_var=LD_RUN_PATH
16823 ;;
16824 siemens)
16825 need_lib_prefix=no
16826 ;;
16827 motorola)
16828 need_lib_prefix=no
16829 need_version=no
16830 shlibpath_overrides_runpath=no
16831 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16832 ;;
16833 esac
16834 ;;
16835
16836 sysv4*MP*)
16837 if test -d /usr/nec; then
16838 version_type=linux # correct to gnu/linux during the next big refactor
16839 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
16840 soname_spec='$libname$shared_ext.$major'
16841 shlibpath_var=LD_LIBRARY_PATH
16842 fi
16843 ;;
16844
16845 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16846 version_type=sco
16847 need_lib_prefix=no
16848 need_version=no
16849 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
16850 soname_spec='$libname$release$shared_ext$major'
16851 shlibpath_var=LD_LIBRARY_PATH
16852 shlibpath_overrides_runpath=yes
16853 hardcode_into_libs=yes
16854 if test yes = "$with_gnu_ld"; then
16855 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16856 else
16857 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16858 case $host_os in
16859 sco3.2v5*)
16860 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16861 ;;
16862 esac
16863 fi
16864 sys_lib_dlsearch_path_spec='/usr/lib'
16865 ;;
16866
16867 tpf*)
16868 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16869 version_type=linux # correct to gnu/linux during the next big refactor
16870 need_lib_prefix=no
16871 need_version=no
16872 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16873 shlibpath_var=LD_LIBRARY_PATH
16874 shlibpath_overrides_runpath=no
16875 hardcode_into_libs=yes
16876 ;;
16877
16878 uts4*)
16879 version_type=linux # correct to gnu/linux during the next big refactor
16880 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16881 soname_spec='$libname$release$shared_ext$major'
16882 shlibpath_var=LD_LIBRARY_PATH
16883 ;;
16884
16885 *)
16886 dynamic_linker=no
16887 ;;
16888 esac
16889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16890 printf "%s\n" "$dynamic_linker" >&6; }
16891 test no = "$dynamic_linker" && can_build_shared=no
16892
16893 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16894 if test yes = "$GCC"; then
16895 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16896 fi
16897
16898 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
16899 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
16900 fi
16901
16902 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
16903 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
16904 fi
16905
16906 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
16907 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
16908
16909 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
16910 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
16911
16912 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
16913 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
16914
16915
16916
16917
16918
16919
16920
16921
16922
16923
16924
16925
16926
16927
16928
16929
16930
16931
16932
16933
16934
16935
16936
16937
16938
16939
16940
16941
16942
16943
16944
16945
16946
16947
16948
16949
16950
16951
16952
16953
16954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16955 printf %s "checking how to hardcode library paths into programs... " >&6; }
16956 hardcode_action_CXX=
16957 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16958 test -n "$runpath_var_CXX" ||
16959 test yes = "$hardcode_automatic_CXX"; then
16960
16961 # We can hardcode non-existent directories.
16962 if test no != "$hardcode_direct_CXX" &&
16963 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16964 # have to relink, otherwise we might link with an installed library
16965 # when we should be linking with a yet-to-be-installed one
16966 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
16967 test no != "$hardcode_minus_L_CXX"; then
16968 # Linking always hardcodes the temporary library directory.
16969 hardcode_action_CXX=relink
16970 else
16971 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16972 hardcode_action_CXX=immediate
16973 fi
16974 else
16975 # We cannot hardcode anything, or else we can only hardcode existing
16976 # directories.
16977 hardcode_action_CXX=unsupported
16978 fi
16979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16980 printf "%s\n" "$hardcode_action_CXX" >&6; }
16981
16982 if test relink = "$hardcode_action_CXX" ||
16983 test yes = "$inherit_rpath_CXX"; then
16984 # Fast installation is not supported
16985 enable_fast_install=no
16986 elif test yes = "$shlibpath_overrides_runpath" ||
16987 test no = "$enable_shared"; then
16988 # Fast installation is not necessary
16989 enable_fast_install=needless
16990 fi
16991
16992
16993
16994
16995
16996
16997
16998 fi # test -n "$compiler"
16999
17000 CC=$lt_save_CC
17001 CFLAGS=$lt_save_CFLAGS
17002 LDCXX=$LD
17003 LD=$lt_save_LD
17004 GCC=$lt_save_GCC
17005 with_gnu_ld=$lt_save_with_gnu_ld
17006 lt_cv_path_LDCXX=$lt_cv_path_LD
17007 lt_cv_path_LD=$lt_save_path_LD
17008 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17009 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17010 fi # test yes != "$_lt_caught_CXX_error"
17011
17012 ac_ext=c
17013 ac_cpp='$CPP $CPPFLAGS'
17014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17017
17018
17019
17020
17021
17022
17023
17024
17025
17026
17027
17028
17029
17030
17031
17032 ac_config_commands="$ac_config_commands libtool"
17033
17034
17035
17036
17037 # Only expand once:
17038
17039
17040 # Only the shared libraries are produced by default, use "--enable-static"
17041 # option to override it.
17042
17043 # Special CFLAGS to use when building
17044 gc_cflags=""
17045
17046 # Set to "yes" on platforms where mmap should be used instead of sbrk.
17047 # This will define USE_MMAP.
17048 gc_use_mmap=""
17049
17050 # We should set -fexceptions if we are using gcc and might be used
17051 # inside something like gcj. This is the zeroth approximation:
17052 if test :"$GCC": = :yes: ; then
17053 gc_cflags="${gc_cflags} -fexceptions"
17054 else
17055 case "$host" in
17056 hppa*-*-hpux* )
17057 if test :$GCC: != :"yes": ; then
17058 gc_cflags="${gc_cflags} +ESdbgasm"
17059 fi
17060 # :TODO: actually we should check using Autoconf if
17061 # the compiler supports this option.
17062 ;;
17063 esac
17064 fi
17065
17066 # target_optspace --enable-target-optspace ("yes", "no", "")
17067 case "${target_optspace}:${host}" in
17068 yes:*)
17069 gc_cflags="${gc_cflags} -Os"
17070 ;;
17071 :m32r-* | :d10v-* | :d30v-*)
17072 gc_cflags="${gc_cflags} -Os"
17073 ;;
17074 no:* | :*)
17075 # Nothing.
17076 ;;
17077 esac
17078
17079 # Set any host dependent compiler flags.
17080 case "${host}" in
17081 mips-tx39-*|mipstx39-unknown-*)
17082 gc_cflags="${gc_cflags} -G 0"
17083 ;;
17084 *)
17085 ;;
17086 esac
17087
17088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for emscripten" >&5
17089 printf %s "checking for emscripten... " >&6; }
17090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17091 /* end confdefs.h. */
17092
17093 # ifndef __EMSCRIPTEN__
17094 # error This is not Emscripten
17095 # endif
17096
17097 _ACEOF
17098 if ac_fn_c_try_compile "$LINENO"
17099 then :
17100 emscripten=yes
17101 else $as_nop
17102 emscripten=no
17103 fi
17104 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17105 if test x$emscripten = xyes; then
17106 EMSCRIPTEN_TRUE=
17107 EMSCRIPTEN_FALSE='#'
17108 else
17109 EMSCRIPTEN_TRUE='#'
17110 EMSCRIPTEN_FALSE=
17111 fi
17112
17113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $emscripten" >&5
17114 printf "%s\n" "$emscripten" >&6; }
17115
17116 # Check whether --enable-emscripten-asyncify was given.
17117 if test ${enable_emscripten_asyncify+y}
17118 then :
17119 enableval=$enable_emscripten_asyncify;
17120 fi
17121
17122 # Use this option if your program is targeting -sASYNCIFY. The latter is
17123 # required to scan the stack, ASYNCIFY_STACK_SIZE is probably needed for
17124 # gctest only.
17125 if test "${emscripten}" = yes -a "${enable_emscripten_asyncify}" = yes
17126 then :
17127 gc_cflags="${gc_cflags} -DEMSCRIPTEN_ASYNCIFY"
17128 gc_cflags="${gc_cflags} -sASYNCIFY -sASYNCIFY_STACK_SIZE=128000"
17129 fi
17130
17131 GC_CFLAGS=${gc_cflags}
17132
17133
17134
17135
17136 # Check whether --enable-threads was given.
17137 if test ${enable_threads+y}
17138 then :
17139 enableval=$enable_threads; THREADS=$enableval
17140 else $as_nop
17141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for thread model used by GCC" >&5
17142 printf %s "checking for thread model used by GCC... " >&6; }
17143 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
17144 if test -z "$THREADS" -o "x$emscripten" = "xyes"; then
17145 THREADS=no
17146 fi
17147 if test "$THREADS" = "posix"; then
17148 case "$host" in
17149 *-*-mingw*)
17150 # Adjust thread model if cross-compiling for MinGW.
17151 THREADS=win32
17152 ;;
17153 esac
17154 fi
17155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $THREADS" >&5
17156 printf "%s\n" "$THREADS" >&6; }
17157 fi
17158
17159
17160 # Check whether --enable-parallel-mark was given.
17161 if test ${enable_parallel_mark+y}
17162 then :
17163 enableval=$enable_parallel_mark; case "$THREADS" in
17164 no | none | single)
17165 if test "${enable_parallel_mark}" != no; then
17166 as_fn_error $? "Parallel mark requires --enable-threads=x spec" "$LINENO" 5
17167 fi
17168 ;;
17169 esac
17170 fi
17171
17172
17173 # Check whether --enable-thread-local-alloc was given.
17174 if test ${enable_thread_local_alloc+y}
17175 then :
17176 enableval=$enable_thread_local_alloc; case "$THREADS" in
17177 no | none | single)
17178 if test "${enable_thread_local_alloc}" = yes; then
17179 as_fn_error $? "Thread-local allocation requires --enable-threads=x spec" "$LINENO" 5
17180 fi
17181 ;;
17182 esac
17183 fi
17184
17185
17186 # Check whether --enable-threads-discovery was given.
17187 if test ${enable_threads_discovery+y}
17188 then :
17189 enableval=$enable_threads_discovery;
17190 fi
17191
17192 if test "${enable_threads_discovery}" = no; then
17193
17194 printf "%s\n" "#define GC_NO_THREADS_DISCOVERY 1" >>confdefs.h
17195
17196 fi
17197
17198 # Check whether --enable-cplusplus was given.
17199 if test ${enable_cplusplus+y}
17200 then :
17201 enableval=$enable_cplusplus;
17202 fi
17203
17204
17205
17206
17207
17208
17209
17210
17211
17212
17213
17214
17215
17216
17217
17218
17219
17220 old_CFLAGS="$CFLAGS"
17221 CFLAGS="$CFLAGS $CFLAGS_EXTRA"
17222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
17223 printf %s "checking for inline... " >&6; }
17224 if test ${ac_cv_c_inline+y}
17225 then :
17226 printf %s "(cached) " >&6
17227 else $as_nop
17228 ac_cv_c_inline=no
17229 for ac_kw in inline __inline__ __inline; do
17230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17231 /* end confdefs.h. */
17232 #ifndef __cplusplus
17233 typedef int foo_t;
17234 static $ac_kw foo_t static_foo (void) {return 0; }
17235 $ac_kw foo_t foo (void) {return 0; }
17236 #endif
17237
17238 _ACEOF
17239 if ac_fn_c_try_compile "$LINENO"
17240 then :
17241 ac_cv_c_inline=$ac_kw
17242 fi
17243 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17244 test "$ac_cv_c_inline" != no && break
17245 done
17246
17247 fi
17248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
17249 printf "%s\n" "$ac_cv_c_inline" >&6; }
17250
17251 case $ac_cv_c_inline in
17252 inline | yes) ;;
17253 *)
17254 case $ac_cv_c_inline in
17255 no) ac_val=;;
17256 *) ac_val=$ac_cv_c_inline;;
17257 esac
17258 cat >>confdefs.h <<_ACEOF
17259 #ifndef __cplusplus
17260 #define inline $ac_val
17261 #endif
17262 _ACEOF
17263 ;;
17264 esac
17265
17266 CFLAGS="$old_CFLAGS"
17267
17268 THREADDLLIBS=
17269 need_atomic_ops_asm=false
17270 need_lib_rt=false
17271 compile_asm=false
17272 use_parallel_mark=no
17273 use_thread_local_alloc=no
17274 # Libraries needed to support dynamic loading and/or threads.
17275 case "$THREADS" in
17276 no | none | single)
17277 THREADS=none
17278 ;;
17279 posix | pthreads)
17280 THREADS=posix
17281 default_threadlibs=false
17282 # Common defines for most POSIX platforms.
17283 case "$host" in
17284 *-*-aix* | *-*-android* | *-*-cygwin* | *-*-darwin* | *-*-dragonfly* | \
17285 *-*-freebsd* | *-*-haiku* | *-*-hpux11* | *-*-irix* | \
17286 *-*-kfreebsd*-gnu | *-*-gnu* | *-*-*linux* | *-*-msys* | *-*-nacl* | \
17287 *-*-netbsd* | *-*-openbsd* | *-*-osf* | *-*-solaris*)
17288 printf "%s\n" "#define GC_THREADS 1" >>confdefs.h
17289
17290
17291 printf "%s\n" "#define _REENTRANT 1" >>confdefs.h
17292
17293 use_parallel_mark=$enable_parallel_mark
17294 use_thread_local_alloc=$enable_thread_local_alloc
17295 default_threadlibs=true
17296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"Explicit GC_INIT() calls may be required.\"" >&5
17297 printf "%s\n" "$as_me: WARNING: \"Explicit GC_INIT() calls may be required.\"" >&2;}
17298 ;;
17299 esac
17300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
17301 printf %s "checking for pthread_self in -lpthread... " >&6; }
17302 if test ${ac_cv_lib_pthread_pthread_self+y}
17303 then :
17304 printf %s "(cached) " >&6
17305 else $as_nop
17306 ac_check_lib_save_LIBS=$LIBS
17307 LIBS="-lpthread $LIBS"
17308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17309 /* end confdefs.h. */
17310
17311 /* Override any GCC internal prototype to avoid an error.
17312 Use char because int might match the return type of a GCC
17313 builtin and then its argument prototype would still apply. */
17314 char pthread_self ();
17315 int
17316 main (void)
17317 {
17318 return pthread_self ();
17319 ;
17320 return 0;
17321 }
17322 _ACEOF
17323 if ac_fn_c_try_link "$LINENO"
17324 then :
17325 ac_cv_lib_pthread_pthread_self=yes
17326 else $as_nop
17327 ac_cv_lib_pthread_pthread_self=no
17328 fi
17329 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17330 conftest$ac_exeext conftest.$ac_ext
17331 LIBS=$ac_check_lib_save_LIBS
17332 fi
17333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
17334 printf "%s\n" "$ac_cv_lib_pthread_pthread_self" >&6; }
17335 if test "x$ac_cv_lib_pthread_pthread_self" = xyes
17336 then :
17337 THREADDLLIBS="-lpthread"
17338 fi
17339
17340 case "$host" in
17341 *-*-hpux11*)
17342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"Only HP/UX 11 POSIX threads are supported.\"" >&5
17343 printf "%s\n" "$as_me: WARNING: \"Only HP/UX 11 POSIX threads are supported.\"" >&2;}
17344 printf "%s\n" "#define _POSIX_C_SOURCE 199506L" >>confdefs.h
17345
17346 THREADDLLIBS="-lpthread"
17347 # HPUX needs REENTRANT for the _r calls.
17348 need_lib_rt=true
17349 ;;
17350 *-*-openbsd*)
17351 AM_CFLAGS="$AM_CFLAGS -pthread"
17352 THREADDLLIBS=-pthread
17353 ;;
17354 *-*-freebsd*)
17355 AM_CFLAGS="$AM_CFLAGS -pthread"
17356 ;;
17357 *-*-kfreebsd*-gnu)
17358 AM_CFLAGS="$AM_CFLAGS -pthread"
17359 THREADDLLIBS=-pthread
17360 ;;
17361 *-*-gnu*) # E.g. linux but excluding kfreebsd.
17362 # The default THREADDLLIBS.
17363 ;;
17364 *-*-netbsd*)
17365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"Only on NetBSD 2.0 or later.\"" >&5
17366 printf "%s\n" "$as_me: WARNING: \"Only on NetBSD 2.0 or later.\"" >&2;}
17367 printf "%s\n" "#define _PTHREADS 1" >>confdefs.h
17368
17369 THREADDLLIBS="-lpthread"
17370 need_lib_rt=true
17371 ;;
17372 *-*-solaris*)
17373 THREADDLLIBS="-lpthread"
17374 need_lib_rt=true
17375 ;;
17376 *-*-cygwin* | *-*-msys*)
17377 # Cygwin doesn't have a real libpthread, so Libtool can't link
17378 # against it.
17379 THREADDLLIBS=""
17380 win32_threads=true
17381 ;;
17382 *-*-mingw*)
17383 printf "%s\n" "#define GC_WIN32_PTHREADS 1" >>confdefs.h
17384
17385 # Using pthreads-win32 (or other non-Cygwin pthreads) library.
17386 THREADDLLIBS="-lpthread"
17387 use_parallel_mark=$enable_parallel_mark
17388 use_thread_local_alloc=$enable_thread_local_alloc
17389 win32_threads=true
17390 ;;
17391 *-*-darwin*)
17392 darwin_threads=true
17393 ;;
17394 *-*-osf*)
17395 AM_CFLAGS="$AM_CFLAGS -pthread"
17396 THREADDLLIBS="-lpthread"
17397 need_lib_rt=true
17398 ;;
17399 *)
17400 if test x$default_threadlibs != xtrue
17401 then :
17402 as_fn_error $? "Pthreads not supported by the GC on this platform" "$LINENO" 5
17403 fi
17404 # The default THREADDLLIBS.
17405 ;;
17406 esac
17407 case "$host" in
17408 sparc*-*-solaris*)
17409 if test "$GCC" != yes; then
17410 need_atomic_ops_asm=true
17411 fi
17412 ;;
17413 esac
17414 ;;
17415 mcf | win32)
17416 printf "%s\n" "#define GC_THREADS 1" >>confdefs.h
17417
17418 use_parallel_mark=$enable_parallel_mark
17419 if test "${enable_parallel_mark}" != no \
17420 -o "${enable_shared}" != yes -o "${enable_static}" != no; then
17421 # Imply THREAD_LOCAL_ALLOC unless GC_DLL.
17422 use_thread_local_alloc=$enable_thread_local_alloc
17423 fi
17424 if test "${enable_win32_dllmain}" = yes; then
17425
17426 printf "%s\n" "#define GC_INSIDE_DLL 1" >>confdefs.h
17427
17428 fi
17429 win32_threads=true
17430
17431 printf "%s\n" "#define EMPTY_GETENV_RESULTS 1" >>confdefs.h
17432
17433 ;;
17434 dgux386)
17435 printf "%s\n" "#define GC_THREADS 1" >>confdefs.h
17436
17437 # Use pthread GCC switch
17438 THREADDLLIBS=-pthread
17439 use_parallel_mark=$enable_parallel_mark
17440 use_thread_local_alloc=$enable_thread_local_alloc
17441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"Explicit GC_INIT() calls may be required.\"" >&5
17442 printf "%s\n" "$as_me: WARNING: \"Explicit GC_INIT() calls may be required.\"" >&2;}
17443 AM_CFLAGS="-pthread $AM_CFLAGS"
17444 ;;
17445 aix)
17446 THREADS=posix
17447 THREADDLLIBS=-lpthread
17448 printf "%s\n" "#define GC_THREADS 1" >>confdefs.h
17449
17450 printf "%s\n" "#define _REENTRANT 1" >>confdefs.h
17451
17452 use_parallel_mark=$enable_parallel_mark
17453 use_thread_local_alloc=$enable_thread_local_alloc
17454 ;;
17455 rtems)
17456 THREADS=posix
17457 printf "%s\n" "#define GC_THREADS 1" >>confdefs.h
17458
17459 use_parallel_mark=$enable_parallel_mark
17460 use_thread_local_alloc=$enable_thread_local_alloc
17461 ;;
17462 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
17463 as_fn_error $? "thread package $THREADS not yet supported" "$LINENO" 5
17464 ;;
17465 *)
17466 as_fn_error $? "$THREADS is an unknown thread package" "$LINENO" 5
17467 ;;
17468 esac
17469
17470 # Check whether -lrt linker option is needed to use clock_gettime.
17471 if test "x$need_lib_rt" != xtrue; then
17472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime without additional libraries" >&5
17473 printf %s "checking for clock_gettime without additional libraries... " >&6; }
17474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17475 /* end confdefs.h. */
17476 #include <time.h>
17477 int
17478 main (void)
17479 {
17480 struct timespec t; clock_gettime(CLOCK_REALTIME, &t)
17481 ;
17482 return 0;
17483 }
17484 _ACEOF
17485 if ac_fn_c_try_link "$LINENO"
17486 then :
17487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17488 printf "%s\n" "yes" >&6; }
17489 else $as_nop
17490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17491 printf "%s\n" "no" >&6; }
17492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
17493 printf %s "checking for clock_gettime in -lrt... " >&6; }
17494 if test ${ac_cv_lib_rt_clock_gettime+y}
17495 then :
17496 printf %s "(cached) " >&6
17497 else $as_nop
17498 ac_check_lib_save_LIBS=$LIBS
17499 LIBS="-lrt $LIBS"
17500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17501 /* end confdefs.h. */
17502
17503 /* Override any GCC internal prototype to avoid an error.
17504 Use char because int might match the return type of a GCC
17505 builtin and then its argument prototype would still apply. */
17506 char clock_gettime ();
17507 int
17508 main (void)
17509 {
17510 return clock_gettime ();
17511 ;
17512 return 0;
17513 }
17514 _ACEOF
17515 if ac_fn_c_try_link "$LINENO"
17516 then :
17517 ac_cv_lib_rt_clock_gettime=yes
17518 else $as_nop
17519 ac_cv_lib_rt_clock_gettime=no
17520 fi
17521 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17522 conftest$ac_exeext conftest.$ac_ext
17523 LIBS=$ac_check_lib_save_LIBS
17524 fi
17525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
17526 printf "%s\n" "$ac_cv_lib_rt_clock_gettime" >&6; }
17527 if test "x$ac_cv_lib_rt_clock_gettime" = xyes
17528 then :
17529 need_lib_rt=true
17530 fi
17531
17532 fi
17533 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17534 conftest$ac_exeext conftest.$ac_ext
17535 fi
17536
17537 if test "x$need_lib_rt" = xtrue; then
17538 THREADDLLIBS="$THREADDLLIBS -lrt"
17539 fi
17540
17541
17542 if test x$THREADS != xnone; then
17543 THREADS_TRUE=
17544 THREADS_FALSE='#'
17545 else
17546 THREADS_TRUE='#'
17547 THREADS_FALSE=
17548 fi
17549
17550 if test x$THREADS = xposix; then
17551 PTHREADS_TRUE=
17552 PTHREADS_FALSE='#'
17553 else
17554 PTHREADS_TRUE='#'
17555 PTHREADS_FALSE=
17556 fi
17557
17558 if test x$darwin_threads = xtrue; then
17559 DARWIN_THREADS_TRUE=
17560 DARWIN_THREADS_FALSE='#'
17561 else
17562 DARWIN_THREADS_TRUE='#'
17563 DARWIN_THREADS_FALSE=
17564 fi
17565
17566 if test x$win32_threads = xtrue; then
17567 WIN32_THREADS_TRUE=
17568 WIN32_THREADS_FALSE='#'
17569 else
17570 WIN32_THREADS_TRUE='#'
17571 WIN32_THREADS_FALSE=
17572 fi
17573
17574
17575 compiler_suncc=no
17576 pthread_start_standalone=no
17577 case "$host" in
17578 *-*-*linux*)
17579 # Turn on the workaround described in pthread_start.c.
17580 if test "$THREADS" = posix
17581 then :
17582 pthread_start_standalone=yes
17583 fi
17584 ;;
17585 powerpc-*-darwin*)
17586 powerpc_darwin=true
17587 ;;
17588 *-*-solaris*)
17589 if test "$GCC" != yes; then
17590 # Solaris SunCC
17591 compiler_suncc=yes
17592 CFLAGS="-O $CFLAGS"
17593 fi
17594 ;;
17595 *-*-wince*)
17596 if test "$enable_gc_debug" != "no"; then
17597
17598 printf "%s\n" "#define GC_READ_ENV_FILE 1" >>confdefs.h
17599
17600 fi
17601 ;;
17602 esac
17603 if test x$pthread_start_standalone = xyes; then
17604 PTHREAD_START_STANDALONE_TRUE=
17605 PTHREAD_START_STANDALONE_FALSE='#'
17606 else
17607 PTHREAD_START_STANDALONE_TRUE='#'
17608 PTHREAD_START_STANDALONE_FALSE=
17609 fi
17610
17611
17612 if test "$GCC" = yes; then
17613 # Output all warnings.
17614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wextra" >&5
17615 printf %s "checking whether compiler supports -Wextra... " >&6; }
17616 old_CFLAGS="$CFLAGS"
17617 CFLAGS="-Wextra $CFLAGS"
17618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17619 /* end confdefs.h. */
17620
17621 int
17622 main (void)
17623 {
17624
17625 ;
17626 return 0;
17627 }
17628 _ACEOF
17629 if ac_fn_c_try_compile "$LINENO"
17630 then :
17631 ac_cv_cc_wextra=yes
17632 else $as_nop
17633 ac_cv_cc_wextra=no
17634 fi
17635 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17636 CFLAGS="$old_CFLAGS"
17637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_wextra" >&5
17638 printf "%s\n" "$ac_cv_cc_wextra" >&6; }
17639 if test "$ac_cv_cc_wextra" = yes
17640 then :
17641 WEXTRA="-Wextra"
17642 else $as_nop
17643 WEXTRA="-W"
17644 fi
17645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wpedantic" >&5
17646 printf %s "checking whether compiler supports -Wpedantic... " >&6; }
17647 CFLAGS="-Wpedantic -Wno-long-long $CFLAGS"
17648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17649 /* end confdefs.h. */
17650
17651 int
17652 main (void)
17653 {
17654
17655 extern int quiet;
17656
17657 ;
17658 return 0;
17659 }
17660 _ACEOF
17661 if ac_fn_c_try_compile "$LINENO"
17662 then :
17663 ac_cv_cc_pedantic=yes
17664 else $as_nop
17665 ac_cv_cc_pedantic=no
17666 fi
17667 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17668 CFLAGS="$old_CFLAGS"
17669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_pedantic" >&5
17670 printf "%s\n" "$ac_cv_cc_pedantic" >&6; }
17671 WPEDANTIC=
17672 if test "$ac_cv_cc_pedantic" = yes
17673 then :
17674 WPEDANTIC="-Wpedantic -Wno-long-long"
17675 fi
17676 CFLAGS="-Wall $WEXTRA $WPEDANTIC $CFLAGS"
17677 CXXFLAGS="-Wall $WEXTRA $WPEDANTIC $CXXFLAGS"
17678 fi
17679
17680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xlc" >&5
17681 printf %s "checking for xlc... " >&6; }
17682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17683 /* end confdefs.h. */
17684
17685 int
17686 main (void)
17687 {
17688
17689 #ifndef __xlC__
17690 # error
17691 #endif
17692
17693 ;
17694 return 0;
17695 }
17696 _ACEOF
17697 if ac_fn_c_try_compile "$LINENO"
17698 then :
17699 compiler_xlc=yes
17700 else $as_nop
17701 compiler_xlc=no
17702 fi
17703 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $compiler_xlc" >&5
17705 printf "%s\n" "$compiler_xlc" >&6; }
17706 if test $compiler_xlc = yes -a "$powerpc_darwin" = true; then
17707 # the darwin stack-frame-walking code is completely broken on xlc
17708
17709 printf "%s\n" "#define DARWIN_DONT_PARSE_STACK 1" >>confdefs.h
17710
17711 fi
17712
17713 # XLC neither requires nor tolerates the unnecessary assembler goop.
17714 # Similar for the Sun C compiler.
17715 if test $compiler_xlc = yes -o $compiler_suncc = yes; then
17716 ASM_WITH_CPP_UNSUPPORTED_TRUE=
17717 ASM_WITH_CPP_UNSUPPORTED_FALSE='#'
17718 else
17719 ASM_WITH_CPP_UNSUPPORTED_TRUE='#'
17720 ASM_WITH_CPP_UNSUPPORTED_FALSE=
17721 fi
17722
17723
17724 if test "$GCC" = yes; then
17725 # Disable aliasing optimization unless forced to.
17726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fno-strict-aliasing" >&5
17727 printf %s "checking whether compiler supports -fno-strict-aliasing... " >&6; }
17728 ac_cv_fno_strict_aliasing=no
17729 for cflag in $CFLAGS; do
17730 case "$cflag" in
17731 -fstrict-aliasing)
17732 # Opposite option already present
17733 ac_cv_fno_strict_aliasing=skipped
17734 break
17735 ;;
17736 esac
17737 done
17738 if test "$ac_cv_fno_strict_aliasing" != skipped; then
17739 old_CFLAGS="$CFLAGS"
17740 CFLAGS="$CFLAGS -fno-strict-aliasing"
17741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17742 /* end confdefs.h. */
17743
17744 int
17745 main (void)
17746 {
17747
17748 ;
17749 return 0;
17750 }
17751 _ACEOF
17752 if ac_fn_c_try_compile "$LINENO"
17753 then :
17754 ac_cv_fno_strict_aliasing=yes
17755 fi
17756 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17757 CFLAGS="$old_CFLAGS"
17758 if test "$ac_cv_fno_strict_aliasing" = yes
17759 then :
17760 CFLAGS="$CFLAGS -fno-strict-aliasing"
17761 fi
17762 fi
17763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fno_strict_aliasing" >&5
17764 printf "%s\n" "$ac_cv_fno_strict_aliasing" >&6; }
17765 fi
17766
17767 # Check for getcontext (uClibc can be configured without it, for example)
17768 ac_fn_c_check_func "$LINENO" "getcontext" "ac_cv_func_getcontext"
17769 if test "x$ac_cv_func_getcontext" = xyes
17770 then :
17771
17772 else $as_nop
17773
17774 printf "%s\n" "#define NO_GETCONTEXT 1" >>confdefs.h
17775
17776 fi
17777
17778
17779 # Check whether dl_iterate_phdr exists (as a strong symbol).
17780 ac_fn_c_check_func "$LINENO" "dl_iterate_phdr" "ac_cv_func_dl_iterate_phdr"
17781 if test "x$ac_cv_func_dl_iterate_phdr" = xyes
17782 then :
17783 printf "%s\n" "#define HAVE_DL_ITERATE_PHDR 1" >>confdefs.h
17784
17785 fi
17786
17787
17788 case "$host" in
17789 # While IRIX 6 has libdl for the O32 and N32 ABIs, it's missing for N64
17790 # and unnecessary everywhere.
17791 mips-sgi-irix6*) ;;
17792 # We never want libdl on darwin. It is a fake libdl that just ends up making
17793 # dyld calls anyway. The same applies to Cygwin.
17794 *-*-cygwin* | *-*-darwin* | *-*-msys*)
17795 ;;
17796 *)
17797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17798 printf %s "checking for dlopen in -ldl... " >&6; }
17799 if test ${ac_cv_lib_dl_dlopen+y}
17800 then :
17801 printf %s "(cached) " >&6
17802 else $as_nop
17803 ac_check_lib_save_LIBS=$LIBS
17804 LIBS="-ldl $LIBS"
17805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17806 /* end confdefs.h. */
17807
17808 /* Override any GCC internal prototype to avoid an error.
17809 Use char because int might match the return type of a GCC
17810 builtin and then its argument prototype would still apply. */
17811 char dlopen ();
17812 int
17813 main (void)
17814 {
17815 return dlopen ();
17816 ;
17817 return 0;
17818 }
17819 _ACEOF
17820 if ac_fn_c_try_link "$LINENO"
17821 then :
17822 ac_cv_lib_dl_dlopen=yes
17823 else $as_nop
17824 ac_cv_lib_dl_dlopen=no
17825 fi
17826 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17827 conftest$ac_exeext conftest.$ac_ext
17828 LIBS=$ac_check_lib_save_LIBS
17829 fi
17830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17831 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
17832 if test "x$ac_cv_lib_dl_dlopen" = xyes
17833 then :
17834 THREADDLLIBS="$THREADDLLIBS -ldl"
17835 fi
17836
17837 ;;
17838 esac
17839
17840 case "$host" in
17841 *-*-hpux*)
17842 avoid_cpp_lib=yes;;
17843 *)
17844 avoid_cpp_lib=no;
17845 ;;
17846 esac
17847 if test $avoid_cpp_lib = yes; then
17848 AVOID_CPP_LIB_TRUE=
17849 AVOID_CPP_LIB_FALSE='#'
17850 else
17851 AVOID_CPP_LIB_TRUE='#'
17852 AVOID_CPP_LIB_FALSE=
17853 fi
17854
17855
17856 # Check for various headers.
17857 ac_fn_c_check_header_compile "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
17858 if test "x$ac_cv_header_execinfo_h" = xyes
17859 then :
17860
17861 else $as_nop
17862
17863 printf "%s\n" "#define GC_MISSING_EXECINFO_H 1" >>confdefs.h
17864
17865 fi
17866
17867
17868 # extra LD Flags which are required for targets
17869 case "${host}" in
17870 *-*-darwin*)
17871 extra_ldflags_libgc=-Wl,-single_module
17872 ;;
17873 esac
17874
17875
17876
17877
17878 target_all=libgc.la
17879
17880
17881 TARGET_ECOS="no"
17882
17883 # Check whether --with-ecos was given.
17884 if test ${with_ecos+y}
17885 then :
17886 withval=$with_ecos; TARGET_ECOS="$with_ecos"
17887
17888 fi
17889
17890
17891 addobjs=
17892 addlibs=
17893 CXXLIBS=
17894
17895 case "$TARGET_ECOS" in
17896 no)
17897 ;;
17898 *)
17899
17900 printf "%s\n" "#define ECOS 1" >>confdefs.h
17901
17902 AM_CPPFLAGS="-I${TARGET_ECOS}/include $AM_CPPFLAGS"
17903 addobjs="$addobjs ecos.lo"
17904 ;;
17905 esac
17906
17907 if test "${enable_cplusplus}" = yes; then
17908 CPLUSPLUS_TRUE=
17909 CPLUSPLUS_FALSE='#'
17910 else
17911 CPLUSPLUS_TRUE='#'
17912 CPLUSPLUS_FALSE=
17913 fi
17914
17915
17916 # Check whether --enable-throw-bad-alloc-library was given.
17917 if test ${enable_throw_bad_alloc_library+y}
17918 then :
17919 enableval=$enable_throw_bad_alloc_library;
17920 fi
17921
17922 if test "${enable_cplusplus}" = yes \
17923 -a "${enable_throw_bad_alloc_library}" != no; then
17924 GC_TBA_LIBRARY_TRUE=
17925 GC_TBA_LIBRARY_FALSE='#'
17926 else
17927 GC_TBA_LIBRARY_TRUE='#'
17928 GC_TBA_LIBRARY_FALSE=
17929 fi
17930
17931
17932 if test "$GCC" = yes; then
17933 if test "${enable_cplusplus}" = yes; then
17934 case "$host" in
17935 *-*-cygwin* | *-*-mingw* | *-*-msys*)
17936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether libsupc++ required" >&5
17937 printf %s "checking whether libsupc++ required... " >&6; }
17938 SUPC="`$CXX -print-file-name=libsupc++.a 2>/dev/null`"
17939 if test -n "$SUPC" -a "$SUPC" != "libsupc++.a"; then
17940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17941 printf "%s\n" "yes" >&6; }
17942 CXXLIBS="-lsupc++"
17943 else
17944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17945 printf "%s\n" "no" >&6; }
17946 fi
17947 ;;
17948 esac
17949 fi
17950 fi
17951
17952
17953
17954
17955
17956
17957 # Configuration of shared libraries
17958 #
17959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17960 printf %s "checking whether to build shared libraries... " >&6; }
17961 # Check whether --enable-shared was given.
17962 if test ${enable_shared+y}
17963 then :
17964 enableval=$enable_shared; p=${PACKAGE-default}
17965 case $enableval in
17966 yes) enable_shared=yes ;;
17967 no) enable_shared=no ;;
17968 *)
17969 enable_shared=no
17970 # Look at the argument we got. We use all the common list separators.
17971 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
17972 for pkg in $enableval; do
17973 IFS=$lt_save_ifs
17974 if test "X$pkg" = "X$p"; then
17975 enable_shared=yes
17976 fi
17977 done
17978 IFS=$lt_save_ifs
17979 ;;
17980 esac
17981 else $as_nop
17982 enable_shared=yes
17983 fi
17984
17985
17986
17987
17988
17989
17990
17991 case "$host" in
17992 alpha-*-openbsd*)
17993 enable_shared=no
17994 ;;
17995 *)
17996 ;;
17997 esac
17998
17999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18000 printf "%s\n" "$enable_shared" >&6; }
18001
18002 # Compile with GC_DLL defined unless building static libraries.
18003 if test "${enable_shared}" != no -a "${enable_static}" != yes; then
18004 printf "%s\n" "#define GC_DLL 1" >>confdefs.h
18005
18006 if test "$GCC" = yes; then
18007 # Pass -fvisibility=hidden option if supported
18008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fvisibility" >&5
18009 printf %s "checking whether compiler supports -fvisibility... " >&6; }
18010 old_CFLAGS="$CFLAGS"
18011 CFLAGS="-Werror -fvisibility=hidden $CFLAGS"
18012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18013 /* end confdefs.h. */
18014
18015 int
18016 main (void)
18017 {
18018
18019 ;
18020 return 0;
18021 }
18022 _ACEOF
18023 if ac_fn_c_try_compile "$LINENO"
18024 then :
18025 ac_cv_fvisibility_hidden=yes
18026 else $as_nop
18027 ac_cv_fvisibility_hidden=no
18028 fi
18029 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18030 CFLAGS="$old_CFLAGS"
18031 if test "$ac_cv_fvisibility_hidden" = yes
18032 then :
18033 CFLAGS="-DGC_VISIBILITY_HIDDEN_SET -fvisibility=hidden $CFLAGS"
18034 else $as_nop
18035 CFLAGS="-DGC_NO_VISIBILITY $CFLAGS"
18036 fi
18037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fvisibility_hidden" >&5
18038 printf "%s\n" "$ac_cv_fvisibility_hidden" >&6; }
18039 fi
18040 else
18041
18042 case "$host" in
18043 *-*-cygwin* | *-*-mingw* | *-*-msys*)
18044 # Do not require the clients to link with "user32" system library.
18045
18046 printf "%s\n" "#define DONT_USE_USER32_DLL 1" >>confdefs.h
18047
18048 # Use inline version of GC new and delete operators in test_cpp
18049 # otherwise the system ones might be used instead because of arbitrary
18050 # ordering of object files when linking.
18051 CXXFLAGS="$CXXFLAGS -DGC_NOT_DLL"
18052 ;;
18053 esac
18054 fi
18055
18056 # Configuration of machine-dependent code
18057 #
18058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which machine-dependent code should be used" >&5
18059 printf %s "checking which machine-dependent code should be used... " >&6; }
18060 machdep=
18061 case "$host" in
18062 alpha-*-openbsd*)
18063 if test x"${ac_cv_lib_dl_dlopen}" != xyes ; then
18064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"OpenBSD/Alpha without dlopen(). Shared library support is disabled.\"" >&5
18065 printf "%s\n" "$as_me: WARNING: \"OpenBSD/Alpha without dlopen(). Shared library support is disabled.\"" >&2;}
18066 fi
18067 ;;
18068 i?86-*-solaris2.[89])
18069 # PROC_VDB appears to work in 2.8 and 2.9 but not in 2.10+ (for now).
18070
18071 printf "%s\n" "#define SOLARIS25_PROC_VDB_BUG_FIXED 1" >>confdefs.h
18072
18073 ;;
18074 sparc-*-netbsd*)
18075 machdep="sparc_netbsd_mach_dep.lo"
18076 compile_asm=true
18077 ;;
18078 sparc*-*-linux* | sparc*-*-openbsd* | sparc64-*-freebsd* | sparc64-*-netbsd*)
18079 machdep="sparc_mach_dep.lo"
18080 compile_asm=true
18081 ;;
18082 sparc-sun-solaris2.3)
18083 machdep="sparc_mach_dep.lo"
18084 compile_asm=true
18085
18086 printf "%s\n" "#define SUNOS53_SHARED_LIB 1" >>confdefs.h
18087
18088 ;;
18089 sparc*-sun-solaris2*)
18090 machdep="sparc_mach_dep.lo"
18091 compile_asm=true
18092 ;;
18093 ia64-*-*)
18094 machdep="ia64_save_regs_in_stack.lo"
18095 ;;
18096 esac
18097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $machdep" >&5
18098 printf "%s\n" "$machdep" >&6; }
18099 addobjs="$addobjs $machdep"
18100
18101
18102
18103
18104
18105 # Suppress "extension used" clang warning (when compiling .S files).
18106 if test x$compile_asm = xtrue -a "$GCC" = yes; then
18107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wno-language-extension-token" >&5
18108 printf %s "checking whether compiler supports -Wno-language-extension-token... " >&6; }
18109 old_CFLAGS="$CFLAGS"
18110 CFLAGS="$CFLAGS -Werror -Wno-language-extension-token"
18111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18112 /* end confdefs.h. */
18113
18114 int
18115 main (void)
18116 {
18117
18118 ;
18119 return 0;
18120 }
18121 _ACEOF
18122 if ac_fn_c_try_compile "$LINENO"
18123 then :
18124 ac_cv_lang_ext_token=yes
18125 else $as_nop
18126 ac_cv_lang_ext_token=no
18127 fi
18128 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18129 CFLAGS="$old_CFLAGS"
18130 if test "$ac_cv_lang_ext_token" = yes
18131 then :
18132 CFLAGS="$CFLAGS -Wno-language-extension-token"
18133 fi
18134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lang_ext_token" >&5
18135 printf "%s\n" "$ac_cv_lang_ext_token" >&6; }
18136 fi
18137
18138
18139 # Check whether --with-target-subdir was given.
18140 if test ${with_target_subdir+y}
18141 then :
18142 withval=$with_target_subdir;
18143 fi
18144
18145
18146 # Check whether --with-cross-host was given.
18147 if test ${with_cross_host+y}
18148 then :
18149 withval=$with_cross_host;
18150 fi
18151
18152
18153 if false; then
18154 :
18155
18156 fi
18157
18158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether AIX gcc optimization fix is necessary" >&5
18159 printf %s "checking whether AIX gcc optimization fix is necessary... " >&6; }
18160 case "$host" in
18161 *aix*)
18162 if test "$GCC" = yes; then
18163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18164 printf "%s\n" "yes" >&6; }
18165 new_CFLAGS=
18166 for i in $CFLAGS; do
18167 case "$i" in
18168 -O*)
18169 ;;
18170 *)
18171 new_CFLAGS="$new_CFLAGS $i"
18172 ;;
18173 esac
18174 done
18175 CFLAGS="$new_CFLAGS"
18176 else
18177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18178 printf "%s\n" "no" >&6; }
18179 fi
18180 ;;
18181 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18182 printf "%s\n" "no" >&6; } ;;
18183 esac
18184
18185
18186 printf "%s\n" "#define NO_EXECUTE_PERMISSION 1" >>confdefs.h
18187
18188
18189 printf "%s\n" "#define ALL_INTERIOR_POINTERS 1" >>confdefs.h
18190
18191
18192
18193 # Check whether --enable-gcj-support was given.
18194 if test ${enable_gcj_support+y}
18195 then :
18196 enableval=$enable_gcj_support;
18197 fi
18198
18199 if test x"$enable_gcj_support" != xno; then
18200
18201 printf "%s\n" "#define GC_GCJ_SUPPORT 1" >>confdefs.h
18202
18203 case "$host" in
18204 *-*-kfreebsd*-gnu)
18205 # FIXME: For a reason, gctest hangs up on kFreeBSD if both of
18206 # THREAD_LOCAL_ALLOC and GC_ENABLE_SUSPEND_THREAD are defined.
18207 if test "${enable_thread_local_alloc}" = no; then
18208 printf "%s\n" "#define GC_ENABLE_SUSPEND_THREAD 1" >>confdefs.h
18209
18210 fi
18211 ;;
18212 *)
18213
18214 printf "%s\n" "#define GC_ENABLE_SUSPEND_THREAD 1" >>confdefs.h
18215
18216 ;;
18217 esac
18218 fi
18219 if test x"enable_gcj_support" != xno; then
18220 ENABLE_GCJ_SUPPORT_TRUE=
18221 ENABLE_GCJ_SUPPORT_FALSE='#'
18222 else
18223 ENABLE_GCJ_SUPPORT_TRUE='#'
18224 ENABLE_GCJ_SUPPORT_FALSE=
18225 fi
18226
18227
18228 # Check whether --enable-sigrt-signals was given.
18229 if test ${enable_sigrt_signals+y}
18230 then :
18231 enableval=$enable_sigrt_signals;
18232 fi
18233
18234 if test x"${enable_sigrt_signals}" = xyes; then
18235
18236 printf "%s\n" "#define GC_USESIGRT_SIGNALS 1" >>confdefs.h
18237
18238 fi
18239
18240
18241
18242
18243
18244
18245 UNWINDLIBS=
18246 # Check whether --enable-gc-debug was given.
18247 if test ${enable_gc_debug+y}
18248 then :
18249 enableval=$enable_gc_debug; if test "$enable_gc_debug" = "yes"; then
18250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"Should define GC_DEBUG and use debug alloc in clients.\"" >&5
18251 printf "%s\n" "$as_me: WARNING: \"Should define GC_DEBUG and use debug alloc in clients.\"" >&2;}
18252
18253 printf "%s\n" "#define KEEP_BACK_PTRS 1" >>confdefs.h
18254
18255 keep_back_ptrs=true
18256
18257 printf "%s\n" "#define DBG_HDRS_ALL 1" >>confdefs.h
18258
18259
18260
18261 case $host in
18262 ia64-*-linux* )
18263 printf "%s\n" "#define MAKE_BACK_GRAPH 1" >>confdefs.h
18264
18265 printf "%s\n" "#define SAVE_CALL_COUNT 8" >>confdefs.h
18266
18267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for backtrace in -lunwind" >&5
18268 printf %s "checking for backtrace in -lunwind... " >&6; }
18269 if test ${ac_cv_lib_unwind_backtrace+y}
18270 then :
18271 printf %s "(cached) " >&6
18272 else $as_nop
18273 ac_check_lib_save_LIBS=$LIBS
18274 LIBS="-lunwind $LIBS"
18275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18276 /* end confdefs.h. */
18277
18278 /* Override any GCC internal prototype to avoid an error.
18279 Use char because int might match the return type of a GCC
18280 builtin and then its argument prototype would still apply. */
18281 char backtrace ();
18282 int
18283 main (void)
18284 {
18285 return backtrace ();
18286 ;
18287 return 0;
18288 }
18289 _ACEOF
18290 if ac_fn_c_try_link "$LINENO"
18291 then :
18292 ac_cv_lib_unwind_backtrace=yes
18293 else $as_nop
18294 ac_cv_lib_unwind_backtrace=no
18295 fi
18296 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18297 conftest$ac_exeext conftest.$ac_ext
18298 LIBS=$ac_check_lib_save_LIBS
18299 fi
18300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_unwind_backtrace" >&5
18301 printf "%s\n" "$ac_cv_lib_unwind_backtrace" >&6; }
18302 if test "x$ac_cv_lib_unwind_backtrace" = xyes
18303 then :
18304
18305 printf "%s\n" "#define GC_HAVE_BUILTIN_BACKTRACE 1" >>confdefs.h
18306
18307 UNWINDLIBS=-lunwind
18308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"Client code may need to link against libunwind.\"" >&5
18309 printf "%s\n" "$as_me: WARNING: \"Client code may need to link against libunwind.\"" >&2;}
18310
18311 fi
18312
18313 ;;
18314 x86-*-linux* | i586-*-linux* | i686-*-linux* | x86_64-*-linux* )
18315 printf "%s\n" "#define MAKE_BACK_GRAPH 1" >>confdefs.h
18316
18317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"Client must not use -fomit-frame-pointer.\"" >&5
18318 printf "%s\n" "$as_me: WARNING: \"Client must not use -fomit-frame-pointer.\"" >&2;}
18319 printf "%s\n" "#define SAVE_CALL_COUNT 8" >>confdefs.h
18320
18321 ;;
18322 i345686-*-dgux*)
18323 printf "%s\n" "#define MAKE_BACK_GRAPH 1" >>confdefs.h
18324
18325 ;;
18326 esac
18327 fi
18328 fi
18329
18330 if test x"$enable_gc_debug" = xyes; then
18331 MAKE_BACK_GRAPH_TRUE=
18332 MAKE_BACK_GRAPH_FALSE='#'
18333 else
18334 MAKE_BACK_GRAPH_TRUE='#'
18335 MAKE_BACK_GRAPH_FALSE=
18336 fi
18337
18338 if test x"$keep_back_ptrs" = xtrue; then
18339 KEEP_BACK_PTRS_TRUE=
18340 KEEP_BACK_PTRS_FALSE='#'
18341 else
18342 KEEP_BACK_PTRS_TRUE='#'
18343 KEEP_BACK_PTRS_FALSE=
18344 fi
18345
18346
18347 # Check whether a compiler warning of unsafe __builtin_return_address(1)
18348 # could be suppressed by -Wno-frame-address option.
18349 # __builtin_return_address(1) is used by libgc for debugging purposes only.
18350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -Wno-frame-address works" >&5
18351 printf %s "checking whether -Wno-frame-address works... " >&6; }
18352 use_wno_error_frame_address=no
18353 old_CFLAGS="$CFLAGS"
18354 CFLAGS="$CFLAGS -Werror -Wno-frame-address $CFLAGS_EXTRA"
18355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18356 /* end confdefs.h. */
18357
18358 int
18359 main (void)
18360 {
18361 {
18362 if (!__builtin_return_address(1)) return 1;
18363 }
18364 ;
18365 return 0;
18366 }
18367 _ACEOF
18368 if ac_fn_c_try_compile "$LINENO"
18369 then :
18370 use_wno_error_frame_address=yes
18371 fi
18372 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18373 CFLAGS="$old_CFLAGS"
18374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_wno_error_frame_address" >&5
18375 printf "%s\n" "$use_wno_error_frame_address" >&6; }
18376 if test x"$use_wno_error_frame_address" = xyes; then
18377 CFLAGS="$CFLAGS -Wno-frame-address"
18378 fi
18379
18380 # Check for dladdr (used for debugging).
18381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dladdr" >&5
18382 printf %s "checking for dladdr... " >&6; }
18383 have_dladdr=no
18384 old_CFLAGS="$CFLAGS"
18385 CFLAGS="$CFLAGS $CFLAGS_EXTRA"
18386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18387 /* end confdefs.h. */
18388
18389 #define _GNU_SOURCE 1
18390 #include <dlfcn.h>
18391 int
18392 main (void)
18393 {
18394 {
18395 Dl_info info;
18396 (void)dladdr("", &info);
18397 }
18398 ;
18399 return 0;
18400 }
18401 _ACEOF
18402 if ac_fn_c_try_compile "$LINENO"
18403 then :
18404 have_dladdr=yes
18405 fi
18406 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18407 CFLAGS="$old_CFLAGS"
18408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_dladdr" >&5
18409 printf "%s\n" "$have_dladdr" >&6; }
18410 if test x"$have_dladdr" = xyes; then
18411
18412 printf "%s\n" "#define HAVE_DLADDR 1" >>confdefs.h
18413
18414 fi
18415
18416 # sigsetjmp could be a macro (thus AC_CHECK_FUNCS cannot be used).
18417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
18418 printf %s "checking for sigsetjmp... " >&6; }
18419 old_CFLAGS="$CFLAGS"
18420 CFLAGS="$CFLAGS $CFLAGS_EXTRA"
18421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18422 /* end confdefs.h. */
18423 #include <setjmp.h>
18424 int
18425 main (void)
18426 {
18427 sigjmp_buf t; sigsetjmp(t, 0)
18428 ;
18429 return 0;
18430 }
18431 _ACEOF
18432 if ac_fn_c_try_link "$LINENO"
18433 then :
18434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18435 printf "%s\n" "yes" >&6; }
18436 else $as_nop
18437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18438 printf "%s\n" "no" >&6; }
18439
18440 printf "%s\n" "#define GC_NO_SIGSETJMP 1" >>confdefs.h
18441
18442 fi
18443 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18444 conftest$ac_exeext conftest.$ac_ext
18445 CFLAGS="$old_CFLAGS"
18446
18447 # pthread_setname_np, if available, may have 1, 2 or 3 arguments.
18448 if test "$THREADS" = posix
18449 then :
18450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
18451 printf %s "checking for pthread_setname_np... " >&6; }
18452 old_CFLAGS="$CFLAGS"
18453 CFLAGS="$CFLAGS $CFLAGS_EXTRA -Werror"
18454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18455 /* end confdefs.h. */
18456
18457 # define _GNU_SOURCE 1
18458 # include <pthread.h>
18459
18460 int
18461 main (void)
18462 {
18463 pthread_setname_np("thread-name")
18464 ;
18465 return 0;
18466 }
18467 _ACEOF
18468 if ac_fn_c_try_compile "$LINENO"
18469 then :
18470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes (w/o tid)" >&5
18471 printf "%s\n" "yes (w/o tid)" >&6; }
18472
18473 printf "%s\n" "#define HAVE_PTHREAD_SETNAME_NP_WITHOUT_TID 1" >>confdefs.h
18474
18475 else $as_nop
18476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18477 /* end confdefs.h. */
18478
18479 # define _GNU_SOURCE 1
18480 # include <pthread.h>
18481
18482 int
18483 main (void)
18484 {
18485 pthread_setname_np(pthread_self(), "thread-name-%u", 0)
18486 ;
18487 return 0;
18488 }
18489 _ACEOF
18490 if ac_fn_c_try_compile "$LINENO"
18491 then :
18492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes (with tid and arg)" >&5
18493 printf "%s\n" "yes (with tid and arg)" >&6; }
18494
18495 printf "%s\n" "#define HAVE_PTHREAD_SETNAME_NP_WITH_TID_AND_ARG 1" >>confdefs.h
18496
18497 else $as_nop
18498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18499 /* end confdefs.h. */
18500
18501 # define _GNU_SOURCE 1
18502 # include <pthread.h>
18503
18504 int
18505 main (void)
18506 {
18507 pthread_setname_np(pthread_self(), "thread-name")
18508 ;
18509 return 0;
18510 }
18511 _ACEOF
18512 if ac_fn_c_try_compile "$LINENO"
18513 then :
18514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes (with tid)" >&5
18515 printf "%s\n" "yes (with tid)" >&6; }
18516
18517 printf "%s\n" "#define HAVE_PTHREAD_SETNAME_NP_WITH_TID 1" >>confdefs.h
18518
18519 else $as_nop
18520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18521 printf "%s\n" "no" >&6; }
18522 fi
18523 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18524 fi
18525 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18526 fi
18527 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18528 CFLAGS="$old_CFLAGS"
18529 fi
18530
18531 # Check for AViiON Machines running DGUX
18532 ac_is_dgux=no
18533 ac_fn_c_check_header_compile "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
18534 if test "x$ac_cv_header_sys_dg_sys_info_h" = xyes
18535 then :
18536 ac_is_dgux=yes;
18537 fi
18538
18539
18540 if test $ac_is_dgux = yes; then
18541 dgux_spec_opts="-DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
18542 CFLAGS="$dgux_spec_opts $CFLAGS"
18543 CXXFLAGS="$dgux_spec_opts $CXXFLAGS"
18544 if test "$enable_gc_debug" = "yes"; then
18545 CFLAGS="-g -mstandard $CFLAGS"
18546 CXXFLAGS="-g -mstandard $CXXFLAGS"
18547 fi
18548
18549
18550 fi
18551
18552 # Check whether --enable-java-finalization was given.
18553 if test ${enable_java_finalization+y}
18554 then :
18555 enableval=$enable_java_finalization;
18556 fi
18557
18558 if test x"$enable_java_finalization" != xno; then
18559
18560 printf "%s\n" "#define JAVA_FINALIZATION 1" >>confdefs.h
18561
18562 fi
18563
18564 # Check whether --enable-atomic-uncollectable was given.
18565 if test ${enable_atomic_uncollectable+y}
18566 then :
18567 enableval=$enable_atomic_uncollectable;
18568 fi
18569
18570 if test x"$enable_atomic_uncollectible" != x"no"; then
18571
18572 printf "%s\n" "#define GC_ATOMIC_UNCOLLECTABLE 1" >>confdefs.h
18573
18574 fi
18575
18576 # Check whether --enable-redirect-malloc was given.
18577 if test ${enable_redirect_malloc+y}
18578 then :
18579 enableval=$enable_redirect_malloc;
18580 fi
18581
18582
18583 if test "${enable_redirect_malloc}" = yes; then
18584 if test "${enable_gc_debug}" = yes; then
18585
18586 printf "%s\n" "#define REDIRECT_MALLOC GC_debug_malloc_replacement" >>confdefs.h
18587
18588
18589 printf "%s\n" "#define REDIRECT_REALLOC GC_debug_realloc_replacement" >>confdefs.h
18590
18591
18592 printf "%s\n" "#define REDIRECT_FREE GC_debug_free" >>confdefs.h
18593
18594 else
18595 printf "%s\n" "#define REDIRECT_MALLOC GC_malloc" >>confdefs.h
18596
18597 fi
18598
18599 printf "%s\n" "#define GC_USE_DLOPEN_WRAP 1" >>confdefs.h
18600
18601 fi
18602
18603 # Check whether --enable-disclaim was given.
18604 if test ${enable_disclaim+y}
18605 then :
18606 enableval=$enable_disclaim;
18607 fi
18608
18609 if test x"$enable_disclaim" != xno; then
18610
18611 printf "%s\n" "#define ENABLE_DISCLAIM 1" >>confdefs.h
18612
18613 fi
18614 if test x"$enable_disclaim" != xno; then
18615 ENABLE_DISCLAIM_TRUE=
18616 ENABLE_DISCLAIM_FALSE='#'
18617 else
18618 ENABLE_DISCLAIM_TRUE='#'
18619 ENABLE_DISCLAIM_FALSE=
18620 fi
18621
18622
18623 # Check whether --enable-large-config was given.
18624 if test ${enable_large_config+y}
18625 then :
18626 enableval=$enable_large_config;
18627 fi
18628
18629 if test "${enable_large_config}" = yes; then
18630
18631 printf "%s\n" "#define LARGE_CONFIG 1" >>confdefs.h
18632
18633 fi
18634
18635 if test -n "${with_cross_host}"; then
18636
18637 printf "%s\n" "#define NO_CLOCK 1" >>confdefs.h
18638
18639
18640 printf "%s\n" "#define SMALL_CONFIG 1" >>confdefs.h
18641
18642 fi
18643
18644 if test "$enable_gc_debug" = "no"; then
18645
18646 printf "%s\n" "#define NO_DEBUGGING 1" >>confdefs.h
18647
18648 fi
18649
18650
18651
18652 # Check whether --enable-gc-assertions was given.
18653 if test ${enable_gc_assertions+y}
18654 then :
18655 enableval=$enable_gc_assertions;
18656 fi
18657
18658 if test "${enable_gc_assertions}" = yes; then
18659
18660 printf "%s\n" "#define GC_ASSERTIONS 1" >>confdefs.h
18661
18662 fi
18663
18664 # Check whether --enable-mmap was given.
18665 if test ${enable_mmap+y}
18666 then :
18667 enableval=$enable_mmap; gc_use_mmap=$enableval
18668 fi
18669
18670
18671 # Check whether --enable-munmap was given.
18672 if test ${enable_munmap+y}
18673 then :
18674 enableval=$enable_munmap; MUNMAP_THRESHOLD=$enableval
18675 fi
18676
18677 if test x$enable_munmap != xno; then
18678
18679 printf "%s\n" "#define USE_MMAP 1" >>confdefs.h
18680
18681
18682
18683 printf "%s\n" "#define USE_MUNMAP 1" >>confdefs.h
18684
18685 if test x$MUNMAP_THRESHOLD = x -o x$MUNMAP_THRESHOLD = xyes; then
18686 MUNMAP_THRESHOLD=6
18687 fi
18688
18689 printf "%s\n" "#define MUNMAP_THRESHOLD ${MUNMAP_THRESHOLD}" >>confdefs.h
18690
18691 else
18692 if test "${gc_use_mmap}" = "yes"; then
18693
18694 printf "%s\n" "#define USE_MMAP 1" >>confdefs.h
18695
18696 fi
18697 fi
18698
18699 # Check whether --enable-dynamic-loading was given.
18700 if test ${enable_dynamic_loading+y}
18701 then :
18702 enableval=$enable_dynamic_loading;
18703 fi
18704
18705 if test "${enable_dynamic_loading}" = "no"; then
18706
18707 printf "%s\n" "#define IGNORE_DYNAMIC_LOADING 1" >>confdefs.h
18708
18709 fi
18710
18711 # Check whether --enable-register-main-static-data was given.
18712 if test ${enable_register_main_static_data+y}
18713 then :
18714 enableval=$enable_register_main_static_data;
18715 fi
18716
18717 if test "${enable_register_main_static_data}" = "no"; then
18718
18719 printf "%s\n" "#define GC_DONT_REGISTER_MAIN_STATIC_DATA 1" >>confdefs.h
18720
18721 fi
18722
18723 # Check whether --enable-checksums was given.
18724 if test ${enable_checksums+y}
18725 then :
18726 enableval=$enable_checksums;
18727 fi
18728
18729 if test x$enable_checksums = xyes; then
18730 if test x$enable_munmap != xno -o x$THREADS != xnone; then
18731 as_fn_error $? "CHECKSUMS not compatible with USE_MUNMAP or threads" "$LINENO" 5
18732 fi
18733
18734 printf "%s\n" "#define CHECKSUMS 1" >>confdefs.h
18735
18736 fi
18737 if test x$enable_checksums = xyes; then
18738 CHECKSUMS_TRUE=
18739 CHECKSUMS_FALSE='#'
18740 else
18741 CHECKSUMS_TRUE='#'
18742 CHECKSUMS_FALSE=
18743 fi
18744
18745
18746 if test -z "$with_cross_host"; then
18747 USE_LIBDIR_TRUE=
18748 USE_LIBDIR_FALSE='#'
18749 else
18750 USE_LIBDIR_TRUE='#'
18751 USE_LIBDIR_FALSE=
18752 fi
18753
18754
18755 # Check whether --enable-werror was given.
18756 if test ${enable_werror+y}
18757 then :
18758 enableval=$enable_werror; werror_flag=$enableval
18759 else $as_nop
18760 werror_flag=no
18761 fi
18762
18763 if test x$werror_flag = xyes; then
18764 WERROR_CFLAGS="-Werror"
18765 case "$host" in
18766 # _dyld_bind_fully_image_containing_address is deprecated in OS X 10.5+
18767 *-*-darwin*)
18768 WERROR_CFLAGS="$WERROR_CFLAGS -Wno-deprecated-declarations"
18769 ;;
18770 esac
18771 fi
18772
18773
18774 # Check whether --enable-single-obj-compilation was given.
18775 if test ${enable_single_obj_compilation+y}
18776 then :
18777 enableval=$enable_single_obj_compilation;
18778 else $as_nop
18779 if test x"$enable_static" = xno
18780 then :
18781 enable_single_obj_compilation=yes
18782 fi
18783 fi
18784
18785 if test x"$enable_single_obj_compilation" = xyes; then
18786 SINGLE_GC_OBJ_TRUE=
18787 SINGLE_GC_OBJ_FALSE='#'
18788 else
18789 SINGLE_GC_OBJ_TRUE='#'
18790 SINGLE_GC_OBJ_FALSE=
18791 fi
18792
18793
18794 # Check whether --enable-gcov was given.
18795 if test ${enable_gcov+y}
18796 then :
18797 enableval=$enable_gcov;
18798 fi
18799
18800 if test "$enable_gcov" = "yes"; then
18801 CFLAGS="-D NTHREADS=20 $CFLAGS --coverage"
18802 if test "${enable_shared}" = no; then
18803 # FIXME: As of g++-4.8.4/x64, in case of shared library build, test_cpp
18804 # linkage fails with "hidden symbol atexit is referenced by DSO" message.
18805 CXXFLAGS="$CXXFLAGS --coverage"
18806 fi
18807 # Turn off optimization to get accurate line numbers.
18808 CFLAGS=`echo "$CFLAGS" | sed -e 's/-O\(1\|2\|3\|4\|s\|fast\)\?//g'`
18809 CXXFLAGS=`echo "$CXXFLAGS" | sed -e 's/-O\(1\|2\|3\|4\|s\|fast\)\?//g'`
18810 fi
18811
18812 # Check whether --enable-docs was given.
18813 if test ${enable_docs+y}
18814 then :
18815 enableval=$enable_docs;
18816 fi
18817
18818 if test x$enable_docs != xno; then
18819 ENABLE_DOCS_TRUE=
18820 ENABLE_DOCS_FALSE='#'
18821 else
18822 ENABLE_DOCS_TRUE='#'
18823 ENABLE_DOCS_FALSE=
18824 fi
18825
18826
18827 if test x$enable_shared = xyes; then
18828 ENABLE_SHARED_TRUE=
18829 ENABLE_SHARED_FALSE='#'
18830 else
18831 ENABLE_SHARED_TRUE='#'
18832 ENABLE_SHARED_FALSE=
18833 fi
18834
18835
18836 # Atomic Ops
18837 # ----------
18838
18839 # Do we want to use an external libatomic_ops? By default use it if it's
18840 # found.
18841
18842 # Check whether --with-libatomic-ops was given.
18843 if test ${with_libatomic_ops+y}
18844 then :
18845 withval=$with_libatomic_ops;
18846 else $as_nop
18847 if test x"$THREADS" != xnone
18848 then :
18849 with_libatomic_ops=check
18850 else $as_nop
18851 with_libatomic_ops=none
18852 fi
18853 fi
18854
18855
18856 # Check whether compiler atomic intrinsics can be used.
18857 if test x"$with_libatomic_ops" = xcheck; then
18858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler intrinsics support" >&5
18859 printf %s "checking for compiler intrinsics support... " >&6; }
18860 old_CFLAGS="$CFLAGS"
18861 CFLAGS="$CFLAGS $CFLAGS_EXTRA -DGC_BUILTIN_ATOMIC"
18862 CFLAGS="$CFLAGS -I${srcdir}/include -I${srcdir}/tests"
18863 if test "$cross_compiling" = yes
18864 then :
18865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: skipped because cross-compiling" >&5
18866 printf "%s\n" "skipped because cross-compiling" >&6; }
18867 else $as_nop
18868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18869 /* end confdefs.h. */
18870 #include "test_atomic_ops.c"
18871 _ACEOF
18872 if ac_fn_c_try_run "$LINENO"
18873 then :
18874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18875 printf "%s\n" "yes" >&6; }
18876 with_libatomic_ops=none
18877 else $as_nop
18878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18879 printf "%s\n" "no" >&6; }
18880 fi
18881 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18882 conftest.$ac_objext conftest.beam conftest.$ac_ext
18883 fi
18884
18885 CFLAGS="$old_CFLAGS"
18886 fi
18887
18888 # Check for an external libatomic_ops if the above answer is "yes" or "check".
18889 # If not found, fail on "yes", and convert "check" to "no".
18890 # First, check that libatomic_ops usage is not disabled explicitly.
18891 missing_libatomic_ops=false
18892 if test x"$with_libatomic_ops" != xno -a x"$with_libatomic_ops" != xnone
18893 then :
18894 missing_libatomic_ops=true
18895 fi
18896
18897
18898 if test x$missing_libatomic_ops = xtrue
18899 then :
18900 ac_fn_c_check_header_compile "$LINENO" "atomic_ops.h" "ac_cv_header_atomic_ops_h" "$ac_includes_default"
18901 if test "x$ac_cv_header_atomic_ops_h" = xyes
18902 then :
18903 missing_libatomic_ops=false
18904 fi
18905
18906 fi
18907 if test x$missing_libatomic_ops = xtrue
18908 then :
18909 if test x"$with_libatomic_ops" != xcheck
18910 then :
18911 as_fn_error $? "An external libatomic_ops was not found" "$LINENO" 5
18912 fi
18913 with_libatomic_ops=no
18914 fi
18915
18916 # If we have neither an external or an internal version, offer a useful hint
18917 # and exit.
18918 if test x"$with_libatomic_ops" = xno \
18919 -a ! -e "$srcdir/libatomic_ops/src/atomic_ops.h"
18920 then :
18921 as_fn_error $? "libatomic_ops is required. You can either install it on
18922 your system, or fetch and unpack a recent version into the
18923 source directory and link or rename it to libatomic_ops." "$LINENO" 5
18924 fi
18925
18926 # Finally, emit the definitions for bundled or external AO.
18927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which libatomic_ops to use" >&5
18928 printf %s "checking which libatomic_ops to use... " >&6; }
18929
18930
18931 if test x"$with_libatomic_ops" != xno
18932 then :
18933 if test x"$with_libatomic_ops" != xnone -a x"$THREADS" != xnone
18934 then :
18935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: external" >&5
18936 printf "%s\n" "external" >&6; }
18937 ATOMIC_OPS_LIBS="-latomic_ops"
18938
18939 else $as_nop
18940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
18941 printf "%s\n" "none" >&6; }
18942 if test x"$THREADS" != xnone
18943 then :
18944
18945 printf "%s\n" "#define GC_BUILTIN_ATOMIC 1" >>confdefs.h
18946
18947 fi
18948 fi
18949 AO_TRYLINK_CFLAGS=""
18950 else $as_nop
18951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: internal" >&5
18952 printf "%s\n" "internal" >&6; }
18953 AO_TRYLINK_CFLAGS="-I${srcdir}/libatomic_ops/src"
18954 ATOMIC_OPS_CFLAGS='-I$(top_builddir)/libatomic_ops/src -I$(top_srcdir)/libatomic_ops/src'
18955 ATOMIC_OPS_LIBS=""
18956
18957 subdirs="$subdirs libatomic_ops"
18958
18959
18960 fi
18961 if test x$with_libatomic_ops = xno -a x"$THREADS" != xnone; then
18962 USE_INTERNAL_LIBATOMIC_OPS_TRUE=
18963 USE_INTERNAL_LIBATOMIC_OPS_FALSE='#'
18964 else
18965 USE_INTERNAL_LIBATOMIC_OPS_TRUE='#'
18966 USE_INTERNAL_LIBATOMIC_OPS_FALSE=
18967 fi
18968
18969 if test x$with_libatomic_ops = xno -a x$need_atomic_ops_asm = xtrue; then
18970 NEED_ATOMIC_OPS_ASM_TRUE=
18971 NEED_ATOMIC_OPS_ASM_FALSE='#'
18972 else
18973 NEED_ATOMIC_OPS_ASM_TRUE='#'
18974 NEED_ATOMIC_OPS_ASM_FALSE=
18975 fi
18976
18977
18978 # Check whether particular AO primitives are emulated with locks.
18979 # The check below is based on the fact that linking with the libatomic_ops
18980 # binary file is not needed in case of absence of the emulation (except for
18981 # Solaris SPARC).
18982 if test x$with_libatomic_ops != xnone -a x$need_atomic_ops_asm != xtrue
18983 then :
18984 old_CFLAGS="$CFLAGS"
18985 CFLAGS="$CFLAGS $AO_TRYLINK_CFLAGS $CFLAGS_EXTRA"
18986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lock-free AO_or primitive" >&5
18987 printf %s "checking for lock-free AO_or primitive... " >&6; }
18988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18989 /* end confdefs.h. */
18990 #include "atomic_ops.h"
18991 int
18992 main (void)
18993 {
18994 AO_t x=0;AO_or(&x,1)
18995 ;
18996 return 0;
18997 }
18998 _ACEOF
18999 if ac_fn_c_try_link "$LINENO"
19000 then :
19001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19002 printf "%s\n" "yes" >&6; }
19003
19004 printf "%s\n" "#define HAVE_LOCKFREE_AO_OR 1" >>confdefs.h
19005
19006 else $as_nop
19007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19008 printf "%s\n" "no" >&6; }
19009 fi
19010 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19011 conftest$ac_exeext conftest.$ac_ext
19012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lock-free AO load/store, test-and-set primitives" >&5
19013 printf %s "checking for lock-free AO load/store, test-and-set primitives... " >&6; }
19014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19015 /* end confdefs.h. */
19016 #include "atomic_ops.h"
19017 int
19018 main (void)
19019 {
19020 AO_t x=0;unsigned char c=0;AO_TS_t z=AO_TS_INITIALIZER;
19021 (void)AO_test_and_set_acquire(&z);AO_CLEAR(&z);AO_compiler_barrier();
19022 AO_store(&x,AO_load(&x)+1);AO_char_store(&c,AO_char_load(&c)+1);
19023 AO_store_release(&x,AO_load_acquire(&x)+1)
19024 ;
19025 return 0;
19026 }
19027 _ACEOF
19028 if ac_fn_c_try_link "$LINENO"
19029 then :
19030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19031 printf "%s\n" "yes" >&6; }
19032 else $as_nop
19033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19034 printf "%s\n" "no" >&6; }
19035 use_thread_local_alloc=no
19036
19037 printf "%s\n" "#define BASE_ATOMIC_OPS_EMULATED 1" >>confdefs.h
19038
19039 fi
19040 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19041 conftest$ac_exeext conftest.$ac_ext
19042 if test x$use_parallel_mark != xno
19043 then :
19044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lock-free compare-and-swap and fetch-and-add primitives" >&5
19045 printf %s "checking for lock-free compare-and-swap and fetch-and-add primitives... " >&6; }
19046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19047 /* end confdefs.h. */
19048 #define AO_REQUIRE_CAS
19049 #include "atomic_ops.h"
19050 int
19051 main (void)
19052 {
19053 AO_t x=0;(void)AO_fetch_and_add(&x,1);(void)AO_compare_and_swap(&x,1,2)
19054 ;
19055 return 0;
19056 }
19057 _ACEOF
19058 if ac_fn_c_try_link "$LINENO"
19059 then :
19060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19061 printf "%s\n" "yes" >&6; }
19062 else $as_nop
19063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19064 printf "%s\n" "no" >&6; }
19065 use_parallel_mark=no
19066 fi
19067 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19068 conftest$ac_exeext conftest.$ac_ext
19069 fi
19070 CFLAGS="$old_CFLAGS"
19071 fi
19072
19073 if test x$use_parallel_mark != xno
19074 then :
19075 printf "%s\n" "#define PARALLEL_MARK 1" >>confdefs.h
19076
19077 fi
19078 if test x$use_thread_local_alloc != xno
19079 then :
19080 printf "%s\n" "#define THREAD_LOCAL_ALLOC 1" >>confdefs.h
19081
19082 fi
19083 if test x$use_thread_local_alloc != xno; then
19084 THREAD_LOCAL_ALLOC_TRUE=
19085 THREAD_LOCAL_ALLOC_FALSE='#'
19086 else
19087 THREAD_LOCAL_ALLOC_TRUE='#'
19088 THREAD_LOCAL_ALLOC_FALSE=
19089 fi
19090
19091
19092 # Check whether --enable-handle-fork was given.
19093 if test ${enable_handle_fork+y}
19094 then :
19095 enableval=$enable_handle_fork;
19096 fi
19097
19098 if test "${enable_handle_fork}" = yes; then
19099
19100 printf "%s\n" "#define HANDLE_FORK 1" >>confdefs.h
19101
19102 elif test "${enable_handle_fork}" = no; then
19103
19104 printf "%s\n" "#define NO_HANDLE_FORK 1" >>confdefs.h
19105
19106 elif test "${enable_handle_fork}" != manual -a x$THREADS = xposix; then
19107 # If the option is omitted, pthread_atfork handlers are installed
19108 # by default for the targets where pthread_atfork is known to work.
19109 case "$host" in
19110 *-*-aix* | *-*-android* | *-*-cygwin* | *-*-darwin* | *-*-freebsd* | \
19111 *-*-haiku* | *-*-hpux11* | *-*-irix* | *-*-kfreebsd*-gnu | \
19112 *-*-*linux* | *-*-netbsd* | *-*-openbsd* | *-*-osf* | *-*-solaris*)
19113 printf "%s\n" "#define HANDLE_FORK 1" >>confdefs.h
19114
19115 ;;
19116 esac
19117 fi
19118
19119
19120 ac_config_files="$ac_config_files Makefile bdw-gc.pc"
19121
19122
19123 ac_config_commands="$ac_config_commands default"
19124
19125
19126 cat >confcache <<\_ACEOF
19127 # This file is a shell script that caches the results of configure
19128 # tests run on this system so they can be shared between configure
19129 # scripts and configure runs, see configure's option --config-cache.
19130 # It is not useful on other systems. If it contains results you don't
19131 # want to keep, you may remove or edit it.
19132 #
19133 # config.status only pays attention to the cache file if you give it
19134 # the --recheck option to rerun configure.
19135 #
19136 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19137 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19138 # following values.
19139
19140 _ACEOF
19141
19142 # The following way of writing the cache mishandles newlines in values,
19143 # but we know of no workaround that is simple, portable, and efficient.
19144 # So, we kill variables containing newlines.
19145 # Ultrix sh set writes to stderr and can't be redirected directly,
19146 # and sets the high bit in the cache file unless we assign to the vars.
19147 (
19148 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19149 eval ac_val=\$$ac_var
19150 case $ac_val in #(
19151 *${as_nl}*)
19152 case $ac_var in #(
19153 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19154 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19155 esac
19156 case $ac_var in #(
19157 _ | IFS | as_nl) ;; #(
19158 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19159 *) { eval $ac_var=; unset $ac_var;} ;;
19160 esac ;;
19161 esac
19162 done
19163
19164 (set) 2>&1 |
19165 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19166 *${as_nl}ac_space=\ *)
19167 # `set' does not quote correctly, so add quotes: double-quote
19168 # substitution turns \\\\ into \\, and sed turns \\ into \.
19169 sed -n \
19170 "s/'/'\\\\''/g;
19171 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19172 ;; #(
19173 *)
19174 # `set' quotes correctly as required by POSIX, so do not add quotes.
19175 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19176 ;;
19177 esac |
19178 sort
19179 ) |
19180 sed '
19181 /^ac_cv_env_/b end
19182 t clear
19183 :clear
19184 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
19185 t end
19186 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19187 :end' >>confcache
19188 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19189 if test -w "$cache_file"; then
19190 if test "x$cache_file" != "x/dev/null"; then
19191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19192 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
19193 if test ! -f "$cache_file" || test -h "$cache_file"; then
19194 cat confcache >"$cache_file"
19195 else
19196 case $cache_file in #(
19197 */* | ?:*)
19198 mv -f confcache "$cache_file"$$ &&
19199 mv -f "$cache_file"$$ "$cache_file" ;; #(
19200 *)
19201 mv -f confcache "$cache_file" ;;
19202 esac
19203 fi
19204 fi
19205 else
19206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19207 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
19208 fi
19209 fi
19210 rm -f confcache
19211
19212 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19213 # Let make expand exec_prefix.
19214 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19215
19216 DEFS=-DHAVE_CONFIG_H
19217
19218 ac_libobjs=
19219 ac_ltlibobjs=
19220 U=
19221 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19222 # 1. Remove the extension, and $U if already installed.
19223 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19224 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
19225 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19226 # will be set to the directory where LIBOBJS objects are built.
19227 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19228 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19229 done
19230 LIBOBJS=$ac_libobjs
19231
19232 LTLIBOBJS=$ac_ltlibobjs
19233
19234
19235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19236 printf %s "checking that generated files are newer than configure... " >&6; }
19237 if test -n "$am_sleep_pid"; then
19238 # Hide warnings about reused PIDs.
19239 wait $am_sleep_pid 2>/dev/null
19240 fi
19241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
19242 printf "%s\n" "done" >&6; }
19243 if test -n "$EXEEXT"; then
19244 am__EXEEXT_TRUE=
19245 am__EXEEXT_FALSE='#'
19246 else
19247 am__EXEEXT_TRUE='#'
19248 am__EXEEXT_FALSE=
19249 fi
19250
19251 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19252 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
19253 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19254 fi
19255 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19256 as_fn_error $? "conditional \"AMDEP\" was never defined.
19257 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19258 fi
19259 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19260 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19261 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19262 fi
19263 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19264 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
19265 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19266 fi
19267 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
19268 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
19269 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19270 fi
19271 if test -z "${EMSCRIPTEN_TRUE}" && test -z "${EMSCRIPTEN_FALSE}"; then
19272 as_fn_error $? "conditional \"EMSCRIPTEN\" was never defined.
19273 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19274 fi
19275 if test -z "${THREADS_TRUE}" && test -z "${THREADS_FALSE}"; then
19276 as_fn_error $? "conditional \"THREADS\" was never defined.
19277 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19278 fi
19279 if test -z "${PTHREADS_TRUE}" && test -z "${PTHREADS_FALSE}"; then
19280 as_fn_error $? "conditional \"PTHREADS\" was never defined.
19281 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19282 fi
19283 if test -z "${DARWIN_THREADS_TRUE}" && test -z "${DARWIN_THREADS_FALSE}"; then
19284 as_fn_error $? "conditional \"DARWIN_THREADS\" was never defined.
19285 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19286 fi
19287 if test -z "${WIN32_THREADS_TRUE}" && test -z "${WIN32_THREADS_FALSE}"; then
19288 as_fn_error $? "conditional \"WIN32_THREADS\" was never defined.
19289 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19290 fi
19291 if test -z "${PTHREAD_START_STANDALONE_TRUE}" && test -z "${PTHREAD_START_STANDALONE_FALSE}"; then
19292 as_fn_error $? "conditional \"PTHREAD_START_STANDALONE\" was never defined.
19293 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19294 fi
19295 if test -z "${ASM_WITH_CPP_UNSUPPORTED_TRUE}" && test -z "${ASM_WITH_CPP_UNSUPPORTED_FALSE}"; then
19296 as_fn_error $? "conditional \"ASM_WITH_CPP_UNSUPPORTED\" was never defined.
19297 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19298 fi
19299 if test -z "${AVOID_CPP_LIB_TRUE}" && test -z "${AVOID_CPP_LIB_FALSE}"; then
19300 as_fn_error $? "conditional \"AVOID_CPP_LIB\" was never defined.
19301 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19302 fi
19303 if test -z "${CPLUSPLUS_TRUE}" && test -z "${CPLUSPLUS_FALSE}"; then
19304 as_fn_error $? "conditional \"CPLUSPLUS\" was never defined.
19305 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19306 fi
19307 if test -z "${GC_TBA_LIBRARY_TRUE}" && test -z "${GC_TBA_LIBRARY_FALSE}"; then
19308 as_fn_error $? "conditional \"GC_TBA_LIBRARY\" was never defined.
19309 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19310 fi
19311 if test -z "${ENABLE_GCJ_SUPPORT_TRUE}" && test -z "${ENABLE_GCJ_SUPPORT_FALSE}"; then
19312 as_fn_error $? "conditional \"ENABLE_GCJ_SUPPORT\" was never defined.
19313 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19314 fi
19315 if test -z "${MAKE_BACK_GRAPH_TRUE}" && test -z "${MAKE_BACK_GRAPH_FALSE}"; then
19316 as_fn_error $? "conditional \"MAKE_BACK_GRAPH\" was never defined.
19317 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19318 fi
19319 if test -z "${KEEP_BACK_PTRS_TRUE}" && test -z "${KEEP_BACK_PTRS_FALSE}"; then
19320 as_fn_error $? "conditional \"KEEP_BACK_PTRS\" was never defined.
19321 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19322 fi
19323 if test -z "${ENABLE_DISCLAIM_TRUE}" && test -z "${ENABLE_DISCLAIM_FALSE}"; then
19324 as_fn_error $? "conditional \"ENABLE_DISCLAIM\" was never defined.
19325 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19326 fi
19327 if test -z "${CHECKSUMS_TRUE}" && test -z "${CHECKSUMS_FALSE}"; then
19328 as_fn_error $? "conditional \"CHECKSUMS\" was never defined.
19329 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19330 fi
19331 if test -z "${USE_LIBDIR_TRUE}" && test -z "${USE_LIBDIR_FALSE}"; then
19332 as_fn_error $? "conditional \"USE_LIBDIR\" was never defined.
19333 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19334 fi
19335 if test -z "${SINGLE_GC_OBJ_TRUE}" && test -z "${SINGLE_GC_OBJ_FALSE}"; then
19336 as_fn_error $? "conditional \"SINGLE_GC_OBJ\" was never defined.
19337 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19338 fi
19339 if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then
19340 as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined.
19341 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19342 fi
19343 if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
19344 as_fn_error $? "conditional \"ENABLE_SHARED\" was never defined.
19345 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19346 fi
19347 if test -z "${USE_INTERNAL_LIBATOMIC_OPS_TRUE}" && test -z "${USE_INTERNAL_LIBATOMIC_OPS_FALSE}"; then
19348 as_fn_error $? "conditional \"USE_INTERNAL_LIBATOMIC_OPS\" was never defined.
19349 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19350 fi
19351 if test -z "${NEED_ATOMIC_OPS_ASM_TRUE}" && test -z "${NEED_ATOMIC_OPS_ASM_FALSE}"; then
19352 as_fn_error $? "conditional \"NEED_ATOMIC_OPS_ASM\" was never defined.
19353 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19354 fi
19355 if test -z "${THREAD_LOCAL_ALLOC_TRUE}" && test -z "${THREAD_LOCAL_ALLOC_FALSE}"; then
19356 as_fn_error $? "conditional \"THREAD_LOCAL_ALLOC\" was never defined.
19357 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19358 fi
19359
19360 : "${CONFIG_STATUS=./config.status}"
19361 ac_write_fail=0
19362 ac_clean_files_save=$ac_clean_files
19363 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19365 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
19366 as_write_fail=0
19367 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19368 #! $SHELL
19369 # Generated by $as_me.
19370 # Run this file to recreate the current configuration.
19371 # Compiler output produced by configure, useful for debugging
19372 # configure, is in config.log if it exists.
19373
19374 debug=false
19375 ac_cs_recheck=false
19376 ac_cs_silent=false
19377
19378 SHELL=\${CONFIG_SHELL-$SHELL}
19379 export SHELL
19380 _ASEOF
19381 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19382 ## -------------------- ##
19383 ## M4sh Initialization. ##
19384 ## -------------------- ##
19385
19386 # Be more Bourne compatible
19387 DUALCASE=1; export DUALCASE # for MKS sh
19388 as_nop=:
19389 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
19390 then :
19391 emulate sh
19392 NULLCMD=:
19393 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19394 # is contrary to our usage. Disable this feature.
19395 alias -g '${1+"$@"}'='"$@"'
19396 setopt NO_GLOB_SUBST
19397 else $as_nop
19398 case `(set -o) 2>/dev/null` in #(
19399 *posix*) :
19400 set -o posix ;; #(
19401 *) :
19402 ;;
19403 esac
19404 fi
19405
19406
19407
19408 # Reset variables that may have inherited troublesome values from
19409 # the environment.
19410
19411 # IFS needs to be set, to space, tab, and newline, in precisely that order.
19412 # (If _AS_PATH_WALK were called with IFS unset, it would have the
19413 # side effect of setting IFS to empty, thus disabling word splitting.)
19414 # Quoting is to prevent editors from complaining about space-tab.
19415 as_nl='
19416 '
19417 export as_nl
19418 IFS=" "" $as_nl"
19419
19420 PS1='$ '
19421 PS2='> '
19422 PS4='+ '
19423
19424 # Ensure predictable behavior from utilities with locale-dependent output.
19425 LC_ALL=C
19426 export LC_ALL
19427 LANGUAGE=C
19428 export LANGUAGE
19429
19430 # We cannot yet rely on "unset" to work, but we need these variables
19431 # to be unset--not just set to an empty or harmless value--now, to
19432 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
19433 # also avoids known problems related to "unset" and subshell syntax
19434 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
19435 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
19436 do eval test \${$as_var+y} \
19437 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19438 done
19439
19440 # Ensure that fds 0, 1, and 2 are open.
19441 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
19442 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
19443 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
19444
19445 # The user is always right.
19446 if ${PATH_SEPARATOR+false} :; then
19447 PATH_SEPARATOR=:
19448 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19449 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19450 PATH_SEPARATOR=';'
19451 }
19452 fi
19453
19454
19455 # Find who we are. Look in the path if we contain no directory separator.
19456 as_myself=
19457 case $0 in #((
19458 *[\\/]* ) as_myself=$0 ;;
19459 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19460 for as_dir in $PATH
19461 do
19462 IFS=$as_save_IFS
19463 case $as_dir in #(((
19464 '') as_dir=./ ;;
19465 */) ;;
19466 *) as_dir=$as_dir/ ;;
19467 esac
19468 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
19469 done
19470 IFS=$as_save_IFS
19471
19472 ;;
19473 esac
19474 # We did not find ourselves, most probably we were run as `sh COMMAND'
19475 # in which case we are not to be found in the path.
19476 if test "x$as_myself" = x; then
19477 as_myself=$0
19478 fi
19479 if test ! -f "$as_myself"; then
19480 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19481 exit 1
19482 fi
19483
19484
19485
19486 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19487 # ----------------------------------------
19488 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19489 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19490 # script with STATUS, using 1 if that was 0.
19491 as_fn_error ()
19492 {
19493 as_status=$1; test $as_status -eq 0 && as_status=1
19494 if test "$4"; then
19495 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19496 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19497 fi
19498 printf "%s\n" "$as_me: error: $2" >&2
19499 as_fn_exit $as_status
19500 } # as_fn_error
19501
19502
19503
19504 # as_fn_set_status STATUS
19505 # -----------------------
19506 # Set $? to STATUS, without forking.
19507 as_fn_set_status ()
19508 {
19509 return $1
19510 } # as_fn_set_status
19511
19512 # as_fn_exit STATUS
19513 # -----------------
19514 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19515 as_fn_exit ()
19516 {
19517 set +e
19518 as_fn_set_status $1
19519 exit $1
19520 } # as_fn_exit
19521
19522 # as_fn_unset VAR
19523 # ---------------
19524 # Portably unset VAR.
19525 as_fn_unset ()
19526 {
19527 { eval $1=; unset $1;}
19528 }
19529 as_unset=as_fn_unset
19530
19531 # as_fn_append VAR VALUE
19532 # ----------------------
19533 # Append the text in VALUE to the end of the definition contained in VAR. Take
19534 # advantage of any shell optimizations that allow amortized linear growth over
19535 # repeated appends, instead of the typical quadratic growth present in naive
19536 # implementations.
19537 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
19538 then :
19539 eval 'as_fn_append ()
19540 {
19541 eval $1+=\$2
19542 }'
19543 else $as_nop
19544 as_fn_append ()
19545 {
19546 eval $1=\$$1\$2
19547 }
19548 fi # as_fn_append
19549
19550 # as_fn_arith ARG...
19551 # ------------------
19552 # Perform arithmetic evaluation on the ARGs, and store the result in the
19553 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19554 # must be portable across $(()) and expr.
19555 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
19556 then :
19557 eval 'as_fn_arith ()
19558 {
19559 as_val=$(( $* ))
19560 }'
19561 else $as_nop
19562 as_fn_arith ()
19563 {
19564 as_val=`expr "$@" || test $? -eq 1`
19565 }
19566 fi # as_fn_arith
19567
19568
19569 if expr a : '\(a\)' >/dev/null 2>&1 &&
19570 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19571 as_expr=expr
19572 else
19573 as_expr=false
19574 fi
19575
19576 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19577 as_basename=basename
19578 else
19579 as_basename=false
19580 fi
19581
19582 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19583 as_dirname=dirname
19584 else
19585 as_dirname=false
19586 fi
19587
19588 as_me=`$as_basename -- "$0" ||
19589 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19590 X"$0" : 'X\(//\)$' \| \
19591 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19592 printf "%s\n" X/"$0" |
19593 sed '/^.*\/\([^/][^/]*\)\/*$/{
19594 s//\1/
19595 q
19596 }
19597 /^X\/\(\/\/\)$/{
19598 s//\1/
19599 q
19600 }
19601 /^X\/\(\/\).*/{
19602 s//\1/
19603 q
19604 }
19605 s/.*/./; q'`
19606
19607 # Avoid depending upon Character Ranges.
19608 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19609 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19610 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19611 as_cr_digits='0123456789'
19612 as_cr_alnum=$as_cr_Letters$as_cr_digits
19613
19614
19615 # Determine whether it's possible to make 'echo' print without a newline.
19616 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
19617 # for compatibility with existing Makefiles.
19618 ECHO_C= ECHO_N= ECHO_T=
19619 case `echo -n x` in #(((((
19620 -n*)
19621 case `echo 'xy\c'` in
19622 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19623 xy) ECHO_C='\c';;
19624 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19625 ECHO_T=' ';;
19626 esac;;
19627 *)
19628 ECHO_N='-n';;
19629 esac
19630
19631 # For backward compatibility with old third-party macros, we provide
19632 # the shell variables $as_echo and $as_echo_n. New code should use
19633 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
19634 as_echo='printf %s\n'
19635 as_echo_n='printf %s'
19636
19637 rm -f conf$$ conf$$.exe conf$$.file
19638 if test -d conf$$.dir; then
19639 rm -f conf$$.dir/conf$$.file
19640 else
19641 rm -f conf$$.dir
19642 mkdir conf$$.dir 2>/dev/null
19643 fi
19644 if (echo >conf$$.file) 2>/dev/null; then
19645 if ln -s conf$$.file conf$$ 2>/dev/null; then
19646 as_ln_s='ln -s'
19647 # ... but there are two gotchas:
19648 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19649 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19650 # In both cases, we have to default to `cp -pR'.
19651 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19652 as_ln_s='cp -pR'
19653 elif ln conf$$.file conf$$ 2>/dev/null; then
19654 as_ln_s=ln
19655 else
19656 as_ln_s='cp -pR'
19657 fi
19658 else
19659 as_ln_s='cp -pR'
19660 fi
19661 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19662 rmdir conf$$.dir 2>/dev/null
19663
19664
19665 # as_fn_mkdir_p
19666 # -------------
19667 # Create "$as_dir" as a directory, including parents if necessary.
19668 as_fn_mkdir_p ()
19669 {
19670
19671 case $as_dir in #(
19672 -*) as_dir=./$as_dir;;
19673 esac
19674 test -d "$as_dir" || eval $as_mkdir_p || {
19675 as_dirs=
19676 while :; do
19677 case $as_dir in #(
19678 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19679 *) as_qdir=$as_dir;;
19680 esac
19681 as_dirs="'$as_qdir' $as_dirs"
19682 as_dir=`$as_dirname -- "$as_dir" ||
19683 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19684 X"$as_dir" : 'X\(//\)[^/]' \| \
19685 X"$as_dir" : 'X\(//\)$' \| \
19686 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19687 printf "%s\n" X"$as_dir" |
19688 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19689 s//\1/
19690 q
19691 }
19692 /^X\(\/\/\)[^/].*/{
19693 s//\1/
19694 q
19695 }
19696 /^X\(\/\/\)$/{
19697 s//\1/
19698 q
19699 }
19700 /^X\(\/\).*/{
19701 s//\1/
19702 q
19703 }
19704 s/.*/./; q'`
19705 test -d "$as_dir" && break
19706 done
19707 test -z "$as_dirs" || eval "mkdir $as_dirs"
19708 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19709
19710
19711 } # as_fn_mkdir_p
19712 if mkdir -p . 2>/dev/null; then
19713 as_mkdir_p='mkdir -p "$as_dir"'
19714 else
19715 test -d ./-p && rmdir ./-p
19716 as_mkdir_p=false
19717 fi
19718
19719
19720 # as_fn_executable_p FILE
19721 # -----------------------
19722 # Test if FILE is an executable regular file.
19723 as_fn_executable_p ()
19724 {
19725 test -f "$1" && test -x "$1"
19726 } # as_fn_executable_p
19727 as_test_x='test -x'
19728 as_executable_p=as_fn_executable_p
19729
19730 # Sed expression to map a string onto a valid CPP name.
19731 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19732
19733 # Sed expression to map a string onto a valid variable name.
19734 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19735
19736
19737 exec 6>&1
19738 ## ----------------------------------- ##
19739 ## Main body of $CONFIG_STATUS script. ##
19740 ## ----------------------------------- ##
19741 _ASEOF
19742 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19743
19744 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19745 # Save the log message, to keep $0 and so on meaningful, and to
19746 # report actual input values of CONFIG_FILES etc. instead of their
19747 # values after options handling.
19748 ac_log="
19749 This file was extended by gc $as_me 8.2.8, which was
19750 generated by GNU Autoconf 2.71. Invocation command line was
19751
19752 CONFIG_FILES = $CONFIG_FILES
19753 CONFIG_HEADERS = $CONFIG_HEADERS
19754 CONFIG_LINKS = $CONFIG_LINKS
19755 CONFIG_COMMANDS = $CONFIG_COMMANDS
19756 $ $0 $@
19757
19758 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19759 "
19760
19761 _ACEOF
19762
19763 case $ac_config_files in *"
19764 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19765 esac
19766
19767 case $ac_config_headers in *"
19768 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19769 esac
19770
19771
19772 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19773 # Files that config.status was made for.
19774 config_files="$ac_config_files"
19775 config_headers="$ac_config_headers"
19776 config_commands="$ac_config_commands"
19777
19778 _ACEOF
19779
19780 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19781 ac_cs_usage="\
19782 \`$as_me' instantiates files and other configuration actions
19783 from templates according to the current configuration. Unless the files
19784 and actions are specified as TAGs, all are instantiated by default.
19785
19786 Usage: $0 [OPTION]... [TAG]...
19787
19788 -h, --help print this help, then exit
19789 -V, --version print version number and configuration settings, then exit
19790 --config print configuration, then exit
19791 -q, --quiet, --silent
19792 do not print progress messages
19793 -d, --debug don't remove temporary files
19794 --recheck update $as_me by reconfiguring in the same conditions
19795 --file=FILE[:TEMPLATE]
19796 instantiate the configuration file FILE
19797 --header=FILE[:TEMPLATE]
19798 instantiate the configuration header FILE
19799
19800 Configuration files:
19801 $config_files
19802
19803 Configuration headers:
19804 $config_headers
19805
19806 Configuration commands:
19807 $config_commands
19808
19809 Report bugs to <https://github.com/ivmai/bdwgc/issues>."
19810
19811 _ACEOF
19812 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
19813 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
19814 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19815 ac_cs_config='$ac_cs_config_escaped'
19816 ac_cs_version="\\
19817 gc config.status 8.2.8
19818 configured by $0, generated by GNU Autoconf 2.71,
19819 with options \\"\$ac_cs_config\\"
19820
19821 Copyright (C) 2021 Free Software Foundation, Inc.
19822 This config.status script is free software; the Free Software Foundation
19823 gives unlimited permission to copy, distribute and modify it."
19824
19825 ac_pwd='$ac_pwd'
19826 srcdir='$srcdir'
19827 INSTALL='$INSTALL'
19828 MKDIR_P='$MKDIR_P'
19829 AWK='$AWK'
19830 test -n "\$AWK" || AWK=awk
19831 _ACEOF
19832
19833 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19834 # The default lists apply if the user does not specify any file.
19835 ac_need_defaults=:
19836 while test $# != 0
19837 do
19838 case $1 in
19839 --*=?*)
19840 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19841 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19842 ac_shift=:
19843 ;;
19844 --*=)
19845 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19846 ac_optarg=
19847 ac_shift=:
19848 ;;
19849 *)
19850 ac_option=$1
19851 ac_optarg=$2
19852 ac_shift=shift
19853 ;;
19854 esac
19855
19856 case $ac_option in
19857 # Handling of the options.
19858 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19859 ac_cs_recheck=: ;;
19860 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19861 printf "%s\n" "$ac_cs_version"; exit ;;
19862 --config | --confi | --conf | --con | --co | --c )
19863 printf "%s\n" "$ac_cs_config"; exit ;;
19864 --debug | --debu | --deb | --de | --d | -d )
19865 debug=: ;;
19866 --file | --fil | --fi | --f )
19867 $ac_shift
19868 case $ac_optarg in
19869 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19870 '') as_fn_error $? "missing file argument" ;;
19871 esac
19872 as_fn_append CONFIG_FILES " '$ac_optarg'"
19873 ac_need_defaults=false;;
19874 --header | --heade | --head | --hea )
19875 $ac_shift
19876 case $ac_optarg in
19877 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19878 esac
19879 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19880 ac_need_defaults=false;;
19881 --he | --h)
19882 # Conflict between --help and --header
19883 as_fn_error $? "ambiguous option: \`$1'
19884 Try \`$0 --help' for more information.";;
19885 --help | --hel | -h )
19886 printf "%s\n" "$ac_cs_usage"; exit ;;
19887 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19888 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19889 ac_cs_silent=: ;;
19890
19891 # This is an error.
19892 -*) as_fn_error $? "unrecognized option: \`$1'
19893 Try \`$0 --help' for more information." ;;
19894
19895 *) as_fn_append ac_config_targets " $1"
19896 ac_need_defaults=false ;;
19897
19898 esac
19899 shift
19900 done
19901
19902 ac_configure_extra_args=
19903
19904 if $ac_cs_silent; then
19905 exec 6>/dev/null
19906 ac_configure_extra_args="$ac_configure_extra_args --silent"
19907 fi
19908
19909 _ACEOF
19910 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19911 if \$ac_cs_recheck; then
19912 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19913 shift
19914 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
19915 CONFIG_SHELL='$SHELL'
19916 export CONFIG_SHELL
19917 exec "\$@"
19918 fi
19919
19920 _ACEOF
19921 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19922 exec 5>>config.log
19923 {
19924 echo
19925 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19926 ## Running $as_me. ##
19927 _ASBOX
19928 printf "%s\n" "$ac_log"
19929 } >&5
19930
19931 _ACEOF
19932 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19933 #
19934 # INIT-COMMANDS
19935 #
19936 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
19937
19938
19939 # The HP-UX ksh and POSIX shell print the target directory to stdout
19940 # if CDPATH is set.
19941 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19942
19943 sed_quote_subst='$sed_quote_subst'
19944 double_quote_subst='$double_quote_subst'
19945 delay_variable_subst='$delay_variable_subst'
19946 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19947 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19948 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19949 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19950 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19951 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19952 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
19953 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19954 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19955 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19956 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19957 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19958 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19959 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19960 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19961 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19962 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19963 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19964 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19965 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19966 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19967 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19968 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19969 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19970 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19971 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19972 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19973 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19974 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19975 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19976 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19977 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19978 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19979 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19980 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19981 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19982 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19983 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19984 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19985 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19986 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19987 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19988 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19989 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19990 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19991 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19992 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19993 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19994 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19995 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19996 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19997 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19998 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19999 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20000 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20001 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20002 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20003 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20004 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"`'
20005 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20006 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20007 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20008 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20009 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20010 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20011 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20012 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20013 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20014 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20015 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20016 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20017 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20018 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20019 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20020 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20021 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20022 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20023 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20024 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20025 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20026 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20027 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20028 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20029 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20030 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20031 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20032 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20033 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20034 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20035 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20036 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20037 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20038 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20039 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20040 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20041 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20042 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20043 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20044 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20045 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20046 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20047 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20048 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20049 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20050 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20051 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20052 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20053 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20054 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20055 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20056 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20057 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20058 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20059 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20060 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20061 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20062 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20063 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20064 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20065 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20066 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20067 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20068 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20069 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20070 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20071 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20072 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20073 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20074 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20075 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20076 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20077 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20078 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20079 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20080 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20081 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
20082 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
20083 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
20084 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
20085 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
20086 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
20087 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
20088 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
20089 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20090 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20091 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
20092 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
20093 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
20094 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
20095 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
20096 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
20097 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
20098 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
20099 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
20100 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20101 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20102 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
20103 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20104 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20105 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20106 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20107 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20108 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20109 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
20110 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20111 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20112 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20113 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
20114 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
20115 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
20116 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
20117 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
20118 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
20119 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
20120 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
20121 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
20122 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20123 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20124 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20125 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20126 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20127 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
20128 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
20129 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
20130 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20131 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20132 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
20133 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
20134 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
20135
20136 LTCC='$LTCC'
20137 LTCFLAGS='$LTCFLAGS'
20138 compiler='$compiler_DEFAULT'
20139
20140 # A function that is used when there is no print builtin or printf.
20141 func_fallback_echo ()
20142 {
20143 eval 'cat <<_LTECHO_EOF
20144 \$1
20145 _LTECHO_EOF'
20146 }
20147
20148 # Quote evaled strings.
20149 for var in SHELL \
20150 ECHO \
20151 PATH_SEPARATOR \
20152 SED \
20153 GREP \
20154 EGREP \
20155 FGREP \
20156 LD \
20157 NM \
20158 LN_S \
20159 lt_SP2NL \
20160 lt_NL2SP \
20161 reload_flag \
20162 OBJDUMP \
20163 deplibs_check_method \
20164 file_magic_cmd \
20165 file_magic_glob \
20166 want_nocaseglob \
20167 DLLTOOL \
20168 sharedlib_from_linklib_cmd \
20169 AR \
20170 AR_FLAGS \
20171 archiver_list_spec \
20172 STRIP \
20173 RANLIB \
20174 CC \
20175 CFLAGS \
20176 compiler \
20177 lt_cv_sys_global_symbol_pipe \
20178 lt_cv_sys_global_symbol_to_cdecl \
20179 lt_cv_sys_global_symbol_to_import \
20180 lt_cv_sys_global_symbol_to_c_name_address \
20181 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20182 lt_cv_nm_interface \
20183 nm_file_list_spec \
20184 lt_cv_truncate_bin \
20185 lt_prog_compiler_no_builtin_flag \
20186 lt_prog_compiler_pic \
20187 lt_prog_compiler_wl \
20188 lt_prog_compiler_static \
20189 lt_cv_prog_compiler_c_o \
20190 need_locks \
20191 MANIFEST_TOOL \
20192 DSYMUTIL \
20193 NMEDIT \
20194 LIPO \
20195 OTOOL \
20196 OTOOL64 \
20197 shrext_cmds \
20198 export_dynamic_flag_spec \
20199 whole_archive_flag_spec \
20200 compiler_needs_object \
20201 with_gnu_ld \
20202 allow_undefined_flag \
20203 no_undefined_flag \
20204 hardcode_libdir_flag_spec \
20205 hardcode_libdir_separator \
20206 exclude_expsyms \
20207 include_expsyms \
20208 file_list_spec \
20209 variables_saved_for_relink \
20210 libname_spec \
20211 library_names_spec \
20212 soname_spec \
20213 install_override_mode \
20214 finish_eval \
20215 old_striplib \
20216 striplib \
20217 compiler_lib_search_dirs \
20218 predep_objects \
20219 postdep_objects \
20220 predeps \
20221 postdeps \
20222 compiler_lib_search_path \
20223 LD_CXX \
20224 reload_flag_CXX \
20225 compiler_CXX \
20226 lt_prog_compiler_no_builtin_flag_CXX \
20227 lt_prog_compiler_pic_CXX \
20228 lt_prog_compiler_wl_CXX \
20229 lt_prog_compiler_static_CXX \
20230 lt_cv_prog_compiler_c_o_CXX \
20231 export_dynamic_flag_spec_CXX \
20232 whole_archive_flag_spec_CXX \
20233 compiler_needs_object_CXX \
20234 with_gnu_ld_CXX \
20235 allow_undefined_flag_CXX \
20236 no_undefined_flag_CXX \
20237 hardcode_libdir_flag_spec_CXX \
20238 hardcode_libdir_separator_CXX \
20239 exclude_expsyms_CXX \
20240 include_expsyms_CXX \
20241 file_list_spec_CXX \
20242 compiler_lib_search_dirs_CXX \
20243 predep_objects_CXX \
20244 postdep_objects_CXX \
20245 predeps_CXX \
20246 postdeps_CXX \
20247 compiler_lib_search_path_CXX; do
20248 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20249 *[\\\\\\\`\\"\\\$]*)
20250 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20251 ;;
20252 *)
20253 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20254 ;;
20255 esac
20256 done
20257
20258 # Double-quote double-evaled strings.
20259 for var in reload_cmds \
20260 old_postinstall_cmds \
20261 old_postuninstall_cmds \
20262 old_archive_cmds \
20263 extract_expsyms_cmds \
20264 old_archive_from_new_cmds \
20265 old_archive_from_expsyms_cmds \
20266 archive_cmds \
20267 archive_expsym_cmds \
20268 module_cmds \
20269 module_expsym_cmds \
20270 export_symbols_cmds \
20271 prelink_cmds \
20272 postlink_cmds \
20273 postinstall_cmds \
20274 postuninstall_cmds \
20275 finish_cmds \
20276 sys_lib_search_path_spec \
20277 configure_time_dlsearch_path \
20278 configure_time_lt_sys_library_path \
20279 reload_cmds_CXX \
20280 old_archive_cmds_CXX \
20281 old_archive_from_new_cmds_CXX \
20282 old_archive_from_expsyms_cmds_CXX \
20283 archive_cmds_CXX \
20284 archive_expsym_cmds_CXX \
20285 module_cmds_CXX \
20286 module_expsym_cmds_CXX \
20287 export_symbols_cmds_CXX \
20288 prelink_cmds_CXX \
20289 postlink_cmds_CXX; do
20290 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20291 *[\\\\\\\`\\"\\\$]*)
20292 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20293 ;;
20294 *)
20295 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20296 ;;
20297 esac
20298 done
20299
20300 ac_aux_dir='$ac_aux_dir'
20301
20302 # See if we are running on zsh, and set the options that allow our
20303 # commands through without removal of \ escapes INIT.
20304 if test -n "\${ZSH_VERSION+set}"; then
20305 setopt NO_GLOB_SUBST
20306 fi
20307
20308
20309 PACKAGE='$PACKAGE'
20310 VERSION='$VERSION'
20311 RM='$RM'
20312 ofile='$ofile'
20313
20314
20315
20316
20317
20318 srcdir="${srcdir}"
20319 host=${host}
20320 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
20321 CC="${CC}"
20322 DEFS="$DEFS"
20323
20324 _ACEOF
20325
20326 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20327
20328 # Handling of arguments.
20329 for ac_config_target in $ac_config_targets
20330 do
20331 case $ac_config_target in
20332 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
20333 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20334 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20335 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20336 "bdw-gc.pc") CONFIG_FILES="$CONFIG_FILES bdw-gc.pc" ;;
20337 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
20338
20339 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20340 esac
20341 done
20342
20343
20344 # If the user did not use the arguments to specify the items to instantiate,
20345 # then the envvar interface is used. Set only those that are not.
20346 # We use the long form for the default assignment because of an extremely
20347 # bizarre bug on SunOS 4.1.3.
20348 if $ac_need_defaults; then
20349 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
20350 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
20351 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
20352 fi
20353
20354 # Have a temporary directory for convenience. Make it in the build tree
20355 # simply because there is no reason against having it here, and in addition,
20356 # creating and moving files from /tmp can sometimes cause problems.
20357 # Hook for its removal unless debugging.
20358 # Note that there is a small window in which the directory will not be cleaned:
20359 # after its creation but before its name has been assigned to `$tmp'.
20360 $debug ||
20361 {
20362 tmp= ac_tmp=
20363 trap 'exit_status=$?
20364 : "${ac_tmp:=$tmp}"
20365 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20366 ' 0
20367 trap 'as_fn_exit 1' 1 2 13 15
20368 }
20369 # Create a (secure) tmp directory for tmp files.
20370
20371 {
20372 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20373 test -d "$tmp"
20374 } ||
20375 {
20376 tmp=./conf$$-$RANDOM
20377 (umask 077 && mkdir "$tmp")
20378 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20379 ac_tmp=$tmp
20380
20381 # Set up the scripts for CONFIG_FILES section.
20382 # No need to generate them if there are no CONFIG_FILES.
20383 # This happens for instance with `./config.status config.h'.
20384 if test -n "$CONFIG_FILES"; then
20385
20386
20387 ac_cr=`echo X | tr X '\015'`
20388 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20389 # But we know of no other shell where ac_cr would be empty at this
20390 # point, so we can use a bashism as a fallback.
20391 if test "x$ac_cr" = x; then
20392 eval ac_cr=\$\'\\r\'
20393 fi
20394 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20395 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20396 ac_cs_awk_cr='\\r'
20397 else
20398 ac_cs_awk_cr=$ac_cr
20399 fi
20400
20401 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20402 _ACEOF
20403
20404
20405 {
20406 echo "cat >conf$$subs.awk <<_ACEOF" &&
20407 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20408 echo "_ACEOF"
20409 } >conf$$subs.sh ||
20410 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20411 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20412 ac_delim='%!_!# '
20413 for ac_last_try in false false false false false :; do
20414 . ./conf$$subs.sh ||
20415 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20416
20417 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20418 if test $ac_delim_n = $ac_delim_num; then
20419 break
20420 elif $ac_last_try; then
20421 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20422 else
20423 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20424 fi
20425 done
20426 rm -f conf$$subs.sh
20427
20428 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20429 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20430 _ACEOF
20431 sed -n '
20432 h
20433 s/^/S["/; s/!.*/"]=/
20434 p
20435 g
20436 s/^[^!]*!//
20437 :repl
20438 t repl
20439 s/'"$ac_delim"'$//
20440 t delim
20441 :nl
20442 h
20443 s/\(.\{148\}\)..*/\1/
20444 t more1
20445 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20446 p
20447 n
20448 b repl
20449 :more1
20450 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20451 p
20452 g
20453 s/.\{148\}//
20454 t nl
20455 :delim
20456 h
20457 s/\(.\{148\}\)..*/\1/
20458 t more2
20459 s/["\\]/\\&/g; s/^/"/; s/$/"/
20460 p
20461 b
20462 :more2
20463 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20464 p
20465 g
20466 s/.\{148\}//
20467 t delim
20468 ' <conf$$subs.awk | sed '
20469 /^[^""]/{
20470 N
20471 s/\n//
20472 }
20473 ' >>$CONFIG_STATUS || ac_write_fail=1
20474 rm -f conf$$subs.awk
20475 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20476 _ACAWK
20477 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20478 for (key in S) S_is_set[key] = 1
20479 FS = ""
20480
20481 }
20482 {
20483 line = $ 0
20484 nfields = split(line, field, "@")
20485 substed = 0
20486 len = length(field[1])
20487 for (i = 2; i < nfields; i++) {
20488 key = field[i]
20489 keylen = length(key)
20490 if (S_is_set[key]) {
20491 value = S[key]
20492 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20493 len += length(value) + length(field[++i])
20494 substed = 1
20495 } else
20496 len += 1 + keylen
20497 }
20498
20499 print line
20500 }
20501
20502 _ACAWK
20503 _ACEOF
20504 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20505 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20506 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20507 else
20508 cat
20509 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20510 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20511 _ACEOF
20512
20513 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20514 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20515 # trailing colons and then remove the whole line if VPATH becomes empty
20516 # (actually we leave an empty line to preserve line numbers).
20517 if test "x$srcdir" = x.; then
20518 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20519 h
20520 s///
20521 s/^/:/
20522 s/[ ]*$/:/
20523 s/:\$(srcdir):/:/g
20524 s/:\${srcdir}:/:/g
20525 s/:@srcdir@:/:/g
20526 s/^:*//
20527 s/:*$//
20528 x
20529 s/\(=[ ]*\).*/\1/
20530 G
20531 s/\n//
20532 s/^[^=]*=[ ]*$//
20533 }'
20534 fi
20535
20536 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20537 fi # test -n "$CONFIG_FILES"
20538
20539 # Set up the scripts for CONFIG_HEADERS section.
20540 # No need to generate them if there are no CONFIG_HEADERS.
20541 # This happens for instance with `./config.status Makefile'.
20542 if test -n "$CONFIG_HEADERS"; then
20543 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20544 BEGIN {
20545 _ACEOF
20546
20547 # Transform confdefs.h into an awk script `defines.awk', embedded as
20548 # here-document in config.status, that substitutes the proper values into
20549 # config.h.in to produce config.h.
20550
20551 # Create a delimiter string that does not exist in confdefs.h, to ease
20552 # handling of long lines.
20553 ac_delim='%!_!# '
20554 for ac_last_try in false false :; do
20555 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20556 if test -z "$ac_tt"; then
20557 break
20558 elif $ac_last_try; then
20559 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20560 else
20561 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20562 fi
20563 done
20564
20565 # For the awk script, D is an array of macro values keyed by name,
20566 # likewise P contains macro parameters if any. Preserve backslash
20567 # newline sequences.
20568
20569 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20570 sed -n '
20571 s/.\{148\}/&'"$ac_delim"'/g
20572 t rset
20573 :rset
20574 s/^[ ]*#[ ]*define[ ][ ]*/ /
20575 t def
20576 d
20577 :def
20578 s/\\$//
20579 t bsnl
20580 s/["\\]/\\&/g
20581 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20582 D["\1"]=" \3"/p
20583 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20584 d
20585 :bsnl
20586 s/["\\]/\\&/g
20587 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20588 D["\1"]=" \3\\\\\\n"\\/p
20589 t cont
20590 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20591 t cont
20592 d
20593 :cont
20594 n
20595 s/.\{148\}/&'"$ac_delim"'/g
20596 t clear
20597 :clear
20598 s/\\$//
20599 t bsnlc
20600 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20601 d
20602 :bsnlc
20603 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20604 b cont
20605 ' <confdefs.h | sed '
20606 s/'"$ac_delim"'/"\\\
20607 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20608
20609 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20610 for (key in D) D_is_set[key] = 1
20611 FS = ""
20612 }
20613 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20614 line = \$ 0
20615 split(line, arg, " ")
20616 if (arg[1] == "#") {
20617 defundef = arg[2]
20618 mac1 = arg[3]
20619 } else {
20620 defundef = substr(arg[1], 2)
20621 mac1 = arg[2]
20622 }
20623 split(mac1, mac2, "(") #)
20624 macro = mac2[1]
20625 prefix = substr(line, 1, index(line, defundef) - 1)
20626 if (D_is_set[macro]) {
20627 # Preserve the white space surrounding the "#".
20628 print prefix "define", macro P[macro] D[macro]
20629 next
20630 } else {
20631 # Replace #undef with comments. This is necessary, for example,
20632 # in the case of _POSIX_SOURCE, which is predefined and required
20633 # on some systems where configure will not decide to define it.
20634 if (defundef == "undef") {
20635 print "/*", prefix defundef, macro, "*/"
20636 next
20637 }
20638 }
20639 }
20640 { print }
20641 _ACAWK
20642 _ACEOF
20643 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20644 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20645 fi # test -n "$CONFIG_HEADERS"
20646
20647
20648 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20649 shift
20650 for ac_tag
20651 do
20652 case $ac_tag in
20653 :[FHLC]) ac_mode=$ac_tag; continue;;
20654 esac
20655 case $ac_mode$ac_tag in
20656 :[FHL]*:*);;
20657 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20658 :[FH]-) ac_tag=-:-;;
20659 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20660 esac
20661 ac_save_IFS=$IFS
20662 IFS=:
20663 set x $ac_tag
20664 IFS=$ac_save_IFS
20665 shift
20666 ac_file=$1
20667 shift
20668
20669 case $ac_mode in
20670 :L) ac_source=$1;;
20671 :[FH])
20672 ac_file_inputs=
20673 for ac_f
20674 do
20675 case $ac_f in
20676 -) ac_f="$ac_tmp/stdin";;
20677 *) # Look for the file first in the build tree, then in the source tree
20678 # (if the path is not absolute). The absolute path cannot be DOS-style,
20679 # because $ac_f cannot contain `:'.
20680 test -f "$ac_f" ||
20681 case $ac_f in
20682 [\\/$]*) false;;
20683 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20684 esac ||
20685 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20686 esac
20687 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20688 as_fn_append ac_file_inputs " '$ac_f'"
20689 done
20690
20691 # Let's still pretend it is `configure' which instantiates (i.e., don't
20692 # use $as_me), people would be surprised to read:
20693 # /* config.h. Generated by config.status. */
20694 configure_input='Generated from '`
20695 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20696 `' by configure.'
20697 if test x"$ac_file" != x-; then
20698 configure_input="$ac_file. $configure_input"
20699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20700 printf "%s\n" "$as_me: creating $ac_file" >&6;}
20701 fi
20702 # Neutralize special characters interpreted by sed in replacement strings.
20703 case $configure_input in #(
20704 *\&* | *\|* | *\\* )
20705 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
20706 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20707 *) ac_sed_conf_input=$configure_input;;
20708 esac
20709
20710 case $ac_tag in
20711 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20712 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20713 esac
20714 ;;
20715 esac
20716
20717 ac_dir=`$as_dirname -- "$ac_file" ||
20718 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20719 X"$ac_file" : 'X\(//\)[^/]' \| \
20720 X"$ac_file" : 'X\(//\)$' \| \
20721 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20722 printf "%s\n" X"$ac_file" |
20723 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20724 s//\1/
20725 q
20726 }
20727 /^X\(\/\/\)[^/].*/{
20728 s//\1/
20729 q
20730 }
20731 /^X\(\/\/\)$/{
20732 s//\1/
20733 q
20734 }
20735 /^X\(\/\).*/{
20736 s//\1/
20737 q
20738 }
20739 s/.*/./; q'`
20740 as_dir="$ac_dir"; as_fn_mkdir_p
20741 ac_builddir=.
20742
20743 case "$ac_dir" in
20744 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20745 *)
20746 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
20747 # A ".." for each directory in $ac_dir_suffix.
20748 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20749 case $ac_top_builddir_sub in
20750 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20751 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20752 esac ;;
20753 esac
20754 ac_abs_top_builddir=$ac_pwd
20755 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20756 # for backward compatibility:
20757 ac_top_builddir=$ac_top_build_prefix
20758
20759 case $srcdir in
20760 .) # We are building in place.
20761 ac_srcdir=.
20762 ac_top_srcdir=$ac_top_builddir_sub
20763 ac_abs_top_srcdir=$ac_pwd ;;
20764 [\\/]* | ?:[\\/]* ) # Absolute name.
20765 ac_srcdir=$srcdir$ac_dir_suffix;
20766 ac_top_srcdir=$srcdir
20767 ac_abs_top_srcdir=$srcdir ;;
20768 *) # Relative name.
20769 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20770 ac_top_srcdir=$ac_top_build_prefix$srcdir
20771 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20772 esac
20773 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20774
20775
20776 case $ac_mode in
20777 :F)
20778 #
20779 # CONFIG_FILE
20780 #
20781
20782 case $INSTALL in
20783 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20784 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20785 esac
20786 ac_MKDIR_P=$MKDIR_P
20787 case $MKDIR_P in
20788 [\\/$]* | ?:[\\/]* ) ;;
20789 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20790 esac
20791 _ACEOF
20792
20793 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20794 # If the template does not know about datarootdir, expand it.
20795 # FIXME: This hack should be removed a few years after 2.60.
20796 ac_datarootdir_hack=; ac_datarootdir_seen=
20797 ac_sed_dataroot='
20798 /datarootdir/ {
20799 p
20800 q
20801 }
20802 /@datadir@/p
20803 /@docdir@/p
20804 /@infodir@/p
20805 /@localedir@/p
20806 /@mandir@/p'
20807 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20808 *datarootdir*) ac_datarootdir_seen=yes;;
20809 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20811 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20812 _ACEOF
20813 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20814 ac_datarootdir_hack='
20815 s&@datadir@&$datadir&g
20816 s&@docdir@&$docdir&g
20817 s&@infodir@&$infodir&g
20818 s&@localedir@&$localedir&g
20819 s&@mandir@&$mandir&g
20820 s&\\\${datarootdir}&$datarootdir&g' ;;
20821 esac
20822 _ACEOF
20823
20824 # Neutralize VPATH when `$srcdir' = `.'.
20825 # Shell code in configure.ac might set extrasub.
20826 # FIXME: do we really want to maintain this feature?
20827 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20828 ac_sed_extra="$ac_vpsub
20829 $extrasub
20830 _ACEOF
20831 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20832 :t
20833 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20834 s|@configure_input@|$ac_sed_conf_input|;t t
20835 s&@top_builddir@&$ac_top_builddir_sub&;t t
20836 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20837 s&@srcdir@&$ac_srcdir&;t t
20838 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20839 s&@top_srcdir@&$ac_top_srcdir&;t t
20840 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20841 s&@builddir@&$ac_builddir&;t t
20842 s&@abs_builddir@&$ac_abs_builddir&;t t
20843 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20844 s&@INSTALL@&$ac_INSTALL&;t t
20845 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20846 $ac_datarootdir_hack
20847 "
20848 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20849 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20850
20851 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20852 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20853 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20854 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20856 which seems to be undefined. Please make sure it is defined" >&5
20857 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20858 which seems to be undefined. Please make sure it is defined" >&2;}
20859
20860 rm -f "$ac_tmp/stdin"
20861 case $ac_file in
20862 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20863 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20864 esac \
20865 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20866 ;;
20867 :H)
20868 #
20869 # CONFIG_HEADER
20870 #
20871 if test x"$ac_file" != x-; then
20872 {
20873 printf "%s\n" "/* $configure_input */" >&1 \
20874 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20875 } >"$ac_tmp/config.h" \
20876 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20877 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20879 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
20880 else
20881 rm -f "$ac_file"
20882 mv "$ac_tmp/config.h" "$ac_file" \
20883 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20884 fi
20885 else
20886 printf "%s\n" "/* $configure_input */" >&1 \
20887 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20888 || as_fn_error $? "could not create -" "$LINENO" 5
20889 fi
20890 # Compute "$ac_file"'s index in $config_headers.
20891 _am_arg="$ac_file"
20892 _am_stamp_count=1
20893 for _am_header in $config_headers :; do
20894 case $_am_header in
20895 $_am_arg | $_am_arg:* )
20896 break ;;
20897 * )
20898 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20899 esac
20900 done
20901 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20902 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20903 X"$_am_arg" : 'X\(//\)[^/]' \| \
20904 X"$_am_arg" : 'X\(//\)$' \| \
20905 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20906 printf "%s\n" X"$_am_arg" |
20907 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20908 s//\1/
20909 q
20910 }
20911 /^X\(\/\/\)[^/].*/{
20912 s//\1/
20913 q
20914 }
20915 /^X\(\/\/\)$/{
20916 s//\1/
20917 q
20918 }
20919 /^X\(\/\).*/{
20920 s//\1/
20921 q
20922 }
20923 s/.*/./; q'`/stamp-h$_am_stamp_count
20924 ;;
20925
20926 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20927 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
20928 ;;
20929 esac
20930
20931
20932 case $ac_file$ac_mode in
20933 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20934 # Older Autoconf quotes --file arguments for eval, but not when files
20935 # are listed without --file. Let's play safe and only enable the eval
20936 # if we detect the quoting.
20937 # TODO: see whether this extra hack can be removed once we start
20938 # requiring Autoconf 2.70 or later.
20939 case $CONFIG_FILES in #(
20940 *\'*) :
20941 eval set x "$CONFIG_FILES" ;; #(
20942 *) :
20943 set x $CONFIG_FILES ;; #(
20944 *) :
20945 ;;
20946 esac
20947 shift
20948 # Used to flag and report bootstrapping failures.
20949 am_rc=0
20950 for am_mf
20951 do
20952 # Strip MF so we end up with the name of the file.
20953 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
20954 # Check whether this is an Automake generated Makefile which includes
20955 # dependency-tracking related rules and includes.
20956 # Grep'ing the whole file directly is not great: AIX grep has a line
20957 # limit of 2048, but all sed's we know have understand at least 4000.
20958 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
20959 || continue
20960 am_dirpart=`$as_dirname -- "$am_mf" ||
20961 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20962 X"$am_mf" : 'X\(//\)[^/]' \| \
20963 X"$am_mf" : 'X\(//\)$' \| \
20964 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
20965 printf "%s\n" X"$am_mf" |
20966 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20967 s//\1/
20968 q
20969 }
20970 /^X\(\/\/\)[^/].*/{
20971 s//\1/
20972 q
20973 }
20974 /^X\(\/\/\)$/{
20975 s//\1/
20976 q
20977 }
20978 /^X\(\/\).*/{
20979 s//\1/
20980 q
20981 }
20982 s/.*/./; q'`
20983 am_filepart=`$as_basename -- "$am_mf" ||
20984 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
20985 X"$am_mf" : 'X\(//\)$' \| \
20986 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
20987 printf "%s\n" X/"$am_mf" |
20988 sed '/^.*\/\([^/][^/]*\)\/*$/{
20989 s//\1/
20990 q
20991 }
20992 /^X\/\(\/\/\)$/{
20993 s//\1/
20994 q
20995 }
20996 /^X\/\(\/\).*/{
20997 s//\1/
20998 q
20999 }
21000 s/.*/./; q'`
21001 { echo "$as_me:$LINENO: cd "$am_dirpart" \
21002 && sed -e '/# am--include-marker/d' "$am_filepart" \
21003 | $MAKE -f - am--depfiles" >&5
21004 (cd "$am_dirpart" \
21005 && sed -e '/# am--include-marker/d' "$am_filepart" \
21006 | $MAKE -f - am--depfiles) >&5 2>&5
21007 ac_status=$?
21008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21009 (exit $ac_status); } || am_rc=$?
21010 done
21011 if test $am_rc -ne 0; then
21012 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21013 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21014 as_fn_error $? "Something went wrong bootstrapping makefile fragments
21015 for automatic dependency tracking. If GNU make was not used, consider
21016 re-running the configure script with MAKE=\"gmake\" (or whatever is
21017 necessary). You can also try re-running configure with the
21018 '--disable-dependency-tracking' option to at least be able to build
21019 the package (albeit without support for automatic dependency tracking).
21020 See \`config.log' for more details" "$LINENO" 5; }
21021 fi
21022 { am_dirpart=; unset am_dirpart;}
21023 { am_filepart=; unset am_filepart;}
21024 { am_mf=; unset am_mf;}
21025 { am_rc=; unset am_rc;}
21026 rm -f conftest-deps.mk
21027 }
21028 ;;
21029 "libtool":C)
21030
21031 # See if we are running on zsh, and set the options that allow our
21032 # commands through without removal of \ escapes.
21033 if test -n "${ZSH_VERSION+set}"; then
21034 setopt NO_GLOB_SUBST
21035 fi
21036
21037 cfgfile=${ofile}T
21038 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21039 $RM "$cfgfile"
21040
21041 cat <<_LT_EOF >> "$cfgfile"
21042 #! $SHELL
21043 # Generated automatically by $as_me ($PACKAGE) $VERSION
21044 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21045 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21046
21047 # Provide generalized library-building support services.
21048 # Written by Gordon Matzigkeit, 1996
21049
21050 # Copyright (C) 2014 Free Software Foundation, Inc.
21051 # This is free software; see the source for copying conditions. There is NO
21052 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21053
21054 # GNU Libtool is free software; you can redistribute it and/or modify
21055 # it under the terms of the GNU General Public License as published by
21056 # the Free Software Foundation; either version 2 of of the License, or
21057 # (at your option) any later version.
21058 #
21059 # As a special exception to the GNU General Public License, if you
21060 # distribute this file as part of a program or library that is built
21061 # using GNU Libtool, you may include this file under the same
21062 # distribution terms that you use for the rest of that program.
21063 #
21064 # GNU Libtool is distributed in the hope that it will be useful, but
21065 # WITHOUT ANY WARRANTY; without even the implied warranty of
21066 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21067 # GNU General Public License for more details.
21068 #
21069 # You should have received a copy of the GNU General Public License
21070 # along with this program. If not, see <http://www.gnu.org/licenses/>.
21071
21072
21073 # The names of the tagged configurations supported by this script.
21074 available_tags='CXX '
21075
21076 # Configured defaults for sys_lib_dlsearch_path munging.
21077 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21078
21079 # ### BEGIN LIBTOOL CONFIG
21080
21081 # Which release of libtool.m4 was used?
21082 macro_version=$macro_version
21083 macro_revision=$macro_revision
21084
21085 # Whether or not to build static libraries.
21086 build_old_libs=$enable_static
21087
21088 # Whether or not to build shared libraries.
21089 build_libtool_libs=$enable_shared
21090
21091 # What type of objects to build.
21092 pic_mode=$pic_mode
21093
21094 # Whether or not to optimize for fast installation.
21095 fast_install=$enable_fast_install
21096
21097 # Shared archive member basename,for filename based shared library versioning on AIX.
21098 shared_archive_member_spec=$shared_archive_member_spec
21099
21100 # Shell to use when invoking shell scripts.
21101 SHELL=$lt_SHELL
21102
21103 # An echo program that protects backslashes.
21104 ECHO=$lt_ECHO
21105
21106 # The PATH separator for the build system.
21107 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21108
21109 # The host system.
21110 host_alias=$host_alias
21111 host=$host
21112 host_os=$host_os
21113
21114 # The build system.
21115 build_alias=$build_alias
21116 build=$build
21117 build_os=$build_os
21118
21119 # A sed program that does not truncate output.
21120 SED=$lt_SED
21121
21122 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21123 Xsed="\$SED -e 1s/^X//"
21124
21125 # A grep program that handles long lines.
21126 GREP=$lt_GREP
21127
21128 # An ERE matcher.
21129 EGREP=$lt_EGREP
21130
21131 # A literal string matcher.
21132 FGREP=$lt_FGREP
21133
21134 # A BSD- or MS-compatible name lister.
21135 NM=$lt_NM
21136
21137 # Whether we need soft or hard links.
21138 LN_S=$lt_LN_S
21139
21140 # What is the maximum length of a command?
21141 max_cmd_len=$max_cmd_len
21142
21143 # Object file suffix (normally "o").
21144 objext=$ac_objext
21145
21146 # Executable file suffix (normally "").
21147 exeext=$exeext
21148
21149 # whether the shell understands "unset".
21150 lt_unset=$lt_unset
21151
21152 # turn spaces into newlines.
21153 SP2NL=$lt_lt_SP2NL
21154
21155 # turn newlines into spaces.
21156 NL2SP=$lt_lt_NL2SP
21157
21158 # convert \$build file names to \$host format.
21159 to_host_file_cmd=$lt_cv_to_host_file_cmd
21160
21161 # convert \$build files to toolchain format.
21162 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21163
21164 # An object symbol dumper.
21165 OBJDUMP=$lt_OBJDUMP
21166
21167 # Method to check whether dependent libraries are shared objects.
21168 deplibs_check_method=$lt_deplibs_check_method
21169
21170 # Command to use when deplibs_check_method = "file_magic".
21171 file_magic_cmd=$lt_file_magic_cmd
21172
21173 # How to find potential files when deplibs_check_method = "file_magic".
21174 file_magic_glob=$lt_file_magic_glob
21175
21176 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21177 want_nocaseglob=$lt_want_nocaseglob
21178
21179 # DLL creation program.
21180 DLLTOOL=$lt_DLLTOOL
21181
21182 # Command to associate shared and link libraries.
21183 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21184
21185 # The archiver.
21186 AR=$lt_AR
21187
21188 # Flags to create an archive.
21189 AR_FLAGS=$lt_AR_FLAGS
21190
21191 # How to feed a file listing to the archiver.
21192 archiver_list_spec=$lt_archiver_list_spec
21193
21194 # A symbol stripping program.
21195 STRIP=$lt_STRIP
21196
21197 # Commands used to install an old-style archive.
21198 RANLIB=$lt_RANLIB
21199 old_postinstall_cmds=$lt_old_postinstall_cmds
21200 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21201
21202 # Whether to use a lock for old archive extraction.
21203 lock_old_archive_extraction=$lock_old_archive_extraction
21204
21205 # A C compiler.
21206 LTCC=$lt_CC
21207
21208 # LTCC compiler flags.
21209 LTCFLAGS=$lt_CFLAGS
21210
21211 # Take the output of nm and produce a listing of raw symbols and C names.
21212 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21213
21214 # Transform the output of nm in a proper C declaration.
21215 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21216
21217 # Transform the output of nm into a list of symbols to manually relocate.
21218 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21219
21220 # Transform the output of nm in a C name address pair.
21221 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21222
21223 # Transform the output of nm in a C name address pair when lib prefix is needed.
21224 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21225
21226 # The name lister interface.
21227 nm_interface=$lt_lt_cv_nm_interface
21228
21229 # Specify filename containing input files for \$NM.
21230 nm_file_list_spec=$lt_nm_file_list_spec
21231
21232 # The root where to search for dependent libraries,and where our libraries should be installed.
21233 lt_sysroot=$lt_sysroot
21234
21235 # Command to truncate a binary pipe.
21236 lt_truncate_bin=$lt_lt_cv_truncate_bin
21237
21238 # The name of the directory that contains temporary libtool files.
21239 objdir=$objdir
21240
21241 # Used to examine libraries when file_magic_cmd begins with "file".
21242 MAGIC_CMD=$MAGIC_CMD
21243
21244 # Must we lock files when doing compilation?
21245 need_locks=$lt_need_locks
21246
21247 # Manifest tool.
21248 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21249
21250 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21251 DSYMUTIL=$lt_DSYMUTIL
21252
21253 # Tool to change global to local symbols on Mac OS X.
21254 NMEDIT=$lt_NMEDIT
21255
21256 # Tool to manipulate fat objects and archives on Mac OS X.
21257 LIPO=$lt_LIPO
21258
21259 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21260 OTOOL=$lt_OTOOL
21261
21262 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21263 OTOOL64=$lt_OTOOL64
21264
21265 # Old archive suffix (normally "a").
21266 libext=$libext
21267
21268 # Shared library suffix (normally ".so").
21269 shrext_cmds=$lt_shrext_cmds
21270
21271 # The commands to extract the exported symbol list from a shared archive.
21272 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21273
21274 # Variables whose values should be saved in libtool wrapper scripts and
21275 # restored at link time.
21276 variables_saved_for_relink=$lt_variables_saved_for_relink
21277
21278 # Do we need the "lib" prefix for modules?
21279 need_lib_prefix=$need_lib_prefix
21280
21281 # Do we need a version for libraries?
21282 need_version=$need_version
21283
21284 # Library versioning type.
21285 version_type=$version_type
21286
21287 # Shared library runtime path variable.
21288 runpath_var=$runpath_var
21289
21290 # Shared library path variable.
21291 shlibpath_var=$shlibpath_var
21292
21293 # Is shlibpath searched before the hard-coded library search path?
21294 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21295
21296 # Format of library name prefix.
21297 libname_spec=$lt_libname_spec
21298
21299 # List of archive names. First name is the real one, the rest are links.
21300 # The last name is the one that the linker finds with -lNAME
21301 library_names_spec=$lt_library_names_spec
21302
21303 # The coded name of the library, if different from the real name.
21304 soname_spec=$lt_soname_spec
21305
21306 # Permission mode override for installation of shared libraries.
21307 install_override_mode=$lt_install_override_mode
21308
21309 # Command to use after installation of a shared archive.
21310 postinstall_cmds=$lt_postinstall_cmds
21311
21312 # Command to use after uninstallation of a shared archive.
21313 postuninstall_cmds=$lt_postuninstall_cmds
21314
21315 # Commands used to finish a libtool library installation in a directory.
21316 finish_cmds=$lt_finish_cmds
21317
21318 # As "finish_cmds", except a single script fragment to be evaled but
21319 # not shown.
21320 finish_eval=$lt_finish_eval
21321
21322 # Whether we should hardcode library paths into libraries.
21323 hardcode_into_libs=$hardcode_into_libs
21324
21325 # Compile-time system search path for libraries.
21326 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21327
21328 # Detected run-time system search path for libraries.
21329 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
21330
21331 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
21332 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
21333
21334 # Whether dlopen is supported.
21335 dlopen_support=$enable_dlopen
21336
21337 # Whether dlopen of programs is supported.
21338 dlopen_self=$enable_dlopen_self
21339
21340 # Whether dlopen of statically linked programs is supported.
21341 dlopen_self_static=$enable_dlopen_self_static
21342
21343 # Commands to strip libraries.
21344 old_striplib=$lt_old_striplib
21345 striplib=$lt_striplib
21346
21347
21348 # The linker used to build libraries.
21349 LD=$lt_LD
21350
21351 # How to create reloadable object files.
21352 reload_flag=$lt_reload_flag
21353 reload_cmds=$lt_reload_cmds
21354
21355 # Commands used to build an old-style archive.
21356 old_archive_cmds=$lt_old_archive_cmds
21357
21358 # A language specific compiler.
21359 CC=$lt_compiler
21360
21361 # Is the compiler the GNU compiler?
21362 with_gcc=$GCC
21363
21364 # Compiler flag to turn off builtin functions.
21365 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21366
21367 # Additional compiler flags for building library objects.
21368 pic_flag=$lt_lt_prog_compiler_pic
21369
21370 # How to pass a linker flag through the compiler.
21371 wl=$lt_lt_prog_compiler_wl
21372
21373 # Compiler flag to prevent dynamic linking.
21374 link_static_flag=$lt_lt_prog_compiler_static
21375
21376 # Does compiler simultaneously support -c and -o options?
21377 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21378
21379 # Whether or not to add -lc for building shared libraries.
21380 build_libtool_need_lc=$archive_cmds_need_lc
21381
21382 # Whether or not to disallow shared libs when runtime libs are static.
21383 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21384
21385 # Compiler flag to allow reflexive dlopens.
21386 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21387
21388 # Compiler flag to generate shared objects directly from archives.
21389 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21390
21391 # Whether the compiler copes with passing no objects directly.
21392 compiler_needs_object=$lt_compiler_needs_object
21393
21394 # Create an old-style archive from a shared archive.
21395 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21396
21397 # Create a temporary old-style archive to link instead of a shared archive.
21398 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21399
21400 # Commands used to build a shared archive.
21401 archive_cmds=$lt_archive_cmds
21402 archive_expsym_cmds=$lt_archive_expsym_cmds
21403
21404 # Commands used to build a loadable module if different from building
21405 # a shared archive.
21406 module_cmds=$lt_module_cmds
21407 module_expsym_cmds=$lt_module_expsym_cmds
21408
21409 # Whether we are building with GNU ld or not.
21410 with_gnu_ld=$lt_with_gnu_ld
21411
21412 # Flag that allows shared libraries with undefined symbols to be built.
21413 allow_undefined_flag=$lt_allow_undefined_flag
21414
21415 # Flag that enforces no undefined symbols.
21416 no_undefined_flag=$lt_no_undefined_flag
21417
21418 # Flag to hardcode \$libdir into a binary during linking.
21419 # This must work even if \$libdir does not exist
21420 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21421
21422 # Whether we need a single "-rpath" flag with a separated argument.
21423 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21424
21425 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21426 # DIR into the resulting binary.
21427 hardcode_direct=$hardcode_direct
21428
21429 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21430 # DIR into the resulting binary and the resulting library dependency is
21431 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
21432 # library is relocated.
21433 hardcode_direct_absolute=$hardcode_direct_absolute
21434
21435 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21436 # into the resulting binary.
21437 hardcode_minus_L=$hardcode_minus_L
21438
21439 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21440 # into the resulting binary.
21441 hardcode_shlibpath_var=$hardcode_shlibpath_var
21442
21443 # Set to "yes" if building a shared library automatically hardcodes DIR
21444 # into the library and all subsequent libraries and executables linked
21445 # against it.
21446 hardcode_automatic=$hardcode_automatic
21447
21448 # Set to yes if linker adds runtime paths of dependent libraries
21449 # to runtime path list.
21450 inherit_rpath=$inherit_rpath
21451
21452 # Whether libtool must link a program against all its dependency libraries.
21453 link_all_deplibs=$link_all_deplibs
21454
21455 # Set to "yes" if exported symbols are required.
21456 always_export_symbols=$always_export_symbols
21457
21458 # The commands to list exported symbols.
21459 export_symbols_cmds=$lt_export_symbols_cmds
21460
21461 # Symbols that should not be listed in the preloaded symbols.
21462 exclude_expsyms=$lt_exclude_expsyms
21463
21464 # Symbols that must always be exported.
21465 include_expsyms=$lt_include_expsyms
21466
21467 # Commands necessary for linking programs (against libraries) with templates.
21468 prelink_cmds=$lt_prelink_cmds
21469
21470 # Commands necessary for finishing linking programs.
21471 postlink_cmds=$lt_postlink_cmds
21472
21473 # Specify filename containing input files.
21474 file_list_spec=$lt_file_list_spec
21475
21476 # How to hardcode a shared library path into an executable.
21477 hardcode_action=$hardcode_action
21478
21479 # The directories searched by this compiler when creating a shared library.
21480 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
21481
21482 # Dependencies to place before and after the objects being linked to
21483 # create a shared library.
21484 predep_objects=$lt_predep_objects
21485 postdep_objects=$lt_postdep_objects
21486 predeps=$lt_predeps
21487 postdeps=$lt_postdeps
21488
21489 # The library search path used internally by the compiler when linking
21490 # a shared library.
21491 compiler_lib_search_path=$lt_compiler_lib_search_path
21492
21493 # ### END LIBTOOL CONFIG
21494
21495 _LT_EOF
21496
21497 cat <<'_LT_EOF' >> "$cfgfile"
21498
21499 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
21500
21501 # func_munge_path_list VARIABLE PATH
21502 # -----------------------------------
21503 # VARIABLE is name of variable containing _space_ separated list of
21504 # directories to be munged by the contents of PATH, which is string
21505 # having a format:
21506 # "DIR[:DIR]:"
21507 # string "DIR[ DIR]" will be prepended to VARIABLE
21508 # ":DIR[:DIR]"
21509 # string "DIR[ DIR]" will be appended to VARIABLE
21510 # "DIRP[:DIRP]::[DIRA:]DIRA"
21511 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
21512 # "DIRA[ DIRA]" will be appended to VARIABLE
21513 # "DIR[:DIR]"
21514 # VARIABLE will be replaced by "DIR[ DIR]"
21515 func_munge_path_list ()
21516 {
21517 case x$2 in
21518 x)
21519 ;;
21520 *:)
21521 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
21522 ;;
21523 x:*)
21524 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
21525 ;;
21526 *::*)
21527 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
21528 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
21529 ;;
21530 *)
21531 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
21532 ;;
21533 esac
21534 }
21535
21536
21537 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
21538 func_cc_basename ()
21539 {
21540 for cc_temp in $*""; do
21541 case $cc_temp in
21542 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21543 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21544 \-*) ;;
21545 *) break;;
21546 esac
21547 done
21548 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21549 }
21550
21551
21552 # ### END FUNCTIONS SHARED WITH CONFIGURE
21553
21554 _LT_EOF
21555
21556 case $host_os in
21557 aix3*)
21558 cat <<\_LT_EOF >> "$cfgfile"
21559 # AIX sometimes has problems with the GCC collect2 program. For some
21560 # reason, if we set the COLLECT_NAMES environment variable, the problems
21561 # vanish in a puff of smoke.
21562 if test set != "${COLLECT_NAMES+set}"; then
21563 COLLECT_NAMES=
21564 export COLLECT_NAMES
21565 fi
21566 _LT_EOF
21567 ;;
21568 esac
21569
21570
21571
21572 ltmain=$ac_aux_dir/ltmain.sh
21573
21574
21575 # We use sed instead of cat because bash on DJGPP gets confused if
21576 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21577 # text mode, it properly converts lines to CR/LF. This bash problem
21578 # is reportedly fixed, but why not run on old versions too?
21579 sed '$q' "$ltmain" >> "$cfgfile" \
21580 || (rm -f "$cfgfile"; exit 1)
21581
21582 mv -f "$cfgfile" "$ofile" ||
21583 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21584 chmod +x "$ofile"
21585
21586
21587 cat <<_LT_EOF >> "$ofile"
21588
21589 # ### BEGIN LIBTOOL TAG CONFIG: CXX
21590
21591 # The linker used to build libraries.
21592 LD=$lt_LD_CXX
21593
21594 # How to create reloadable object files.
21595 reload_flag=$lt_reload_flag_CXX
21596 reload_cmds=$lt_reload_cmds_CXX
21597
21598 # Commands used to build an old-style archive.
21599 old_archive_cmds=$lt_old_archive_cmds_CXX
21600
21601 # A language specific compiler.
21602 CC=$lt_compiler_CXX
21603
21604 # Is the compiler the GNU compiler?
21605 with_gcc=$GCC_CXX
21606
21607 # Compiler flag to turn off builtin functions.
21608 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21609
21610 # Additional compiler flags for building library objects.
21611 pic_flag=$lt_lt_prog_compiler_pic_CXX
21612
21613 # How to pass a linker flag through the compiler.
21614 wl=$lt_lt_prog_compiler_wl_CXX
21615
21616 # Compiler flag to prevent dynamic linking.
21617 link_static_flag=$lt_lt_prog_compiler_static_CXX
21618
21619 # Does compiler simultaneously support -c and -o options?
21620 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21621
21622 # Whether or not to add -lc for building shared libraries.
21623 build_libtool_need_lc=$archive_cmds_need_lc_CXX
21624
21625 # Whether or not to disallow shared libs when runtime libs are static.
21626 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21627
21628 # Compiler flag to allow reflexive dlopens.
21629 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21630
21631 # Compiler flag to generate shared objects directly from archives.
21632 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21633
21634 # Whether the compiler copes with passing no objects directly.
21635 compiler_needs_object=$lt_compiler_needs_object_CXX
21636
21637 # Create an old-style archive from a shared archive.
21638 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21639
21640 # Create a temporary old-style archive to link instead of a shared archive.
21641 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21642
21643 # Commands used to build a shared archive.
21644 archive_cmds=$lt_archive_cmds_CXX
21645 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21646
21647 # Commands used to build a loadable module if different from building
21648 # a shared archive.
21649 module_cmds=$lt_module_cmds_CXX
21650 module_expsym_cmds=$lt_module_expsym_cmds_CXX
21651
21652 # Whether we are building with GNU ld or not.
21653 with_gnu_ld=$lt_with_gnu_ld_CXX
21654
21655 # Flag that allows shared libraries with undefined symbols to be built.
21656 allow_undefined_flag=$lt_allow_undefined_flag_CXX
21657
21658 # Flag that enforces no undefined symbols.
21659 no_undefined_flag=$lt_no_undefined_flag_CXX
21660
21661 # Flag to hardcode \$libdir into a binary during linking.
21662 # This must work even if \$libdir does not exist
21663 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21664
21665 # Whether we need a single "-rpath" flag with a separated argument.
21666 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21667
21668 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21669 # DIR into the resulting binary.
21670 hardcode_direct=$hardcode_direct_CXX
21671
21672 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21673 # DIR into the resulting binary and the resulting library dependency is
21674 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
21675 # library is relocated.
21676 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
21677
21678 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21679 # into the resulting binary.
21680 hardcode_minus_L=$hardcode_minus_L_CXX
21681
21682 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21683 # into the resulting binary.
21684 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21685
21686 # Set to "yes" if building a shared library automatically hardcodes DIR
21687 # into the library and all subsequent libraries and executables linked
21688 # against it.
21689 hardcode_automatic=$hardcode_automatic_CXX
21690
21691 # Set to yes if linker adds runtime paths of dependent libraries
21692 # to runtime path list.
21693 inherit_rpath=$inherit_rpath_CXX
21694
21695 # Whether libtool must link a program against all its dependency libraries.
21696 link_all_deplibs=$link_all_deplibs_CXX
21697
21698 # Set to "yes" if exported symbols are required.
21699 always_export_symbols=$always_export_symbols_CXX
21700
21701 # The commands to list exported symbols.
21702 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21703
21704 # Symbols that should not be listed in the preloaded symbols.
21705 exclude_expsyms=$lt_exclude_expsyms_CXX
21706
21707 # Symbols that must always be exported.
21708 include_expsyms=$lt_include_expsyms_CXX
21709
21710 # Commands necessary for linking programs (against libraries) with templates.
21711 prelink_cmds=$lt_prelink_cmds_CXX
21712
21713 # Commands necessary for finishing linking programs.
21714 postlink_cmds=$lt_postlink_cmds_CXX
21715
21716 # Specify filename containing input files.
21717 file_list_spec=$lt_file_list_spec_CXX
21718
21719 # How to hardcode a shared library path into an executable.
21720 hardcode_action=$hardcode_action_CXX
21721
21722 # The directories searched by this compiler when creating a shared library.
21723 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
21724
21725 # Dependencies to place before and after the objects being linked to
21726 # create a shared library.
21727 predep_objects=$lt_predep_objects_CXX
21728 postdep_objects=$lt_postdep_objects_CXX
21729 predeps=$lt_predeps_CXX
21730 postdeps=$lt_postdeps_CXX
21731
21732 # The library search path used internally by the compiler when linking
21733 # a shared library.
21734 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21735
21736 # ### END LIBTOOL TAG CONFIG: CXX
21737 _LT_EOF
21738
21739 ;;
21740
21741 esac
21742 done # for ac_tag
21743
21744
21745 as_fn_exit 0
21746 _ACEOF
21747 ac_clean_files=$ac_clean_files_save
21748
21749 test $ac_write_fail = 0 ||
21750 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21751
21752
21753 # configure is writing to config.log, and then calls config.status.
21754 # config.status does its own redirection, appending to config.log.
21755 # Unfortunately, on DOS this fails, as config.log is still kept open
21756 # by configure, so config.status won't be able to write to it; its
21757 # output is simply discarded. So we exec the FD to /dev/null,
21758 # effectively closing config.log, so it can be properly (re)opened and
21759 # appended to by config.status. When coming back to configure, we
21760 # need to make the FD available again.
21761 if test "$no_create" != yes; then
21762 ac_cs_success=:
21763 ac_config_status_args=
21764 test "$silent" = yes &&
21765 ac_config_status_args="$ac_config_status_args --quiet"
21766 exec 5>/dev/null
21767 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21768 exec 5>>config.log
21769 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21770 # would make configure fail if this is the last instruction.
21771 $ac_cs_success || as_fn_exit 1
21772 fi
21773
21774 #
21775 # CONFIG_SUBDIRS section.
21776 #
21777 if test "$no_recursion" != yes; then
21778
21779 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
21780 # so they do not pile up.
21781 ac_sub_configure_args=
21782 ac_prev=
21783 eval "set x $ac_configure_args"
21784 shift
21785 for ac_arg
21786 do
21787 if test -n "$ac_prev"; then
21788 ac_prev=
21789 continue
21790 fi
21791 case $ac_arg in
21792 -cache-file | --cache-file | --cache-fil | --cache-fi \
21793 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
21794 ac_prev=cache_file ;;
21795 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
21796 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
21797 | --c=*)
21798 ;;
21799 --config-cache | -C)
21800 ;;
21801 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
21802 ac_prev=srcdir ;;
21803 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
21804 ;;
21805 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
21806 ac_prev=prefix ;;
21807 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
21808 ;;
21809 --disable-option-checking)
21810 ;;
21811 *)
21812 case $ac_arg in
21813 *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21814 esac
21815 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
21816 esac
21817 done
21818
21819 # Always prepend --prefix to ensure using the same prefix
21820 # in subdir configurations.
21821 ac_arg="--prefix=$prefix"
21822 case $ac_arg in
21823 *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21824 esac
21825 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
21826
21827 # Pass --silent
21828 if test "$silent" = yes; then
21829 ac_sub_configure_args="--silent $ac_sub_configure_args"
21830 fi
21831
21832 # Always prepend --disable-option-checking to silence warnings, since
21833 # different subdirs can have different --enable and --with options.
21834 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
21835
21836 ac_popdir=`pwd`
21837 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
21838
21839 # Do not complain, so a configure script can configure whichever
21840 # parts of a large source tree are present.
21841 test -d "$srcdir/$ac_dir" || continue
21842
21843 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
21844 printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
21845 printf "%s\n" "$ac_msg" >&6
21846 as_dir="$ac_dir"; as_fn_mkdir_p
21847 ac_builddir=.
21848
21849 case "$ac_dir" in
21850 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21851 *)
21852 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
21853 # A ".." for each directory in $ac_dir_suffix.
21854 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21855 case $ac_top_builddir_sub in
21856 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21857 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21858 esac ;;
21859 esac
21860 ac_abs_top_builddir=$ac_pwd
21861 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21862 # for backward compatibility:
21863 ac_top_builddir=$ac_top_build_prefix
21864
21865 case $srcdir in
21866 .) # We are building in place.
21867 ac_srcdir=.
21868 ac_top_srcdir=$ac_top_builddir_sub
21869 ac_abs_top_srcdir=$ac_pwd ;;
21870 [\\/]* | ?:[\\/]* ) # Absolute name.
21871 ac_srcdir=$srcdir$ac_dir_suffix;
21872 ac_top_srcdir=$srcdir
21873 ac_abs_top_srcdir=$srcdir ;;
21874 *) # Relative name.
21875 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21876 ac_top_srcdir=$ac_top_build_prefix$srcdir
21877 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21878 esac
21879 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21880
21881
21882 cd "$ac_dir"
21883
21884 # Check for configure.gnu first; this name is used for a wrapper for
21885 # Metaconfig's "Configure" on case-insensitive file systems.
21886 if test -f "$ac_srcdir/configure.gnu"; then
21887 ac_sub_configure=$ac_srcdir/configure.gnu
21888 elif test -f "$ac_srcdir/configure"; then
21889 ac_sub_configure=$ac_srcdir/configure
21890 else
21891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
21892 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
21893 ac_sub_configure=
21894 fi
21895
21896 # The recursion is here.
21897 if test -n "$ac_sub_configure"; then
21898 # Make the cache file name correct relative to the subdirectory.
21899 case $cache_file in
21900 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
21901 *) # Relative name.
21902 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
21903 esac
21904
21905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
21906 printf "%s\n" "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
21907 # The eval makes quoting arguments work.
21908 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
21909 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
21910 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
21911 fi
21912
21913 cd "$ac_popdir"
21914 done
21915 fi
21916 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21918 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21919 fi
21920
21921